Re: Compilation failures using qmake + mingw / msvc
Matthias Pospiech <[email protected]> Wed, 18 Nov 2009 21:43:54 +0100
| Newsgroups | gmane.comp.gnu.source-highlight.general |
|---|---|
| Message-ID | <[email protected]> |
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
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.
Matthias