Hi Andy, On Monday 23 April 2007 18:11, Andy Ross wrote: > Durk Talsma wrote: > > Back in January, right before my Canadian adventure, I reported a > > compile error related to yasim-test. [...] I found that the following > > modification to src/FDM/Yasim/Makefile.am works: > > > > [...] > > > > I basically added the -losg* linker directives to ensure that the correct > > libraries are known to the linker. > > This looks wrong to me. The yasim command line tool doesn't require > anything from the FlightGear tree at all, and only the XML parser from > SimGear. So far as I can tell, it builds for me without problem.
Thanks for your reply. There is one file though, Gear.cpp, which adds a further dependency on SimGear. Gear.cpp is part of the SHARED_SOURCES, which are used to build both the standalone SimGear program and the FlightGear library. Gear.cpp includes: #include <simgear/scene/material/mat.hxx> which in turn includes: #include <osg/ref_ptr> #include <osg/StateSet> If I'm correct, this inclusion of SimGear related files is necessary to get a gear-related drag coefficient, from the scenery. In addition, there is reference to OSG code in mat.hxx, so it seems very logical to me the OSG must be linked to yasim-test. > > I think you may have a library pollution issue; maybe a local change > to one of your SimGear libraries is suddenly pulling in OSG code where > before it stood alone? > I have considered that, but I've removed every trace of any SimGear and OSG header and library files from my install path, and any reinstalled everything from scratch several times. In addition, I have several copies of the FlightGear and SimGear and FlightGear source tree on my computer. A developer version and a clean version. Even the clean version shows the problem. Cheers, Durk ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

