Hi !
Tried to build SDL2 version for amigaos4 , and tryint to use CMAKE as i am on crosscompiler, so can use that one.
That what i tried:
cd friking-shark-master
mkdir build
cd build
cmake
-DCMAKE_SYSTEM_NAME=Generic
-DCMAKE_SYSTEM_VERSION=1
-DSDL=ON
-DCMAKE_C_COMPILER="/usr/local/amiga/bin/ppc-amigaos-gcc"
-DCMAKE_CXX_COMPILER="/usr/local/amiga/bin/ppc-amigaos-g++"
-DCMAKE_LINKER="/usr/local/amiga/bin/ppc-amigaos-ld"
-DCMAKE_AR="/usr/local/amiga/bin/ppc-amigaos-ar"
-DCMAKE_RANLIB="/usr/local/amiga/bin/ppc-amigaos-ranlib"
-DCMAKE_FIND_ROOT_PATH="/usr/local/amiga/ppc-amigaos/"
-DZLIB_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/common/include/"
-DZLIB_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/newlib/lib/libz.a"
-DPNG_PNG_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/common/include/libpng12/"
-DPNG_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/newlib/lib/libpng12.a"
-DOPENGL_gl_LIBRARY="libgl4es.a"
-DOPENAL_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/newlib/lib/libopenal.a"
-DOPENAL_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/common/include/AL/"
-DTIFF_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/common/include/"
-DTIFF_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/newlib/lib/libtiff.a"
-DJPEG_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/common/include/"
-DJPEG_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/newlib/lib/libjpeg_8b.a"
..
It the says :
CMake Error at CMakeLists.txt:21 (FIND_PACKAGE):
By not providing "FindSDL2.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "SDL2", but
CMake did not find one.
Could not find a package configuration file provided by "SDL2" with any of
the following names:
SDL2Config.cmake
sdl2-config.cmake
Add the installation prefix of "SDL2" to CMAKE_PREFIX_PATH or set
"SDL2_DIR" to a directory containing one of the above files. If "SDL2"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
I tried to remove from CMakeList.txt : FIND_PACKAGE(SDL2 REQUIRED) (as i will link everything manually at end anyway), so , it then cry about non possibility to build shared versions and will use static instead (that ok), but then at end:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
XINERAMA_LIBRARY
linked by target "GameGraphics" in directory /d/friking-shark-master
XRANDR_LIBARY
linked by target "GameGraphics" in directory /d/friking-shark-master
-- Configuring incomplete, errors occurred!
I probably can set them to some void nulls , but probably they need to be removed from CMake if "-DSDL=ON" is used ?