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

Best compiler for Windows 10 #33

Open
sulheru opened this issue Aug 18, 2021 · 3 comments
Open

Best compiler for Windows 10 #33

sulheru opened this issue Aug 18, 2021 · 3 comments

Comments

@sulheru
Copy link

sulheru commented Aug 18, 2021

I'm not very used to compile C projects in Windows except for those made in Microsoft VS. But importing your source code to VS has proven to have to many issues. So instead of working problems out of a perfectly made code I would like you to recommend me a windows compiler for your code. Thanks in advance for your help.

@MikeDX
Copy link
Collaborator

MikeDX commented Aug 19, 2021

When I originally started this port, Daniel had a lot of success compiling this for windows using visual studio. I believe VS-Code does things quite differently but it should be easy to setup a project solution to make everything work as it uses very standardised tools and libraries such as cmake and SDL2. The only thing you may need to be mindful of is the #define directives that tell DIV what to do or what to include when it is being compiled for windows.

If I get a chance I will try to compile for windows myself but as I rarely use windows anymore this could be a while!

@MikeDX
Copy link
Collaborator

MikeDX commented Aug 23, 2021

I've spent a little while trying to get this working under msys2 in windows and using visual studio 2017 but not much luck.

The best way to compile div for windows at the moment is cross compile from linux, which is not really ideal for most people, that's why we have the build-bot that produces the archives you see on https://div-arena.co.uk/downloads/nightly

We may get a better way to do things in future, as I am working on another port which will run everywhere :)

@CicTec
Copy link
Contributor

CicTec commented Oct 17, 2021

Hello Mike,

The porting of cmake to work with msys2 in windows I have been developing it for a long time, some minor changes should be made so that the compilation in Linux does not break, if you need the cmakelists file I will send it to you.

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

3 participants