jjuran / metamage_1

Metamage open source, general repository, iteration 1
308 stars 27 forks source link

AMS compilation errors on Mojave #21

Closed briankendall closed 1 year ago

briankendall commented 1 year ago

I really want to give Advanced Mac Substitute a try -- seems like a really cool project! (And I love the name.)

However trying to compile it using make ams-quartz-demo on macOS 10.14 yields errors.

First I hit is right after cloning portaudio-mirror:

sh: line 0: cd: var/links: No such file or directory
v/bin/portaudio-pkg.vx:53
    ERROR: uncaught exception: (module [("command" => "cd var/links && ln -s ../../../portaudio-mirror"), ("exit" => 1)])
make: *** [sndtrack] Error 1

I can work around this with mkdir -p var/links

That gets things a little farther along, but then it breaks again with:

./build.pl -i graft mbin xv68k macvx minivx freemountd Amethyst Amphitheatre
...
CC    Nitrogen/Fonts.cc
nitric//Nitrogen/Fonts.cc:19:10: fatal error: 'missing/Fonts.h' file not found
#include "missing/Fonts.h"

Looks like that one is in an #ifdef MAC_OS_X_VERSION_10_7 and since this is not 10.7 I commented out the offending line, hoping that wasn't meant to apply to 10.7 and later.

Compilation continued until it hits another similar failing include:

CC    Nitrogen/Quickdraw.cc
In file included from nitric//Nitrogen/Quickdraw.cc:14:
nitric/Nitrogen/Quickdraw.hh:30:10: fatal error: 'missing/Quickdraw.h' file not found
#include "missing/Quickdraw.h"

Commenting out this line doesn't work though, as I get a ton of errors about missing old school QuickDraw constants. So I guess I needed those headers after all, though I can't find them anywhere.

Any idea what I need to do to get compilation to work?

briankendall commented 1 year ago

Actually I got farther on my own. I found the missing mac headers here and copied them into metamage_1/nitric/Nitrogen, metamage_1/mac/libs/mac-qd-utils/mac_qd, and metamage_1/mac/libs/mac-qd-utils/mac_qd/globals. Then compilation finished! I was able to run Nyanochrome Cat and Tic-tac-toe. So I got it to work, but it took some massaging.

jjuran commented 1 year ago

Hi, thanks for your interest in Advanced Mac Substitute, your thorough build bug reports, and your pluck in getting things to work anyway!

I've pushed 321133cab1d357fdd1cf3730ccaa197bf0eb4ffd (which patches portaudio-pkg.vx to create var/links if needed) and f91f0618855e6cf6e889e86ca8a0697c541e36e3 (which makes cloning the macward-compat repository a prerequisite of the build step that needs it).