Pake icon indicating copy to clipboard operation
Pake copied to clipboard

打包window提示错误 error: linker `link.exe` not found

Open ankylau opened this issue 2 years ago • 6 comments

您好,MAC M1 打包 window版本 提示:

error: linker link.exe not found | = note: No such file or directory (os error 2)

note: the msvc targets depend on the msvc linker but link.exe was not found

note: please ensure that VS 2013, VS 2015, VS 2017, VS 2019 or VS 2022 was installed with the Visual C++ option

error: could not compile app due to previous error Error failed to build app: failed to build app

打包MAC app 正常打包。

ankylau avatar Nov 20 '22 12:11 ankylau

需要用 cross 進行跨平台打包。

pan93412 avatar Nov 20 '22 12:11 pan93412

需要用 cross 進行跨平台打包。

能具体说一下怎么操作吗?

ankylau avatar Nov 20 '22 12:11 ankylau

中国朋友可以参考这个:

  1. 确保安装了:https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/ 企业微信截图_16699531464778

  2. 修改 tauri.conf.json

"bundle": {
"windows": {
    "wix": {
      "language": "zh-CN" // 语言修改成中文
    }
  }
}

https://github.com/tauri-apps/tauri/issues/1976

shunyue1320 avatar Dec 02 '22 04:12 shunyue1320

同求如何解决 mac怎么装c++布丁 作者能看下https://gist.github.com/Mefistophell/9787e1b6d2d9441c16d2ac79d6a505e6 有解吗

lanbosm avatar Dec 03 '22 17:12 lanbosm

同求如何解决 mac怎么装c++布丁 作者能看下https://gist.github.com/Mefistophell/9787e1b6d2d9441c16d2ac79d6a505e6 有解吗

不建议折腾,windows的tauri需要Vs20xx环境和win10/win11 sdk,所以其它系统是折腾不了的。

Tlntin avatar Dec 08 '22 01:12 Tlntin

good thankyou you idea

niuhuheyi avatar Dec 11 '22 15:12 niuhuheyi