Hi, I'm very new to C++ and Boost. I want to make a simple desktop application (a game editor, basically read/write a binary file) using QtCreator. Right now I'm only interested in Boost.Test for the unit tests. I tried to install using the instructions in "Getting started" but wasn't able to, probably because of bad english and lack of C++ knowledge. I unpacked Boost to /home/otto/boost_1_44_0/
From there, I ran:
$ mkdir dist $ ./bootstrap.sh --prefix=/home/otto/boost_1_44_0/dist --show-libraries --with-libraries=test $ ./bjam install It seems that config had no effect as it built everything (instead of just test) and to bin.v2/. A few "cp: cannot create regular file `/usr/local/lib/libboost_wave.a': Permission denied" errors too. What went wrong? Now I have bin.v2/libs/test/build/gcc-4.4.4/release with directories link-static and threading-multi. I also would like to configure it for usage with QtCreator. Thanks
Otto wrote:
Hi,
I'm very new to C++ and Boost. I want to make a simple desktop application (a game editor, basically read/write a binary file) using QtCreator. Right now I'm only interested in Boost.Test for the unit tests.
I tried to install using the instructions in "Getting started" but wasn't able to, probably because of bad english and lack of C++ knowledge.
I unpacked Boost to /home/otto/boost_1_44_0/
From there, I ran:
$ mkdir dist $ ./bootstrap.sh --prefix=/home/otto/boost_1_44_0/dist --show-libraries --with-libraries=test
$ ./bjam install
It seems that config had no effect as it built everything (instead of just test)
Try passing --with-test to bjam invocation.
and to bin.v2/.
That's expected. bin.v2 is the build directory while the --prefix
A few "cp: cannot create regular file `/usr/local/lib/libboost_wave.a': Permission denied" errors too. What went wrong?
You don't have permission to write to /usr/local/lib, apparently. Just like with every other Unix program, you need to be root to install things there. - Volodya
Otto wrote:
You don't have permission to write to /usr/local/lib, apparently. Just like with every other Unix program, you need to be root to install things there.
That's why I used --prefix. I thought that would allow me to install it in my home dir.
Just like the --with options, I'd suggest you pass that to bjam. - Volodya
You were right. This worked:
$ ./bjam install --prefix=DIR --with-test
Build time was a lot faster and it seems I only have unit_test related files
in DIR/libs.
Thanks.
Now, is there info on how to configure it to work with QtCreator?
2010/8/23 Vladimir Prus
Otto wrote:
You don't have permission to write to /usr/local/lib, apparently. Just like with every other Unix program, you need to be root to install things there.
That's why I used --prefix. I thought that would allow me to install it in my home dir.
Just like the --with options, I'd suggest you pass that to bjam.
- Volodya
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi, On Monday, 23. August 2010 18:04:36 you wrote:
Now, is there info on how to configure it to work with QtCreator?
Well, now you have to consult the QtCreator docs. It has support for at least qmake and cmake, unfortunately no Boost.Build support (yet). For qmake, adjust the INCLUDE and LIB variables of your qmake project to point to the right location, cmake has some kind of Boost support (FindBoost.cmake). Yours, Jürgen -- * Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für * voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH * fax : ++49 511 262926 99 ! Lister Straße 15 * juergen.hunold@ivembh.de ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !
participants (3)
-
Jürgen Hunold
-
Otto
-
Vladimir Prus