中级会员
- 积分
- 254
- 金钱
- 254
- 注册时间
- 2020-10-19
- 在线时间
- 54 小时
|
6金钱
硬件环境:zynq7000核心板;
软件环境:Petalinux2020.2编译生成的Boot区文件+ubuntu base18.04
修改操作:ubuntu18.04自带最高版本GLIBC是2.27,为了满足Qt5.13.2,升级了GLIBC到2.31【通过编译源码方式升级】
移植操作:将petalinux编译的SDK中包含的Qt5.13.2源码包直接移植到了rootfs/usr/lib中。【PS:我已经从教程中知道会存在找不到某些依赖库的问题,已经通过添加环境变量基本解决】
遇到的问题:
如下述终端所示,我暂时解决了依赖库的问题,但是GLIBC这个问题我不清楚该怎么解决,我运行ldd --version。的确显示当前GLIBC版本为2.31,但能从下文加红字体看到,GLIBC存在两个路径下。我有尝试过通过软链接的方式和Export环境变量的方式来尝试解决libc.so.6版本过低的问题,但最终都出现了Segmentation fault的错误。烦请大佬指点一下!!!万分感谢
- hopes@HopesUbuntuZynq:~$ ./qt_demo
- ./qt_demo: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /usr/lib/libQt5Core.so.5)
- hopes@HopesUbuntuZynq:~$ ldd ./qt_demo
- libQt5Widgets.so.5 => not found
- libQt5Core.so.5 => not found
- libstdc++.so.6 => not found
- libgcc_s.so.1 => not found
- libc.so.6 => /usr/local/lib/libc.so.6 (0xb6ebf000)
- /lib/ld-linux-armhf.so.3 => /usr/local/lib/ld-linux-armhf.so.3 (0xb6fc8000)
- hopes@HopesUbuntuZynq:~$ export LD_LIBRARY_PATH=/usr/lib:/usr/lib/gcc/arm-linux-gnueabihf/7:$LD_LIBRARY_PATH
- hopes@HopesUbuntuZynq:~$ export LD_LIBRARY_PATH=/lib/arm-linux-gnueabihf:$LD_LIBRARY_PATH
- hopes@HopesUbuntuZynq:~$ ldd ./qt_demo
- ./qt_demo: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /usr/lib/libQt5Core.so.5)
- ./qt_demo: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /usr/lib/libglib-2.0.so.0)
- libQt5Widgets.so.5 => /usr/lib/libQt5Widgets.so.5 (0xb6b50000)
- libQt5Core.so.5 => /usr/lib/libQt5Core.so.5 (0xb668d000)
- libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb654e000)
- libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6525000)
- libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb642d000)
- libQt5Gui.so.5 => /usr/lib/libQt5Gui.so.5 (0xb5fec000)
- libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb5fc7000)
- libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb5f5f000)
- /lib/ld-linux-armhf.so.3 => /usr/local/lib/ld-linux-armhf.so.3 (0xb6fb9000)
- libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb5f35000)
- libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb5f22000)
- libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb5e3f000)
- libGLESv2.so.2 => /usr/lib/libGLESv2.so.2 (0xb5e26000)
- libpng16.so.16 => /usr/lib/libpng16.so.16 (0xb5df4000)
- libpcre.so.1 => /usr/lib/libpcre.so.1 (0xb5d97000)
- libglapi.so.0 => /usr/lib/libglapi.so.0 (0xb5d61000)
- hopes@HopesUbuntuZynq:~$ <font color="#ff0000"><b><i>strings /lib/arm-linux-gnueabihf/libc.so.6 | grep GLIBC_</i></b></font>
- GLIBC_2.4
- GLIBC_2.5
- GLIBC_2.6
- GLIBC_2.7
- GLIBC_2.8
- GLIBC_2.9
- GLIBC_2.10
- GLIBC_2.11
- GLIBC_2.12
- GLIBC_2.13
- GLIBC_2.14
- GLIBC_2.15
- GLIBC_2.16
- GLIBC_2.17
- GLIBC_2.18
- GLIBC_2.22
- GLIBC_2.23
- GLIBC_2.24
- GLIBC_2.25
- GLIBC_2.26
- GLIBC_2.27
- GLIBC_PRIVATE
- hopes@HopesUbuntuZynq:~$ <b><i><font color="#ff0000">strings /usr/local/lib/libc.so.6 | grep GLIBC</font></i></b>
- GLIBC_2.4
- GLIBC_2.5
- GLIBC_2.6
- GLIBC_2.7
- GLIBC_2.8
- GLIBC_2.9
- GLIBC_2.10
- GLIBC_2.11
- GLIBC_2.12
- GLIBC_2.13
- GLIBC_2.14
- GLIBC_2.15
- GLIBC_2.16
- GLIBC_2.17
- GLIBC_2.18
- GLIBC_2.22
- GLIBC_2.23
- GLIBC_2.24
- GLIBC_2.25
- GLIBC_2.26
- GLIBC_2.27
- GLIBC_2.28
- GLIBC_2.29
- <b><i><font color="#ff0000">GLIBC_2.30</font></i></b>
- GLIBC_PRIVATE
复制代码
|
|