dalerank / Akhenaten

Pharaoh (1999, open source engine)
GNU Affero General Public License v3.0
205 stars 12 forks source link

Cmake fails on macOS #158

Open nowavve opened 2 weeks ago

nowavve commented 2 weeks ago

Describe the bug, the steps to reproduce, and if possible attach a saved game that show the wrong behavior and akhenaten.ini file to show which options are being used.

Building from source with cmake (ver. 3.30) fails on macOs 12.7.6 with multiple errors, mostly:

-"unknown compiler" -"unknown type name 'GLenum'; did you mean 'enum'?"

see https://pastebin.com/jEThhp8w I'd help but I don't really know where to start.

dalerank commented 2 weeks ago

Hello @nowavve, for start try to exclude using filters on MacOS it should be easy, see how it wrapped for android after that we can see what happens with compiler (link unexist) Thanks

dalerank commented 2 weeks ago

If you said about this error so I think clang15 path was changed and need to fix that

100  220k  100  220k    0     0   894k      0 --:--:-- --:--:-- --:--:--  895k
Installing framework: /Volumes/SDL2_image/SDL2_image.framework
"disk4" ejected.
CMake Error at /opt/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/CMakeDetermineCXXCompiler.cmake:48 (message):
  Could not find compiler set in environment variable CXX:

  /usr/local/opt/llvm@15/bin/clang++.

Call Stack (most recent call first):
  CMakeLists.txt:31 (project)