/********************************************************************************
* 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. Keras实践:实现非线性回归

    Keras实践:实现非线性回归 代码 import os os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE" import ke ...

  2. java实现简单邮件的发送以及常见问题

    java实现简单邮件的发送以及常见问题 最近遇到个需求需要实现发送邮件的功能,以前做发送邮件功能都是有邮箱用户名密码,通过用户名密码连接对应的SMTP服务器来实现邮件的发送.但是这次用公司内部的邮箱, ...

  3. 自动化测试管理平台ATMS(V1.0.1_7.29)下载

    自动化测试管理平台ATMS(V1.0.1_7.29)下载http://automationqa.com/forum.php?mod=viewthread&tid=2582&fromui ...

  4. LeetCode: Find Largest Value in Each Tree Row

    BFS /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * ...

  5. case的嵌套使用

    case分支语句的格式如下: case $变量名 in 模式1) 命令序列1 ;; 模式2) 命令序列2 ;; *) 默认执行的命令序列     ;; esac case语句结构特点如下: 1.    ...

  6. Linux系统下wget命令的使用教程

    一.Linux wget简介 wget是linux上的命令行的下载工具.这是一个GPL许可证下的自由软件.Linux wget支持HTTP和FTP协议,支持代理服务器和断点续传功能,能够自动递归远程主 ...

  7. Spring中的@Transactional以及事务的详细介绍

    首先来说下事务,说到事务就不得不说它的四个特性(acid): 一.特性 1.原子性(atomicity):一个事务当作为一个不可分割的最小工作单元,一组操作要么全部成功,要么全部失败. 2.一致性(c ...

  8. cmd常用命令大全

    cmd命令提示符:只是系统模拟的dos操作环境,且功能远远大于dos 1. 返回上一层 cd.. 2. 进入A文件夹  cd A 3. 进入A文件夹下的B文件夹   cd  A/B 4. c盘下的A文 ...

  9. Java 获取路径的几种方法 - 转载

    1.获取当前类所在的“项目名路径” String rootPath = System.getProperty("user.dir"); 2.获取编译文件“jar包路径”(反射) S ...

  10. Nginx配置端口访问的网站

    server { listen 80; #listen [::]:80 default_server ipv6only=on; server_name www.website.com; index i ...