On Mon, 2009-11-23 at 23:19 +0100, Tim Moore wrote: > On 11/23/2009 10:54 PM, Martin Spott wrote: > > Tim Moore wrote: > >> Update of /var/cvs/SimGear-0.3/source/simgear/scene/material > >> In directory baron.flightgear.org:/tmp/cvs-serv25138/simgear/scene/material > >> > >> Modified Files: > >> Effect.hxx > >> Log Message: > >> Drop required Boost version from 1.37 to 1.34 > >> > >> Use boost/tr1 to bring in std::tr1::unordered_map instead of the Boost > >> version. > >> > >> Author: Tim Moore <[email protected]> > >> > >> Index: Effect.hxx > >> =================================================================== > >> RCS file: /var/cvs/SimGear-0.3/source/simgear/scene/material/Effect.hxx,v > >> retrieving revision 1.8 > >> retrieving revision 1.9 > >> diff -u -r1.8 -r1.9 > >> --- Effect.hxx 22 Nov 2009 00:00:01 -0000 1.8 > >> +++ Effect.hxx 22 Nov 2009 22:23:01 -0000 1.9 > >> @@ -19,8 +19,9 @@ > >> > >> #include <vector> > >> #include <string> > >> +#include <boost/tr1/unordered_map.hpp> > > > > According to my understanding, in order to use the standard C++ header, > > this line should read: > > > > #include <tr1/unordered_map> > > > > Am I wrong ? > No, but boost/tr1 uses the classes and functions from std::tr1 if available; > otherwise it substitutes its own. As TR1 is not implemented everywhere, > and most of TR1 was based on Boost code anyway, it works out well. However, > it turns out that boost/tr1/unordered_map.hpp isn't in Boost 1.34, so it looks > like it's back to 1.37. > > Tim
Hi Tim, >> depend on back to 1.34 Thank you for this effort ;=)) As you and Martin point out, unfortunately it STILL does not seem to compile. The SG error was :- make[4]: Entering directory `/home/geoff/fg/fg7/simgear/source/simgear/scene/material' g++ -DHAVE_CONFIG_H -I. -I../../../simgear -I../../.. -I/home/geoff/fg/fg7/install/simgear/include -I/home/geoff/fg/fg7/install/plib/include -I/home/geoff/fg/fg7/install/OSG281/include -g -O2 -D_REENTRANT -MT Effect.o -MD -MP -MF .deps/Effect.Tpo -c -o Effect.o Effect.cxx In file included from Effect.cxx:21: Effect.hxx:22:39: error: boost/tr1/unordered_map.hpp: No such file or directory In file included from Effect.cxx:21: [snip] To repeat the 'find' in my Ubuntu 8.04 system - ~$ find /usr/include/ -name unordered_map\*|xargs ls -l -rw-r--r-- 1 root root 6143 2009-02-20 13:37 /usr/include/c ++/4.2/tr1/unordered_map so there is a '<c++/4.2/tr1/unordered_map>', but no '<boost/unordered_map.hpp>' So amending simgear/scene/material/Effects.hxx to check the boost version and include accordingly :- #include <boost/version.hpp> #if BOOST_VERSION > 103401 #include <boost/tr1/unordered_map.hpp> #else #include <tr1/unordered_map> // for <c++/4.2/tr1/unordered_map> #endif and it all, SG/FG compiled and ran, in Ubuntu 8.04 ;=)) BUT, with --timeofday=noon the scene is sometimes very dark - so dark the panel instruments seem to 'glow', and this 'changes' depending on position, and heading, and at certain specific headings the scene is sort of 'red' - But maybe this is another problem altogether, or my video card or driver??? I have put up some screen captures - http://geoffair.net/tmp/fg/ Sometimes just moving back and forward will change from 'normal' to 'dark'... sometimes changing the heading can give 'normal', 'dark', 'red'??? >> asking you too much to compile a library No its not! And I am quite unsure why I got on such a high horse on this one! ;=)) But it would be 'nice' to use the existing installed 'boost' 1.34 only, and it seems possible... >> "Long Term Support" and "distro packages will be soon >> updated" would seem to be a contradiction. Yes, as I STRONGLY learned, to my chagrin. I put a few messages on the Ubuntu forum, and got several answers along the SAME lines... To my mind, I thought LTS meant they would certainly 'freeze' the base OS, that is the linux kernel itself, but continue to update/upgrade application level packages, applications, tools, etc, that will still RUN on this base. But this seems a WRONG concept for unix/linux!!! There are a 'few' updated things in the Ubuntu 8.04 'backports' repository, but that was 'very few' and did NOT include boost! So I am now considering chasing-the-tail ;=)) - that is upgrading 8.04 -> 8.10 -> 9.04 -> 9.10, the latest, and the only thing holding this back are possible hardware incompatibilities... but hopefully maybe there are none... Anyway, thanks again... Regards, Geoff. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

