[Qt-interest] How to make qmake to use an alternate Qt install location?
Garth Dahlstrom
ironstorm at gmail.com
Thu Mar 11 20:25:14 CET 2010
I'm trying to compile QtWebKit Source 2.0 on OSX using the source from MacPorts, whenever I run make it only seems to pick up includes from /usr/include and frameworks from /Library/Frameworks/
I've tried to set these values in my .pro project file:
QT_INSTALL_HEADERS=/opt/local/include
QT_INSTALL_LIBS=/opt/local/Library/Frameworks/
Also, exported QTDIR to /opt/local/libexec/qt4-mac in my environment.
None of these seem to help, qmake continues to generate the same include and framework references in the Makefile.
I've temporarily worked around this by symlinking all of the Qt headers into /usr/include:
> export QTDIR=/opt/local/libexec/qt4-mac # mac ports Qt
> cd /usr/include
> for q in $QTDIR/include/*; do if [ ! -e "`basename $q`" ]; then sudo ln -s "$q"; fi ; done # create a symlink
but it is rather a messy way to get past the problem and doesn't use macports Frameworks.
So I'm wondering what the right way to accomplish this would be.
-G
Garth Dahlstrom @ 2Keys Corp
=================================================================
Currently looking for freelance QtWebKit / WebKit / C++ coders to enhance / debug
WebKit Bug #33044 -- "Add Java Applet support to Qt's Webkit Port"
(https://bugs.webkit.org/show_bug.cgi?id=33044)
Bug me.
=================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100311/59d0c4c3/attachment.html
More information about the Qt-interest-old
mailing list