Monday, June 29, 2015

QtCreator + QMake+BOOST on Windows7&Above

Working  with Boost libraries on Windows 7 ,here you can check for the below prerequisites.Qt,Boost.
C:\Qt\Qt5.4.1 installed.
Boost Zip file is extracted to BOOST_ROOT directory, like this.
C:\BOOST_ROOT

Now create a sample Qt Console application in QtCreator,open the .pro file,add the INCLUDEPATH  and LIBS variable,Now  in the main.cpp include required  header  for eg:

#include <boost/array.hpp>

QT       += core
QT       -= gui
CONFIG   += console
CONFIG   -= app_bundle
TEMPLATE = app
SOURCES += main.cpp

INCLUDEPATH += C:/BOOST_ROOT
LIBS += -LC:/BOOST_ROOT


Compile and run the example.

No comments:

Post a Comment