3 ms·
For a recent macOS version, do: 0) Make sure you have a recent Xcode installed 1) Install the libsdl2 and libsdl2_ttf frameworks under /Library/Frameworks
by antimass 9y ago
For a recent macOS version, do:
0) Make sure you have a recent Xcode installed
1) Install the libsdl2 and libsdl2_ttf frameworks under /Library/Frameworks
libsdl2: https://www.libsdl.org/release/SDL2-2.0.6.dmg
sdl2+ttf: https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.dmg
2) git clone https://github.com/vygr/ChrysaLisp.git https://github.com/vygr/ChrysaLisp.git ChrysaLisp
3) cd ChrysaLisp
4) make (takes about 2s!!)
5) ./run.sh (shows full working gui. Amazing!)
- schpaencoder 9y agoGetting SDL2 to be recognized under MacOS is no joy
- scottyelich 9y agocorrect. I figured out where the frameworks wanted to go -- and it even seems to match the path for -I, but that doesn't seem to be enough. -- Yes, I have both frameworks installed. I even did the brew commands just for S&G ... same result after make command.
- antimass 9y agoThis is what I have under "/Library/Frameworks": antimass@gem:~$ ls /Library/Frameworks/SDL* drwxr-xr-x@ 22 Sep 14:54 SDL2.framework drwxr-xr-x@ 1 Feb 2016 SDL2_ttf.framework antimass@gem:~$ Wouldn't compile till I added in those SDL frameworks. Note: I also have done 'brew install sdl2' and 'brew install sdl2_ttf' in the past, so maybe you also need those?
- coliveira 9y agobrew will install SDL2 in a "unix" fashion, which should work if the makefile is written this way. The Framework version is the "Mac" way that is recognized by Xcode. The makefile for this project was created using the framework version.
- deleted 9y ago[deleted]
- schpaencoder 9y agoTry; xcode-select install
- deleted 9y ago[deleted]
- scottyelich 9y agoI ended up changing the "cc" line for darwin to this: cc -o $@ $@.o -lSDL2 -lSDL2_ttf now it compiles (and runs) just fine (for me). YMMV