开发者

shared library path inconsistent from one host to another

开发者 https://www.devze.com 2022-12-24 15:10 出处:网络
I buil开发者_Python百科t my qt app so that all the Qt modules it uses are contained in the same directory as the executable.It works on the machine I used to build the app and I made sure to test this

I buil开发者_Python百科t my qt app so that all the Qt modules it uses are contained in the same directory as the executable. It works on the machine I used to build the app and I made sure to test this by removing those shared libraries everywhere except in the current directory of the app. Doing a ldd shows that its looking for those libraries in the current directory and putting the executable by itself fails to open the exectuable. So this is all good but when I transfer this directory to a host machine it still cant find those libraries. what could be the problem?


Is "." in the LD_LIBRARY_PATH on the 2nd machine?
Do you have the correct permissions on the library files?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号