Bonjour à tous,
J'ai tenté de compiler sfml pour Windows à partir d'une machine Linux ( automatisation grâce à Jenkins ). Je suis arrivé à résoudre 2-3 problèmes mais là je bloque.
En fait, je ne comprends pas pourquoi cmake tente de trouver X11 pour compiler pour Windows ...
Script shell pour compiler :
cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_COMPILER=i586-mingw32msvc-gcc -DCMAKE_CXX_COMPILER=i586-mingw32msvc-g++ -DCMAKE_RC_COMPILER=i586-mingw32msvc-windres -DOPENAL_LIBRARY=libopenal32.a ..
make
Et voici la sortie de la console :
cmake -G Unix Makefiles -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_COMPILER=i586-mingw32msvc-gcc -DCMAKE_CXX_COMPILER=i586-mingw32msvc-g++ -DCMAKE_RC_COMPILER=i586-mingw32msvc-windres -DOPENAL_LIBRARY=libopenal32.a ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/i586-mingw32msvc-gcc
-- Check for working C compiler: /usr/bin/i586-mingw32msvc-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/i586-mingw32msvc-g++
-- Check for working CXX compiler: /usr/bin/i586-mingw32msvc-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Found OpenGL: opengl32
-- Found GLEW: /var/lib/jenkins/workspace/SFML/extlibs/libs-mingw/x86/libglew.a
-- Found JPEG: /var/lib/jenkins/workspace/SFML/extlibs/libs-mingw/x86/libjpeg.a
-- Found Freetype: /var/lib/jenkins/workspace/SFML/extlibs/libs-mingw/x86/libfreetype.a
-- Found OpenAL: /var/lib/jenkins/workspace/SFML/windowsbuild/libopenal32.a
-- Found SNDFILE: /var/lib/jenkins/workspace/SFML/extlibs/libs-mingw/x86/libsndfile.a
-- Configuring done
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_RC_COMPILER= i586-mingw32msvc-windres
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/i586-mingw32msvc-gcc
-- Check for working C compiler: /usr/bin/i586-mingw32msvc-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/i586-mingw32msvc-g++
-- Check for working CXX compiler: /usr/bin/i586-mingw32msvc-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.8/Modules/FindX11.cmake:411 (MESSAGE):
Could not find X11
Call Stack (most recent call first):
src/SFML/Window/CMakeLists.txt:184 (find_package)
-- Configuring incomplete, errors occurred!
Si quelqu'un aurait une idée pour fixer ce problème, je prends !
Merci d'avance pour les futures réponses à mon problème.
PS : Si vous voulez aller voir par vous même :
http://jenkins.pulpgroup.org/job/SFML/