Build Instructions for the QtWebKit build on Windows Dependencies * First of all you need a version of Qt for Windows. If you are an Open Source developer then you can download the Open Source Edition of Qt for Windows from the Nokia Website: http://qt.nokia.com/downloads * Install ActiveState Perl * Install Python 2.x (and add the installation location to your PATH) * The following external GNU tools are needed from the GnuWin32 Project: o Bison o GPerf o Flex o LibIconv (needed for bison) o Make (not necessary if you want to build using MSVC) Please install these tools in a path without spaces (i.e. not in "C:\Program Files") Make sure the GnuWin32 packages are in your PATH as well as Perl and Python. You also need to have %QTDIR% set and have %QTDIR%\bin in your PATH. If you have Cygwin's bin directory in your path, make sure that it comes after ActiveState Perl and GnuWin32. You might have to remove it completely from your PATH if you have problems with slashes and backslashes while building using MinGW. mingw32-make and GnuWin32's make will use sh.exe to run commands if they find it in the PATH. Building QtWebKit * Open for example a Qt Command Prompt from the Start Menu. You need an MSVC or MinGW command line environment that matches the version of Qt you downloaded. Note that building inside Cygwin or MSYS is currently not supported. Please use a Windows command prompt. * Change into the WebKit source tree * Run perl WebKitTools\Scripts\build-webkit --qt --release * Wait * Try to run WebKitBuild\Release\bin\QtLauncher.exe Notes about building QtWebKit with the Qt/Windows OpenSource Edition * If you want to compile using multiple cores: o On MinGW you can try set MAKE_COMMAND=mingw32-make -j%NUMBER_OF_PROCESSORS%. If this do not work you might have to Ctrl-C build-webkit's execution, go in the WebKitBuild\Release\ directory and run: mingw32-make -C JavaScriptCore -f Makefile.Release -j%NUMBER_OF_PROCESSORS% && mingw32-make -C WebCore -f Makefile.Release -j%NUMBER_OF_PROCESSORS% && mingw32-make o On MSVC use the CL environment variable along with the /MP switch: set CL= /MP * If you can't access HTTPS pages and you compiled Qt from sources, make sure that you configured it with OpenSSL support. You will need the non-light version of Win32 OpenSSL libraries. * If you haven't set up your PATH already to include the GnuWin32 packages then you may want to execute the following command: set PATH=C:\GnuWin32\bin;C:\Perl\bin;%PATH% Provided that the GnuWin32 packages are installed in C:\GnuWin32\bin and Perl in C:\Perl\bin. * If you get build errors in JavaScriptCore\bindings\NP_jsobject.cpp or similar then please make sure that the Microsoft Platform SDK is NOT in your %INCLUDE% path because it conflicts with your MingW headers. * If you get build errors after makefile generation ("Makefile:178: *** Multiple target patterns. Stop.") then you're probably still using the Cygwin version of make. Try removing Cygwin from your %PATH% for the time being (it's not currently supported, as mentioned above). * If you want to generate MSVC project files (e.g. so that you can debug/work from within MSVC) you can do it with the following steps o Run perl WebKitTools\Scripts\build-webkit --qt and cancel the script after the derived sources are all generated o Run perl WebKitTools\Scripts\build-webkit --qt --qmakeargs "-tp vc". This will generate MSVC project files and than it will fail o Open WebKit.sln from MSVC and build from MSVC. Build should succeed and you should be able to debug and work from within MSVC. A 'Works For Me' Step-by-Step Guide to building QtWebKit on Windows using mingw-w64/w32 1. The patch in bug report https://bugs.webkit.org/show_bug.cgi?id=38747 may not yet have been applied to Qt git, apply manually if necessary 2. Until Qt 4.7 is released, use the git version of Qt 4.7: http://qt.gitorious.org/qt/qt/trees/4.7 3. Get a mingw-w64 build with mingw32-make: * I'm assuming you're running Windows x64, as you will be testing the build * Two options: o drangon: http://mingw-w64-dgn.googlecode.com/files Download the mingw-w64-bin-x86_64- package Download the make-w64-bin-x86_64- package Extract them both to C:\mingw64 so that mingw32-make.exe and g++.exe are present in the C:\mingw64\bin folder o sezero: http://sourceforge.net/projects/mingw-w64/files/To olchains%20targetting%20Win64/Personal%20Builds Download any of the mingw-w64-x86_64-mingw_ packages. The exp/new/old suffixes are not important here Extract the package to C:\mingw64 so that g++.exe is present in C:\mingw64\bin Rename included gmake.exe to mingw32-make.exe 4. Set up your environment: * Qt sources are in C:\Qt so that configure.exe is present in that directory * perl is installed: http://strawberryperl.com/ (installer should add perl.exe to PATH) * open cmd.exe * run following commands: set PATH=C:\mingw64\bin;C:\Qt\bin;%PATH% set QTDIR=C:\Qt cd C:\Qt configure -qt-style-windowsxp -qt-style-windowsvista -phonon mingw32-make 5. Everything should have built. Have fun! Remarks: mingw-w64/w32 also provides a toolchain targetting 32-bit windows. Sezero provides builds: http://sourceforge.net/projects/mingw-w64/files/To olchains%20targetting%20Win32/Personal%20Builds/ The procedure to compile Qt is exactly the same, only that he mingw64 folder name should be mingw32. A 'Works For Me' Step-by-Step Guide to Building QtWebKit on Windows using MinGW 1. The the mentioned GnuWin32 tools 2. Download QT SDK (and QT Creator) and Download ActivePerl 3. Open for example a Qt Command Prompt from the Start Menu. Click Start->Program Files->Qt->QT Command Prompt. In fact, you really do need to use Qt Command Prompt for this rather than the normal windows command prompt. 4. Make sure the GnuWin32 packages are in your PATH as well as Perl (set PATH=C:\program files\gnuwin32\bin;C:\Perl\site\bin;%PATH%. 5. You also need to have %QTDIR% set and have %QTDIR%\bin in your PATH. 6. Trim your PATH down as much as possible. Remove Git and Mingw from your PATH if you have them installed, their presence can cause odd build failures. For example, the PATH that works for me is: set Path=c:\GnuWin32\bin;c:\Qt\2009.01\qt\bin;c:\Qt\20 09.01\bin;C:\Perl\bin;C:\Windows\system32;c:\Qt\200 9.01\mingw\bin;C:\Perl\site\bin;C:\Windows;C\\Progr am Files\SlikSvn\bin\ * Note that c:\Qt\2009.01\qt above will vary depending on the QT SDK that you downloaded. You should modify it appropriately. 7. Download WebKit from svn (make sure you've left the location of your svn client in your %PATH% above): $ svn checkout http://svn.webkit.org/repository/webkit/trunk %HOME%\WebKit $ cd %HOME%/WebKit 8. Change into the WebKit source tree: cd c:\location\of\webkit 9. For some reason, the build command was unable to create the WebKitBuild\Release folders by itself on my PC. I had to do mkdir WebKitBuild and mkdir WebKitBuild\Release before building. 10. You may need to do a mkdir c:\tmp. The WebKit build relies on the existence of c:\tmp when building in Windows. 11. Build the patched webkit (release mode): $perl WebKitTools\Scripts\build-webkit --qt --release 12. The webkit build takes forever, you can shorten it using the build-webkit's --no-svg or --minimal flags: $perl WebKitTools\Scripts\build-webkit --qt --release --no-svg $perl WebKitTools\Scripts\build-webkit --qt --release --minimal
发表评论
-
C#字符串处理,随机插入
2012-07-06 09:51 782string字符串是char的集合,而char是Unico ... -
常用正则表达式
2012-07-06 09:44 468src=\"(/uploadfiles/pic/ ... -
常用正则表达式
2012-07-06 09:37 530常用的js正则表达式验证2008年12月04日 星期四 下 ... -
3dmax导出插件-tiamo
2012-07-06 09:29 694新年第一贴,说说3d ... -
随滚动条移动的上下左右中层
2012-07-05 20:44 719随滚动条移动的层 - 5iuu.com .d ... -
第五课应用程序的组件
2012-07-03 13:42 563应用程序的组件 ... -
第五课应用程序的组件
2012-07-03 12:18 544应用程序的组件 ... -
[nginx] LEMP构建高性能WEB服务器(第二版) 还没有试验,今天准备
2012-07-02 10:14 716前言: 本文 ... -
Using Valgrind to Find Memory Leaks
2012-07-02 10:14 643document.write ("&q ... -
Oledbadapter使用感受
2012-07-02 10:14 609Style Definitions */ p.Ms ... -
Android Դ
2012-07-02 09:42 550... -
Flex PieChart使用XML数据源以及如何将String XML转换成XML对象
2012-07-01 09:35 763以下实例是通过一个字符串的XML,先将其转换成Flex的X ... -
Server Push Flex4+LCDS3.1
2012-07-01 09:35 532(自己学习,做的小例子,记录一下) 使用flex.d ... -
flex LineChart 的demo
2012-07-01 09:35 576... -
[转载]每天学一点Flex(1):DataGrid组件分页
2012-07-01 09:35 498原文地址: http://blog.csdn.net/he ... -
由于应用程序配置不正确,程序未能启动”--原因及解决方法
2012-06-30 17:52 862由于应用程序配置不正确,程序未能启动"--原因及 ... -
SQL server用户Sa登录失败的解决方法
2012-06-30 17:52 995最近在学习C# ... -
ubuntu下adb调试android找不到设备的解决方法
2012-06-30 17:52 673最近在写一个播放rtsp的测试程式,这个需要真机上测试,结 ... -
无法向会话状态服务器发出会话状态请求 错误的解决方法
2012-06-30 17:52 601今天把服务器上的 ...
相关推荐
Instructions for Using the Author Template 这是pdf版本的文档,谢谢大家的支持,谢谢
android上构建QT的基本介绍 These are build instructions for building Qt for Android on Linux or Mac OS X.
SIMATIC PCS 7 Programming Instructions for Blocks manualpdf,SIMATIC PCS 7 Programming Instructions for Blocks manual
On this page, click Download to start the Kinect for Windows SDK beta download. Click Run to start Setup, and follow the instructions in the Setup Wizard. Or, to save the download on your computer ...
西门子_Technical Instructions for Configuring an ISO-on-TCP Connectionpdf,
西门子_Technical Instructions for Configuring a TCP Connectionpdf,
On this page, click Download to start the Kinect for Windows SDK beta download. Click Run to start Setup, and follow the instructions in the Setup Wizard. Or, to save the download on your computer ...
描述了怎么重新buildQt5.3 for qnx(Linux Build Instructions, Windows Build Instructions)
HDF5安装说明,安装软件必备!
QPST Instructions for use
Follow the instructions that appear on the screen. Squiral The squiral program is an example of a simple Logo procedure that uses recursion to create colorful and complex graphics designs. To see ...
西门子_全局库“Sample Library for Instructions”pdf,
Covering Windows, Mac, and Linux platforms, 30 Arduino Projects for the Evil Genius gets you up to speed with the simplified C programming you need to know–no prior programming experience necessary....
Included is a short demo program, which may be useful on its own (type 'pushkeys' on the command line for usage instructions and a short example), as well as the original VB program which includes the...
Windows Phone is an OS which is also a platform in itself and provides an opportunity for application developers to build their apps and sell them on the Windows Phone Marketplace. Windows Phone is ...
PD CEN-TR 15071-2020 Safety of toys. National translations of warnings and instructions for use in the EN 71 series-final.pdf
Follow these steps to install g++ (the GNU C++ compiler) for Windows. There is no room for creativity here; you must follow the directions exactly. Pick the drive and a folder in which you want to ...
详细介绍了yrc1000机器人inform语言,附带图片说明及实际编辑指令演示,保你能够熟练应用inform语言。
At the end of the book, you should be able to build a site on your own or have the confidence and knowledge to hire a professional to develop a site for you which meets your business needs. You will ...
Installation Instructions are included within the zip file. Download Includes 64-bit Oracle Data Provider for .NET 4 11.2.0.4.0 64-bit Oracle Data Provider for .NET 2.0 11.2....