Qt5 - 静态 x64 和链接噩梦
Qt5 -static x64 and linking nightmares
我正在尝试使用 -static 选项在 Windows 7 64 位下编译 Qt5 64 位。
这是我所做的:
1) 下载 Qt 源代码并将它们解压缩到 C:\Qt5\5.0src 目录中2) 按照此处的所有步骤 http://www.geometrian.com/programming/tutorials/setup_Qt.txt 设置环境变量和 .conf 文件以静态构建3) 启动配置
configure -debug-and-release -opensource -confirm-license -platform win32-msvc2010 -nomake tests -nomake examples -opengl desktop
需要 opengl 桌面参数,因为 -no-opengl 有一个错误,我无法编译角度。
终于启动了 jom.exe -j5/p
我得到了这个我不知道如何解决的错误
moc_qwindowsinputcontext.cpp
lib /NOLOGO /OUT:........pluginsplatformsqwindows.lib @C:UsersMarkAppDataLocalTempqwindows.lib.3796.29562.jom
cd qtsvg && ( if not exist Makefile C:Qt5.0srcqtbasebinqmake C:Qt5.0srcqtsvgqtsvg.pro -o Makefile ) && C:Qt5.0srcj
om.exe -f Makefile
cd src && ( if not exist Makefile C:Qt5.0srcqtbasebinqmake C:Qt5.0srcqtsvgsrcsrc.pro -o Makefile ) && C:Qt5.0srcj
om.exe -f Makefile
cd svg && ( if not exist Makefile C:Qt5.0srcqtbasebinqmake C:Qt5.0srcqtsvgsrcsvgsvg.pro -o Makefile ) && C:Qt5.0s
rcjom.exe -f Makefile
C:Qt5.0srcjom.exe -f Makefile.Debug all
Error: dependent 'C:Qt5.0srcqtbaselibQt5Widgetsd.lib' does not exist.
jom: C:Qt5.0srcqtsvgsrcsvgMakefile [debug-all] Error 2
jom: C:Qt5.0srcqtsvgsrcMakefile [sub-svg-make_first-ordered] Error 2
jom: C:Qt5.0srcqtsvgMakefile [sub-src-make_first] Error 2
jom: C:Qt5.0srcMakefile [module-qtsvg-make_first] Error 2
似乎"Qt5Widgetsd.lib"不存在...为什么?为什么还没有建成?
帮助将不胜感激
我无法解决它,但我发现 -no-opengl 与 Qt5 有问题,所以我切换到 Qt4 并解决了我的问题
相关文章:
- lambda参数转换为constexpr技巧,然后获取带链接的数组
- CMake-按正确顺序将项目与C运行时对象文件链接
- 从链接列表c++中删除一个项目
- 有根的二进制搜索树.保留与其父级的链接
- 读取文件的最后一行并输入到链接列表时出错
- 静态数据成员的问题-修复链接错误会导致编译器错误
- node-gyp 在 macOS 上未正确链接库
- 基于boost的程序的静态链接——zlib问题
- 无法链接 CMake 中的本地库
- 内联函数中具有内部链接的全局变量
- 链接阶段在Ubuntu上失败,但在MacOS上失败
- 使用gcc从静态链接的文件中查找可选符号
- 我可以将一个用clang c++11编译的对象与另一个用c++17编译的对象链接起来吗
- 将--whole archive链接器选项与CMake和具有其他库依赖项的库一起使用
- 下面是我为检测链接列表中的循环而制作的代码
- 有了gcc,是否可以链接库,但前提是它存在
- 使用C链接在函数内部创建C++模板
- Visual Studio mkl_link_tool.exe链接错误
- 尝试链接我的着色器时,我收到错误代码"error c5145 must write to gl_position"
- Qt5 - 静态 x64 和链接噩梦