[Interest] `pkg-config --cflags Qt5Gui Qt5Widgets Qt5Core` with Qt 5.4.2 on Yosemite
Sherif Ghali
sherif.ghali.1 at gmail.com
Wed Dec 9 18:10:09 CET 2015
After installing
qt-opensource-mac-x64-clang-5.4.2.dmg
(size:616,135,300 bytes) and setting
export
PKG_CONFIG_PATH="/usr/local/Qt5.4.2/5.4/clang_64/lib/pkgconfig:${PKG_CONFIG_PATH}"
in .bash_profile, I am expecting that typing
pkg-config --cflags Qt5Gui Qt5Widgets Qt5Core
pkg-config --libs Qt5Gui Qt5Widgets Qt5Core
will produce appropriate settings (when compiling without qmake).
The output of the latter (--libs) makes sense:
-F/usr/local/Qt5.4.2/5.4/clang_64/lib -framework QtWidgets
-F/usr/local/Qt5.4.2/5.4/clang_64/lib -framework QtGui
-F/usr/local/Qt5.4.2/5.4/clang_64/lib -framework QtCore
but the output of the former (--cflags):
-I/usr/local/Qt5.4.2/5.4/clang_64/include/QtWidgets
-I/usr/local/Qt5.4.2/5.4/clang_64/include
-I/usr/local/Qt5.4.2/5.4/clang_64/include/QtGui
-I/usr/local/Qt5.4.2/5.4/clang_64/include
-I/usr/local/Qt5.4.2/5.4/clang_64/include/QtCore
-I/usr/local/Qt5.4.2/5.4/clang_64/include
seems wrong because /usr/local/Qt5.4.2/5.4/clang_64/include has
the four folders:
QtOpenGLExtensions QtPlatformHeaders QtPlatformSupport QtUiTools
but doesn't have QtWidgets, QtGui, or QtCore.
Where should I be looking to fix this problem? I'm on OS X 10.10.5
(Yosemite).
Sherif Ghali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151209/801dd0b5/attachment.html>
More information about the Interest
mailing list