Sign in to follow this  
SiS-Shadowman

Problems installing boost

Recommended Posts

SiS-Shadowman    359
i hope you can help me. i've tried to install boost, as i was told in the readme, but i'm doing something wrong :( it says i first have to set the invironment variables ( i opened cmd and ran this cvars32.bat thing ) after that, i switched to the unpacked boost foldier, but when i tried bjam "-sTools=vc-8.0" install, i get the error that the command bjam doesn't exist. obviosly i got msvc 2005 ( 8.0 ), but unfortunately, boost doesn't like to be compiled on my computer :( perhaps you know, what i've done wrong?

Share this post


Link to post
Share on other sites
etothex    728
boost does not include the "bjam" utility.

you can download bjam.exe from the link on the "getting started" guide. just put it in the same dir.

plus, the "-sTOOLS=vc-8_0" I trhink (or maybe "-sTOOLS=vc_8-0"?)

edit: one second!?!?!? crap

Share this post


Link to post
Share on other sites
SiS-Shadowman    359
i downloaded the executable, but i get tons of errors ( and also some filecopy commands ) don't know exactly whats wrong, it took some minutes after the prog was finished, but the result is this:

failed updating 948 targets
skipped 412 targets
updatet 3785 targets

i now habe a bin folder in the boost folder, but theres no file in there, only empty other folders...

what's wrong now?

Share this post


Link to post
Share on other sites
snk_kid    1312
Quickest method:


  1. Goto your start menu and find the visual c++ 2k5 tab/folder, in there you'll find vc++ 2005 command prompt (it might be under "tools" i can't remember), click on it, it will open up the command prompt it should have your enviroment all setup correctly.


  2. if you do not have bjam in your path already then you can set it temporary from the command prompt:


    set PATH=%PATH%;<insert-path-to-bjam>
    export PATH



  3. Change directorary to the place where you have extracted boost, in the top level.


  4. now enter:


    bjam "-sTOOLS=vc-8_0" install




Don't be alarmed if you are told that some libraries where not built, this will happen because you dont have the required library dependencies to build it. You can still use the other libraries in boost.

Also note that the majority of boost libraries are purely header based and don't end up as a static and/or dynamic libraries.

[Edited by - snk_kid on May 19, 2006 11:38:55 AM]

Share this post


Link to post
Share on other sites
SiS-Shadowman    359
i did exactly as you told me and i get the same result...

i get tons of messages, i once took a screenshot, and this is the result:



i don't understand why it wants to access this directory, i don't have msvc 2005 installed in that dir

*edit*

perhaps it is working now. for some reason, i also have to set MSVCDir, it's now compiling i think. it takes its time o_O

[Edited by - SiS-Shadowman on May 19, 2006 10:42:41 AM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Look what boost-consulting did for n00bs like you -> http://www.boost-consulting.com/download.html

Share this post


Link to post
Share on other sites
Fruny    1658
Quote:
Original post by SiS-Shadowman
bjam "-sTools=vc-8.0" install


Should be vc-8_0


Quote:


i don't understand why it wants to access this directory, i don't have msvc 2005 installed in that dir


The messages indicate it is looking for VS 2003, not VS 2005. You messed up the version on the command line.

Share this post


Link to post
Share on other sites
SiS-Shadowman    359
as you can see in the window i entered vc-8_0, but bjam also needed MSVCDir set, to be able to locate vc 2005, although i did set all the environment variables through vsvars32.bat...

Share this post


Link to post
Share on other sites
Fruny    1658
Quote:
Original post by SiS-Shadowman
as you can see in the window i entered vc-8_0, but bjam also needed MSVCDir set, to be able to locate vc 2005, although i did set all the environment variables through vsvars32.bat...


Sorry. You are right. Does it work if you run vcvarsall.bat? That's what the Start Menu "Visual Studio 2005 Command Prompt" entry executes.

Quote:
Original post by tstrimp
Why do you need to install boost? Can't you just move the includes folder somewhere handy and have at it?


Boost includes some libraries for which is is desirable to generate a binary.

Share this post


Link to post
Share on other sites
SiS-Shadowman    359
it didn't work :(

i had to manually type in set MSVCDir=<my msvc 2005 dir>
but after that it compiled nearly 40 minutes, i now got a boost folder, wich is 1,5 gb in size. i assume that this is the include and library path for msvc?

*edit* i HATE boost, wth is it supposed to do? not work until i go crazy?
the regex examples don't work, when i want to include boost/regex in my project, i get tons of errors, about 150

[Edited by - SiS-Shadowman on May 20, 2006 4:45:50 AM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Ok I'll try it again. For n00bs like you boost-consulting wrote an installer you can download it here -> http://www.boost-consulting.com/download.html

Share this post


Link to post
Share on other sites
SiS-Shadowman    359
thanks for the link,
but your comment musn't be like that. i'm very sorry that i'm not familiar with building programms / librarys via the console. that's why i use windows, i don't want to work with a console and type in all the commands manually. i could have chosen linux to work with c++, if i wanted to torture myself...

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
You hate typing why are you programming then?

Share this post


Link to post
Share on other sites
SiS-Shadowman    359
i hate compiling everything over the commandline.
i don't hate typing in every case. i like programming, although it somethimes really drives me crazy, but whats the fun in it, without some challenge?
i just don't like to download 3rd party source code, compile it and then get tons of errors, i like to write everything on my own, because then i know what is wrong and whats not. but thats not possible in every case, that's why i need regex.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this