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

Fail to build a test program with qt6 #1183

Closed
xq114 opened this issue Jan 4, 2021 · 2 comments
Closed

Fail to build a test program with qt6 #1183

xq114 opened this issue Jan 4, 2021 · 2 comments
Milestone

Comments

@xq114
Copy link
Contributor

xq114 commented Jan 4, 2021

Note: If you use the fuzzy expressions such as 'can't use/no effect/problem/error', but don't give any relevant auxiliary information according to the template below, this issue will be not replied.

Describe the bug

用Qt6无法编译测试程序qt.console

Expected behavior

正常编译

Error output

...
error: main.cpp
C:\Qt\6.0.0\msvc2019_64\include\QtCore/qglobal.h(379): error C7525: inline variables require at least '/std:c++17'
...

Related Environment

Please provide compiling and running environment information:

  • xmake version: 2.3.9
  • os: Windows 10
  • target platform: windows

Additional context

Qt6使用C++17,因此必须要用C++17的flag编译,而自动生成的测试程序使用的是C++11

@waruqi
Copy link
Member

waruqi commented Jan 4, 2021

qt6我没特别测过,应该需要做些适配调整才行,不过最近2.5.1开始收尾了,除非特别严重的问题或者不会花费太多时间就能解决的小问题

其他的都统一放到2.5.2处理

@waruqi waruqi added this to the v2.5.2 milestone Jan 4, 2021
@waruqi
Copy link
Member

waruqi commented Feb 5, 2021

可以了,dev上

@xq114 xq114 closed this as completed Feb 5, 2021
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