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

Following the instructions, fails to compile. "Missing GnuradioConfig.cmake, gnuradio-config.cmake" #77

Open
JohnCC330 opened this issue Jul 16, 2024 · 5 comments

Comments

@JohnCC330
Copy link

Executing the compilation recipe:

mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig

Fails at the cmake .. step:

CMake Error at CMakeLists.txt:77 (find_package):
  By not providing "FindGnuradio.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Gnuradio",
  but CMake did not find one.

I'm not familiar with the cmake process...

@bastibl
Copy link
Owner

bastibl commented Jul 17, 2024

Make sure that you have GNU Radio installed (with development files).

@JohnCC330
Copy link
Author

JohnCC330 commented Jul 19, 2024 via email

@bastibl
Copy link
Owner

bastibl commented Jul 19, 2024

When installing GNU Radio from source, you might have to adapt environment variables to make sure that libraries, python libraries, pkg config/cmake is found.
Usually, if you use the same install path (-DCMAKE_INSTALL_PREFIX), cmake files should be found.
Also make sure that you use the version, corresponding to the branch of this module.

@JohnCC330
Copy link
Author

Slackware is a little different from other distributions, in that, by default, files are installed in /usr/... particularly, libraries are installed in /usr/lib64 and include files in /usr/include. The LD_LIBRARY_PATH etc. of course include those. Only very rarely do I have problems...

@bastibl
Copy link
Owner

bastibl commented Jul 23, 2024

When you have an unusual system, you might have to set up more environment variables to make sure everything is found. Since it complaining that it does not find FindGnuradio.cmake, I'd suggest to look if this file was installed and try adding it manually to the CMAKE_MODULE_PATH, for example, by changing the CMakeLists.txt file. Just add a line, similar to this: https://github.com/bastibl/gr-rds/blob/maint-3.10/CMakeLists.txt#L30
Maybe the Slackware or cmake people might be able to help you better with this.

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