/********************************************************************************
* 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. QQ空间动态内容,好友信息,点赞爬虫脚本

    一.安装基础的软件包: 1.准备好火狐浏览器,并下载geckodriver,将geckodriver加入到环境变量:下载geckodriver的地址:https://pan.baidu.com/s/1 ...

  2. 服务端Job调度程序

    GIT地址:https://github.com/youbl/PlanServer

  3. jQuery单选多选按钮选中美化特效

    在线演示 本地下载

  4. MySQL数据库表分区功能详解

    1.什么是表分区? mysql数据库中的数据是以文件的形势存在磁盘上的,默认放在/mysql/data下面(可以通过my.cnf中的datadir来查看),一张表主要对应着三个文件,一个是frm存放表 ...

  5. QMap的使用

    1.定义 mapQMap<QString,QColor> map; 2.插入数据 map.insert("AA",RGB(255,0,0)); map.insert(& ...

  6. DRBD分布式块设备复制

    一. DRBD介绍 1.1.数据镜像软件DRBD介绍分布式块设备复制(Distributed Relicated Block Deivce,DRBD),是一种基于软件.基于网络的块复制存储解决方案,主 ...

  7. 用idea编译器写第一个Java程序——步骤

  8. PAT1077. Kuchiguse (20)

    #include <iostream> #include <vector> #include <sstream> using namespace std; int ...

  9. codeforces 814B.An express train to reveries 解题报告

    题目链接:http://codeforces.com/problemset/problem/814/B 题目意思:分别给定一个长度为 n 的不相同序列 a 和 b.这两个序列至少有 i 个位置(1 ≤ ...

  10. spring mvc: 静态资源/文件配置

    静态文件不用再放web-info 下面了,放在webapp/ 下面就行了(静态文件放web-inf下你在jsp都无法引用~  注意一下所有js.css包括报表文件~ 配置文件等等等~  不要放在web ...