From: Iervolino F. <fat...@ea...> - 2011-12-02 13:00:56
|
Another question please? Is it correct to have a floder called src under C:\FGDev\fg-fatimais-flightgear & under C:\FGDev\fg-fatimais-flightgear\build? Maybe why I have a fatal error when I try to compile FlightGear.sln under C:\FGDev\fg-fatimais-flightgear\build ... Many thanks, Cheers, Fatima -----Message d'origine----- De : ThorstenB [mailto:br...@gm...] Envoyé : jeudi 1 décembre 2011 20:16 À : Iervolino Fatima Cc : FlightGear developers discussions Objet : Re: [Flightgear-devel] Fw: CMake, tomorrow (Sunday 23rd) Am 01.12.2011 15:53, schrieb Iervolino Fatima: > Hi Thorsten, > > I've rebuilt all successfully. But I'm still have the same problem as > before: > > What I can do to solve it? First of all, are you really using "CMake" to configure your FlightGear build (not just for OSG!) - or are you maybe using the MSVC project which is (still) located in the FlightGear folder below project/VC90 ? The latter is unmaintained now - since we switched to CMake a few days ago (see our email topic :) ). I have no idea what happens if you compiled with the now-obsolete MSVC project file. @James/Frederic: Could we drop the VC90 project file now? It's confusing if that's still around. No one is checking this file now, and it's impossible to know what people are using as long as it's still around. Fatima, if you have used cmake for FlightGear (not just for OSG), then check the generated file src/Include/config.h from your FlightGear (build) directory. It should contain: #define ENABLE_YASIM #define ENABLE_JSBSIM => If these were missing (or commented out), then this explains your problem. You could add/enable these defines manually to have a quick success with building. But better also fix the root cause, otherwise issues will be back later. Also check the CMakeCache.txt file (not sure if that has the same name for Windows). It should contain: //Set to ON to build FlightGear with JSBSim FDM ENABLE_JSBSIM:BOOL=ON //Set to ON to build FlightGear with YASIM FDM ENABLE_YASIM:BOOL=ON If these switches are set to "OFF" (or even missing), then the CMake configuration step hasn't worked for FlightGear. If you can't fix the issue, then please attach the src/Include/config.h and CMakeCache.txt files to your email, so we can see how your build is configured. And remember, these files should be _generated_ on your machine (whenever you run cmake) - so check their file date/time to see if they are really "fresh". It may also be a good idea to see if you maybe have any other (old) "config.h" in one of your include directories - so that the compiler somehow finds the wrong file first... cheers, Thorsten |