fedora14下编译qtopia问题. uuid, X11
来源:互联网 发布:软件发明专利怎么写 编辑:程序博客网 时间:2024/06/05 02:44
主要用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 1373行加入
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";
注意修改每次build时都会从qtopia-2.2.0.tar.gz解压出来,需要修改qtopia-2.2.0.tar.gz里的文件,要不每次build都会被覆盖。
- fedora14下编译qtopia问题. uuid, X11
- fedora14下编译qtopia问题
- Fedora14下编译qtopia问题
- uuid的问题(编译qt、qt/e、qtopia)
- Qtopia 编译问题总结
- fedora13编译Qtopia问题
- fc4下成功编译qt-x11-2.3.2 qt-embedded-2.3.10 qtopia-2.1.1 tmake-1.13
- Fedora14安装x86-qtopia和arm-qtopia
- 编译及安装最新的qt/x11 4.3.4,qtopia 4.3.1 ,qtopia-core-opensource-src-4.3.3以及使用方法
- Fedora14下编译安装Gtk3.0
- 在Fedora14下ns2.34的threshold.cc 的编译问题
- Ubuntu 9.04系统下编译 qtopia
- qt/qte qtopia编译问题集锦
- 编译qt-x11解决QSqlRelationalDelegate问题
- QT-x11与qtopia之间的关系
- Qt-X11/QtEmbedded/Qtopia之间关系
- fedora14下编译helper2416的linux-3.2内核出错
- Ubuntu 9.04系统下编译 qtopia-src-2.2.0 过程
- View的生命周期
- 《windows 程序调试》读书笔记之跟踪篇
- 网络流的EK算法模板
- Java中的String与常量池
- Remember the Word,LA3942(Trie树+DP)
- fedora14下编译qtopia问题. uuid, X11
- PDF在线解决方案(1)
- windows与linux 汇编差异
- 《windows 程序调试》读书笔记之编译器篇
- VS2010编译调试STL源代码
- Kalevich Strikes Back(扫描线求分块的面积)
- Java Runtime.getRuntime.exec() 与linux shell find
- 学习Spark第一天---1张图了解Spark
- 在tomcat下部署工程