Compiling qt-5.0+ WebKit (i.e. qtwebkit-2.3.x) Debug version on the Windows qt-4.8.x platform considerations

Source: Internet
Author: User
Tags afqt

compiling qt-5.0+ WebKit (i.e. qtwebkit-2.3.x) Debug version on the Windows qt-4.8.x platform ConsiderationsJump to: Navigation, search
Directory
  • 1 C + + compilation issues
    • 1.1 generated from IDL. H/.cpp failed?
    • 1.2 vs Compiler version
    • 1.3 Name Export Issue
    • 1.4 can't find the int64_t type?
    • 1.5 Pthread-win32 libraries are required on Windows to provide multithreading support
  • 2Link Issues
    • 2.1 mt.exe:general Error c101008d:failed to write the updated manifest to the resource of file ". \lib\qtwebkitd.dll "
    • 2.2 link:fatal Error Lnk1181:cannot Open input file ' d:\qt-everywhere-opensource-src-4.8.4\lib\QtSqld4.lib '
    • 2.3 confirm that the Qttestbrowser Project link is not the QT internal WebKit Lib
    • 2.4 Note the link dependency between Windows and Linux on Lib is different
    • 2.5 no Xlib plugins on Windows, delete corresponding reference
    • 2.6 debug\webcored.lib:fatal Error Lnk1106:invalid file or disk Full:cannot seek to 0X40EB50B4
C + + compilation issuespre-condition !installation of GNUWin32 software (mainly flex and bison, gperf) and Pthread-win32 is required. generated from IDL. H/.cpp failed?
    1. Make sure you don't use programs such as Perl and Bison in Cygin, using external perl (I use 5.16) and GnuWin32 bison
vs Compiler version
    1. Please use VS2010 above, do not use VS2008 (VS2005 is more outdated), otherwise you will end up with an error when linking Lib:
Name Export Issue
    1. QtWebKit.dll is actually composed of the following sub-items:
      1. WTF
      2. JavaScriptCore
      3. WebCore
      4. WebKit (2)
      5. Qtwebkit (API)
      please add the following reservation macros for these items: BUILDING_WTF, Building_javascriptcore, Building_webcore, Building_webkit
      also need to modify source\javascriptcore\config.h to make sure # include "JSExportMacros.h"
can't find the int64_t type?
    1. In the corresponding CPP (or directly modify the Config.h) Add://need to put-i ". \.. \.. \source\javascriptcore\os-win32 "Join the project contains path
      #if os (WINDOWS) && COMPILER (MSVC)
      #include "Stdint.h"
      #endif
Pthread-win32 libraries are required on Windows to provide multithreading support

Directly using pre-compiled pthreads-win32-2.8.0

Link Issuesmt.exe:general Error c101008d:failed to write the updated manifest to the resource of file ". \lib\qtwebkitd.dll "

Antivirus software issues, removing DLLs, re-build

link:fatal Error Lnk1181:cannot Open input file ' d:\qt-everywhere-opensource-src-4.8.4\lib\QtSqld4.lib '
    1. It is easier to solve this problem, indicating that WebKit code needs to link Qtsqld library, open qt Projects.sln, select the corresponding module, build can
confirm that the Qttestbrowser Project link is not the QT internal WebKit Lib
    1. Check the corresponding makefile or VS linker input settings
    2. Note that the WebKit official compression pack comes with Qttestbrowser, and Qt itself comes with Demos/browser and Fancy browser
Note the link dependency between Windows and Linux on Lib is different

When compiling qtwebkit on Windows, remove the link dependency on Fontconfig.lib, Qxlibd.lib

no Xlib plugins on Windows, delete corresponding reference
    1. Error lnk2019:unresolved external symbol "Class Qobject * __cdecl qt_plugin_instance_xlib (void)" (Email Protected]@[ema Il protected] @XZ) referenced in function ' public: __thiscall staticxlibplugininstance::staticxlibplugininstance (void) ([email protected]@[email protected])
    2. Modify Tools\qttestbrowser\main.cpp, delete q_import_plugin (Xlib) line
debug\webcored.lib:fatal Error Lnk1106:invalid file or disk Full:cannot seek to 0X40EB50B4
    1. In some cases, deleting *.lib, *.dll, *.exp, *.pdb, and re-build can be successful
    2. Not really, it means you have to use vs2010+,vs2008-is out of date.

Compiling qt-5.0+ WebKit (i.e. qtwebkit-2.3.x) Debug version on the Windows qt-4.8.x platform considerations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.