Boost + Qt Creator

Started by
7 comments, last by phresnel 13 years, 5 months ago
I'm using Qt Creator, and must include a boost in my project, how do I set the boost in qt creator?!


I am using the following functions:
#include <boost/filesystem/operations.hpp>#include <boost/filesystem/path.hpp>#include <boost/progress.hpp>
http://mateusvitali.wordpress.com/
Advertisement
And what is the problem? Have you already compiled boost? Do you get any compiler or link errors?

If boost headers cannot be found add
INCLUDEPATH += path/to/boost
to the project file.
Quote:Original post by Kambiz
And what is the problem? Have you already compiled boost? Do you get any compiler or link errors?

If boost headers cannot be found add
INCLUDEPATH += path/to/boost
to the project file.


I have compiled a boost on my computer using Visual Studio 2010, but how do I link the libs and includes the Qt Creator? I do not need to recompile boost using MinGW of Qt?

Sorry my poor english :(
http://mateusvitali.wordpress.com/
Quote:Original post by VitaliBR
I have compiled a boost on my computer using Visual Studio 2010, but how do I link the libs and includes the Qt Creator? I do not need to recompile boost using MinGW of Qt?


If you have Visual Studio, then you probably want to use it with the Qt plugin, rather than QtCreator. In that case, you'd need to compile Qt with Visual Studio. This blog post describes the procedure.
In addition to INCLUDEPATH you need to add
LIBS += -L"path/to/boost/libs"
to the project file, and add libraries using the -l option to the same line.
I have never tries using libs compiled by VC with MinGW, it might well be that you need to recompile boost with MinGW.
Quote:Original post by Emergent
Quote:Original post by VitaliBR
I have compiled a boost on my computer using Visual Studio 2010, but how do I link the libs and includes the Qt Creator? I do not need to recompile boost using MinGW of Qt?


If you have Visual Studio, then you probably want to use it with the Qt plugin, rather than QtCreator. In that case, you'd need to compile Qt with Visual Studio. This blog post describes the procedure.


The Qt 4.6 don't support VS2010 :(
http://mateusvitali.wordpress.com/
I've never used boost before, but since I use QT Creator frequently, here's a visual explanation of what the others are saying since there seems to be some confusion:



(Where "path/to/boost" and "path/to/boost/lib" you change to fit the actual paths on your computer)
Thanks! :D


I will try that!
http://mateusvitali.wordpress.com/
Quote:Original post by Emergent
Quote:Original post by VitaliBR
I have compiled a boost on my computer using Visual Studio 2010, but how do I link the libs and includes the Qt Creator? I do not need to recompile boost using MinGW of Qt?


If you have Visual Studio, then you probably want to use it with the Qt plugin, rather than QtCreator.


I guess QtCreator is well enough suited for Qt development. The plugins and the external editors are basically stripped down versions of QtCreator. Or vice versa, QtCreator is the sum of plugins and editor.

This topic is closed to new replies.

Advertisement