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下安装QuickJS时,使用的工具链是MinGW64,但是安装时一开始就检查有没有安装VS,导致无法安装 #4963

Open
ruoleng opened this issue Aug 17, 2024 · 5 comments
Labels

Comments

@ruoleng
Copy link

ruoleng commented Aug 17, 2024

Xmake 版本

2.9.4

操作系统版本和架构

WIndows 10

描述问题

1.在没有安装Visual Studio的电脑上安装xmake;
2.用xrepo安装quickjs:

xrepo install quickjs

3.结果显示:
checking for Microsoft Visual Studio (x64) version ... no
error: target(working): toolchain not found!

期待的结果

能够正常安装。
因为QuickJS在Windows下安装是会自动拉取MinGW编译工具链的,不会使用到MSVC。

工程配置

无,不需要其他配置

附加信息和错误日志

D:\xmake>xrepo install quickjs
error: checking for platform ... windows
checking for architecture ... x64
checking for Microsoft Visual Studio (x64) version ... no
error: target(working): toolchain not found!

@ruoleng ruoleng added the bug label Aug 17, 2024
@waruqi waruqi transferred this issue from xmake-io/xrepo Aug 17, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: When installing QuickJS under Windows, the tool chain used is MinGW64, but at the beginning of the installation, it checks whether VS is installed, causing the installation to fail.

@star-hengxing
Copy link
Contributor

所以你应该使用 xrepo install -p mingw quickjs 或者 add_requires("quickjs") & xmake f -c -p mingw

@ruoleng
Copy link
Author

ruoleng commented Aug 22, 2024

所以你应该使用 xrepo install -p mingw quickjs 或者 add_requires("quickjs") & xmake f -c -p mingw

好的,谢谢。我试试看

@ruoleng
Copy link
Author

ruoleng commented Aug 22, 2024

D:\xmake>xrepo install -p mingw quickjs
error: checking for architecture ... x86_64
checking for mingw directory ... no
error: target(working): toolchain not found!

不安装VS就算指定了用mingw 还是会报错。
本意是想在另外一台电脑编译好quickjs,但是另外电脑是非开发电脑,没有VS。工作电脑因为有加密系统,安装失败,才在另外电脑尝试的。
有这种情况的是比较少

@star-hengxing
Copy link
Contributor

D:\xmake>xrepo install -p mingw quickjs
error: checking for architecture ... x86_64
checking for mingw directory ... no
error: target(working): toolchain not found!

不安装VS就算指定了用mingw 还是会报错。
本意是想在另外一台电脑编译好quickjs,但是另外电脑是非开发电脑,没有VS。工作电脑因为有加密系统,安装失败,才在另外电脑尝试的。
有这种情况的是比较少

你得指定 mingw 目录给 xmake
https://xmake.io/#/guide/configuration?id=mingw-toolchain

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

No branches or pull requests

3 participants