Hello Johannes, Johannes Brunen wrote: > I have unsuccessfully tried building the OpenSG 2.0 framework with the > cmake build system (cmake 2.6.4 release, generator Visual Studio 9 2008) > on my Vista 64 machine. I always got the following message from the > cmake gui client program on configuring: > > Update Compiler Settings > Cmake Error at CMakeLists.txt:288 (MESSAGE): > Boost NOTFOUND.Boost version 1.39.0 > > Boost include path: D:/Development/support/dist/boost > > The following Boost libraries could not be found: > > boost_filesystem > > ...
first off I believe the fact that it prints the right versions is likely a red herring, I don't think cmake 2.6.4 has support for boost 1.39, i.e. it is not on the list of versions it looks for and I suspect that causes some silly test to fail. Can you try extending that list by adding a new variable (case sensitive) in the gui: Boost_ADDITIONAL_VERSIONS and set its value to "1.39.0 1.39" (without the ""). With that it should suffice to set BOOST_ROOT to "D:/Development/support/dist/boost" and BOOST_LIBRARYDIR to "D:/Development/support/dist/boost/stage32/lib" or stage64 depending for which arch you are building (you need BOOST_LIBRARYDIR because of the custom named stage directories) > This is strange as I do have a proper boost installation at the > described location. I did build the boost libraries myself and have > installed them into the follwing locations: > > D:/Development/support/dist/boost/stage32/lib > D:/Development/support/dist/boost/stage64/lib [SNIP] > I did look into the OpenSG CMakeLists.txt file but was unable to force > the cmake system (I'm new in this business) to use my boost libraries. I > successfully use the boost libraries for my other projects. Actually, I > wish to link OpenSG and its examples against the static filesystem > library, if possible, as I always do. hm, we don't have a user switch for that and I've never tried it, but it might be enough to go to the Dependencies section in OpenSG's CMakeLists.txt and change SET(Boost_USE_STATIC_LIBS OFF) to ON (around line 232). > Is there any other possibility to force the cmake system to use the > boost libraries I do provide? normally setting the variables manually (although tedious) gets the job done, I really suspect the problem is that boost 1.39 was released only 3 days before cmake 2.6.4 and it lacks support. > Could you please provide a shortcut for the external libraries without > relying on some cmake intelligence? I'd much rather see FindBoost.cmake improved, as part of the reason to switch to cmake (at least for me) was not having to deal with the complexity of picking up the right boost libs. Cheers, Carsten ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users