Qtopia 编译问题总结

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:

        in the prefix, you've chosen, are no KDE libraries installed. This will fail. So, check this please and use another prefix!
       解决方法:sudo apt-get install kdelibs4-dev kdelibs4c2a
 6)  libz... configure: error: not found.

       解决方法: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

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值