libQt5Core.so: undefined reference to `dlclose@GLIBC_2.4'
/********************************************************************************
* 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'的更多相关文章
- 解决undefined reference to `__poll_chk@GLIBC_2.16' 错误
出现这个错误,是系统的glibc版本太低了,需要更新 到http://ftp.gnu.org/gnu/glibc/下载新版本的glibc,也不用太高,我选择glibc-2.20.tar.gz 解压 ...
- [转载]undefined reference to `memcpy@GLIBC_2.14'
转自:http://blog.sina.com.cn/s/blog_6c5a47d30102wfw9.html undefined reference to `memcpy@GLIBC_2.14' ( ...
- 记一次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 ...
- undefined reference to 'dlopen';undefined reference to 'dlclose';undefined reference to 'dlerror'等问题
在linux下,编译链接的时候,经常会遇到这样一个问题,undefined reference to.....,引起这个问题的原因在于在链接的时候缺少选项.下面举几个例子,并给出解决办法. 1. u ...
- libaio.so.1: undefined reference to `__stack_chk_fail@GLIBC_2.4'
没有别的原因: 找正确的 libaio.so.1 包就成. 我这儿有,需要的可以下载奥!
- libstdc++.so.5: undefined reference to `memcpy@GLIBC_2.14'
没有别的原因: 找正确的 libstdc++.so.5 包就成. 我这儿有,需要的可以下载奥!
- undefined reference to `dlopen'
g++ -O0 -g3 -I. -Ithird/json -Ithird/core/include -Ithird/vite/include -Ithird/openfst-1.2.10/src/in ...
- 源码安装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) ...
- 解决引用openssl静态库libcrypto.a和libssl.a出现undefined reference to错误的问题
最近在做使用openssl链接http和https的项目,编译时出现以下问题. /usr/local/openssl/lib/libcrypto.a(async.o): In function `as ...
随机推荐
- 10 Spring框架 AOP (三) Spring对AspectJ的整合
上两节我们讲了Spring对AOP的实现,但是在我们的开发中我们不太使用Spring自身的对AOP的实现,而是使用AspectJ,AspectJ是一个面向切面的框架,它扩展了Java语言.Aspect ...
- PAT 天梯赛 L1-045. 宇宙无敌大招呼 【水】
题目链接 https://www.patest.cn/contests/gplt/L1-045 AC代码 #include <iostream> #include <cstdio&g ...
- alter table add constraint 用法
1.主键约束: 要对一个列加主键约束的话,这列就必须要满足的条件就是分空 因为主键约束:就是对一个列进行了约束,约束为(非空.不重复) 以下是代码 要对一个列加主键,列名为id,表名为emp 格式 ...
- 20145201 《Java程序设计》第一周学习总结(修改)
# 20145201 <Java程序设计>第一周学习总结 ## 教材学习内容总结 万事开头难,终于开始学习了Java.寒假的时候看到老师的要求确实有点慌,但是这周翻开书,从书本知识第一行学 ...
- 函数:生成n个互不相同的随机数,最大值为upper
参考:http://blog.csdn.net/zhangkaihang/article/details/6836506 函数getRandArray()功能说明: 入参:int upper-生成的随 ...
- React Native Could not expand ZIP
Execution failed for task ':app:prepareSrolkReactNativeFilePickerUnspecifiedLibrary'. Could not expa ...
- python中set的用处
python中有很多不同的数据结构,比如list,tuple,set,dic等,为什么我要单独讲set呢. 因为set是一个比较容易被遗忘的数据结构,不光在python中,在C++中也一样,反正我是很 ...
- idea使用maven骨架创建maven项目
Maven 骨架创建 Java Web 项目 1) File -> New -> Project... 2) 如下图 3)如下图 GroupId和ArtifactId<项目名> ...
- windchill系统——开发_角色管理——增加角色
步骤如下 ResourceBuild wt.project.RoleRB ant -f codebase/MakeJar.xml 这样就完成了,接下来看看结果
- JNIjw01
1.VC6(CPP)的DLL代码: #include<stdio.h> #include "jniZ_JNIjw01.h" JNIEXPORT void JNICALL ...