加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Qtopia 编译问题总结

发布时间:2020-12-15 01:03:43 所属栏目:百科 来源:网络整理
导读: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/

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,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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读