Skip to content

Building gr-ettus for e310 (cross compiling)(gnuradio3.8 UHDv4) error in cmake generation #53

@Arshamza

Description

@Arshamza

Hi every one
I am building gr-ettus for e310 using e3xx_e310_sdk_default-v4.0.0.0(source environment-setup-cortexa9t2hf-neon-oe-linux-gnueabi)
after initiating the environment I use cmake with these var:
cmake -DCMAKE_TOOLCHAIN_FILE=~/rfnocv4/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake -DCMAKE_INSTALL_PREFIX=/usr ../
but it stop with error about not finding "gnuradio::runtime_swig:
sample of terminal output:
-- Checking for module SWIG
-- Found SWIG version 3.0.12.
-- Found SWIG: /usr/bin/swig3.0
-- Found PythonLibs: /home/ali/rfnocv4/oe/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/libpython2.7.so (found suitable version "2.7.17", minimum required is "2")
-- User set python executable /usr/bin/python2.7
-- Found PythonLibs: /home/ali/rfnocv4/oe/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/libpython2.7.so (found suitable exact version "2.7.17")
-- User set python executable /usr/bin/python2.7
-- Configuring done
CMake Error at /home/ali/rfnocv4/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/ali/rfnocv4/oe/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:559 (SWIG_ADD_SOURCE_TO_MODULE)
/home/ali/rfnocv4/oe/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/cmake/gnuradio/GrSwig.cmake:137 (swig_add_library)
swig/CMakeLists.txt:58 (GR_SWIG_MAKE)

CMake Error at /home/ali/rfnocv4/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/ali/rfnocv4/oe/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/cmake/gnuradio/UseSWIG.cmake:559 (SWIG_ADD_SOURCE_TO_MODULE)
/home/ali/rfnocv4/oe/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/cmake/gnuradio/GrSwig.cmake:137 (swig_add_library)
swig/CMakeLists.txt:58 (GR_SWIG_MAKE)
.....

CMake Error at /home/ali/rfnocv4/oe/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/cmake/gnuradio/GrSwig.cmake:144 (target_include_directories):
Error evaluating generator expression:

$<TARGET_PROPERTY:gnuradio::runtime_swig,INTERFACE_INCLUDE_DIRECTORIES>

Target "gnuradio::runtime_swig" not found.
Call Stack (most recent call first):
swig/CMakeLists.txt:58 (GR_SWIG_MAKE)

-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
terminaloutput.txt

thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions