I’m trying to cross compile ORC so I may use it during compilation of
UHD driver and GNURADIO.
When cross compiling on Ubuntu 12.04 x86-64 for ARM I get the following
./configure --host=arm-linux-gnueabihf --build=arm-linux-gnueabihf
cxxflags="-mcpu=cortex-a8 -mfpu=neon -funsafe-math-optimizations
-mfloat-abi=hard " cflags="-mcpu=cortex-a8 -mfpu=neon
-funsafe-math-optimizations -mfloat-abi=hard "
orc_arm_get_cpu_flags is defined in orcarm.h and all the headers are or
$ORC_ROOT/orc but when it needs this one header is cannot find it. I’ve
made sure #include orcarm.h is in orcarm.c but it cannot find it during
So I then manually define it with: -Iorc/orcarm.h during the ./configure
process and it still doesn’t find it.
ORC 0.4.18 compiles just fine natively on both x86-64 and ARM so my
workaround is to just compile natively on the ARM platform and copy over
the necessary ARM files to the x86 cross compile environment so UHD and
GNURADIO can use them.
Any ideas why ORC won’t cross compile?