这是我在运行自己写的qt程序时,爆出的错误,从错误的地方来看,是我们的库中缺少一个libts-0.0.so.0的动态库,如果开发经验比较丰富的人都会知道这个库是tslib的一个库,而我们做tslib移植的时候却没有移植进去这个库,这个库在什么地方呢,它也是藏得比较隐蔽,这可能在windonw系统下边如果隐藏了,我们很难找到,可是我们是linux系统,找一个文件还是很方便的只需要一条指令我们就可以轻松搞定他在哪,find / -name libts-0.0.so.0,找到这个库后进入到这个库所在的目录,我们先不要着急的将它复制到开发板上,我们先查看一下它的详细信息,一般我们会使用ls libts-0.0.so.0 -la,我们会发现其实libts-0.0.so.0只是一个库的软连接,所以只把它给复制到开发板的库中起不到热河作用,我们必须将他的所连接到的那个实质的库也得复制到开发板的库中,这样我们才可以让我们的qt程序顺利的跑起来。具体这个库tslib的什么地方呢,请看下图:
相关文章
- centos6报错ls: error while loading shared libraries: libc.so.6: cannot open shared object file
- 运行编译后的程序报错 error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file or d
- mongodb 安装错误error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No
- 运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No s
- error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or d
- 解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- 编译Uboot时提示error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
- Android zipalign: error while loading shared libraries: libc++.so: cannot open shared object file: