Jump to content
  • Advertisement
Sign in to follow this  
VitaliBR

Boost + Qt Creator

This topic is 2802 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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>

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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 :(

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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 :(

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!