Results 1 to 8 of 8

Thread: Possible explanation for compiling Qt with WebKit problems with Visual Studio 2008

  1. #1
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Possible explanation for compiling Qt with WebKit problems with Visual Studio 2008

    As many people already discovered, it seems to be impossible to compile the Qt library with WebKit when using the MS Visual Studio 2008 compiler.
    Only running configure with -no-webkit let the compiler complete its work without error. This results in a Qt library without WebKit of course, but that is no problem if you don't need WebKit.

    As I just read on the following page (http://webkit.org/building/tools.html) WebKit supports Visual Studio up to version 2005, but not newer versions.
    So if you rely on WebKit and want to use VS 2008: Tough luck!

    If anyone managed to compile Qt with WebKit and VS 2008 the solution would be most welcome here.

  2. #2
    Join Date
    Jun 2008
    Location
    Germany/Belarus/Sweden
    Posts
    53
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Possible explanation for compiling Qt with WebKit problems with Visual Studio 200

    Hi! I have compiled qt 4.5.1 with WebKit on my Win 7 x64 machine with VS 2008.
    Compilation breaks on WebKit, you need to compile WebKit separately(after error cd in webkit dir, nmake clean, nmake) after that start nmake in QTDIR again and it will do the job. I'll try this tomorrow on XP with VS 2008...

  3. #3
    Join Date
    Jun 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Possible explanation for compiling Qt with WebKit problems with Visual Studio 200

    I have successfully compiled Webkit on VS2008 with no issues using Qt 4.5.1. I just did the the standard default configure which includes all modules. Using Vista 32-bit SP1 and VS2008 Professional with SP1.

  4. #4
    Join Date
    Jun 2009
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Possible explanation for compiling Qt with WebKit problems with Visual Studio 200

    Are we talking about the static library (.lib) or the dynamic (.dll)? It was no problem to get the DLL but impossible to create the .LIB in 2008.
    I do not understand the difference between 2005 and 2008...This cannot be a problem of WebKit but of Microsoft. BTW does anyone know why the size of the WebKit.LIB is 1.3GB when creating with 2005? This is amazing, the DLL is only about 10MB...Could the size be the reason for 2008 to crash?
    Last edited by ufoxx; 23rd June 2009 at 14:09.

  5. #5
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Possible explanation for compiling Qt with WebKit problems with Visual Studio 200

    Since the post of 20thcb I recompiled Qt 4.5.1 on different machines. All with Win XP SP3 and all with VS 2008 (some with SP1).
    To confirm what ufoxx write: No chance to compile Qt as static lib with WebKit. But as dynamic lib everything works fine.

    So this leads to the question:
    Why can't Qt be compiled as static lib with WebKit? Is WebKit a plugin (plugins are known not to work in static Qt)?

  6. #6
    Join Date
    Jun 2009
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Possible explanation for compiling Qt with WebKit problems with Visual Studio 200

    Hi all,

    I now have the reason why WebKit cannot be compiled as static lib in VS2008. I've been to the Microsoft Forums and asked the same question there. That's their reply:
    http://social.msdn.microsoft.com/For...f-494b919c8bf3
    So it's up to MS to fix this memory problem or WebKit should configure their library to be a bit smaller. When I look at the QtGui4.lib: it's about 7MB as DLL and abou 88MB as LIB. Why is Webkit about 1.3GB as LIB and only 9.5 MB as DLL???? I think this relation is somehow wrong.
    Has anyone created a static lib of WebKit4 smaller than 1GB?

  7. #7
    Join Date
    Jun 2008
    Location
    Germany/Belarus/Sweden
    Posts
    53
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Possible explanation for compiling Qt with WebKit problems with Visual Studio 200

    on my x64 machine it breaks with 2,3GB lib size

  8. #8
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Possible explanation for compiling Qt with WebKit problems with Visual Studio 200

    Yesterday I successfully compiled a static Qt 4.5.2 including WebKit. The QtWebKit.lib is about 267 MiB (QtWebKitd.lib is about 495MiB).
    Something is different compared to Qt 4.5.1. I will download this again and verify.

Similar Threads

  1. Qt 4.4.1 deployement with Visual Studio Express 2008
    By abrou in forum Installation and Deployment
    Replies: 8
    Last Post: 28th February 2009, 03:13
  2. Qt 4.4.1 Compile Error with MS Visual C++ 2008 Express SP1
    By BrainB0ne in forum Installation and Deployment
    Replies: 3
    Last Post: 19th August 2008, 16:49
  3. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 09:17
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 14:15
  5. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 22:41

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.