Closed yvan1990 closed 1 year ago
This could be related to: https://github.com/snesrev/zelda3/issues/266
This could be related to: #266
While there does seem to be some correlation, the most important factor seems to be that some outdated coding methods were used. Not being fluent in C myself, I don’t know if this was for either backwards or cross-platform compatibility, but it’s possible that there may need to be an entirely different fork for the Mac port to address this issue.
Wandering into the Makefile and adding -Wno-strict-prototypes
to CFLAGS
mitigates this for now, at least.
This is replicable by building on any platform with Clang 15, looks like, and will likely become more critical after C2x ships and some platform starts using it by default.
Thank you! That got things running.
Duplicate of https://github.com/snesrev/zelda3/issues/251
make -j $(sysctl -n hw.ncpu)
is what you would use for mac, or just enter your number of threads.
Mark as closed if resolved
@qurious-pixel
make -j $(sysctl -n hw.ncpu)
is what’s used in lieu of make -j $(nproc)
on mac.That still doesn’t resolve the issue of needing to add -Wno-strict-prototypes
to CFLAGS
.
Sorry about not closing the topic before.
Describe your bug here. And how to reproduce it.
All listed methods for producing the build on Mac aren't working for me
Just typing "make" into the terminal produces this error:
While typing "make -j$(nproc)" results in this error:
And finally, entering "clang++
sdl2-config --cflags
-O2 -ozelda3 .c snes/.csdl2-config --libs
" generates the following output:So I tried changing it to "clang++
sdl2-config --cflags
-O2 -ozelda3 snes/*.csdl2-config --libs
" which generated the following output:What is your build target?
Mac