gcc :4.4.3
arm-linux-gcc :4.3.2
ubuntu:10.04
·
问题1. /usr/bin/ld: cannot find -luuid
解决方法:apt-get install uuid-dev
问题2. wavplugin.cpp:435:45: 错误:从类型‘const char*’到类型‘char*’的转换无效
解决方法:/x86-qtopia-2.2.0/qtopia/src/plugins/codecs/wavplugin/wavplugin.cpp:435行
char *ext = strrchr( path.latin1(), '.' ); 改为 char *ext = (char*)strrchr( path.latin1(), '.' );
问题3 .../../util/subst: Command not found
解决方法:ln -s /subst ../build_x86/util/
问题4 /usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
解决方法: f = open(tmpFile.latin1(), O_CREAT | O_WRONLY); f = open(tmpFile.latin1(), O_CREAT | O_WRONLY, 0777);
问题5 如果提示:Qt/Embedded data directory is not owned by user 0:/tmp/qtembedded-0
运行:chown root:root /tmp/qtembedded-0
如果提示:Qtopia data directory is not owned by user 0:/tmp/qtopia-0
运行:chown root:root /tmp/qtopia-0
问题6 /usr/bin/ld: cannot find -lxxx
解决方法: apt-get install libxxx-dev
问题7: 安装Kdevelop时 在./configure时候报错
1)configure: error: The important program kde-config was not found
解决方法:apt-get install kdelibs
2)in the prefix, you've chosen, are no KDE headers installed. This will fail.
解决方法:apt-get install kdelibs4-dev
3)The important program mcopidl was not found
解决方法:./configure --without-arts
4) You need to have flex installed.
解决方法:apt-get install flex
5)checking for KDE... configure: error:
解决方法:apt-get install libz-dev
7) checking for Qt... configure: error: Qt (>= qt 3.3 and < 4.0) (headers and libraries) not found.
解决方法:sudo apt-get install libqt3-mt-dev
8)缺少Berkeley DB
解决方法 :下载 :http://download.oracle.com/berkeley-db/db-4.6.18.tar.gz