- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does anyone know if the cross compiler, which comes with the Yocto, should build up the correct library? I followed this but step two fails.
http://stackoverflow.com/questions/21263427/cross-compiling-armadillo-linear-algebra-library Will I need to get another? My error is: gcc: error trying to exec 'cc1': execvp: No such File or directory- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That error indicates that GCC can't find one of the files it needs to do compiling. It isn't related to the library you are trying to build. You will find that you can't compile anything.
I've seen that error before when environment variables GCC needs weren't set correctly. Unfortunately, I don't know how to fix this for Yocto. Is there a script you need to run to set it up?
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page