Skip to content
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

Draft
wants to merge 11 commits into
base: dev
Choose a base branch
from
Draft

update open3d #6284

wants to merge 11 commits into from

Conversation

xq114
Copy link
Contributor

@xq114 xq114 commented Feb 4, 2025

No description provided.

@xq114 xq114 marked this pull request as draft February 5, 2025 06:06
print(os.files(package:installdir("**")))

package:addenv("PATH", "bin")
package:addenv("PKG_CONFIG_PATH", path.join(package:installdir("lib"), "pkgconfig"))
Copy link
Member

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"))
Copy link
Member

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 这个是没必要

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你可以先提个 issues 过来,等改进完 package:check_importfiles 再使用它

Copy link
Member

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

https://github.com/xmake-io/xmake/blob/4532df4807f2f5dcee7dd1c7202cb9b47cb702ed/xmake/core/package/package.lua#L2734-L2746

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants