Qt5.1.0静态链接,“此应用不能静态链接到fftreal库" [英] Qt5.1.0 Static linking, "This application cannot be statically linked to the fftreal library"

查看:68
本文介绍了Qt5.1.0静态链接,“此应用不能静态链接到fftreal库"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些是我采取的确切步骤:

These are the exact steps that I took:

  1. 从此链接安装 Qt 5.1.0 并将其放置在 C:\Qt\Qt5.1.0\:http://download.qt-project.org/development_releases/qt/5.1/5.1.0-rc2/qt-windows-opensource-5.1.0-rc2-mingw48_opengl-x86-offline.exe

提取源码并放入C:\Qt\Qt5.1.0\Source\:http://download.qt-project.org/development_releases/qt/5.1/5.1.0-rc2/single/qt-everywhere-opensource-src-5.1.0-rc2.zip

安装 Active Python 2.7 在:C:\Python27\(添加到 PATH),Ruby 200 在:C:\Qt\Qt5.1.0\Source\Ruby200\(安装时勾选添加到PATH的选项),以及Perl64在:C:\Qt\Qt5.1.0\Source\

Installed Active Python 2.7 in: C:\Python27\ (Added to PATH), Ruby 200 in: C:\Qt\Qt5.1.0\Source\Ruby200\ (ticked the option to add to PATH when installing), and Perl64 in: C:\Qt\Qt5.1.0\Source\

仅安装来自 mysql-5.5.32-win32.msi 的客户端 C API 库"部分:http://dev.mysql.com/downloads/installer/

Installed only "Client C API Library" portion from mysql-5.5.32-win32.msi: http://dev.mysql.com/downloads/installer/

以管理员身份运行 Qt5.1.0 for Desktop (MinGW 4.8 32 bit) 并输入 configure -static -qt-sql-mysql -IC:\MySql\include -LC:\MySql\lib 全部在一行中.像这样:

Ran Qt5.1.0 for Desktop (MinGW 4.8 32 bit) as admin and typed configure -static -qt-sql-mysql -I C:\MySql\include -L C:\MySql\lib all in one line. Like so:

当它提示我运行时,我注意到这个 mingw32-make(就在警告:"上方,它说我的附加库位于 -LC:\MySql\lib 中,L 和 C 之间没有空格.

I noticed this when it prompted me to run mingw32-make (just above "WARNING:" It says my additional libraries are located in -LC:\MySql\lib without a space between L and C.

  1. 我忽略了这一点,并在配置完成后运行 mingw32-make.

过了一会儿,我收到了这个错误(在图片底部).

After awhile, I get this error (at the bottom of image).

我错过了什么/没有做什么?我需要一些指导.如果我可以参考某种 5.1.0 静态构建指南,那就太好了!提前谢谢大家.

What am I missing/not doing? I need some guidance. If there is some sort of 5.1.0 Static build guide that I can reference, that would be great! Thank you all ahead of time.

如果有人愿意指导我完成整个过程以成功静态创建 Qt,我非常愿意将本网站允许我提供给该人的所有要点.(如果我违反了某种规则,请忽略最后一句)

If someone is willing to guide me through this whole process to successfully create Qt statically, I am more than willing to give all the points that this site allows me to said person. (If I'm breaking some sort of rule please disregard this last statement then)

我的路径有这个 %APPDATA%\Python\Scripts;C:\Qt\Qt5.1.0\Source\Ruby200\bin;C:\cygwin;C:\Program Files (x86)\MiKTeX\miktex\bin\;C:\Python27\

推荐答案

尝试构建其中一个示例失败.尝试将 -nomake expamples 添加到配置行.

It failed trying to build one of the examples. Try adding -nomake expamples to your configure line.

还有.我认为开源许可证不允许您构建静态链接库.

Also. I don't think the open source license allows you to build static linked libraries.

这篇关于Qt5.1.0静态链接,“此应用不能静态链接到fftreal库"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆