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

Windows下debug模式下依赖的第三方库没有将 compile.xxx.pdb 拷贝至lib目录下 #1845

Closed
fasiondog opened this issue Nov 21, 2021 · 6 comments
Milestone

Comments

@fasiondog
Copy link
Contributor

windows下依赖其他库时(可能也是xmake编译的,cmake的没试过)如:

target("AAA")
add_packages("xxxx")

此时用debug编译AAA,依赖的xxx库编译后,其compile.xxx.pdb没有拷贝至安装目录的lib下,导致最终链接时会报告警,如:
图片

@fasiondog fasiondog added the bug label Nov 21, 2021
@waruqi
Copy link
Member

waruqi commented Nov 21, 2021

请提供完整可复现的 demo

@fasiondog
Copy link
Contributor Author

add_rules("mode.debug", "mode.release")

add_requires("co", {configs={shared=false, debug=true}})

target("hello")
set_kind("binary")
add_packages("co")

add_files("src/*.cpp")

这样没有链接告警,但 .xmake 安装的packages/co lib 下确实没有 compile.co.pdb 文件。cache 下编译出的lib下是存在pdb文件的

@waruqi
Copy link
Member

waruqi commented Nov 23, 2021

目前包安装,还不会安装 库的 pdb 文件 等后续有时间改进吧,最近没啥空。

@waruqi waruqi added improvement and removed bug labels Nov 23, 2021
@waruqi
Copy link
Member

waruqi commented Dec 2, 2021

我改进过了,你更新下 xmake 再试试

@waruqi waruqi added this to the v2.6.1 milestone Dec 2, 2021
@waruqi
Copy link
Member

waruqi commented Dec 2, 2021

应该可以了的,不行再开

@waruqi waruqi closed this as completed Dec 2, 2021
@fasiondog
Copy link
Contributor Author

好的,谢谢

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

No branches or pull requests

2 participants