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

Probably only builds on Linux and macOS. #1

Open
mckaygerhard opened this issue Oct 29, 2022 · 5 comments
Open

Probably only builds on Linux and macOS. #1

mckaygerhard opened this issue Oct 29, 2022 · 5 comments

Comments

@mckaygerhard
Copy link

mckaygerhard commented Oct 29, 2022

As must be 👍 only builds on linux and mac! and.. Great emulator!

@Margen67
Copy link
Contributor

Confirmed: https://github.com/Margen67/smolnes/actions/runs/3355528559/jobs/5559859029#step:4:9

2022-10-30T12:52:20.4661888Z cc -O2 -Wall -o smolnes smolnes.cc -lSDL2 -g -Wno-parentheses -Wno-misleading-indentation -Wno-bool-operation
2022-10-30T12:52:20.6145668Z smolnes.cc:2:102: fatal error: sys/mman.h: No such file or directory
2022-10-30T12:52:20.6146462Z     2 | #include                                                                                             <sys/mman.h> /*    SMOLNES by Ben Smith (Oct 2022)    */
2022-10-30T12:52:20.6148551Z       |                                                                                                      ^~~~~~~~~~~~
2022-10-30T12:52:20.6149324Z compilation terminated.

@binji
Copy link
Owner

binji commented Oct 30, 2022

As mentioned in this reddit comment, I could probably get rid of mmap by using SDL's built-in file reading stuff. I might give it a shot.

@binji
Copy link
Owner

binji commented Nov 1, 2022

Ended up doing it in 8f09486.

@obfuscatedgenerated
Copy link

Managed to get it to build on Windows with mingw using these flags :)

cc smolnes.c -O2 -Wl,-subsystem,windows -lmingw32 -lSDL2main -lSDL2 -o smolnes

@xrip
Copy link

xrip commented Mar 6, 2024

You can try to use my fork of smolnes with win32 build without any dependencies
https://github.com/xrip/smolnes-win32

standalone binary would have size of less than 64kb

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

5 participants