I am trying to run the Armadillo Linear Algebra package on my Altera Cyclone V.
Armadillo: C++ linear algebra library
I get it to work with general Linux GCC and it runs on my Red Hat computer
Invoking: GCC C++ Compilerg++ -I/usr/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/Armadillo_Test.d" -MT"src/Armadillo_Test.d" -o "src/Armadillo_Test.o" "../src/Armadillo_Test.cpp"Finished building: ../src/Armadillo_Test.cpp Building target: Armadillo_TestInvoking: GCC C++ Linkerg++ -L/usr/lib64 -o "Armadillo_Test" ./src/Armadillo_Test.o -lm -larmadillo -llapack -lblas -larpackFinished building target: Armadillo_Test
When I try to use the DS5 tool chain I get
Invoking: GCC C++ Compiler
arm-linux-gnueabihf-g++ -I/usr/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/Armadillo_Test.d" -MT"src/Armadillo_Test.d" -o "src/Armadillo_Test.o" "../src/Armadillo_Test.cpp"
Finished building: ../src/Armadillo_Test.cpp
Building target: Armadillo_Test
Invoking: GCC C++ Linker
arm-linux-gnueabihf-g++ -L/usr/lib64 -o "Armadillo_Test" ./src/Armadillo_Test.o -lm -larmadillo -llapack -lblas -larpack
/usr/lib64/libarmadillo.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
So it works with g++ but not with arm-linux-gnueabihf-g++. How should I build the library? I just built the default way. cmake . make and make install. Any ideas what I should do? Can I even run this library on the Cyclone?