[webkit-dev] Building QtWebkit on Mac OSX 10.5.6 with Qt 4.5

Garth Dahlstrom ironstorm at gmail.com
Mon Aug 24 09:15:18 PDT 2009


I've gotten a bit further, by working around the problem.

It looks like it's not picking up the QTDIR/include, but rather referencing
the modules directly in the /usr/include directory...  like this:
 -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui

I don't really know where this bit is being generated from in the build
scripts, so for the time being I'm working around by using the following
hack to create the expected Qt folders in /usr/include (done in bash):

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

I'm building with fingers crossed right now; hoping that was the last
hurdle.
              __
--- == __/ t.O ==--
http://stacktrace.org/


On Thu, Aug 20, 2009 at 6:31 PM, Garth Dahlstrom <ironstorm at gmail.com>wrote:

> Hi All,
>
> Picking up on this thread from April (
> http://lists.macosforge.org/pipermail/webkit-dev/2009-April/thread.html#7296),
> I'm in a simliar spot as Husam; on OSX 1.5.8 w/ MacPorts Qt 4.5.2.
>
> I made it a little further by overriding the mkspec to be macx-g++, so I'm
> no longer stuck at the XCode/XProj generation stuff.  However I now have a
> problem that my $QTDIR/include directory is not being picked up.
>
> If someone could suggest how I can inject the ${QTDIR}/include into the
> build environment, I would be grateful for the assist.
>
> Cheers,
>
> -G
>
> Here is the truncated compile output:
>
> [649] ged at gMacBook:~/mnt$ WEBKITOUTPUTDIR=`pwd`/qtbuild
> WebKit/WebKitTools/Scripts/build-webkit --qt --qmake=qmake-4.5
> --makeargs="-j3 -s" -spec macx-g++ --no-video --debug
> Calling 'qmake-4.5 -r -spec macx-g++ DEFINES+=ENABLE_VIDEO=0
> OUTPUT_DIR=/Users/ged/mnt/qtbuild/Debug /Users/ged/mnt/WebKit/WebKit.pro
> CONFIG-=release CONFIG+=debug' in /Users/ged/mnt/qtbuild/Debug
>
> Reading /Users/ged/mnt/WebKit/WebCore/WebCore.pro
> [/Users/ged/mnt/qtbuild/Debug//WebCore]
> Project MESSAGE: Building QtWebKit as a framework, as that's how Qt was
> built. You can
> Project MESSAGE: override this by passing CONFIG+=webkit_no_framework to
> build-webkit.
>
> /Developer/Tools/Qt/rcc: File does not exist
> '../../../WebKit/WebCore/inspector/front-end/WebKit.qrc'
> /Developer/Tools/Qt/rcc: File does not exist
> '../../../WebKit/WebCore/WebCore.qrc'
> Reading /Users/ged/mnt/WebKit/JavaScriptCore/jsc.pro[/Users/ged/mnt/qtbuild/Debug//JavaScriptCore]
> Reading /Users/ged/mnt/WebKit/WebKit/qt/QtLauncher/QtLauncher.pro
> [/Users/ged/mnt/qtbuild/Debug//WebKit/qt/QtLauncher]
> Reading /Users/ged/mnt/WebKit/WebKit/qt/tests/tests.pro[/Users/ged/mnt/qtbuild/Debug//WebKit/qt/tests]
>  Reading /Users/ged/mnt/WebKit/WebKit/qt/tests/qwebframe/qwebframe.pro[/Users/ged/mnt/qtbuild/Debug/WebKit/qt/tests//qwebframe]
>  Reading /Users/ged/mnt/WebKit/WebKit/qt/tests/qwebpage/qwebpage.pro[/Users/ged/mnt/qtbuild/Debug/WebKit/qt/tests//qwebpage]
>  Reading /Users/ged/mnt/WebKit/WebKit/qt/tests/qwebelement/qwebelement.pro[/Users/ged/mnt/qtbuild/Debug/WebKit/qt/tests//qwebelement]
>  Reading /Users/ged/mnt/WebKit/WebKit/qt/tests/qwebhistoryinterface/
> qwebhistoryinterface.pro[/Users/ged/mnt/qtbuild/Debug/WebKit/qt/tests//qwebhistoryinterface]
>  Reading /Users/ged/mnt/WebKit/WebKit/qt/tests/qwebplugindatabase/
> qwebplugindatabase.pro[/Users/ged/mnt/qtbuild/Debug/WebKit/qt/tests//qwebplugindatabase]
>  Reading /Users/ged/mnt/WebKit/WebKit/qt/tests/qwebview/qwebview.pro[/Users/ged/mnt/qtbuild/Debug/WebKit/qt/tests//qwebview]
>  Reading /Users/ged/mnt/WebKit/WebKit/qt/tests/qwebhistory/qwebhistory.pro[/Users/ged/mnt/qtbuild/Debug/WebKit/qt/tests//qwebhistory]
>  Reading /Users/ged/mnt/WebKit/WebKit/qt/tests/benchmarks/painting/
> tst_painting.pro[/Users/ged/mnt/qtbuild/Debug/WebKit/qt/tests//benchmarks/painting]
>  Reading /Users/ged/mnt/WebKit/WebKit/qt/tests/benchmarks/loading/
> tst_loading.pro[/Users/ged/mnt/qtbuild/Debug/WebKit/qt/tests//benchmarks/loading]
> Reading
> /Users/ged/mnt/WebKit/WebKitTools/DumpRenderTree/qt/DumpRenderTree.pro
> [/Users/ged/mnt/qtbuild/Debug//WebKitTools/DumpRenderTree/qt]
> Reading /Users/ged/mnt/WebKit/WebKitTools/DumpRenderTree/qt/ImageDiff.pro
> [/Users/ged/mnt/qtbuild/Debug//WebKitTools/DumpRenderTree/qt]
> Reading
> /Users/ged/mnt/WebKit/WebKitTools/DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro
> [/Users/ged/mnt/qtbuild/Debug//WebKitTools/DumpRenderTree/qt/TestNetscapePlugin]
> In file included from
> ../../../WebKit/JavaScriptCore/wtf/unicode/Unicode.h:29,
>                  from ../../../WebKit/JavaScriptCore/pcre/pcre.h:45,
>                  from
> ../../../WebKit/JavaScriptCore/pcre/pcre_internal.h:82,
>                  from ../../../WebKit/JavaScriptCore/pcre/pcre_exec.cpp:46:
> ../../../WebKit/JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:26:17: error:
> QChar: No such file or directory
> ../../../WebKit/JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:27:19: error:
> QString: No such file or directory
>
> .... lots more of the same ....
>
>
>               __
> --- == __/ t.O ==--
> http://stacktrace.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090824/dcfb9c82/attachment.html>


More information about the webkit-dev mailing list