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

GR 3.8: Unknown CMake command "GR_PYTHON_CHECK_MODULE" #112

Open
warnes opened this issue Mar 30, 2022 · 3 comments
Open

GR 3.8: Unknown CMake command "GR_PYTHON_CHECK_MODULE" #112

warnes opened this issue Mar 30, 2022 · 3 comments

Comments

@warnes
Copy link

warnes commented Mar 30, 2022

After manually installing MPIR and specifying the appropriate paths for cmake, it generates this error:

$ cmake ..
-- Build type not specified: defaulting to release.
-- Found Boost: /usr/lib/aarch64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.35") found components: filesystem system thread date_time chrono 
-- Checking for module 'mpir >= 3.0'
--   No package 'mpir' found
-- Found MPIR: /usr/local/lib/libmpir.so  
-- Found Boost: /usr/lib/aarch64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.74.0") found components: date_time program_options filesystem system regex thread unit_test_framework 
CMake Error at /usr/lib/aarch64-linux-gnu/cmake/gnuradio/FindTHRIFT.cmake:70 (GR_PYTHON_CHECK_MODULE):
  Unknown CMake command "GR_PYTHON_CHECK_MODULE".
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /usr/lib/aarch64-linux-gnu/cmake/gnuradio/gnuradio-runtimeConfig.cmake:24 (find_dependency)
  /usr/lib/aarch64-linux-gnu/cmake/gnuradio/GnuradioConfig.cmake:54 (include)
  CMakeLists.txt:123 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/pi/inoui/src/gr-iio/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/inoui/src/gr-iio/build/CMakeFiles/CMakeError.log".

Solution found at https://github.com/ptrkrysik/multi-rtl/issues/6:: Basically change the required cmake version, after which cmake succeeds.

System information

$ uname -a
Linux wwi-red 5.15.30-v8+ #1536 SMP PREEMPT Mon Mar 28 13:53:14 BST 2022 aarch64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 11 (bullseye)
Release:	11
Codename:	bullseye
@tfcollins
Copy link
Contributor

I'm a little confused. How does the referenced solution actually do anything on your system? It just changes the minimum CMake required but not the version used.

The error seemed to be related to Thrift and not mpir as mpir was found on your system.

@warnes
Copy link
Author

warnes commented Apr 1, 2022

I'm not certain, but it did fix the issue.

I suspect that either cmake does things 'backward compatible' if it detects and old version of cmake is specified, or the necessary module checks the requested version and doesn't load if it's too old.

@IcingTomato
Copy link

Thank you very much @warnes ! It works on my raspberry pi!

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

3 participants