Replies: 1 comment 2 replies
-
正常,就是要重新下载编译,每个编译工具链生成的库 都是二进制不兼容的,还依赖编译器提供的一些 runtime,你不重新下载装,复用原有的库,最后 链接也过不了。。 就像 mingw 生成的静态库 msvc 去链接时不兼容,库格式不对。需要额外的格式转换才行。。 其他编译器也是如此。。所以不要想着怎么复用了,即使有些编译工具链生成的二进制完全兼容,但是目前 xmake 的包管理已经足够复杂,只能简单的对 toolchain 名,进行兼容性区分,是无法更进一步细粒度的去识别每个编译器之间兼容到什么地步,暂时也没精力去整这个。 |
Beta Was this translation helpful? Give feedback.
2 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.
-
Xmake 2.67, Win10
一开始直接用xrepo install boost下载boost,但发现只能用xmake -w 默认构建,如果指定了工具链就会提示还要下载boost。还有一个modify选项不知道是想修改啥,不过也没用
xmake全局配置:
然后就尝试用xrepo info/fetch --config 设置了vs_runtime和toolchain,但果然没解决问题。(其实我也不知道这个config在设置什么?希望文档完善一下
所以,我要怎么才能在指定了工具链参数后用上已经下载的boost库?其他问题还有为什么默认构建就可以?库和工具链有关系吗?构建过程中的modify选项是什么意思?xrepo info/fetch是展示信息,但是--config选项是是在配置什么?以及是不是不应该使用xrepo?
Beta Was this translation helpful? Give feedback.
All reactions