Linux Cross Compile cmake Errors

Linux Cross Compile cmake Errors

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
kfriars
Posts: 36
Joined: 28 Sep 2011, 01:00

Linux Cross Compile cmake Errors

Post by kfriars »

Hello,
I have followed the instructions on how to cross compile from linux to windows and have managed to compile my own MinGW and cmake toolchain file, however when i try to configure cmake i get the following errors. Does anyone know if some of them are acceptable? Thanks!

Code: Select all

The C compiler identification is GNU
The CXX compiler identification is GNU
Check for working C compiler: /home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/bin/i686-pc-mingw32-gcc
Check for working C compiler: /home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/bin/i686-pc-mingw32-gcc -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: /home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/bin/i686-pc-mingw32-g++
Check for working CXX compiler: /home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/bin/i686-pc-mingw32-g++ -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Could NOT find Windres (missing:  WINDRES_BIN) 
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1138 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.46.1

  Boost include path:
  /home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/i686-pc-mingw32/include


  The following Boost libraries could not be found:

          boost_thread

  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.
Call Stack (most recent call first):
  CMakeLists.txt:174 (FIND_PACKAGE)


Found DevIL: /home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/i686-pc-mingw32/include/IL/il.h 
Found DevIL-ILU: /home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/i686-pc-mingw32/lib/libILU.a - /home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/i686-pc-mingw32/include/IL/ilu.h
Found DevIL-ILUT: /home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/i686-pc-mingw32/lib/libILUT.a - /home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/i686-pc-mingw32/include/IL/ilut.h
Checking to see if CXX compiler accepts flag -msse -mfpmath=sse
Checking to see if CXX compiler accepts flag -msse -mfpmath=sse - yes
Checking to see if CXX compiler accepts flag -mieee-fp
Checking to see if CXX compiler accepts flag -mieee-fp - yes
Building Spring for 32bit environment
Found win32 libraries: -limagehlp;-lws2_32;-lwinmm
Found ZLIB: /home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/i686-pc-mingw32/lib/libz.a 
Looking for include files CMAKE_HAVE_PTHREAD_H
Looking for include files CMAKE_HAVE_PTHREAD_H - not found.
Found Threads: TRUE 
Building Assimp with flags  -mwindows -march=i686 -msse -mfpmath=sse -mthreads            -frounding-math -mieee-fp -pipe -fno-strict-aliasing  
Found AWK: /usr/bin/awk 
AWK version: mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan
Found AI Wrapper: CUtils (sources only wrapper)
Found AI Interface: C-AIInterface 0.1
Java version 1.6.0.23 configured successfully!
Found Java: /usr/bin/java (found version "1.6.0.23")
Found Java: /usr/lib/jvm/java-6-openjdk/bin/java 
Found AI Interface: Java-AIInterface 0.1
Could NOT find Maven (missing:  MVN_BIN MVN_VERSION MVN_ATTRIBUTES_DEFAULT) 
Found AI Wrapper: Cpp-AIWrapper
Found AI Wrapper: JavaOO
Found vecmath.jar: /home/kfriars/Spring/Source/spring-xcompile/spring/AI/Wrappers/JavaOO/jlib/vecmath.jar
Could NOT find Maven (missing:  MVN_BIN MVN_VERSION MVN_ATTRIBUTES_DEFAULT) 
Found AI Wrapper: LegacyCpp-AIWrapper
Found AI Wrapper: LegacyCpp-Creg-AIWrapper
Found Skirmish AI: NullAI 0.1
Could NOT find Maven (missing:  MVN_BIN MVN_VERSION MVN_ATTRIBUTES_DEFAULT) 
Found Skirmish AI: NullJavaAI 0.1 (config: default)
Found Skirmish AI: AAI 0.9
Could NOT find Maven (missing:  MVN_BIN MVN_VERSION MVN_ATTRIBUTES_DEFAULT) 
Found Skirmish AI: NullOOJavaAI 0.1 (config: default)
Found Skirmish AI: RAI 0.601
Found Skirmish AI: CppTestAI 0.1
Boost version: 1.46.1
Found the following Boost libraries:
  filesystem
CMake Warning at tools/ArchiveMover/CMakeLists.txt:28 (MESSAGE):
  Could not find windres, not adding icon to executable.


CMake Error at doc/CMakeLists.txt:123 (Message):
  user-docs generation (html/text) is not possible (disable with
  USERDOCS_HTML=FALSE); missing utility: pandoc or markdown


Found SevenZip: /usr/bin/7z 
Found OpenAL: /home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/i686-pc-mingw32/lib/libOpenAL32.a 
Looking for vorbis_bitrate_addblock in vorbis
Looking for vorbis_bitrate_addblock in vorbis - found
Found OggVorbis: /home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/i686-pc-mingw32/lib/libogg.a;/home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/i686-pc-mingw32/lib/libvorbis.a;/home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/i686-pc-mingw32/lib/libvorbisfile.a
CMake Warning at rts/build/cmake/FindWindres.cmake:55 (MESSAGE):
  Could not find windres, not compiling resource
  "/home/kfriars/Spring/Source/spring-xcompile/spring/rts/icon.rc".
Call Stack (most recent call first):
  rts/CMakeLists.txt:105 (CreateResourceCompileCommand)


Found OpenGL: opengl32 
WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
Found GLEW: /home/kfriars/Programs/MinGWx/mingw-cross-env-2.21/usr/i686-pc-mingw32/include (Required is at least version "1.5.1")
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
  Could NOT find Freetype (missing: FREETYPE_LIBRARIES FREETYPE_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
  rts/build/cmake/FindFreetype.cmake:107 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  rts/builds/default/CMakeLists.txt:21 (FIND_PACKAGE)


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_THREAD_LIBRARY (ADVANCED)
    linked by target "lobby" in directory /home/kfriars/Spring/Source/spring-xcompile/spring/rts/lib/lobby
    linked by target "headlessStubs" in directory /home/kfriars/Spring/Source/spring-xcompile/spring/rts/lib/headlessStubs
    linked by target "unitsync" in directory /home/kfriars/Spring/Source/spring-xcompile/spring/tools/unitsync

Configuring incomplete, errors occurred!
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Linux Cross Compile cmake Errors

Post by hoijui »

looks like you don't have mingwlibs (that should be explained in the instructions aswell).
Post Reply

Return to “Engine”