回复: qtembedded的桌面系统EMD(即Embedded desktop)
#36 [xujiqiang092 07-26 14:26]
楼主实在是太牛了!向你学习!呵呵
我也下载编译了一下,在Ubuntu+qvfb的环境下试了,可使点击“Application”页中的程序就只有图标跳了一下,然后就没了。app目录下也有那几个应用程序。我再点击一次就看到“Executing the same application twice is not supported”,说明程序已经运行起来了,可使为什么看不到界面呢?请赐教哦,呵呵
#37 [zzz945 07-26 15:16]
请在编译后将emdesktopclient文件夹下生成的.so文件全拷贝到你的“QTEDIR”/lib里面, 否则应用程序会因为找不到这个动态库而不能运行, 这点现在已经在INSTALL文件里面补充说明。
再补充一下
1.EMD现在已经有软键盘(目前通过任务栏上的一个小按钮来启动输入法)。
2.在应用程序launching, raising, closing时增加了动画效果, 是用qt4.6中新增的animation framework实现的, 这就使编译它必须使用qt4.6以上的版本才可以。
以上的changes是今天才签入软件库的, 有兴趣可以重新下载, 欢迎尝试
#38 [hangbing0203 07-28 14:57]
能否给一下详细编译信息呢?
我也用qtembedded4.5.2,配置也是:./configure --prefix=PATH_TO_INSTALL, make, make install
然后我在设置环境变量: export EMD_RUNNING_DIR=
exportQTEDIR=qtembedded4.5.2的安装路径。
然后我在编译的时候编译不过去呢
出现:akefile:1652: warning: ignoring old commands for target `main.o'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -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. -I. -o emdecoration.o emdecorationplugin/emdecoration.cpp
In file included from emdecorationplugin/emdecoration.cpp:1:
emdecorationplugin/emdecoration.h:4:23: error: QDecoration: No such file or directory
In file included from emdecorationplugin/emdecoration.cpp:1:
emdecorationplugin/emdecoration.h:7: error: expected class-name before ‘{’ token
emdecorationplugin/emdecoration.h:10: error: ‘QPainter’ has not been declared
emdecorationplugin/emdecoration.h:10: error: expected ‘,’ or ‘...’ before ‘*’ token
emdecorationplugin/emdecoration.h:10: error: ISO C++ forbids declaration of ‘QWidget’ with no type
emdecorationplugin/emdecoration.h:11: error: ‘QRegion’ does not name a type
emdecorationplugin/emdecoration.cpp: In constructor ‘EmDecoration::EmDecoration()’:
emdecorationplugin/emdecoration.cpp:6: error: class ‘EmDecoration’ does no ..
#39 [zzz945 07-28 15:15]
看这句-I/usr/include/qt4/QtCore就知道你并没有指定使用qte的库, QDecoration是qte特有的类, 在qt for x11里是没有的, 所以会出现上面的错误, 用exportQTDIR=qtembedded4.5.2试一试, 还有就是现在用qt4.6以下的版本是编译不过的, 因为用到了qt4.6新加入的动画类。
#40 [hangbing0203 07-29 16:14]
首先要谢谢你回复:
我是这样编译的 :
我的环境是qt-embedded4.5.2ubuntu10.4 安装在/usr/local/Trolltech/Qt-4.5.2/
首先1 qmake-project
qmake
viMakefile/修改makefile
修改成如下:
11 CC= gcc
12 CXX = g++
13 DEFINES = -DQT_NO_DEBUG -DQT_TESTLIB_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
14 CFLAGS= -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
15 CXXFLAGS= -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
16 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.
不过出现错误信息是:
sts/testappinfo -Itests/testapplicationsmanager -Itests/testmimetype -Iapp/imageviewer/src -Iapp/imag ..