回复: qtembedded的桌面系统EMD(即Embedded desktop)
#51 [zzz945 07-31 12:39]
引用第47楼xiaozhi_su于2010-07-31 10:47发表的:
楼主很强大!
昨天下载源码编译时发现了点小错误:
1、
emd/app/imageviewer/src/image 下图片命名是Symbols-Delete-32_32.png
而对应的qrc文件resource.qrc是Symbols-Delete-32*32.png,这里有点小错误
.......
1.刚查看了源码库, emd/app/imageviewer/src/image 下图片命名是Symbols-Delete-32*32.png, 不知道为什么你的是Symbols-Delete-32_32.png
2.#include 已经添加, 但宏定义_SVID_SOURCE不知道什么意思, 以及为什么要添加
#52 [zzz945 07-31 12:47]
引用第49楼hangbing0203于2010-07-31 11:12发表的:
export export INCPATH=-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.5.2/include/QtCore -I/usr/local/Trolltech/Qt-4.5.2/
include/QtGui -I/usr/local/Trolltech/Qt-4.5.2/include/QtTest -I/usr/local/Trolltech/Qt-4.5.2/include -I. -Iemdecorationplugin -
Iemdesktopclient -Iemdesktopserver -Icommon/include -Iemdesktopserver/MurphyPinyin -Iemdesktopserver/MurphyPinyin/scim -
Iemdesktopserver/MurphyPinyin/phrase -Iapp/pdfviewer -Itests/testappinfo -Itests/testapplicationsmanager -Itests/
testmimetype -Iapp/imageviewer/src -Iapp/imageviewer/tests -I. 这样有问题。
.......
这样修改Makefile是肯定不行的, 因为编译的结果并不是得到单一的应用程序, 你这样会造成程序连接的时候会找到N多main函数而不知道要连接哪个。
至于怎么办, 我建议不要修改Makefile,而是通过别的方式比如环境变量或者在qtcreator里面设置qt路径的方法指定你想要用的qt版本, 至于环境变量怎样设请参考网上其他资料, 我是在qtcreator里面弄的。
#53 回 51楼(zzz945) 的帖子 [xiaozhi_su 07-31 14:11]
SVID就是SystemV的接口描述,GNU C函数库定义了大多数由SVID指定
而为被ISO C和POSIX标准指定的函数。如果你使用的是glib2的话,必须
先定义这个宏_SVID_SOURCE才能使用stime()函数。不过这可能是我
多虑,加上time.h头文件就够了,现在编译Qte4一般都用gcc4.x的版本。
至于文件名不匹配,我说不上为什么,源码没错就好。我的源码是从
SourceForge上下的,用opera浏览器下的,下完后编译发现出错的。
#54 [hangbing0203 07-31 16:56]
现在终于遍通了运行的时候出现错误:
./emdesktop :errorwhile loading shared libaries:liwqwt.so.5cannot open shared
我就把qwt库全部复制到 emd/comon/lib目录下。
但还是出现找不到库。
emd/emdesktop-runing-environment/app里面有生成文件,make intall应该是没有问题的。
请问怎么搞定定呢。
#55 回 54楼(hangbing0203) 的帖子 [xiaozhi_su 07-31 17:26]
你还是没读懂楼主的install文件。
你应该把qwt的lib文件拷贝到你的$QTEDIR/lib目录下,而你放在emd/comon/lib目录下怎么会对呢。