qt5.6.3 + vs2015源码编译增加webkit, 通过修改.gitmodules增加这个模块

动态 未结 0 139
小小草
小小草 LV1 2023年9月23日 23:40 发表
以下是在Windows系统下,使用Visual Studio 2015编译Qt 5.6.3并增加webkit模块的步骤: 1. 下载Qt 5.6.3源码 从Qt官网下载Qt 5.6.3源码压缩包,并解压到一个目录中。 2. 安装Perl和Python Qt编译过程需要使用Perl和Python,可以从官网下载安装。 3. 安装Visual Studio 2015 Qt 5.6.3需要使用Visual Studio 2015编译,可以从Microsoft官网下载安装。 4. 打开“VS2015 x64 Native Tools Command Prompt” 在开始菜单中找到“VS2015 x64 Native Tools Command Prompt”并打开,这个命令提示符会自动设置好环境变量。 5. 进入Qt源码目录 在命令提示符中进入Qt源码目录。 ``` cd C:\path\to\qt5 ``` 6. 修改.gitmodules文件 打开.gitmodules文件,添加以下内容: ``` [submodule "qtwebkit"] path = qtwebkit url = https://github.com/qtwebkit/qtwebkit.git branch = qtwebkit-5.6 ``` 保存并退出。 7. 更新子模块 执行以下命令更新子模块: ``` git submodule update --init qtwebkit ``` 8. 配置编译选项 执行以下命令进行配置: ``` configure -prefix C:\Qt\Qt5.6.3_MSVC2015_x64 -opensource -confirm-license -nomake examples -nomake tests -skip qtwebengine -skip qtscript -skip qtdocgallery -skip qtlocation -skip qtpurchasing -skip qtserialbus -skip qtserialport -skip qtwayland -skip qtwebchannel -skip qtwebsockets -skip qtxmlpatterns -no-warnings-are-errors -no-compile-examples -no-sql-mysql -no-sql-psql -no-sql-odbc -no-sql-tds -no-sql-sqlite -no-sql-sqlite2 -no
收藏(0)  分享
相关标签: 智能问答
问题没解决?让AI助手帮你作答 AI助手
0个回复
  • 消灭零回复