-
-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update open3d #6284
base: dev
Are you sure you want to change the base?
update open3d #6284
Conversation
packages/l/libxkbcommon/xmake.lua
Outdated
print(os.files(package:installdir("**"))) | ||
|
||
package:addenv("PATH", "bin") | ||
package:addenv("PKG_CONFIG_PATH", path.join(package:installdir("lib"), "pkgconfig")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use relative path
import("package.tools.meson").install(package, configs) | ||
|
||
package:addenv("PATH", "bin") | ||
package:addenv("PKG_CONFIG_PATH", path.join("lib", "pkgconfig")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
其实这里不应该设置 PKG_CONFIG_PATH
目前 PKG_CONFIG_PATH 都是自动设置的,但是是在 调用 cmake/meson.install 安装包的时候,才会去从 依赖包中,提取 lib 路径设置 PKG_CONFIG_PATH 到 cmake/meson
所以 package:check_importfiles 中有可能检测不到库。应该改进 package:check_importfiles,也按类似的方式引入 PKG_CONFIG_PATH 才对。
这里直接对外导出 PKG_CONFIG_PATH 会污染 用户测 add_packages 后的所有脚本环境,对用户端 target 这个是没必要
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你可以先提个 issues 过来,等改进完 package:check_importfiles 再使用它
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不对,check_importfiles 已经加上 PKG_CONFIG_PATH 了,按理应该能 work ,为啥你这还要额外设置 PKG_CONFIG_PATH
No description provided.