Hi, downloaded the two zip files boost_1_36_0.zip & boost-jam-3.1.16 but searched and can't find a straight forward instruction on how to install them .. Please help ...
Printable View
Hi, downloaded the two zip files boost_1_36_0.zip & boost-jam-3.1.16 but searched and can't find a straight forward instruction on how to install them .. Please help ...
Well . . . pretty much the same way you'd install any other library, I should imagine.
http://www-eleves-isia.cma.fr/docume.../download.htmlQuote:
Installation
Boost does not yet have a standardized installation process. There has been some interest in developing one; as of this writing Bill Kempf has volunteered to coordinate and is gathering volunteers. If you have expertise in this area (particularly cross-platform expertise), and you would like to contribute, please announce your availability on the Boost Install mailing list.
That said, preparing to use Boost in a development project is relatively straightforward. Most boost libraries are implemented entirely within their header files. The only preparation for their use is to add the boost root directory to your compiler's list of #include<...> search paths. For example, using Windows 2000, if you have unzipped release 1.28.0 from boost_all.zip into the top level directory of your C drive, adding '-Ic:/boost_1_28_0' to the command line of most compilers is sufficient.
Basically, if you have a pre-compiled version, extract the archive, and either modify your project settings to use boost, or copy boost into your compiler's include/lib directories.
If you downloaded the source version, you'll have to compile it first. That might be a bit harder, and will certainly take a long time. I suggested getting a pre-compiled version if possible.
jam is the build system used to build boost, or so I gather. It will let you compile boost, if you downloaded the source form of boost. If not, you probably won't need it just yet (unless/until you start using jam yourself).
One minute, I'm trying to download boost myself here so I can see what needs doing . . . .
Boost has these folders : boost, doc, libs, more, people, status, tools, and wiki
jam has build.bat which i think might be doing the job for me ...
Try it, see what happens. :)
[edit] Nah, don't wait until tomorrow . . . [/edit]
And you get that error when you do what, exactly? Did you add the folders to your include path in your compiler/IDE?
You know the boost folder in the boost*.zip archive? Copy that into C:\Dev-C++\include, so that include\boost\regex.hpp exists. Assuming you're using Dev-C++. But it should be the same for most compilers. (Assuming the boost folder in question does actually contain a "regex.hpp".)
I can't open the downloaded boost at the moment, unfortunately.
This version. http://sourceforge.net/project/showf...ease_id=619445
You don't want an "include" folder. You want to copy the "boost" folder in the boost archive into the "include" folder of your compiler. (I just checked, and it is indeed the folder you want.)
You mean copy everything from/inside but excluding the folder boost to the root f include? Boost contains many folders and .hpp files ..
Oh! I copied bjam.exe to where i extracted boost files [root flder]. Ran the file, now its taking 7years to finish whatever its doing ..compiling and stuff
Well, that works too. :)
What I and tabstop meant was to copy the boost folder itself, not the contents thereof, into the include directory. That way, include\boost\regex.hpp exists, as I mentioned. [edit] And all of the sub-directories of the boost folder, too. You want include\boost\random\* to exist, too. [/edit]
You don't want to populate your include directory with dozens of boost files. It makes more sense to put all of the boost-related files in one directory, does it not?
You'll probably end up copying the folder there, anyway. Unless you want to add a -I or whatever to your project options for every program that you write that uses boost . . . .
Compiled now but link error
Code:LNK1104: cannot open file 'libboost_regex-vc80-mt-gd-1_36.lib'
You need to find that file after you've built boost. Find it, and copy it into your compiler's "lib" directory.
Okay, good night.
I knew there had to be a binary version out there somewhere . . . :)
I assume this is a .lib file, and not a directory.
Well, vc90 probably refers to the 9.0 version of visual studio (which I believe = 2008), while vc80 would refer to the 8.0 version (=2005), so that's a mismatch of some kind there. And did you build the regex portion of boost?
This thing is giving me a headache, am about to lose it!!! Why does C++ becomes this difficult ... I downloaded the files indicated in the begging of this thread .. I don't know HOW TO configure this boost thingy!!! :mad:
I ran the build.bat which created a bjam.exe file .. Then i copied the file to the boost 1.36 root folder ... Ran bjam.exe from there ... Took about 15-20min to finish compiling ... So, maybe in that process, it created a VC90 ver instead of VC80 .. i don't know really
[EDIT] I have VS2005 standard & 2008 Express installed (free edition) [/EDIT]
Did you read the getting started for windows document here? In particular, it says how to choose which compiler/version to use, and how to make sure boost.regex is built, and how to test it, etc.
There is an installer. I have posted the link.
As for Linux, it's as easy to install as any other package. Just use your distro's package manager.
It's peculiar how you keep griping about Linux and cross platform programs' installers, when in my experience Linux works far better in this regard.
Shrug. Only bad experiences from my side.
And I have witnessed confusion and headaches typically arriving from non-Windows only distributions. Although, of course, not ALWAYS.
this http://www.nabble.com/Boost.Regex-1....d19036160.html is a problem i get after 5 hours of building ... Now i have to fix it!!!
Five hours of building? Holy cow, are you building on a 8086? :)
Did you notice they said this appeared to be the result of not having VS2005 SP1 installed? Maybe you need to install that?
It compiles on VC9 too, if I'm not mistaken.
PLUS there are already finished libraries - and an installer, as CornedBee kindly pointed out!
Never seen such a complex thing in my life...
Downloaded VS80sp1-KB926601-X86-ENU.exe which is SP1 for VS2005 .. Double click to install and it says "this may take several minutes or hours, but gets stuck for at least 45min on the tenth bar ...
K, tried this trick
and when i try to build using bjam again after these changes, i getQuote:
As a quick and dirty fix, you could try uncommenting the define:
// #define BOOST_REGEX_NO_EXTERNAL_TEMPLATES
in boost/regex/user.hpp and rebuild everything.
Maybe i shouldn't use regex ... :( or boost stuff .. way too high-gradeQuote:
C:\Boost_1_36_0\boost\tools\jam\src\bin.ntx86>bjam .exe --build-type=complete
warning: No toolsets are configured.
warning: Configuring default toolset "msvc".
warning: If the default is wrong, your build may not work correctly.
warning: Use the "--toolset=xxxxx" option to override our guess.
warning: For more configuration options, please consult
warning: http://boost.org/boost-build2/doc/ht...iguration.html
error: error: no Jamfile in current directory found, and no target references specified.
Just use an installer.
Much boost stuff doesn't even require installing or building. Just put the headers into an include directory & use them.
I don't get it. Every so often people come here who can't install Boost. It's often enough that I have to rule out one of the reasons. This means that there must be something wrong with Boost.
I don't know why. I never had any problems whatsoever, even on my first usage. And that was with the old Getting Started guide. I find the new one to be very clear and simple to follow.
Have you tried following the Getting Started guide step by step?
I have to admit, it took me a few tries on Linux to get it right. I think it's complicated by the fact that Boost has its own build system. You really need to closely read the guides to get things right...you can't fly by the seat of your pants :)
On Linux, it was as easy as "emerge boost" for me ;)
The problem with me is i was trying to use the latest version 1.36.0 ... It does build by can't build the library ... I gave up on 1.36 and tried 1.35, with exactly the same steps, i got it to work last night ... What an exercise ... :(
I believe you need to install the newest VS service pack for 1.36 to work.
It just takes time. Patience is a virtue they say.