PDA

View Full Version : Qt Creator Using $(QTDIR) system var in .pro file to build projects on linux, win and mac?



sergey_85
14th June 2010, 10:25
Hi!

I need to build my project under Win32, Linux and MacOS. All my project created in QtCreator (free version)
Now I work and built it on Win32 (XP) and try to build it on Linux.

In some part of .pro file I add this line:

$(QTDIR)/include/QtDesigner/private \


Is it working in QtCreator under Linux build?

full .pro file:

# -----------------------------------------------------------
# This file is generated by the Qt Visual Studio Integration.
# -----------------------------------------------------------

# This is a reminder that you are using a generated .pro file.
# Remove it when you are finished editing this file.
message("You are running qmake on a generated .pro file. This may not work!")


TEMPLATE = lib
TARGET = BmsUiFormDesigner
DESTDIR = ../debug
QT += qt3support xml xmlpatterns
CONFIG += debug
DEFINES += QT_XML_LIB BMSUIFORMDESIGNERLIB_LIB
INCLUDEPATH += ./GeneratedFiles \
./GeneratedFiles/Debug \
$(QTDIR)/include/QtDesigner/private \
.
LIBS += -L"./../debug" "$(QTDIR)/lib/QtDesignerComponentsd4.lib" "$(QTDIR)/lib/QtDesignerd4.lib"
DEPENDPATH += .
MOC_DIR += ./GeneratedFiles/debug
OBJECTS_DIR += debug
UI_DIR += ./GeneratedFiles
RCC_DIR += ./GeneratedFiles

#Include file(s)
include(BmsUiFormDesigner.pri)





Thanks for help!

TorAn
15th June 2010, 13:25
I have exact same question. sergey_85, did you figure out the answer?