Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake not working for gr-iio #113

Open
lifeatthesharpend opened this issue Apr 2, 2022 · 5 comments
Open

cmake not working for gr-iio #113

lifeatthesharpend opened this issue Apr 2, 2022 · 5 comments

Comments

@lifeatthesharpend
Copy link

on WSL2 after installing and building libad9361-iio and libiio as instructed on https://wiki.analog.com/resources/tools-software/linux-software/gnuradio
gr-iio give error when commanded "cmake ."

here is the error:
CMake Error at /usr/share/cmake-3.16/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
By not providing "Findspdlog.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "spdlog", but
CMake did not find one.

Could not find a package configuration file provided by "spdlog" with any
of the following names:

spdlogConfig.cmake
spdlog-config.cmake

Add the installation prefix of "spdlog" to CMAKE_PREFIX_PATH or set
"spdlog_DIR" to a directory containing one of the above files. If "spdlog"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/gnuradio/GnuradioConfig.cmake:13 (find_dependency)
CMakeLists.txt:123 (find_package)

@tfcollins
Copy link
Contributor

Can you provide the full output of the cmake command from a clean build folder?

-Travis

@lifeatthesharpend
Copy link
Author

/mnt/c/Projects/adi/gr-iio$ cmake .
-- Build type not specified: defaulting to release.
CMake Warning at /usr/share/cmake-3.16/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
By not providing "Findspdlog.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "spdlog", but
CMake did not find one.

Could not find a package configuration file provided by "spdlog" with any
of the following names:

spdlogConfig.cmake
spdlog-config.cmake

Add the installation prefix of "spdlog" to CMAKE_PREFIX_PATH or set
"spdlog_DIR" to a directory containing one of the above files. If "spdlog"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
/usr/local/lib/cmake/gnuradio/GnuradioConfig.cmake:13 (find_dependency)
CMakeLists.txt:90 (find_package)

CMake Warning at CMakeLists.txt:90 (find_package):
Found package configuration file:

/usr/local/lib/cmake/gnuradio/GnuradioConfig.cmake

but it set Gnuradio_FOUND to FALSE so package "Gnuradio" is considered to
be NOT FOUND. Reason given by package:

Gnuradio could not be found because dependency spdlog could not be found.

CMake Warning at /usr/share/cmake-3.16/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
By not providing "Findspdlog.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "spdlog", but
CMake did not find one.

Could not find a package configuration file provided by "spdlog" with any
of the following names:

spdlogConfig.cmake
spdlog-config.cmake

Add the installation prefix of "spdlog" to CMAKE_PREFIX_PATH or set
"spdlog_DIR" to a directory containing one of the above files. If "spdlog"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
/usr/local/lib/cmake/gnuradio/GnuradioConfig.cmake:13 (find_dependency)
CMakeLists.txt:92 (find_package)

CMake Warning at CMakeLists.txt:92 (find_package):
Found package configuration file:

/usr/local/lib/cmake/gnuradio/GnuradioConfig.cmake

but it set Gnuradio_FOUND to FALSE so package "Gnuradio" is considered to
be NOT FOUND. Reason given by package:

Gnuradio could not be found because dependency spdlog could not be found.

CMake Error at CMakeLists.txt:94 (message):
Unable to find GNURadio

-- Configuring incomplete, errors occurred!
See also "/mnt/c/Projects/adi/gr-iio/CMakeFiles/CMakeOutput.log".

@tfcollins
Copy link
Contributor

What version of gnuradio do you have installed? How did you install it?

-Travis

@lifeatthesharpend
Copy link
Author

lifeatthesharpend commented Apr 4, 2022

sudo apt install gnuradio. also tried using installing with source. this is using windows 10, WSL2

@tfcollins
Copy link
Contributor

You are likely missing the development packages. These are required for all OOT modules:

sudo apt install gnuradio-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants