Altera_Forum
Honored Contributor
12 years agoBuild a shared library for DS5
I am trying to run the Armadillo Linear Algebra package on my Cyclone V.
I get it to work with general Linux GCCInvoking: GCC C++ Compiler
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
g++ -L/usr/lib64 -o "Armadillo_Test" ./src/Armadillo_Test.o -lm -larmadillo -llapack -lblas -larpack
Finished building target: Armadillo_Test Then I try to build for DS5 and the cyclone board 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 Any ideas what I could try?