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

MSYS2 QT支持 #3433

Closed
zyppe opened this issue Feb 27, 2023 · 9 comments
Closed

MSYS2 QT支持 #3433

zyppe opened this issue Feb 27, 2023 · 9 comments

Comments

@zyppe
Copy link

zyppe commented Feb 27, 2023

你在什么场景下需要该功能?

MSYS2是一个非常常见的在Windows下用类似于Linux的操作模式开发的方案,内置有QT5/6与qtcreator,但似乎xmake并不支持MSYS2内置的QT。

描述可能的解决方案

按照类似于Linux的方式检测QT的SDK

描述你认为的候选方案

No response

其他信息

image

@waruqi
Copy link
Member

waruqi commented Feb 28, 2023

我看可以的么,你得打开 mingw64 的终端,或者手动切到 mingw 平台,xmake f -p mingw -c

你现在打开的 msys2 终端,非 mingw 环境,默认不是 mingw 平台,不会去找 mingw qt

image

@waruqi
Copy link
Member

waruqi commented Feb 28, 2023

mingw/msys2 原本就支持的,另外,我 dev 修复一些新版本 mingw toolchain 导致 stdlib.h 找不到的问题。其他也没啥了

xmake update -s dev

image

@waruqi waruqi added this to the v2.7.8 milestone Feb 28, 2023
@zyppe
Copy link
Author

zyppe commented Mar 1, 2023

我是用MSYS2里面的clang64平台的,估计UCRT64平台也会有这个问题

@zyppe
Copy link
Author

zyppe commented Mar 1, 2023

image
image
给您提供两张参考图

@zyppe
Copy link
Author

zyppe commented Mar 1, 2023

另外,我给我的qtcreator安装的xmake插件也是没有任何动作预计和这个有很大关系

@waruqi
Copy link
Member

waruqi commented Mar 1, 2023

我是用MSYS2里面的clang64平台的,估计UCRT64平台也会有这个问题

手动切到 mingw 平台,xmake f -p mingw -c

@waruqi
Copy link
Member

waruqi commented Mar 1, 2023

另外,我给我的qtcreator安装的xmake插件也是没有任何动作预计和这个有很大关系

这个是第三方插件,不是我搞的,你得找对应的 issues 上去问了。

@zyppe
Copy link
Author

zyppe commented Mar 2, 2023

可不可以顺带着把clang64和ucrt64也添加支持了

@waruqi
Copy link
Member

waruqi commented Mar 2, 2023

可不可以顺带着把clang64和ucrt64也添加支持了

目前不考虑,你切下 xmake f -p mingw 不就好了,也就一行命令的事情

@zyppe zyppe closed this as completed Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants