Replies: 1 comment 4 replies
-
走包编译,如果是 so 库加的。平常调试运行,直接走 如果要发布给其他人运行,走 不建议走 rpathdir 绑定,包的lib路径都是绝对路径,这样包卸载了,或者丢给其他用户运行,还是一样加载不起来的。 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
原以为
add_packages()
之后一切都可以正常连接,但是将自定义动态库编译成功后,用ldd 自定义动态库.so
无法找到需要链接的add_packages()
的lib中的动态库(显示not found),还需要手动add_rpathdirs("...lib")
添加安装包的lib的位置才可以,是本就应该这样做吗?还是xmake中有更规范的方案?谢谢Beta Was this translation helpful? Give feedback.
All reactions