I'm trying to compile Chipmunk v6.2.2 for Linux Mips (CI20)
http://www.elinux.org/MIPS_Creator_CI20
and I'm doing the following:
Code: Select all
$ cmake -DCMAKE_TOOLCHAIN_FILE=/home/riq/tmp/linux-mips/mips-linux-gnu.cmake .
Code: Select all
# this one is important
SET(CMAKE_SYSTEM_NAME Linux)
#this one not so much
#SET(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_SYSROOT /home/riq/tmp/linux-mips)
set(CMAKE_STAGING_PREFIX /home/riq/linux-mips/stage)
# specify the cross compiler
SET(CMAKE_C_COMPILER /home/riq/MentorGraphics/Sourcery_CodeBench_Lite_for_MIPS_GNU_Linux/bin/mips-linux-gnu-gcc)
SET(CMAKE_CXX_COMPILER /home/riq/MentorGraphics/Sourcery_CodeBench_Lite_for_MIPS_GNU_Linux/bin/mips-linux-gnu-g++)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /home/riq/tmp/linux-mips)
# 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)
SET(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
Code: Select all
mips-linux-gnu-gcc: error: unrecognized command line option '-m32'
I guess I should be able to find the source of the bug, but if someone already knows where to loop, I would appreciate it. Thanks!