Help Please,
I am trying to cross compile for windows I am using a Linux Ubuntu Host system, I installed mingw 32 bit headers and librarys are under
/usr/i686-w64-mingw32 and 64 bit headers and librarys are under /usr/x86_64-w64-mingw32 the binarys were automatically installed
under /usr/bin, but I copied all i686 Mingw binarys under the /usr/i686-w64-mingw32/bin , and all x86_64 Mingw binarys under /usr/x86_64-w64-mingw32/bin
also copied the direct headers downloaded into both include directories and librarys into lib directories so. Basically I have bin, lib and include structure
under each directory i686-w64-mingw32 for 32 bit windows and x86_64-w64-mingw32 for 64 bit windows. I installed Urho3D-1.5 Source,
now I succesuffly compiled and make 64 bit and 32 bit linux excuteables already, so I wanted to compile for Windows.
So I use the command Below But never works, any one got this working cross compiling please help
./cmake_mingw.sh $URHO3D_HOME -DWIN32=1 -DURHO3D_64BIT=0 -DURHO3D_ANGELSCRIPT=0 -DURHO3D_SAMPLES=1 -DURHO3D_TOOLS=0 -DURHO3D_PACKAGING=1 -DURHO3D_LOGGING=0 -DCMAKE_BUILD_TYPE=Release -DMINGW_PREFIX=i686-w64-mingw32 -DMINGW_SYSROOT=/usr/i686-w64-mingw32
But I get error below
CMake Error at CMake/Toolchains/mingw.toolchain.cmake:40 (message):
Could not find MinGW cross compilation tool. Use MINGW_PREFIX environment
variable or build option to specify the location of the toolchain.
Call Stack (most recent call first):
/UBUNENV/MIKEDOCUMENTS/TAKEHOME/BUILDURHO3D/cmake-3.5.0-rc1-Linux-x86_64/share/cmake-3.5/Modules/CMakeDetermineSystem.cmake:98 (include)
CMakeLists.txt:24 (project)
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
– Configuring incomplete, errors occurred!