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

Add instructions on how to compile native applications on windows #212

Open
JD557 opened this issue Apr 15, 2022 · 3 comments
Open

Add instructions on how to compile native applications on windows #212

JD557 opened this issue Apr 15, 2022 · 3 comments

Comments

@JD557
Copy link
Owner

JD557 commented Apr 15, 2022

Native applications on windows require some custom flags to correctly link SDL and the SDL.dll files.

@JD557
Copy link
Owner Author

JD557 commented Apr 9, 2023

It might be better to first get https://github.com/indoorvivants/sn-vcpkg working on windows.

@JD557
Copy link
Owner Author

JD557 commented May 27, 2023

Meanwhile, I remember another reason why I originally opened this issue: I have no idea how compile a Windows (not console) application with Scala Native.

I think I need to pass -Xlinker /subsystem:windows to the linker and then do some magic to get sdl_main/WinMain to work as expected.

There are some notes in https://wiki.libsdl.org/SDL2/FAQWindows that might be helpful.

@JD557
Copy link
Owner Author

JD557 commented May 27, 2023

Created scala-native/scala-native#3295 with some findings

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

1 participant