The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.15 (Linux)
File Line Function
/showthread.php 906 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[error] Can't compile Colobot on MSYS2
#1
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

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
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:

Code:
cmake -DCMAKE_BUILD_TYPE=Debug -DDEV_BUILD=1 -DCMAKE_INSTALL_PREFIX=/c/tmp -G"MSYS Makefiles"
cmake goes well without errors
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
Help me understand what goes wrong or maybe it's a bug in sources?


Messages In This Thread
[error] Can't compile Colobot on MSYS2 - by ivanovmv - 02-11-2016, 08:37 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)