discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invalid arguments to find_dependency in CMakeFindDependencyMacro


From: Carlos Alberto Ruiz Naranjo
Subject: Re: Invalid arguments to find_dependency in CMakeFindDependencyMacro
Date: Tue, 5 May 2020 11:13:50 +0200

The error is in the line:

/usr/lib/x86_64-linux-gnu/cmake/gnuradio/GnuradioConfig.cmake:45 (find_dependency)
find_dependency(Boost "1.65.1" COMPONENTS ${BOOST_REQUIRED_COMPONENTS})

I have changed it for:
find_package(Boost "1.65.1" COMPONENTS ${BOOST_REQUIRED_COMPONENTS})

And it runs fine. But now I have the following errors:

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/gnuradio/UseSWIG.cmake:573 (add_library):
  Target "ettus_swig" links to target "Boost::thread" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GrSwig.cmake:133 (swig_add_library)
  swig/CMakeLists.txt:54 (GR_SWIG_MAKE)

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/gnuradio/UseSWIG.cmake:573 (add_library):
  Target "ettus_swig" links to target "Boost::system" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GrSwig.cmake:133 (swig_add_library)
  swig/CMakeLists.txt:54 (GR_SWIG_MAKE)


And when I compile it:

[ 84%] Linking CXX shared library libgnuradio-ettus.so
/usr/bin/ld: cannot find -lBoost::program_options
/usr/bin/ld: cannot find -lBoost::filesystem
/usr/bin/ld: cannot find -lBoost::system
/usr/bin/ld: cannot find -lBoost::regex
/usr/bin/ld: cannot find -lBoost::thread


I don't know what is the problem, because I have installed libboost-all-dev. I have the same problem when I compile GNURadio manually.


Thank you.












El lun., 4 may. 2020 a las 21:40, Carlos Alberto Ruiz Naranjo (<address@hidden>) escribió:
Hi Markus,

yes, the 3.8 branch.

Thank you.

El lun., 4 may. 2020 20:33, Marcus Müller <address@hidden> escribió:
Hi Carlos,

just a sanity check upfront: are you using the maint-3.8 branch of gr-ettus?

Best regards,
Marcus

On 04.05.20 11:13, Carlos Alberto Ruiz Naranjo wrote:
> Hello,
>
> I'm compiling gr-ettus and I have the following error:
>
> carlos@carlos-xps:~/repo/gr-ettus/build$ cmake ..
> -- Build type not specified: defaulting to release.
> -- Checking for module 'gmp'
> --   No package 'gmp' found
> -- Checking for module 'mpir >= 3.0'
> --   No package 'mpir' found
> -- Could NOT find MPIR (missing:  MPIRXX_LIBRARY MPIR_INCLUDE_DIR)
> CMake Error at
> /usr/local/share/cmake-3.8/Modules/CMakeFindDependencyMacro.cmake:35
> (message):
>   Invalid arguments to find_dependency
> Call Stack (most recent call first):
>   /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GnuradioConfig.cmake:45
> (find_dependency)
>   CMakeLists.txt:59 (find_package)
>
>
> -- Configuring incomplete, errors occurred!
> See also "/home/carlos/repo/gr-ettus/build/CMakeFiles/CMakeOutput.log".
>
> My OS is Linux Mint 19.3 (based on Ubuntu 18.04). I have GNURadio-dev
> 3.8 from apt, cmake 3.8.0-rc1 version and libboost-all-dev installed.
>
> Thank you.
>
>
>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]