ERROR: ldd outputLine: "libicui18n.so.56 => not found"
ERROR: ldd outputLine: "libicui18n.so.56 => not found"
我想使用 linuxdeployqt 工具,但是这个命令:
./linuxdeployqt-continuous-x86_64.AppImage /home/user/QtProjects/build-VPSTest-Desktop_Qt_5_6_0_GCC_64bit-Release/VPSTest
输出这个:
Not using FHS-like mode
app-binary: "/home/user/QtProjects/build-VPSTest-Desktop_Qt_5_6_0_GCC_64bit-Release/VPSTest"
appDirPath: "/home/user/QtProjects/build-VPSTest-Desktop_Qt_5_6_0_GCC_64bit-Release"
relativeBinPath: "VPSTest"
ERROR: ldd outputLine: "libicui18n.so.56 => not found"
ERROR: for binary: "/home/user/QtProjects/build-VPSTest-Desktop_Qt_5_6_0_GCC_64bit-Release/lib//libQt5Core.so.5"
ERROR: Please ensure that all libraries can be found by ldd. Aborting.
接下来我这样做了:
ldd libQt5Core.so.5
此命令输出:
linux-vdso.so.1 => (0x00007fff7e5c1000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff552c43000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff552a29000)
libicui18n.so.56 => not found
libicuuc.so.56 => not found
libicudata.so.56 => not found
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff552823000)
libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007ff552621000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff552419000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007ff552109000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff551d87000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff551a7f000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff551867000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff55149d000)
/lib64/ld-linux-x86-64.so.2 (0x0000562d67831000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007ff55122f000)
接下来我打开/home/user/Qt/5.6/gcc_64/lib/
,这是libQt5Core.so.5
的位置,当然我找到了libicui18n.so.56
、libicuuc.so.56
和libicudata.so.56
。
那么,我该如何解决这个问题并使用 linuxdeployqt 工具创建部署包?
我用了this solution:
PATH=/home/user/Qt/5.6/gcc_64/bin:$PATH
export PATH
我想使用 linuxdeployqt 工具,但是这个命令:
./linuxdeployqt-continuous-x86_64.AppImage /home/user/QtProjects/build-VPSTest-Desktop_Qt_5_6_0_GCC_64bit-Release/VPSTest
输出这个:
Not using FHS-like mode
app-binary: "/home/user/QtProjects/build-VPSTest-Desktop_Qt_5_6_0_GCC_64bit-Release/VPSTest"
appDirPath: "/home/user/QtProjects/build-VPSTest-Desktop_Qt_5_6_0_GCC_64bit-Release"
relativeBinPath: "VPSTest"
ERROR: ldd outputLine: "libicui18n.so.56 => not found"
ERROR: for binary: "/home/user/QtProjects/build-VPSTest-Desktop_Qt_5_6_0_GCC_64bit-Release/lib//libQt5Core.so.5"
ERROR: Please ensure that all libraries can be found by ldd. Aborting.
接下来我这样做了:
ldd libQt5Core.so.5
此命令输出:
linux-vdso.so.1 => (0x00007fff7e5c1000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff552c43000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff552a29000)
libicui18n.so.56 => not found
libicuuc.so.56 => not found
libicudata.so.56 => not found
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff552823000)
libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007ff552621000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff552419000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007ff552109000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff551d87000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff551a7f000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff551867000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff55149d000)
/lib64/ld-linux-x86-64.so.2 (0x0000562d67831000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007ff55122f000)
接下来我打开/home/user/Qt/5.6/gcc_64/lib/
,这是libQt5Core.so.5
的位置,当然我找到了libicui18n.so.56
、libicuuc.so.56
和libicudata.so.56
。
那么,我该如何解决这个问题并使用 linuxdeployqt 工具创建部署包?
我用了this solution:
PATH=/home/user/Qt/5.6/gcc_64/bin:$PATH
export PATH