Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
51 user(s) are online (38 user(s) are browsing Forums)

Members: 2
Guests: 49

salass00, Rigo, more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: Help Joerg

Subject: Re: Help Joerg
by LiveForIt on 2010/7/19 17:06:27

@all

This is my tool-chain file, if any one like to try.

After runing cmake and ccmake you will notice the generated_link directory contains lots of soft likes, the problem is that the soft links points to wrong files in source code truck, this has to be manually sorted out.

---- start of the tool-chain file ----

INCLUDE(CMakeForceCompiler)
SET (USE_I18N GENERIC)
SET (USE_FONTS AMIGAOS4)
SET (USE_GRAPHICS AMIGAOS4)
SET (USE_THREADS NONE)

SET (JPEG_LIBRARY /usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib)
SET (JPEG_INCLUDE_DIR /usr/local/amiga/ppc-amigaos/SDK/include)

SET (CMAKE_FORCE_C_COMPILER powerpc-elf-gcc)
SET (CMAKE_FORCE_CXX_COMPILER powerpc-elf-g++)
SET (CMAKE_FIND_ROOT_PATH /usr/local/amiga/ppc-amigaos/SDK/local/newlib)
SET (CMAKE_CXX_FLAGS "-shared -fPIC -DPIC -I/usr/local/amiga/ppc-amigaos/SDK/local/newlib/include -I/usr/local/amiga/ppc-amigaos/SDK/local/common/include/cairo")
SET (CMAKE_CXX_COMPILER_WORKS ON)
SET (CMAKE_CXX_COMPILER_FORCED ON)
SET (CMAKE_INSTALL_PREFIX "/usr/local/amiga/ppc-amigaos/SDK/local/newlib")
SET (CMAKE_VERBOSE_MAKEFILE ON)

SET (ENABLE_SVG ON)

# this one is important
SET(CMAKE_SYSTEM AMIGAOS4)
SET(CMAKE_SYSTEM_NAME AMIGAOS4)
SET(CMAKE_SYSTEM_PROCESSOR powerpc)

SET(CMAKE_CROSSCOMPILING "TRUE")
SET(CMAKE_SYSTEM_LOADED 1)

SET(LINK_FLAGS -use-dynld)

# specify the cross compiler
SET(CMAKE_C_COMPILER /usr/local/amiga/bin/ppc-amigaos-gcc)
SET(CMAKE_CXX_COMPILER /usr/local/amiga/bin/ppc-amigaos-g++)
SET(CMAKE_RANLIB /usr/local/amiga/bin/ppc-amigaos-ranlib)
SET(CMAKE_AS /usr/local/amiga/bin/ppc-amigaos-ar)
SET(CMAKE_LINKER /usr/local/amiga/bin/ppc-amigaos-ld)
SET(CMAKE_STRIP /usr/local/amiga/bin/ppc-amigaos-strip)

# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /usr/local/amiga/ppc-amigaos/SDK)

# 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)
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project