-
Xmake 版本2.7.3 操作系统版本和架构windows11 22h2 描述问题期待的结果静态库程序构建应该成功 工程配置附加信息和错误日志No response |
Beta Was this translation helpful? Give feedback.
Replies: 26 comments 3 replies
-
mingw clang最近才支持,更新到 dev xmake update dev 然后删了自定义的 toolchain,用内置的 clang toolchain |
Beta Was this translation helpful? Give feedback.
-
使用内置工具链的lua语法是什么呀 |
Beta Was this translation helpful? Give feedback.
-
set_toolchains("clang") 或者 xmake f --toolchain=clang |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
自己命令行执行下看看 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
参考这个操作下,给我个栈 |
Beta Was this translation helpful? Give feedback.
-
是在xmake.lua所在目录下创建一个test.lua文件并且文件内容是 |
Beta Was this translation helpful? Give feedback.
-
不是,参考 #2033 里面有详细说明 |
Beta Was this translation helpful? Give feedback.
-
XMAKE_PROFILE=stuck xmake f --toolchain=clang -vD -c |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
不要照搬 win下环境变量用 set 设置 |
Beta Was this translation helpful? Give feedback.
-
set XMAKE_PROFILE=stuck |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
锁住了,你有多个 xmake 进程,在同时操作编译这个项目 退掉所有 xmake进程,clion 什么的全退干净后再试 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
你到底是要用 vs 还是 clang 你 vscode 里面,我看用的 msys2 下的 clang ,为啥命令行下不同样到 msys/clang 下跑? 那就同样进到 msys 的 clang 环境执行,默认 cmd 当然没 clang 环境。。而且你也没装 vs |
Beta Was this translation helpful? Give feedback.
-
先确认你要用什么工具链,vs, msys2/mingw, msys2/clang 不同工具链,都是不一样的 |
Beta Was this translation helpful? Give feedback.
-
不是不用自定义工具链,用xmake内置工具链吗,我的ide是clion,这不是使用内置工具链clang吗 |
Beta Was this translation helpful? Give feedback.
-
我是说你现在安装了什么工具链?mingw? clang? 不同的工具链,不同的配置方式,我先要确认你装了啥,打算用哪个?你装的工具链不同,不同的用法 我又不知道你想用哪个,只能根据你最早配置了 d:/msys2/clang64 猜测你想用 msys2 下的 clang 环境,那你就得进到 msys2 shell 环境执行 xmake 命令,而不是 cmd |
Beta Was this translation helpful? Give feedback.
-
成功了!进msys2 shell使用xmake构建静态库成功了 |
Beta Was this translation helpful? Give feedback.
-
好像msys2的clang只能进clang64环境使用xmake才能构建成功 |
Beta Was this translation helpful? Give feedback.
-
大佬内置工具链是指xmake自带的工具链吗,如果是怎么使用 |
Beta Was this translation helpful? Give feedback.
-
内置工具链指的是工具链配置,xmake 本身不会自带工具链环境,你装了什么,就用什么,不用自己定义toolchain 想要自动拉取集成工具链,走包模式,参考 https://github.com/xmake-io/xmake/blob/master/tests/projects/package/toolchain_llvm/xmake.lua |
Beta Was this translation helpful? Give feedback.
-
总算懂了,如果要使用msys2的工具链,xmake也要用msys2的才行 |
Beta Was this translation helpful? Give feedback.
总算懂了,如果要使用msys2的工具链,xmake也要用msys2的才行