Results 1 to 3 of 3

Thread: building qtwebkit with visual studio 2008

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default building qtwebkit with visual studio 2008

    Hello everyone,

    I'm trying to build qtwebkit that came packaged with qt (opensource) 4.7.0 on visual studio 2008. after going through several issues which have been resolved, I finally am able to get to the linking step but it is reporting several unresolved externals with the qchar class. This seems like such odd errors that I was hoping maybe someone could provide some insight. I read that it might be visual studio treating wchar_t as a built-in type but when I toggle this flag (-Zc) it doesn't seem to affect anything.

    Here are the messages:

    1>AuthenticationChallengeBase.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl QChar::toCaseFolded(unsigned int)" (__imp_?toCaseFolded@QChar@@SAII@Z)

    1>jscore.lib(JSGlobalObjectFunctions.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static enum QChar::Category __cdecl QChar::category(unsigned int)" (__imp_?category@QChar@@SA?AW4Category@1@I@Z)


    1>StringImpl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static enum QChar:irection __cdecl QChar::direction(unsigned int)" (__imp_?direction@QChar@@SA?AW4Direction@1@I@Z) referenced in function "private: void __thiscall WTF::CrossThreadRefCounted<class WTF::OwnFastMallocPtr<wchar_t const > >::threadSafeDeref(void)" (?threadSafeDeref@?$CrossThreadRefCounted@V?$OwnFa stMallocPtr@$$CB_W@WTF@@@WTF@@AAEXXZ)


    Thank You

  2. #2
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: building qtwebkit with visual studio 2008

    I don't work with Windows, but I'll note that there haven't been many complaints about building Webkit here. It pretty much seems to compile right out of the box. So I suspect that your issues are caused by whatever your earlier issues were, and whatever solutions you applied to get past them.

  3. #3
    Join Date
    Oct 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: building qtwebkit with visual studio 2008

    You can sometimes get these linker error's if those functions mentioned "QChar::toCaseFolded(unsigned int)" and "QChar::category(unsigned int)" call functions to libraries you are not linking against. I've seen it a lot when using pthreads in VS2008. VS2008 would tell you that it could not find the definition for "QChar::toCaseFolded(unsigned int)", but it's because of a undefined function inside those functions. (If that makes sense) Maybe check the functions listed in the linker errors and see if the make obvious function calls to libraries you are not currently linking against. I've noticed such things as "CrossThreadRefCounted" which suggest there is threading going on under the hood, maybe try adding "pthreads" to your linked in libs.

Similar Threads

  1. Qt 4.6.1 and Visual Studio 2008[SOLVED]
    By ^NyAw^ in forum Installation and Deployment
    Replies: 0
    Last Post: 15th February 2010, 16:19
  2. Visual Studio 2008 and Qt
    By konx in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd January 2010, 21:24
  3. How to use Qt with Visual Studio 2008?
    By N3wb in forum Installation and Deployment
    Replies: 2
    Last Post: 13th August 2009, 16:23
  4. Building QExtserialport with Visual Studio 2008
    By bnilsson in forum Qt Programming
    Replies: 7
    Last Post: 7th June 2009, 11:15
  5. Qt 4.3.2 + Visual studio 2008
    By moowy in forum Installation and Deployment
    Replies: 6
    Last Post: 6th December 2007, 06:41

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
  •  
Qt is a trademark of The Qt Company.