Qt程序不检测库 [英] Qt program does not detect libraries

查看:142
本文介绍了Qt程序不检测库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Qt应用程序,并包括在build目录中所需的必要的库。当我尝试从不同的计算机运行应用程序时,它不工作。

I built a Qt application and included the necessary libraries needed in the build directory. When I try to run the application from a different computer, it doesn't work.

这是 ldd 输出:

linux-vdso.so.1 =>  (0x00007fff8c7fe000)
libQt5Widgets.so.5 => not found
libQt5Gui.so.5 => not found
libQt5Core.so.5 => not found
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f5cb4143000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f5cb3f2d000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5cb3b6c000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5cb3870000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5cb4456000)

找不到的文件与二进制文件在同一目录中。

The files not found are in the same directory as the binary. How do I make them detectable?

推荐答案

在Linux上,当前的二进制指令不是加载器查找共享库的地方。请参阅此问题: http://serverfault.com/ questions / 279068 / cant-find-so-in-the-same-directory-as-the-executable

On Linux current binary directiry is not the place where the loader looks for shared libraries. See this question: http://serverfault.com/questions/279068/cant-find-so-in-the-same-directory-as-the-executable

这篇关于Qt程序不检测库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆