-
Notifications
You must be signed in to change notification settings - Fork 59
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
Consider moving to CMake #242
Comments
That's a good idea, please contribute code if you have some details in mind. Thanks! |
Please have a look at https://github.com/xaos-project/XaoS/blob/master/CMakeLists.txt -- it may work on Mac automatically. Thanks to Werner Volken for the first version of this configuration file. |
I'm getting:
But I did not look into it in detail. |
Yes, I'm fighting with the same issue. Thanks for the feedback. |
I didn't look in the CMake file, but it seems that |
So this is wrong:
Apple does not distribute GCC. There is no way to force GCC on macOS. GCC can only be installed from other sources (MacPorts, Homebrew and the like). |
I can get around this by removing the above-mentioned two lines, but then I run into other issues which may not be related to XaoS. I'm getting this when using GCC 13 installed with MacPorts:
As you can see the complaint is about Qt code, not XaoS code. |
I try to force it like this (on GitHub Actions):
But still I get the error with the |
The current version compiles on both Linux and Mac. On Linux it is possible to start cmake with the |
When I try to build with CMake on macOS, I get the following warning:
The build does succeed though, and the app runs. |
The current snapshot can successullfy build a Linux native and also a WebAssembly version. For the long term, I think we can obsolete qmake and use cmake as primary build platform. |
Is your feature request related to a problem? Please describe.
XaoS has moved to Qt 6. The standard build system from Qt 6 is CMake, not qmake. Some package systems, such as MacPorts, do not have good support for qmake with Qt 6. Packaging XaoS 4.3+ would be much easier if it used CMake.
Describe the solution you'd like
Transition to a CMake-based build system.
Describe alternatives you've considered
To continue using qmake is troublesome and time consuming to set up with some package managers, such as MacPorts.
Additional context
—
The text was updated successfully, but these errors were encountered: