Here is some additional information on this problem. Bottom line: Has anyone cross-compiled gr-ettus for E310 using UHD4.0 and gnuradio 3.8 on either Ubuntu 18.04 or 20.04?

This cmake error occurs with both Ubuntu 20.04 and 18.04.  It appears to be an issue with UHD4.0 configurations.  I've been able to cross-compile gr-ettus when using UHD3.15.

The CMake error is as follows:

CMake Error at /home/mike/prefix/gr38/oe/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:418 (add_custom_command): Error evaluating generator expression: $<TARGET_PROPERTY:gnuradio::runtime_swig,INTERFACE_INCLUDE_DIRECTORIES> Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): /home/mike/prefix/gr38/oe/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:559 (SWIG_ADD_SOURCE_TO_MODULE) /home/mike/prefix/gr38/oe/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/cmake/gnuradio/GrSwig.cmake:137 (swig_add_library) swig/CMakeLists.txt:58 (GR_SWIG_MAKE)

I've added export PYTHONPATH=/home/mike/prefix/gr38/oe/sysroots/x86_64-oesdk-linux/usr/lib/python3.7/site-packages/ to the environment sourcing file for the cross compiler. But I wonder if there is still some issue between python2 and python3 for building these files. UHD4.0 and gnuradio3.8 cross-compiles just fine. It's just gr-ettus that is having problems.

Any help would be appreciated.

Thanks,

Mike

On 2/14/21 9:56 PM, Mike via USRP-users wrote:
All,
I recently upgraded to Ubuntu 20.04 and am having a problem with cross compiling gr-ettus.
I have successfully done the following:
1. Install UHD on  host (using both gitbranch master and UHD-4.0)
2. Install GNU Radio on host (gitbranch maint-3.8)
3.  Install gr-ettus on host (gitbranch master)
4. Downloaded SDK for UHD4.0.0 (and associated SD image for E310)
5.  Cross compiled UHD
6.  Cross compiled GNU Radio
Attempting to cross compile gr-ettus is the point where cmake of gr-ettus failed. I executed the following command:  (similar to other cross compile commands) cmake -DCMAKE_TOOLCHAIN_FILE=~/prefix/gr38/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake -DCMAKE_INSTALL_PREFIX=/usr ..
The CMakeError.log first line is this:
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: And then seems to indicate that it can't compile a test program that uses pthread_create().  This seems something like test for pthread and pthreads.  I think pthread passed and pthreads failed. The log file showed that the last test was for pthread (as indicated by -lpthread on the gcc command)
The error file had -lpthreads on the gcc command
Is this something that needs to be disabled or is there something else wrong with my configuration.  The host installation appears to be working nominally. Thank you for your assistance and if this has already been discussed somewhere please accept my apologies and point me to the prior discussion.

Thanks,

Mike

_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to