Boost: unordered library installation problem
I tried building the boost unordered library and i get like this error. exactly how do i build the boost unordered library. 'boost-build C:\cygwin\home\Chun ping Wang\boostBeta\unordered/../boost/tools /build/v2 ;' but we were unable to find "bootstrap.jam" in the specified directory or in BOOST_BUILD_PATH (searching C:\cygwin\home\Chun ping Wang\boostBeta\unorde red/../boost/tools/build/v2).
On 09/01/07, chun ping wang
I tried building the boost unordered library and i get like this error.
exactly how do i build the boost unordered library.
You don't actually need to build the library - it's a header only library, the build system is just used for building the unit tests. All you need to do to use the library is make sure both the root directory of boost and the unordered library are in your include path. But if you do want to run the tests, the build system should work if you place the unordered directory in the same directory as the boost distribution. Or you can edit project-root.jam and boost-build.jam, from unordered, so that BOOST_ROOT points to the root of the boost distribution. Sorry, this is a bit rubbish, there's probably a better way for 3rd-party libraries to use the boost build system, but right now I don't know what it is. At the very least, BOOST_ROOT should only be in one location. I'll have a look at what other people do. Hope that helps a little, Daniel
Daniel James wrote:
I'll have a look at what other people do.
It turns out that the maths toolkit has a script, written by Joao Abecasis, which I could use. So now I've uploaded a new version which should just require you to set BOOST_ROOT to the root of your Boost implementation for it to work (but remember that you only need to build anything if you want to run the unit tests). Daniel
Daniel James wrote:
Sorry, this is a bit rubbish, there's probably a better way for 3rd-party libraries to use the boost build system, but right now I don't know what it is. At the very least, BOOST_ROOT should only be in one location. I'll have a look at what other people do.
Daniel, I've attached the project-root.jam file I've been using, as you can see I didn't invent this one, but basically: The user just sets BOOST_ROOT to point to their boost install and that's it, everything should then just work. Hopefully :-) John.
participants (3)
-
chun ping wang
-
Daniel James
-
John Maddock