-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
spdlog android 编译报错 #3493
Comments
Title: spdlog android compilation error |
cmake 的 find_package 不稳定,这里估计要 patch 一下 cmake,然后用 packagedeps 的方式传入构建 |
cmake's find_package is unstable. It is estimated that you need to patch cmake and then use packagedeps to pass it into the build. |
|
|
It will be passed here. . https://github.com/xmake-io/xmake/blob/80af97d2fb131d6c8a4eaff114035ecc578499e5/xmake/modules/package/tools/cmake.lua#L811 |
嗯,我在xmake添加了依赖库路径打印,可以看到Windows和Android都设置了下去。 msvc:
android:
|
xmake 是环境变量传进去的,所以 cmake 没输出。 |
xmake is passed in environment variables, so cmake has no output. |
嗯,我去库作者那边问问,我本地用cmake编译也不行 |
Well, I'll ask the library author. It doesn't work if I use cmake to compile locally. |
Xmake 版本
2.8.6
操作系统版本和架构
windows10
描述问题
spdlog 编译的时候使用fmt库,
add_requires("spdlog v1.13.0", { configs = { header_only = false, fmt_external = true } })
但是自带的cmake config 的时候会出现找不到fmt config 信息:
编译windows版本的时候就不会有这个问题,fmt 安装包路径的配置信息是不是要传递给spdlog
期待的结果
spdlog使用fmt的情况下编译通过
工程配置
add_requires("spdlog v1.13.0", { configs = { header_only = false, fmt_external = true } })
附加信息和错误日志
The text was updated successfully, but these errors were encountered: