dbanay/Smalltalk

Bit of a hint for MacOS compilation

gypsydave5 opened this issue · 0 comments

Not really an issue, but I had some struggles last night with building this for MacOS so I thought I'd let you know in case you wanted to update the documentation. I'm terrible at C++ so it may well have been my fault.

The Makefile was using sdl2-config --cflags to add -L/opt/homebrew/include/SDL2 to the include path. This wasn't working - I'm assuming because #include "SDL2/SDL.h" was trying to look for an SDL2 directory inside SDL2. I changed the flag to -L/opt/homebrew/include and it compiled and ran just fine.

As I say, might just be me doing something else wrong 🤷.

Really looking forward to going through the blue and red books using this - thank you so much!