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?
- 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
- 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
- QtWebKit.dll is actually composed of the following sub-items:
- WTF
- JavaScriptCore
- WebCore
- WebKit (2)
- 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?
- 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 '
- 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
- Check the corresponding makefile or VS linker input settings
- 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
- 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])
- 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
- In some cases, deleting *.lib, *.dll, *.exp, *.pdb, and re-build can be successful
- 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