• 6016阅读
  • 14回复

关于Linux下静态编译Qt的过程中出现的问题 [复制链接]

上一主题 下一主题
离线iiiyyyhhhsss
 

只看楼主 倒序阅读 楼主  发表于: 2009-11-03
打开终端,输入 :
cd /opt/qtsdk-2009.03/qt   (注:/opt/qtsdk-2009.03/qt是我安装qt的目录)
./configure static -prefix /opt/qtsdk-2009.03/qt

然后终端提示显示:
Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.

然后我按o,再按回车
然后终端有有提示,显示:
static: unknown argument
. . . . .                                (注:省略号为一大堆帮助信息)


然后我接着输入:
make sub-src

但终端又提示说 :
make: *** 没有规则可以创建目标“sub-src”。 停止。



我想问问我的问题出在哪里了?
离线wato
只看该作者 1楼 发表于: 2009-11-03
static前面没有“-”吗?          
离线neu_sunlei

只看该作者 2楼 发表于: 2009-11-03
命令打错了
人之初,性本善。性相近,习相远。苟不教,性乃迁。教之道,贵以专。
离线iiiyyyhhhsss

只看该作者 3楼 发表于: 2009-11-03
呵,是打错了,继续ing。。。
离线iiiyyyhhhsss

只看该作者 4楼 发表于: 2009-11-03
谢谢大家
现在静态编译Qt中,过程是不是很长?大概需要多长时间?如果很长,想做点其它事情,不用等着
离线wato
只看该作者 5楼 发表于: 2009-11-03
肯定不能等着阿...大概2个多小时吧
离线iiiyyyhhhsss

只看该作者 6楼 发表于: 2009-11-03
好,知道了
离线iiiyyyhhhsss

只看该作者 7楼 发表于: 2009-11-03
急!!
现在终端有提示说:
Qt is now configured for building. Just run 'gmake'.
Once everything is built, Qt is installed.
You should not run 'gmake install'.


但是,根据http://doc.trolltech.com/4.2/deployment-x11.html#building-qt-statically这里的说明:
Building Qt Statically

To use this approach, you must start by installing a static version of the Qt library:

cd /path/to/Qt
./configure -static -prefix /path/to/Qt <other parameters>
make sub-src

We specify the prefix so that we do not overwrite the existing Qt installation. The example above only builds the Qt libraries, i.e. the examples and Qt Designer will not be built. When make is done, you will find the Qt libraries in the /path/to/Qt/lib directory.

When linking your application against static Qt libraries, note that you might need to add more libraries to the LIBS line in your project file. For more information, see the Application Dependencies section.


我接下来该输入什么命令啊?是gmake还是 make sub-src?
离线wato
只看该作者 8楼 发表于: 2009-11-03
make就行了阿
离线iiiyyyhhhsss

只看该作者 9楼 发表于: 2009-11-03
好的

那个 sub-src是什么意思来的?
离线iiiyyyhhhsss

只看该作者 10楼 发表于: 2009-11-03
我发觉过程中有很多警告出现,这个是不是有什么问题?
离线wato
只看该作者 11楼 发表于: 2009-11-03
那个参数我也不知道

以前我就是这么编译的   编译挺顺利的  警告很正常阿
离线iiiyyyhhhsss

只看该作者 12楼 发表于: 2009-11-03
你不是说你你以前静态编译的程序不能在板子上运行吗?那么就是静态编译说不成功了?

还有就是想问问板子是什么意思?
离线iiiyyyhhhsss

只看该作者 13楼 发表于: 2009-11-03
是不是ubumtu?
离线wato
只看该作者 14楼 发表于: 2009-11-03
我以前编译的是QTE-ARM的

当时只是试了一次   跑不起来就没继续了

arm-linux的平台
快速回复
限100 字节
 
上一个 下一个