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

Build on Windows using MSYS2? #826

Open
lxkurko opened this issue Jul 4, 2019 · 6 comments
Open

Build on Windows using MSYS2? #826

lxkurko opened this issue Jul 4, 2019 · 6 comments

Comments

@lxkurko
Copy link
Contributor

lxkurko commented Jul 4, 2019

I think it would be useful if Openlierox could be built on Windows using MSYS2+MinGW-w64. That way one could use the same tools as on Linux/Unix systems, and dependency management would be easier.

@albertz
Copy link
Owner

albertz commented Jul 4, 2019

Yes, definitely. I think actually we tried and tested that, and it worked (I don't remember how exactly; maybe it just worked right out of the box via CMake). However, as far as I remember, Karel said that the Visual Studio build had better performance (I mean the resulting openlierox.exe), and that is what matters most in the end.

@albertz
Copy link
Owner

albertz commented Jul 4, 2019

Ah, and another thing, which also matters: MSys2/MingW (I think using GCC) created different debug symbols than the normal VS build would do. And the crash handler which we used, which creates a nice human readable back trace, only worked with the VC debug symbols.

@albertz
Copy link
Owner

albertz commented Jul 4, 2019

@karelp maybe you also remember some other details.

@lxkurko
Copy link
Contributor Author

lxkurko commented Jul 9, 2019

Are there any configuration options that should be set when compiling (trying to compile) with MSYS2? I tried it quickly but it seems that it either fails to find the required headers or to identify the system properly.

@karelp
Copy link
Collaborator

karelp commented Jul 9, 2019

I've never tried to compile with MSYS2. As far as I remember, there were some _MSC_VER checks for Visual Studio in the code - some of them could be relevant to Windows as well. The header search paths will need to be transferred from the VS solution and you will also need proper static libraries (compiled for MingW) for all the dependencies. All in all I expect it to be a lot of work and the toolchain is still quite different from standard Unix/Linux tools, not sure it's worth the time investment.

@StrikerMan780
Copy link

StrikerMan780 commented Jan 9, 2023

If you guys could get this going, I'd be very grateful. I'd like to get a build of this compiled. I tried MSVC, but it's broken (According to MSVC, most of the source files are missing or pointing to the wrong path in the solution).

Also, seems the wiki for build instructions is dead.

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

No branches or pull requests

4 participants