[CMake] Problem compiling commander-genius (cross compiling)
AmigaBlitter
amiblit at gmail.com
Fri Feb 9 03:52:30 EST 2018
Hello everyone,
i'm new to this forum.
I'm trying to port Commander-Genius
(https://github.com/gerstrong/Commander-Genius) to an exotic platform -
AmigaOS 4.1 PPC.
I created a toolchain file to specify what compiler i'm using as follow:
ToolChain files
# this one is important
SET(CMAKE_SYSTEM_NAME AmigaOS)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)
# specify the cross compiler
SET(CMAKE_C_COMPILER
/usr/local/amiga/adtools-ppc-uwin64-20170623-404/bin/ppc-amigaos-gcc)
SET(CMAKE_CXX_COMPILER
/usr/local/amiga/adtools-ppc-uwin64-20170623-404/bin/ppc-amigaos-g++)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /usr/local/amiga/adtools-ppc-uwin64-20170623-404)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
Issuing cmake -DCMAKE_TOOLCHAIN_FILE=./Toolchain-ppc-amigaos.cmake
-DUSE_SDL2=yes
Compilations starts, but at the end i get some messages as follow:
usr/bin/ld: /SDK/local/newlib/lib/libSDL2.so: Relocations in generic ELF
(EM: 20)
Could someone give me an hint?
Kind regards
--
Sent from: http://cmake.3232098.n2.nabble.com/
More information about the CMake
mailing list