madpuppet / Mad64

c64 development environment
14 stars 0 forks source link

macOS builds #2

Closed ChristianWeyer closed 1 year ago

ChristianWeyer commented 1 year ago

Hey - what a fantastic project :-)

I am on an M1 ARM Mac. I am happy to help if you want to build this also for macOS (at least for ARM). In one of the Facebook groups, you said you have someone who already did that...?

Should we add instructions here?

Thanks, Christian

ChristianWeyer commented 1 year ago

Cool. Let's try this together. On which Discord are you?

ChristianWeyer commented 1 year ago

I installed the XCode command line tools, cmake, and SDL2.

And already run into an error 🤪:

➜  Mad64 git:(main) cmake --build build --config release
[  4%] Linking CXX executable Mad64
ld: library not found for -lSDL2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Mad64] Error 1
make[1]: *** [CMakeFiles/Mad64.dir/all] Error 2
make: *** [all] Error 2
ChristianWeyer commented 1 year ago

OK, one step further: I can compile it now. But when starting, I get a segmentation fault.

madpuppet commented 1 year ago

I assume you are on latest pull? I did have an issue a little while ago with it crashing the very first time you run because there is no settings file yet.

The second attempt to run would work.

Though that should be fixed now.

madpuppet commented 1 year ago

heh. I didn't know github automatically put all these emails on the issues database.

madpuppet commented 1 year ago

can you post your "log.txt" file... might be some clue there. I might need to add more logging to see where its crashing.

madpuppet commented 1 year ago

hey, I have another user that has done a fix for the segmentation fault issue. He should be submitting a pull request on the weekend.

ChristianWeyer commented 1 year ago

can you post your "log.txt" file... might be some clue there. I might need to add more logging to see where its crashing.

I don't think this helps 😉:

Load Settings file: /Users/christianweyer/Library/Application Support/madpuppet/mad64/settings.ini
Create Font: font.ttf