to be myself
分类: 嵌入式
2013-03-03 12:11:06
Qtopia编译与移植注意问题。
1.注意编译器版本的选择
2.安装所需要的库文件
3.编译过程中出现提示缺少文件,用“apt-file search 文件”搜索,找到文件的安装包dev,“apt-get install 该包”安装。
4.编译过程中有语法错误,则需要根据提示修改。
5.设置环境变量,板子运行启动后,根据提示添加必要文件到根文件系统。
6.qpe运行不起来,可以去掉qpe 1>/dev/null 2>/dev/null 后面的“标准输出和标准错误输出到/dev/null”语句,查看出错信息。
7.提示缺少文件的时候,首先检查环境变量,然后用“LD_DEBUG=libs qpe -v”打印信息,查看它的搜索路径,当你十分确定环境变量没
问题,并且文件也存在的时候,就用“file 文件”查看一下是否为arm平台的文件。
下面是一些相关信息
./build 2>&1 >build.log
[1]
g++: Command not found
sudo apt-get install g++
[2]
error: X11/Xlib.h: No such file or directory
[angrad: ~]$ sudo apt-file search Xlib.h
ivtools-dev: /usr/include/IV-X11/Xlib.h
kompozer-dev: /usr/include/kompozer/widget/nsIDragSessionXlib.h
libghc6-x11-dev: /usr/lib/haskell-packages/ghc6/lib/X11-1.5.0.0/ghc-6.12.1/Graphics/X11/Xlib.hi
libghc6-x11-dev: /usr/lib/haskell-packages/ghc6/lib/X11-1.5.0.0/ghc-6.12.1/include/HsXlib.h
libghc6-x11-doc: /usr/share/doc/libghc6-x11-doc/html/Graphics-X11-Xlib.html
libghc6-x11-doc: /usr/share/doc/libghc6-x11-doc/html/mini_Graphics-X11-Xlib.html
libghc6-x11-doc: /usr/share/doc/libghc6-x11-doc/html/src/Graphics-X11-Xlib.html
libhugs-x11-bundled: /usr/lib/hugs/packages/X11/Graphics/X11/Xlib.hs
libroot5.18: /usr/lib/root/5.18/cint/include/X11/Xlib.h
libx11-dev: /usr/include/X11/Xlib.h
perl-tk: /usr/lib/perl5/Tk/pTk/Xlib.h
tendra: /usr/lib/TenDRA/lib/include/x5/lib.api/X11/Xlib.h
xemacs21-bin: /usr/lib/xemacs-21.4.22/i486-linux-gnu/include/extw-Xlib.h
z88dk-data: /usr/share/z88dk/include/x11/Xlib.h
sudo apt-get install libx11-dev
[3]
error: X11/extensions/shape.h: No such file or directory
[4]
error: zlib.h: No such file or directory
jpeglib.h: No such file or directory
sudo apt-file search zlib.h jpeglib.h
...
/usr/include/zlib.h
...
/usr/include//usr/include/
the progress of build is OK!
sudo apt-get install libjpeg62-dev zlib1g-dev
[5]Qt (>= Qt 2.2.2) (library qte) not found.
sudo apt-get install g++ libx11-dev libxmu-dev libxext-dev zlib1g-dev
libjpeg62-dev libssl-dev uuid-dev
[6]backend/vobject.cpp: In function ‘VObject* addGroup(VObject*, const char*)’:
backend/vobject.cpp:419: error: invalid conversion from ‘const char*’ to ‘char*’
vi /opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/src/libraries/qtopia/backend/vobject.cpp
line 419:
char *dot = strrchr(g,'.');
=>char *dot = (char*)strrchr(g,'.');
2011-08-04 10:26 发表于百度空间,今搬至CU。