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: Matthias Pospiech
Subject: Re: [Help-source-highlight] Compilation failures using qmake + mingw / msvc
Date: Thu, 19 Nov 2009 22:11:33 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

If I compile your library with this code inserted in the main .pro file it does not include the boost path during compilation:

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

release:LIBS += -Llib/boost/regex/mingw/release -llibboost_regex-mgw34-mt-1_40

INCLUDEPATH += H:/matthias/Documents/Dev/CPP/SVN/library/source/boost_1_40_0/


which means it fails as before.



However I can compile and link the boost example successfully using this qmake code:
(which is the same as above, just more code for the destination of files)

CONFIG += release

CONFIG -= debug

CONFIG -= qt

CONFIG += thread warn_on

TEMPLATE = app

TARGET = test

# -------------------------------------------------

# Define Variables

# -------------------------------------------------

BUILD_DIR = build

BIN_DIR = bin

# -------------------------------------------------

# Target Directory

# -------------------------------------------------

debug:DESTDIR = $${BIN_DIR}/mingw/debug/

release:DESTDIR = $${BIN_DIR}/mingw/release/

# -------------------------------------------------

# Objects Directory

# -------------------------------------------------

debug{

OBJECTS_DIR = $${BUILD_DIR}/$${BINARY_NAME}/debug/

}

release{

OBJECTS_DIR = $${BUILD_DIR}/$${BINARY_NAME}/release/

}

# -------------------------------------------------

# Include directories

# -------------------------------------------------

INCLUDEPATH += H:/matthias/Documents/Dev/CPP/SVN/library/source/boost_1_40_0/

# -------------------------------------------------

# Libaries

# -------------------------------------------------

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

release:LIBS += -Llib/boost/regex/mingw/release -llibboost_regex-mgw34-mt-1_40

# -------------------------------------------------

# Sources

# -------------------------------------------------

SOURCES += test.cpp



so somewhere in the qmake code of your library the INCLUDEPATH is overwritten is assume.

Best Regards,
Matthias









reply via email to

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