Skip to content

GR 3.8: Unknown CMake command "GR_PYTHON_CHECK_MODULE" #112

@warnes

Description

@warnes

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

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