Thanks, Mike. I will try reverting to gnuradio 3.7. If I am using gnuradio maint-3.7, should I also use gr-ettus maint-3.7? Dennis
----------------------------------------- From: "Mike via USRP-users" To: usrp-users@lists.ettus.com Cc: Sent: Friday February 12 2021 8:10:23AM Subject: Re: [USRP-users] SWIG Error Cross-compiling gr-ettus Dennis, I'm certainly not the expert on this but I think that UHD 3.15 is for gnuradio 3.7 and UHD 4.x is for gnuradio 3.8. Also, it seems like you want to upgrade from Ubuntu 18.04LTS to Ubuntu 20 when moving to gr 3.8 because of the migration to python3. For now, that's why I'm still at UHD 3.15 and gr 3.7 (still running Ubuntu 18.04). That might be over simplifying it but I think that is the general idea. Mike On 2/11/21 1:29 PM, Dennis Trask via USRP-users wrote: I have cross-compiled UHD v3.15.0.0 and gnuradio maint-3.8 for the E310. When I try to setup the cross-compile of gr-ettus maint-3.8, I get a series of errors related to SWIG. Any idea how to work around this? My cmake command is: cmake -DCMAKE_TOOLCHAIN_FILE=~/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake -DCMAKE_INSTALL_PREFIX=/usr .. And here are the errors: CMake Error at /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:418 (add_custom_command): Error evaluating generator expression: $ Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:559 (SWIG_ADD_SOURCE_TO_MODULE) /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:137 (swig_add_library) swig/CMakeLists.txt:54 (GR_SWIG_MAKE) CMake Error at /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:418 (add_custom_command): Error evaluating generator expression: $ Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:559 (SWIG_ADD_SOURCE_TO_MODULE) /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:137 (swig_add_library) swig/CMakeLists.txt:54 (GR_SWIG_MAKE) CMake Error at /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:418 (add_custom_command): Error evaluating generator expression: $ Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:559 (SWIG_ADD_SOURCE_TO_MODULE) /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:137 (swig_add_library) swig/CMakeLists.txt:54 (GR_SWIG_MAKE) CMake Error at /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:418 (add_custom_command): Error evaluating generator expression: $ Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:559 (SWIG_ADD_SOURCE_TO_MODULE) /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:137 (swig_add_library) swig/CMakeLists.txt:54 (GR_SWIG_MAKE) CMake Error at /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrMiscUtils.cmake:127 (add_dependencies): The dependency target "gnuradio::runtime_swig" of target "_ettus_swig_doc_tag" does not exist. Call Stack (most recent call first): /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:65 (GR_GEN_TARGET_DEPS) /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:112 (GR_SWIG_MAKE_DOCS) swig/CMakeLists.txt:54 (GR_SWIG_MAKE) CMake Error at /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:144 (target_include_directories): Error evaluating generator expression: $ Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): swig/CMakeLists.txt:54 (GR_SWIG_MAKE) CMake Error at /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:144 (target_include_directories): Error evaluating generator expression: $ Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): swig/CMakeLists.txt:54 (GR_SWIG_MAKE) CMake Error at /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:418 (add_custom_command): Error evaluating generator expression: $ Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:559 (SWIG_ADD_SOURCE_TO_MODULE) /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:137 (swig_add_library) swig/CMakeLists.txt:54 (GR_SWIG_MAKE) CMake Error at /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:418 (add_custom_command): Error evaluating generator expression: $ Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:559 (SWIG_ADD_SOURCE_TO_MODULE) /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:137 (swig_add_library) swig/CMakeLists.txt:54 (GR_SWIG_MAKE) CMake Error at /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:418 (add_custom_command): Error evaluating generator expression: $ Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:559 (SWIG_ADD_SOURCE_TO_MODULE) /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:137 (swig_add_library) swig/CMakeLists.txt:54 (GR_SWIG_MAKE) CMake Error at /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:418 (add_custom_command): Error evaluating generator expression: $ Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:559 (SWIG_ADD_SOURCE_TO_MODULE) /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:137 (swig_add_library) swig/CMakeLists.txt:54 (GR_SWIG_MAKE) CMake Error at /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:418 (add_custom_command): Error evaluating generator expression: $ Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:559 (SWIG_ADD_SOURCE_TO_MODULE) /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:137 (swig_add_library) swig/CMakeLists.txt:54 (GR_SWIG_MAKE) CMake Error at /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:418 (add_custom_command): Error evaluating generator expression: $ Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:559 (SWIG_ADD_SOURCE_TO_MODULE) /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:137 (swig_add_library) swig/CMakeLists.txt:54 (GR_SWIG_MAKE) CMake Error at /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:418 (add_custom_command): Error evaluating generator expression: $ Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:559 (SWIG_ADD_SOURCE_TO_MODULE) /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:137 (swig_add_library) swig/CMakeLists.txt:54 (GR_SWIG_MAKE) CMake Error at /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:418 (add_custom_command): Error evaluating generator expression: $ Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:559 (SWIG_ADD_SOURCE_TO_MODULE) /home/labuser/rfnoc/oe/sysroots/cortexa9t2hf-neon-oe-linux-musleabi/usr/lib/cmake/gnuradio/GrSwig.cmake:137 (swig_add_library) swig/CMakeLists.txt:54 (GR_SWIG_MAKE) _______________________________________________ USRP-users mailing list "mailto:USRP-users@lists.ettus.com">USRP-users@lists.ettus.com "http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com"> [1] [2] target= "_blank">http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com [3] Links: ------ [1] http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com [2] http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com [3] http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
_______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com