Spectere, on 05 July 2017 - 02:43 AM, said:
Basically, SDL2 changed the way that SDL_main works, which causes the SDLmain.m Objective-C wrapper included in MegaZeux to choke. Fortunately, MegaZeux seems to work just fine without it, at least with SDL2 (I haven't tried it on the PPC build, which still uses SDL1, since there was no real need).
To get rid of that dependency, edit src/Makefile.in and look for these two blocks:
ifeq (${PLATFORM},darwin)
mzx_objs += arch/darwin/SDLMain.o
mzx_ldflags += -framework Cocoa
endif
...and:
ifeq (${PLATFORM},darwin)
mzxrun_objs += arch/darwin/SDLMain.o
mzxrun_ldflags += -framework Cocoa
endif
Comment those out (using pound/hash signs) and it should link successfully.
Got it! Thanks for the help! I was now able to compile.
To note for other people facing the same issue, I also had to change /arch/darwin/Makefile.in, as the following blocks:
ifeq (${ARCH},i686)
CC := ${CROSS_COMPILE_X86_CC} -mmacosx-version-min=10.4
CXX := ${CROSS_COMPILE_X86_CXX} -mmacosx-version-min=10.4
REAL_ARCH := i686
were causing an error related to SDL2 requiring OS X 10.6 to function. Just changing -mmacosx-version-min=10.6 will suffice.