[Qt-interest] How to make qmake to use an alternate Qt install location?
Andras Toth
parrotfortytwo at gmail.com
Thu Mar 11 20:36:39 CET 2010
On Thursday 11 March 2010 20.25.14 Garth Dahlstrom wrote:
> 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.
> =================================================================
Have you tried generating makefiles with qmake in the library
/opt/local/libexec/qt4-mac
(i.e. invoking /opt/local/libexec/qt4-mac/.../qmake)?
More information about the Qt-interest-old
mailing list