First of all i read these articles Compiling GOLD on Windows with MSYS2 and Compiling on Linux and configure MSYS2 according to them.
Latest MSYS2 with this packages installed
The only packages i found missing is po4a and oggenc. According to this post Compilating translations po4a no longer required.
I'm using sources form latest dev branch and running cmake with these parameters:
cmake goes well without errors
but make failed with error
Help me understand what goes wrong or maybe it's a bug in sources?
Latest MSYS2 with this packages installed
Code:
mingw-w64-x86_64-toolchain
msys2-devel
git
make
wget
mingw-w64-x86_64-doxygen
mingw-w64-x86_64-cmake
mingw-w64-x86_64-gcc
mingw-w64-x86_64-cmake
mingw-w64-x86_64-boost
mingw-w64-x86_64-SDL2
mingw-w64-x86_64-SDL2_image
mingw-w64-x86_64-SDL2_ttf
mingw-w64-x86_64-glew
mingw-w64-x86_64-libpng
mingw-w64-x86_64-gettext
mingw-w64-x86_64-libsndfile
mingw-w64-x86_64-libvorbis
mingw-w64-x86_64-libogg
mingw-w64-x86_64-openal
mingw-w64-x86_64-physfs
I'm using sources form latest dev branch and running cmake with these parameters:
Code:
cmake -DCMAKE_BUILD_TYPE=Debug -DDEV_BUILD=1 -DCMAKE_INSTALL_PREFIX=/c/tmp -G"MSYS Makefiles"
but make failed with error
Code:
$ make
[ 0%] Building C object lib/localename/CMakeFiles/localename.dir/localename.c.obj
[ 0%] Linking C static library liblocalename.a
[ 0%] Built target localename
[ 0%] Building CXX object src/CBot/CMakeFiles/CBot.dir/CBotCallMethode.cpp.obj
[ 0%] Building CXX object src/CBot/CMakeFiles/CBot.dir/CBotClass.cpp.obj
[ 0%] Building CXX object src/CBot/CMakeFiles/CBot.dir/CBotCStack.cpp.obj
[ 0%] Building CXX object src/CBot/CMakeFiles/CBot.dir/CBotDebug.cpp.obj
C:/path/to/sources/colobot/src/CBot/CBotDebug.cpp: In function 'std::__cxx11::string CBot::{anonymous}::GetPointerAsString(void*)':
C:/path/to/sources/colobot/src/CBot/CBotDebug.cpp:39:71: error: cast from 'void*' to 'long unsigned int' loses precision [-fpermissive]
sprintf(buffer, "instr%016lX", reinterpret_cast<unsigned long>(ptr));
^
src/CBot/CMakeFiles/CBot.dir/build.make:134: recipe for target 'src/CBot/CMakeFiles/CBot.dir/CBotDebug.cpp.obj' failed
make[2]: *** [src/CBot/CMakeFiles/CBot.dir/CBotDebug.cpp.obj] Error 1
CMakeFiles/Makefile2:241: recipe for target 'src/CBot/CMakeFiles/CBot.dir/all' failed
make[1]: *** [src/CBot/CMakeFiles/CBot.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2