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

Windows build with Msys2/MinGW64 #330

Open
vryy opened this issue Dec 2, 2024 · 4 comments
Open

Windows build with Msys2/MinGW64 #330

vryy opened this issue Dec 2, 2024 · 4 comments

Comments

@vryy
Copy link

vryy commented Dec 2, 2024

It seems that the instruction to compile on Windows (see #26) is outdated. I looked at INSTALL_WINDOWS and saw the line numbers are not correct anymore. Also, in sc.h and p4est_algorithms.c there is code like defined _WIN32. So is the native build with Visual Studio supported or still experimental?

@sloede
Copy link
Contributor

sloede commented Dec 3, 2024

I don't know about native builds using VS, but note that we still build p4est regularly using MinGW as part of Julia's BinaryBuilder stack (such that p4est is available as a library in Julia without user compilation).

This is essentially the build script being used, maybe it can be of use for you to get started:
https://github.com/JuliaPackaging/Yggdrasil/blob/494a78263c891933191a3c6308420036a243357d/P/P4est/build_tarballs.jl#L19-L65

@cburstedde
Copy link
Owner

Thanks to both of you, the INSTALL_WINDOWS file is indeed horribly outdated. If, maybe, the two of you might come up with a new version of that file according to your present experience, that would be highly appreciated!

@vryy
Copy link
Author

vryy commented Jan 8, 2025

@cburstedde I could manage to compile with MinGW but got lots of strange errors down the line when linking to my project, so I end up compiled natively using VStudio. That works flawlessly. I could upload the details in the future since I was now in travel.

@cburstedde
Copy link
Owner

cburstedde commented Jan 9, 2025

@cburstedde I could manage to compile with MinGW but got lots of strange errors down the line when linking to my project, so I end up compiled natively using VStudio. That works flawlessly. I could upload the details in the future since I was now in travel.

Thanks! It would be nice if we could come up with working guidelines for MinGW. Nonetheless, good documentation for VStudio (and removing anything that does not work from the docs) would be highly appreciated!

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

3 participants