Can anyone help me to link boost library with Qt.
I am a newbie, so please tell from scratch.
Basically i want to use the graph library in boost to create a GUI frontend for basic graph operations.
Can anyone help me to link boost library with Qt.
I am a newbie, so please tell from scratch.
Basically i want to use the graph library in boost to create a GUI frontend for basic graph operations.
Hi there,
BOOST is absolutely independent from the framework you are using. For example, as you may already know, it can be used with VC++ or gcc. I found it's absolutely easy and straightforward to link it with them. Qt isn't different. I think using boost with Qt is even simpler in a way. If you can specify OS and IDE then I might be more helpful.
Regards,
Dong Back Kim
OS: Ubuntu 10.10 x64
IDE: Qt Creator
Compiler: gcc 4.4.5
Sorry I haven't had a chance to use Qt Creator. I use Visual Studio 2010 or VIM with makefile. However, as you know, boost is really a set of header files so as long as you can include the header files somehow with your development environment it should just be working fine. I think that's the beauty of boost. Hope you figure out without too much trouble.
Regards,
Dong Back Kim
Can you tell me how to install boost in ubuntu
Hi, have a look at http://tinyurl.com/3q3albb
And Boost is a normal library so just tell the compiler where to find the header files. See the LIBS variable of qmake.
Sure.
Qt Code:
sudo apt-get install libboost-devTo copy to clipboard, switch view to plain text mode
Dong Back Kim
I have the 1.46.1 version of the boost.
my internet speed is very slow so i don't want to download those things again.
when i try to install it with this command:
it gives the following error:chmod +x bootstrap.sh
./bootstrap.sh
./bootstrap.sh: 210: ./tools/build/v2/engine/src/build.sh: Permission denied
Building Boost.Jam with toolset ...
Failed to build Boost.Jam
Consult 'bootstrap.log' for more details
At some point the installation process will need administrative rights. The instructions that come with boost should explain when you must run something as root.
Try:
chmod a+x tools/build/v2/engine/src/build.sh
Or even:
find . -name "*.sh" -exec chmod a+x "{}" \;
and then run the build again.
neutrino (7th August 2011)
finally it installed.
thanks everyone for the help.
Bookmarks