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

libQt5Core.so: undefined reference to `dlclose@GLIBC_2.4'的更多相关文章

  1. 解决undefined reference to `__poll_chk@GLIBC_2.16' 错误

    出现这个错误,是系统的glibc版本太低了,需要更新 到http://ftp.gnu.org/gnu/glibc/下载新版本的glibc,也不用太高,我选择glibc-2.20.tar.gz   解压 ...

  2. [转载]undefined reference to `memcpy@GLIBC_2.14'

    转自:http://blog.sina.com.cn/s/blog_6c5a47d30102wfw9.html undefined reference to `memcpy@GLIBC_2.14' ( ...

  3. 记一次oracle安装错误:INFO: //usr/lib64/libstdc++.so.5: undefined reference to `memcpy@GLIBC_2.14'

    --一次oracle安装错误,oracle version:11.2.0.1.0[root@localhost ~]# cat /etc/issue\SKernel \r on an \m [root ...

  4. undefined reference to 'dlopen';undefined reference to 'dlclose';undefined reference to 'dlerror'等问题

    在linux下,编译链接的时候,经常会遇到这样一个问题,undefined reference to.....,引起这个问题的原因在于在链接的时候缺少选项.下面举几个例子,并给出解决办法. 1.  u ...

  5. libaio.so.1: undefined reference to `__stack_chk_fail@GLIBC_2.4'

    没有别的原因: 找正确的  libaio.so.1 包就成. 我这儿有,需要的可以下载奥!

  6. libstdc++.so.5: undefined reference to `memcpy@GLIBC_2.14'

    没有别的原因: 找正确的 libstdc++.so.5 包就成. 我这儿有,需要的可以下载奥!

  7. undefined reference to `dlopen'

    g++ -O0 -g3 -I. -Ithird/json -Ithird/core/include -Ithird/vite/include -Ithird/openfst-1.2.10/src/in ...

  8. 源码安装git工具,显示/usr/local/lib64/libcrypto.a(dso_dlfcn.o) undefined reference to `dlopen'

    /usr/local/lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':dso_dlfcn.c:(.text+0x30) ...

  9. 解决引用openssl静态库libcrypto.a和libssl.a出现undefined reference to错误的问题

    最近在做使用openssl链接http和https的项目,编译时出现以下问题. /usr/local/openssl/lib/libcrypto.a(async.o): In function `as ...

随机推荐

  1. Mybatis中的ParameterType

    mybatis可以传入的参数类型1.基本数据类型       可以通过#{参数名}直接获取.每次只能传入一个值       <select id="selectTeacher" ...

  2. 如何修改Django中的日期和时间格式 DateTimeField

    html页面从数据库中读出DateTimeField字段时,显示的时间格式和数据库中存放的格式不一致,比如数据库字段内容为2017-06-03 13:00:00,但是页面显示的却是Apr. 03, 2 ...

  3. zabbix监控windows

    windows  版zabbix_agent下载地址: https://www.zabbix.com/download_agents 解压,有bin和conf两个文件夹 配置: 在windows被监控 ...

  4. NOIP Mayan游戏

    描述 Mayan puzzle是最近流行起来的一个游戏.游戏界面是一个7行5列的棋盘,上面堆放着一些方块,方块不能悬空堆放,即方块必须放在最下面一行,或者放在其他方块之上.游戏通关是指在规定的步数内消 ...

  5. Python 对象学习一

    # 对象的基本理论 # 什么是对象? # 万物皆对象 # 对象是具体物体 # 拥有属性 # 拥有行为 # 把很多零散的东西,封装成为一个整体 # 举例:王二小 # 属性 # 姓名 # 年龄 # 身高 ...

  6. java中TreeMap集合的常用方法

    实现Map集合的方法这里就不在讲了 https://www.cnblogs.com/xiaostudy/p/9510763.html public Map.Entry<K,V> ceili ...

  7. var与this定义变量的区别以及疑惑

    我们知道: var可以定义一个局部变量,当然如果var定义在最外层的话,就是全局的局部变量,也就算是全局变量了. 而this关键字定义的变量准确的说应该算是成员变量.即定义的是调用对象的成员变量. 另 ...

  8. QT treewidget 右键菜单

    VS2012+QT5.2 ,没有ui,纯代码实现右键 方法一:常规但略麻烦 1.头文件slot中声明 QTreeWidget *tree; void showrightMenu(QPoint);//显 ...

  9. 使用VirtualBox安装Android 4.2.2 x86 .

    http://blog.csdn.net/kunoy/article/details/8768205 virtual box 安装 android x86 不显示鼠标, --> 控制 --> ...

  10. thrift安装及常见问题

    一.安装thrift (macOS / Linux) 1. 下载thrift0.10.0源码 https://github.com/apache/thrift/releases/tag/0.10.0 ...