Closed sonium-labs closed 3 years ago
Hello, wanted to provide an update on this. I was able to successfully cross-compile after removing UHD/GNU Radio/gr-lte and recompiling everything with this guide. I wager the issue had to do with the multiple installations of UHD/GNU Radio I had on my system when attempting to cross-compile.
Worth noting that the CMake command run for GNU Radio removes ControlPort as it caused issues with the version of CMake included with the OE SDK. The command used was:
cmake -Wno-dev -DCMAKE_TOOLCHAIN_FILE=~/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake -DENABLE_GR_WXGUI=OFF -DENABLE_GR_VOCODER=OFF -DENABLE_GR_DTV=OFF -DENABLE_GR_ATSC=OFF -DENABLE_DOXYGEN=OFF -DENABLE_GR_CTRLPORT=OFF -DCMAKE_INSTALL_PREFIX=/usr ../
Now I'm able to run the example flowgraphs included in the examples
directory, though I have yet to properly verify that the flowgraphs work as expected--currently working on this. Closing this issue for now.
Hello,
I have been struggling with getting gr-lte cross-compiled for the Ettus E310 using the Open Enclave SDK.
I have been following these instructions from the Ettus wiki that delineate how to get UHD, GR, and OOT modules compiled for a host machine, and how to cross-compile them for ARM/E3xx devices. I have followed the instructions verbatim--am using the release 4 version of the SDK, UHD version 3.14.1, version 3.7.14 of GNU Radio, and am compiling on Ubuntu 18.04 LTS. I also have my environment variables setup as described in that guide. When I attempt to compile gr-lte with the SDK, using the cmake commands described in the guide above for gr-ettus as well as these, it works just fine. Then when I run
make
, I receive the following errors (runningmake
as verbose for add'l debug info):Doing some digging online, I discovered that __GR_VLA is defined in
attributes.h
. I find that file in the following places:In the file that fails compilation,
crc_check_vbvb_impl.cc
, I see an include for<gnuradio/io_signature.h>
. I thought tracking this down might help me squash this bug as I have not seen an error indicating that the linker cannot find this file, and it is in the following places:Seems that both files are found in some of the same places, most notably in the
gnuradio
directory. I've tried to explicitly include<gnuradio/attributes.h>
in the source files that throw errors (it isn't just the one above), to no effect.What could I be missing here?