Fedora14下编译qtopia问题
来源:互联网 发布:淘宝退款选项 编辑:程序博客网 时间:2024/05/24 04:53
主要用strrchr函数,从类型‘const char*’到类型‘char*’的转换无效,新版本g++不支持报错了。
错误1:
backend/vobject.cpp: In function ‘VObject* addGroup(VObject*, const char*)’:
backend/vobject.cpp:419: error: invalid conversion from ‘const char*’ to ‘char*’
修改/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia/backend/vobject.cpp:419行
char *dot = strrchr(g,'.');
为 char *dot = (char*)strrchr(g,'.');
错误2:
wavplugin.cpp: 在成员函数‘virtual bool WavPlugin::isFileSupported(const QString&)’中:
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:
/usr/bin/ld: .obj/release-shared/transferserver.o: undefined reference to symbol 'crypt@@GLIBC_2.0'
/usr/bin/ld: note: 'crypt@@GLIBC_2.0' is defined in DSO /lib/libcrypt.so.1 so try adding it to the linker command line
这个问题发现用了crypt函数 而没使用-lcrypt, qtopia-2.2.0-FriendlyARM/qtopia/configure 1372行加入
print CONFIG_PRI "LIBS+=-lcrypt\n";
如下:
print CONFIG_PRI "QTOPIA_FONT_SIZES=$opt_fontsizes\n";
print CONFIG_PRI "QTOPIA_FONT_FAMILIES=$opt_fontfamilies\n";
print CONFIG_PRI "LIBS+=-lcrypt\n";
- fedora14下编译qtopia问题
- Fedora14下编译qtopia问题
- fedora14下编译qtopia问题. uuid, X11
- Qtopia 编译问题总结
- fedora13编译Qtopia问题
- Fedora14安装x86-qtopia和arm-qtopia
- Fedora14下编译安装Gtk3.0
- 在Fedora14下ns2.34的threshold.cc 的编译问题
- Ubuntu 9.04系统下编译 qtopia
- qt/qte qtopia编译问题集锦
- fedora14下编译helper2416的linux-3.2内核出错
- Ubuntu 9.04系统下编译 qtopia-src-2.2.0 过程
- uuid的问题(编译qt、qt/e、qtopia)
- 在 ubuntu 上编译 qtopia-2.2.0问题
- ubuntu10.10编译qtopia-2.2.0 问题总结及分析
- fedora14下安装fcitx输入法 以及一些问题的解决
- 交叉编译qtopia
- qtopia/embed编译
- 第七周任务(三)
- 第七周实验报告1
- flex meun 使用
- Process Resources
- hdoj 3667 Transportation
- Fedora14下编译qtopia问题
- [设计模式]Strategy Pattern(策略模式).(1)
- 整理了独立博客大全导航地址分享给大家
- 安装mongo的python脚本插件
- Java概述
- 在xp上用vs2008编译zlib1.2.5
- 随笔
- ECSHOP模板中用mod方法替代is div by方法来判断是否整除
- 第七周作业1