博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
libQt5Core.so: undefined reference to `dlclose@GLIBC_2.4'
阅读量:5927 次
发布时间:2019-06-19

本文共 4840 字,大约阅读时间需要 16 分钟。

/******************************************************************************** *       libQt5Core.so: undefined reference to `dlclose@GLIBC_2.4' * 说明: *     在编译QT 5.8的程序的时遇到找不到库的问题。 *  *                                                2017-6-8 深圳 龙华樟坑村 曾剑锋 *******************************************************************************/一、参考文档:    1. 树莓派交叉编译qt5.5的问题        http://tieba.baidu.com/p/4327053176二、编译报错:    18:49:35: Running steps for project zengjfTest...    18:49:35: Starting: "/home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/bin/qmake" /home/zengjf/zengjf/zengjfos/Qt5.8Demo/zengjfTest/zengjfTest.pro -r -spec linux-arm-gnueabihf-g++    18:49:35: The process "/home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/bin/qmake" exited normally.    18:49:35: Starting: "/usr/bin/make"     arm-linux-gnueabihf-g++ --sysroot=/home/zengjf/zengjf/zengjfos/Qt5.8/rootfs -Wl,-O1 -Wl,-rpath,/usr/local/qt5.8/lib -o zengjfTest main.o mainwindow.o moc_mainwindow.o   -L/home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib -lQt5Widgets -L/home/zengjf/zengjf/zengjfos/Qt5.8/tslib-1.4/__install/lib -lQt5Gui -lQt5Core -lpthread     /usr/lib/gcc-cross/arm-linux-gnueabihf/6/../../../../arm-linux-gnueabihf/bin/ld: warning: libdl.so.2, needed by /home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib/libQt5Core.so, not found (try using -rpath or -rpath-link)    Makefile:190: recipe for target 'zengjfTest' failed    /usr/lib/gcc-cross/arm-linux-gnueabihf/6/../../../../arm-linux-gnueabihf/bin/ld: warning: librt.so.1, needed by /home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib/libQt5Core.so, not found (try using -rpath or -rpath-link)    /home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib/libQt5Core.so: undefined reference to `clock_gettime@GLIBC_2.4'    /home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib/libQt5Core.so: undefined reference to `dlopen@GLIBC_2.4'    /home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib/libQt5Core.so: undefined reference to `dlsym@GLIBC_2.4'    /home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib/libQt5Core.so: undefined reference to `dlerror@GLIBC_2.4'    /home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib/libQt5Core.so: undefined reference to `dlclose@GLIBC_2.4'    collect2: error: ld returned 1 exit status    make: *** [zengjfTest] Error 1    18:49:35: The process "/usr/bin/make" exited with code 2.    Error while building/deploying project zengjfTest (kit: 5.8-ARM)        When executing step "Make"        18:49:35: Elapsed time: 00:00.    18:59:40: Running steps for project zengjfTest...    18:59:40: Starting: "/home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/bin/qmake" /home/zengjf/zengjf/zengjfos/Qt5.8Demo/zengjfTest/zengjfTest.pro -r -spec linux-arm-gnueabihf-g++    18:59:40: The process "/home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/bin/qmake" exited normally.    18:59:40: Starting: "/usr/bin/make"     arm-linux-gnueabihf-g++ --sysroot=/home/zengjf/zengjf/zengjfos/Qt5.8/rootfs -Wl,-O1 -Wl,-rpath,/usr/local/qt5.8/lib -o zengjfTest main.o mainwindow.o moc_mainwindow.o   -L/home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib -lQt5Widgets -L/home/zengjf/zengjf/zengjfos/Qt5.8/tslib-1.4/__install/lib -lQt5Gui -lQt5Core -lpthread     /usr/lib/gcc-cross/arm-linux-gnueabihf/6/../../../../arm-linux-gnueabihf/bin/ld: warning: libdl.so.2, needed by /home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib/libQt5Core.so, not found (try using -rpath or -rpath-link)    Makefile:190: recipe for target 'zengjfTest' failed    /usr/lib/gcc-cross/arm-linux-gnueabihf/6/../../../../arm-linux-gnueabihf/bin/ld: warning: librt.so.1, needed by /home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib/libQt5Core.so, not found (try using -rpath or -rpath-link)    /home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib/libQt5Core.so: undefined reference to `clock_gettime@GLIBC_2.4'    /home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib/libQt5Core.so: undefined reference to `dlopen@GLIBC_2.4'    /home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib/libQt5Core.so: undefined reference to `dlsym@GLIBC_2.4'    /home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib/libQt5Core.so: undefined reference to `dlerror@GLIBC_2.4'    /home/zengjf/zengjf/zengjfos/Qt5.8/rootfs/usr/local/qt5.8/lib/libQt5Core.so: undefined reference to `dlclose@GLIBC_2.4'    collect2: error: ld returned 1 exit status    make: *** [zengjfTest] Error 1    18:59:40: The process "/usr/bin/make" exited with code 2.    Error while building/deploying project zengjfTest (kit: 5.8-ARM)        When executing step "Make"        18:59:41: Elapsed time: 00:00.三、解决办法:    将相关的warning找不到的lib,放到对应的lib下去就可以了。

 

转载于:https://www.cnblogs.com/zengjfgit/p/6964431.html

你可能感兴趣的文章
window下版本控制工具Git 客户端安装
查看>>
Windows Phone开发(36):动画之DoubleAnimation
查看>>
Fd.Service 轻量级WebApi框架
查看>>
AC-PC线(前联合-后联合线)
查看>>
HDOJ 1864 最大报销额(01背包)
查看>>
jstat 使用日志
查看>>
夜盲症_百度百科
查看>>
vs2010将写好的软件打包安装包经验
查看>>
iOS摄像头和相册-UIImagePickerController-浅析(转)
查看>>
HTTP头的Expires与Cache-control
查看>>
android开发之MediaPlayer+Service MP3播放器
查看>>
项目管理的技能介绍
查看>>
字符串按首字母分组并ToDictionary的实现
查看>>
jstl删除session,choose,动态获取request当前工程路径
查看>>
Android NDK JNI C++ <15> pthread mutex互斥
查看>>
jQuery.form.js使用
查看>>
高级C代码的汇编分析
查看>>
KendoUI系列:ComboBox
查看>>
第23周六
查看>>
分布式Hadoop安装(二)
查看>>