I'm trying to compile this git repo on my OSX. The only non-standard library it requires is SDL.
I've installed SDL with brew install sdl
and compiled without errors with gcc -o chip8 chip8.c -lSDL -L /usr/local/lib
.
On execution I get the following:
users-MBP:Chip-8-Emulator user$ ./chip8
dyld: Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
Expected in: /usr/local/lib/libJPEG.dylib
in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
I appear to have everything in place though:
$ ls /usr/local/lib
...
libSDL-1.2.0.dylib
libSDL.a
libSDL.dylib
libSDLmain.a
libjpeg.a
libjpeg.dylib
libjpeg.8.dylib
...
EDIT
While the error in the suggested duplicate is identical, the origin of the problem is likely different and the accepted answer on that post provides no help in my case.