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: Thu, 19 Nov 2009 22:41:11 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

so the test.cpp example which is in the same directory of the pro file seems to work right?

Forgive me if I say something obvious, but do you run qmake with -recursive? And, most of all, these

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/

should be visible in the subdirectories' pro files, and this does not happen automatic;

thus, either you add these specifications in the defines.pri (which is automatically included in the subdirectories' pro files), or you specify this values on the command line when running qmake (and you also specify -recursive).

is this your case?

cheers
        Lorenzo

Matthias Pospiech wrote:
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



--
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]