help-source-highlight
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-source-highlight] Compilation failures using qmake + mingw / m


From: Lorenzo Bettini
Subject: Re: [Help-source-highlight] Compilation failures using qmake + mingw / msvc
Date: Wed, 18 Nov 2009 22:00:41 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Matthias Pospiech wrote:
Lorenzo Bettini schrieb:
Matthias Pospiech wrote:
Lorenzo Bettini schrieb:

P.S. it looks like building boost with msvc is fully supported: http://www.boost.org/doc/libs/1_41_0/more/getting_started/windows.html

building boost is not a problem, I have a problem to tell qmake where the include files are, since it does not find them.

you should pass to qmake these options

INCPATH+="/usr/local/include" LIBS+="-L/usr/local/lib -lboost_regex"

I am not using linux, so it reads

debug: LIBS += -Llib/boost/regex/mingw/debug -lboost_regex-mgw34-mt-d-1_40 release:LIBS += -Llib/boost/regex/mingw/release -lboost_regex-mgw34-mt-1_40


yes, it's the same, I just meant that instead of polluting the .pro file you can pass these options to qmake at the command line :)

note that I copy the library file to a new location, because the compilation destination path of boost is very strange.

The include is added via

INCLUDEPATH +=  ../boost_1_40_0

or the full path. However during compilation the boost library headers are not found.

you have to put in the INCLUDEPATH (which I usually write as INCPATH, are you sure it's the same?) the path where the boost subdirectory is.

For instance, if regex.hpp is in

/my/path/boost_1_40_0/include/boost

then you need to specify as include path

/my/path/boost_1_40_0/include/

since boost header files are included as follows

#include <boost/regex.hpp>

As for the compilation and installation of boost you can still refer to that blog post since those flags are for bootstrap and bjam anyway.

please let me know

cheers
        Lorenzo


--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]