dalerank / Akhenaten

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

Cannot Install on Ubuntu 20 #155

Open whipowill opened 1 month ago

whipowill commented 1 month ago

I tried the appImage and it wouldn't work. I then tried to compile the game myself:

Scanning dependencies of target akhenaten
[ 20%] Building CXX object CMakeFiles/akhenaten.dir/src/platform/akhenaten.cpp.o
In file included from /usr/include/SDL2/SDL.h:59,
                 from /home/whipowill/Games/Linux/Akhenaten/src/platform/keyboard_input.h:3,
                 from /home/whipowill/Games/Linux/Akhenaten/src/platform/akhenaten.cpp:22:
/usr/include/SDL2/SDL_version.h:107:26: error: static assertion failed
  107 |     (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))
      |     ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/whipowill/Games/Linux/Akhenaten/src/platform/akhenaten.cpp:67:15: note: in expansion of macro ‘SDL_VERSION_ATLEAST’
   67 | static_assert(SDL_VERSION_ATLEAST(2, 0, 17));
      |               ^~~~~~~~~~~~~~~~~~~
cc1plus: warning: unrecognized command line option ‘-Wno-c++11-narrowing’
make[2]: *** [CMakeFiles/akhenaten.dir/build.make:63: CMakeFiles/akhenaten.dir/src/platform/akhenaten.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:165: CMakeFiles/akhenaten.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

I'm on Zorin 16 which is based on Ubunutu 20. I've tried exhaustively to get the original game to work on Wine and I can't get that to work either!

dalerank commented 1 month ago

@whipowill old SDL2? seems need to investigate which minimal version can be used

whipowill commented 1 month ago

Let me know how I can help. When I run the akhenaten.linux file I get this:

./akhenaten.linux: error while loading shared libraries: libcpptrace.so: cannot open shared object file: No such file or directory
whipowill commented 1 month ago

For what it's worth, I got the Windows version working just fine using Wine. So I am going to play with that. Let me know if you want me to test anything with your Linux side of things. The Augustus mod comes with a nice little AppImage file that works perfectly on Linux.

dalerank commented 1 month ago

Can you fix it? I'm not a Linux man ;)

EdvinLndh commented 1 month ago

@whipowill What version do you get if you run sdl2-config --version in the terminal? If you get a version below 2.0.17 you might have to install SDL2 using their github.