libQtCore.so: undefined reference to `clock_gettime'
2014-03-01 14:47
344 查看
环境: arm qt4.5
问题: libQtCore.so: undefined reference to `clock_gettime'
分析: 应该是找不到库文件 librt.so (POSIX.1b Realtime Extensions library)
解决:
办法一: 重新编译qt4.5
在./configure后 添加参数 -lrt
我用的是天嵌embeded,修改arm_qt4.5_build,如下:
echo yes | ../../qt-embedded-linux-opensource-src-4.5.0/configure -prefix /opt/EmbedSky/qt-4.5/__install/arm/ -release -shared -fast -no-largefile -qt-sql-sqlite -no-qt3support -no-xmlpatterns -no-mmx -no-3dnow -no-sse -no-sse2 -no-svg -no-webkit -qt-zlib -qt-gif
-qt-libtiff -qt-libpng -qt-libjpeg -make libs -nomake examples -nomake docs -nomake demo -no-nis -no-cups -no-iconv -no-dbus -no-openssl -xplatform qws/linux-arm-g++ -embedded arm -little-endian -qt-freetype -depths 16 -qt-gfx-linuxfb -qt-gfx-transformed -qt-gfx-multiscreen
-no-gfx-vnc -no-gfx-qvfb -qt-kbd-usb -no-glib -armfpa -no-mouse-tslib -I/tslib-1.4/inclued -L/tslib-1.4/lib -lrt &&
办法二: 修改Makefile
在makefile中找的 LIBS ,在其后添加 -lrt
问题: libQtCore.so: undefined reference to `clock_gettime'
分析: 应该是找不到库文件 librt.so (POSIX.1b Realtime Extensions library)
解决:
办法一: 重新编译qt4.5
在./configure后 添加参数 -lrt
我用的是天嵌embeded,修改arm_qt4.5_build,如下:
echo yes | ../../qt-embedded-linux-opensource-src-4.5.0/configure -prefix /opt/EmbedSky/qt-4.5/__install/arm/ -release -shared -fast -no-largefile -qt-sql-sqlite -no-qt3support -no-xmlpatterns -no-mmx -no-3dnow -no-sse -no-sse2 -no-svg -no-webkit -qt-zlib -qt-gif
-qt-libtiff -qt-libpng -qt-libjpeg -make libs -nomake examples -nomake docs -nomake demo -no-nis -no-cups -no-iconv -no-dbus -no-openssl -xplatform qws/linux-arm-g++ -embedded arm -little-endian -qt-freetype -depths 16 -qt-gfx-linuxfb -qt-gfx-transformed -qt-gfx-multiscreen
-no-gfx-vnc -no-gfx-qvfb -qt-kbd-usb -no-glib -armfpa -no-mouse-tslib -I/tslib-1.4/inclued -L/tslib-1.4/lib -lrt &&
办法二: 修改Makefile
在makefile中找的 LIBS ,在其后添加 -lrt
相关文章推荐
- javascript学习笔记四:javascript中的函数(对象)
- javascript学习笔记三:javascript基本数据类型+正则表达式+异常处理
- javascript学习笔记二:javascript中的数组对象和json对象
- javascript学习笔记一:javascript原型+对象字面量等
- jquery post 同步异步总结
- 超实用CSS代码
- 充分利用HTML来让技术文章更加易读——初步探索
- 充分利用HTML来让技术文章更加易读——初步探索(效果,因为既预览又源码出来效果有点怪,所以另发了)
- 《JavaScript DOM编程艺术》学习笔记<一>
- USACO 3.4 Electric Fence (fence9)
- USACO 3.4 Closed Fences (fence4)
- html button return up web(html实现按键返回上一级web)
- HTML基础(三)
- JavaScript跨域总结与解决办法
- C#代码与javaScript函数的相互调用
- html相关
- JSON资料整理
- jQueryEasyUI .messager.alert
- jquery ui之日期选择器 datepicker
- (9)javascript 引用类型 Array类型