How to create relocatable Apps

无人久伴 提交于 2019-12-24 01:39:38

问题


hope someone can help me. I have something programed in python. That uses a lot of libraries. So I created a virtual environment with virtualenv and copied every file is needed in this environment. Then I used Platypus to create an .app. Of corse the app isn't working, because if you use otool -L on a .so or .dylib then the linking points to the original install location. Know I can use install_name_tool and set the new absolute path, the app works now, but is not relocatable. After a bit reading I find out, that you can set -rpath for Mac OS X 10.5+. So I changed the paths to @rpath/lib/...dylib and startet the app with

-rpath @loader_path/../Resources/virt1

But it isn't working. So I'm missing something or doing something wrong?

来源:https://stackoverflow.com/questions/5368753/how-to-create-relocatable-apps

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!