samstyle / Xpeccy

Multiplatform emulator of retro computers
MIT License
71 stars 13 forks source link

Compiling error with SDL2 MacOS #130

Open gorans opened 8 months ago

gorans commented 8 months ago

When doing cmake .. FindSDL2.cmake properly detects SDL version: -- SDL version : 2.x

but include directory is wrong: -- SDL2_INCLUDE_DIR = /Library/Frameworks/SDL.framework/Headers

should be -- SDL2_INCLUDE_DIR = /Library/Frameworks/SDL2.framework/Headers

Compiles if error is manually corrected in CMakeCache.txt

Also, OpenGL is not working/not updating screen. MacOS Monterey 12.7

Best regards, Goran

samstyle commented 8 months ago

I've found FindSDL2.cmake in the internets. Something must be wrong inside it, but i didn't found wrong lines...