Qt Labs Forum » WebKit

Follows the instructions but fails on OS X

(4 posts)
  • Started 1 year ago by qtusernamegoeshere
  • Latest reply from hhartz

Tags:


  1. qtusernamegoeshere
    qtusernamegoeshere
    Member

    Hello,

    I would like to use webkit in my Qt apps so I read your blog post and did the following:

    1. Create a new Folder called "WK" on my desktop and go to that directory in the terminal.

    2. svn checkout svn://anonsvn.opensource.apple.com/svn/webkit/trunk WebKit

    3. WebKit/WebKitTools/Scripts/build-webkit

    4. It builds. So far so good.

    5. I go to "/Users/XXX/Desktop/WK/WebKit/WebKitQt/QtLauncher".

    6. I do qmake -spec macx-xcode to create my xcode file.

    7. I open the xcode file and build but then I almost get all the way thru but get this error:

    cd /Users/xxx/Desktop/WK/WebKit/WebKitQt/QtLauncher
    /usr/bin/g++-4.0 -o /Users/xxx/Desktop/WK/WebKit/WebKitQt/QtLauncher/build/Debug/QtLauncher.app/Contents/MacOS/QtLauncher -L/Users/xxx/Desktop/WK/WebKit/WebKitQt/QtLauncher/build/Debug -F/Users/xxx/Desktop/WK/WebKit/WebKitQt/QtLauncher/build/Debug -F/Library/Frameworks -filelist /Users/xxx/Desktop/WK/WebKit/WebKitQt/QtLauncher/build/QtLauncher.build/Debug/QtLauncher.build/Objects-normal/i386/QtLauncher.LinkFileList -framework QtGui -framework Carbon -framework QuickTime -framework AppKit -framework QtCore -framework ApplicationServices -arch i386 -Wl,-Y,1455 -headerpad_max_install_names -F/Library/Frameworks -L/Library/Frameworks -L/Users/xxx/Desktop/WK/WebKit/WebKitBuild/Release/lib -lWebKitQt -L/opt/local/lib -lxml2 -lxslt -lz -lm -liconv
    /usr/bin/ld: warning -L: directory name (/Users/xxx/Desktop/WK/WebKit/WebKitBuild/Release/lib) does not exist
    /usr/bin/ld: warning -L: directory name (/opt/local/lib) does not exist
    /usr/bin/ld: can't locate file for: -lWebKitQt
    collect2: ld returned 1 exit status

    I have not touched anything else in the WebKit SVN download.

    Do you have any idea why I can not compile?

    I am on an intel Mac Pro running OS X 10.4.8 and Qt 4.2.2.

    Also, how does WebKitQt work with "Static" Qt apps I make?

    Does the WebKit engine get included into the static binary?

    thanks!

    Posted: 1 year #
  2. alab
    alab
    Member

    Perhaps the most important thing to keep in mind is that you’re running a nightly build of WebKit, not the build Safari is using. The nightly versions are much more advanced than Safari’s WebKit, so some of the quirks that appear in Safari may be handled in your Qt4 browser.

    Due to the version discrepancy, you can’t depend on a nightly build of WebKit sufficing for a legitimate test in Safari. It is useful, however, to take a quick look at overall structural elements of your designs before making the effort of moving to an OS X machine.

    ----------------------------
    software reviews

    Posted: 1 year #
  3. Have you tried this on Windows? Do you get the same error?

    ----------------------------
    Discounted Software Here!!

  4. You should use the prepared build script for this;

    ./WebKitTools/Scripts/build-webkit
    Posted: 1 year #

RSS feed for this topic

Reply

You must log in to post.



© 2008 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners.