Le dimanche 24 septembre 2006 11:07, Alexandre Courbot a écrit : > Just tried cmake - I run into the mandatory problems at that stage. > > First, here is my cmake version: > > $ cmake --version > cmake version 2.4-patch 3 > > And here is what happens when I run cmake from a 'build' subdirectory: > > $ cmake -DADONTHELL_DATADIR="/usr/local/share/games/adonthell" .. > -- Adonthell data directory: /usr/local/share/games/adonthell > -- SDL has been found: > -- Include Directory: /usr/include/SDL > -- Libraries: /usr/lib/libSDLmain.a;/usr/lib/libSDL.so;-lpthread > -- SDL_mixer has been found: > -- Include Directory: /usr/include/SDL > -- Libraries: /usr/lib/libSDL_mixer.so > -- Python has been found: > -- Include directory: /usr/include/python2.4 > -- Libraries: /usr/lib/python2.4/config/libpython2.4.so > -- PNG_mixer has been found: > -- Include Directory: /usr/include;/usr/include > -- Libraries: /usr/lib/libpng.so > CMake Error: Error in cmake code at > /home/alex/Work/adonthell/CMakeLists.txt:109: > INCLUDE Could not find include file: config/FindSWIG.cmake > Really strange, are you sure that you have inside the <ADONTHELL_ROOT>/config the FindSWIG.cmake package ?
Because this file is "technically" commited, so check whether you have it or not. Be sure that you have the config directory. Jol. Current CMake stack: > /home/alex/Work/adonthell/CMakeLists.txt;/usr/share/CMake/Modules/CMakeCInf >ormation.cmake;/usr/share/CMake/Modules/CMakeCXXInformation.cmake;/home/alex >/Work/adonthell/config/FindSWIG.cmake CMake Error: Error in cmake code at > /home/alex/Work/adonthell/CMakeLists.txt:114: > MESSAGE Impossible to locate SWIG. > Current CMake stack: > /home/alex/Work/adonthell/CMakeLists.txt;/usr/share/CMake/Modules/CMakeCInf >ormation.cmake;/usr/share/CMake/Modules/CMakeCXXInformation.cmake;/home/alex >/Work/adonthell/config/FindSWIG.cmake -- Configuring done > > > I've figured out that I can fix that by commenting out > > include(config/FindSWIG.cmake) > > in CMakeLists.txt and restoring > > find_package(SWIG REQUIRED) > > However, I cannot fix it that way for libxml2. I get either > > CMake Error: Error in cmake code at > /home/alex/Work/adonthell/CMakeLists.txt:122: > INCLUDE Could not find include file: config/FindLibxml2.cmake > Current CMake stack: > /home/alex/Work/adonthell/CMakeLists.txt;/usr/share/CMake/Modules/CMakeCInf >ormation.cmake;/usr/share/CMake/Modules/CMakeCXXInformation.cmake;/home/alex >/Work/adonthell/config/FindLibxml2.cmake CMake Error: Error in cmake code at > /home/alex/Work/adonthell/CMakeLists.txt:131: > MESSAGE LibXml2 is required. > Current CMake stack: > /home/alex/Work/adonthell/CMakeLists.txt;/usr/share/CMake/Modules/CMakeCInf >ormation.cmake;/usr/share/CMake/Modules/CMakeCXXInformation.cmake;/home/alex >/Work/adonthell/config/FindLibxml2.cmake > > on the unmodified CMakeLists.txt, or > > CMake Error: Libxml2_DIR is not set. It must be set to the directory > containing Libxml2Config.cmake in order to use Libxml2. > > if I use find_package instead. > > Any idea? What is this include thing by the way? > > Alex. > > > _______________________________________________ > Adonthell-devel mailing list > Adonthell-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/adonthell-devel _______________________________________________ Adonthell-devel mailing list Adonthell-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/adonthell-devel