usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

Re: [USRP-users] gr-ettus cross compile

JM
Jason Matusiak
Wed, Jun 17, 2015 11:47 AM

Sylvain, Wow, I never assumed that there was an issue with the repo, I
just figured it was me....

It so happens that this morning (before the last email) I blew away the
directly and did a fresh pull of the repo:
git clone https://github.com/EttusResearch/gr-ettus.git
then cd gr-ettus && mkdir build-arm && cd build-arm
then:
cmake -Wno-dev
-DCMAKE_TOOLCHAIN_FILE=/home/lts/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake
-DCMAKE_INSTALL_PREFIX=/usr  ..
And finally a make.  Now I get past the previous error, but die at the
50% point:
[ 50%] Building CXX object
lib/CMakeFiles/gnuradio-ettus.dir/gnuradio-ettus_automoc.cpp.o
Linking CXX shared library libgnuradio-ettus.so
/usr/local/oecore-x86_64/sysroots/armv7ahf-vfp-neon-oe-linux-gnueabi/usr/lib/libuhd.so:
file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libgnuradio-ettus.so] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-ettus.dir/all] Error 2
make: *** [all] Error 2

~Jason

-------- Original Message --------
Hi,

Are there step-by-step directions somewhere for the cross-compile
process? I am thinking seeing it at a minimum for gr-ettus would be
helpful, or for the whole shebang would be better yet.

Update your gr-ettus git checkout.

It was a bug, a fix was pushed yesterday short after your question

Cheers,

Sylvain

Sylvain, Wow, I never assumed that there was an issue with the repo, I just figured it was me.... It so happens that this morning (before the last email) I blew away the directly and did a fresh pull of the repo: git clone https://github.com/EttusResearch/gr-ettus.git then cd gr-ettus && mkdir build-arm && cd build-arm then: cmake -Wno-dev -DCMAKE_TOOLCHAIN_FILE=/home/lts/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake -DCMAKE_INSTALL_PREFIX=/usr .. And finally a make. Now I get past the previous error, but die at the 50% point: [ 50%] Building CXX object lib/CMakeFiles/gnuradio-ettus.dir/gnuradio-ettus_automoc.cpp.o Linking CXX shared library libgnuradio-ettus.so /usr/local/oecore-x86_64/sysroots/armv7ahf-vfp-neon-oe-linux-gnueabi/usr/lib/libuhd.so: file not recognized: File format not recognized collect2: error: ld returned 1 exit status make[2]: *** [lib/libgnuradio-ettus.so] Error 1 make[1]: *** [lib/CMakeFiles/gnuradio-ettus.dir/all] Error 2 make: *** [all] Error 2 ~Jason -------- Original Message -------- Hi, > Are there step-by-step directions somewhere for the cross-compile > process? I am thinking seeing it at a minimum for gr-ettus would be > helpful, or for the whole shebang would be better yet. Update your gr-ettus git checkout. It was a bug, a fix was pushed yesterday short after your question Cheers, Sylvain