[Scons-users] Qt5 build on OSX
Philipp Kraus
philipp.kraus at tu-clausthal.de
Tue Nov 4 05:37:11 EST 2014
Hello,
I try to build a Qt 5 application on OSX 10.9 with https://bitbucket.org/dirkbaechle/scons_qt5
In my case the QApplication include fails.
I create my environment with:
env = Environment(tools=["default", "qt5"], variables=vars)
if os.environ.has_key("QTDIR") :
env["QT5DIR"] = os.environ["QTDIR"]
env["ENV"]["PKG_CONFIG_PATH"] = os.path.join(env["QT5DIR"], "lib", "pkgconfig")
env.EnableQt5Modules(["QtCore", "QtGui“])
I have got installed Qt under /Application/Qt the bin & lib directory is found under /Application/Qt/5.3/clang_64 so I set the QT5DIR to this path.
The build command shows:
g++ -o application/main.o -c -O2 -std=c++11 -Wall -DQT_CORE_LIB -DQT_GUI_LIB -I/Applications/Qt/5.3/clang_64/include/QtGui -I/Applications/Qt/5.3/clang_64/include -I/Applications/Qt/5.3/clang_64/include/QtCore -F/Applications/Qt/5.3/clang_64/lib application/main.cpp
But in the Qt installation the subdirectories:
include/QtCore
include/QtGui
does not exists.
The header files are stored in the framework directories under e.g.
lib/QtCore.framework/Headers
Any idea to fix this problem?
Thanks a lot
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20141104/1d2d908d/attachment.html>
More information about the Scons-users
mailing list