How to Set Up Boost?

Discussion about everything. New games, 3d math, development tips...
Post Reply
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

How to Set Up Boost?

Post by Electron »

Anyone using Boost C++ libraries? There's a lot of useful stuff in there, but I can't figure out how to get the whole thing set up. I'm not quite sure why the download can't just include headers, static libraries, and (if necessary for certain libraries) dynamiclike libraries. I'm not sure why they need that whole complicated bjam system, I don't get how to use it, partly because I'm not sure what it's supposed to be doing.
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.

Crucible of Stars
schick
Posts: 230
Joined: Tue Oct 07, 2003 3:55 pm
Location: Germany
Contact:

Post by schick »

The build system is based on bjam. It is much easier to set up than gnu make. You will need to download the whole SDK and build it using bjam. bjam is also avaiable at the boost homepage. boost expands the STL so there is a heavy usage of templates. Some compiles may strike on some libraries provided by boost, you may want to check this in the compiler compatibily page. If you are using gcc3.4 most libraries should build.

Using boost is always a great idea, you may want to have a look at the loki libraries, too. Well, those libraries are what i call advanced C++.

Cheers,

Schick
Please send me an e-mail instead of a private message.
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

well, I knew it needed bjam. I downloaded bjam from here http://sourceforge.net/project/showfile ... e_id=72941
I'm just not sure what I need to set so it will build boost with my MingW installation. It seems to be trying to find VC++ 7 and failing cause I don't have it. I'm not sure how I change which compiler it's looking for.
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.

Crucible of Stars
Matthias Lange

Post by Matthias Lange »

http://boost.org/more/getting_started.html

I found it quite hard to set up Boost, too. :?
But you don't have to do much... Just copy bjam to "your path"(System or System32) or into the Boost directory, set some variables(<-- woa, links are invisible :)), tell bjam wich toolset to use, tell it where to install boost... it's somehow confusing. ;)
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

Thanks, I had actuall found both those pages before, but I must be missing something on them.
tell bjam wich toolset to use
that's what I'm not getting. I'm not sure what variable I have to set for that. It keeps trying to set stuff up for VC7, which I don't have.
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.

Crucible of Stars
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

:oops: oh, I'm stupid. I didn't finish reading that getting started guide. I only read up to step 3 and somehow missed noticing that there were more steps. I'm not sure how I did that. Well I should be all set now (except perhaps my mental state). Thanks
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.

Crucible of Stars
Post Reply