Csound Csound-dev Csound-tekno Search About

[Cs-dev] Build Csnd6 on Raspberry

Date2013-07-25 17:56
FromAlex Hofmann
Subject[Cs-dev] Build Csnd6 on Raspberry
AttachmentsNone  None  
Hi,

I've build CSnd6 on a Raspberry Pi today, but had some trouble with Cmake and the compiler, I'd like to report.
With the standard cmake, make.. the following error occured:
"cc1: error: unrecognized command line option ‘-mfpmath=sse’"

I replaced in “CMakeLists.txt” lines 1014 &1015:

 1014      add_compiler_flags(${libcsound_CFLAGS} -fvisibility=hidden

 1015         -ffast-math -mfpmath=sse -fomit-frame-pointer TARGETS ${CSOUNDLIB})


by:         add_compiler_flags(${libcsound_CFLAGS} TARGETS ${CSOUNDLIB})
Than it worked. And runs nicely on the Raspberry! :-)


Seems like the Rasp does not support scalar floating point instructions present in the SSE instruction set. Maybe to disable SSE could be an additional Cmake option?


Best wishes,
Alex