On Tue, 2011-10-25 at 18:47 +0100, James Turner wrote: > On 25 Oct 2011, at 15:20, Geoff McLane wrote: > > > > > >> need to see the arguments / environment > >> passed to CMake, to understand why. > > But in each case I have explicitly given you > > the exact exports and cmake commands used... > > > > What more do you need? > > The problem is you've confused me, with all the discussion :) So it would > help, to be able to see exactly the commands, all of them, in one place - > maybe upload your scripts to someplace? Then I can get an overview of what > you're doing. >
Hi James, This problem was happening in BOTH Ubuntu linux, and in XP WIN32... BUT at least in Ubuntu, I think some of the problem was that I was NOT deleting the CMakeCache.txt file each time I modified the script for another try... Remember the abort I was getting was :- Could NOT find SimGear (missing: SIMGEAR_VERSION_OK) Now I seem to have found a combination that works - (a) Setting the environment - makefg: Done export SIMGEAR_DIR=/media/Disk2/FG/fg17/install/simgear AND (b) adding SIMGEAR_INCLUDE_DIR makefg: Will do 'cmake -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_CXX_FLAGS=-O3 -D LIB_POSTFIX= \ -D CMAKE_INSTALL_PREFIX:PATH=/media/Disk2/FG/fg17/install/fgfs \ -D ENABLE_RTI=OFF -D CMAKE_VERBOSE_MAKEFILE=TRUE \ -D SIMGEAR_LIBRARIES=/media/Disk2/FG/fg17/install/simgear/lib \ -D SIMGEAR_INCLUDE_DIR=/media/Disk2/FG/fg17/install/simgear/include\ .' Maybe, as you have suggested, this is over kill, setting BOTH SIMGEAR_DIR in the environment, AND passing SIMGEAR_INCLUDE_DIR to cmake, and when I feel comfortable, I will eliminate one or the other for further testing... BUT now I have reached another wall... fgjs will not link ;=(( Linking CXX executable fgjs cd /media/Disk2/FG/fg17/fgfs/source/src/Input && /usr/bin/cmake -E cmake_link_script CMakeFiles/fgjs.dir/link.txt --verbose=1 /usr/bin/c++ -O3 -Wall -D_REENTRANT -O3 -DNDEBUG CMakeFiles/fgjs.dir/fgjs.cxx.o CMakeFiles/fgjs.dir/jsinput.cxx.o CMakeFiles/fgjs.dir/jssuper.cxx.o -o fgjs -rdynamic -Wl,-Bstatic -lplibpuaux -lplibjs -lplibfnt -lplibssg -lplibsg -lplibpu -lplibul -Wl,-Bdynamic CMakeFiles/fgjs.dir/fgjs.cxx.o: In function `fgScanForOption(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': fgjs.cxx:(.text+0x12b): undefined reference to `sg_gzifstream::sg_gzifstream(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)' fgjs.cxx:(.text+0x13c): undefined reference to `logstream::initGlobalLogstream()' fgjs.cxx:(.text+0x142): undefined reference to `logbuf::logClass' fgjs.cxx:(.text+0x15f): undefined reference to `skipcomment(std::basic_istream<char, std::char_traits<char> >&)' fgjs.cxx:(.text+0x21f): undefined reference to `skipcomment(std::basic_istream<char, std::char_traits<char> >&)' fgjs.cxx:(.text+0x295): undefined reference to `gzfilebuf::~gzfilebuf()' fgjs.cxx:(.text+0x2ca): undefined reference to `logbuf::logPriority' [snip] This is missing SG gzip and logbuf, and can NOT see ANY SG libraries in the link, like -lsgdebug, etc...very puzzling??? Maybe this is related to EVENT_INPUT which defaults ON for APPLE, but has a comment for linux - elseif(CMAKE_SYSTEM_NAME MATCHES "Linux") # disabled while DBus / HAL / udev issues are decided #set(EVENT_INPUT_DEFAULT 1) and later option(EVENT_INPUT "Set to ON to build FlightGear with event-based Input support" ${EVENT_INPUT_DEFAULT}) but maybe this has nothing to do with it... Anyway, out of time for exploration tonight, but look forward to any suggestions for continuing tomorrow... As mentioned I am trying to update my script to use CMake... The previous versions of the script are published here - http://geoffair.org/fg/fgfs-052.htm BUT because this 'cmake' version 1.3.5 is not yet fully tested, and sometimes failing, I have not yet published it on that page, but a copy of it is here for testing :- http://geoffair.org/tmp/makefg Regards, Geoff. ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel