Hi all,
I want to do DOA estimation experiments with FMComms5 board with the help of GNU radio. I am trying to install the gr-doa tool found at - https://github.com/tfcollins/gr-doa/tree/adi. However I am facing some problems:
cmake .. -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "2") -- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2") CMake Error at cmake/Modules/GrPython.cmake:113 (file): file FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with exactly three arguments. Call Stack (most recent call first): python/CMakeLists.txt:23 (include) -- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2") CMake Error at cmake/Modules/GrPython.cmake:113 (file): file FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with exactly three arguments. Call Stack (most recent call first): apps/CMakeLists.txt:20 (include) -- Configuring incomplete, errors occurred!
Hence, I specify the python libraries, include directories and executable to the cmake command, but the problem remains the same:
cmake -DPYTHON_LIBRARIES=/usr/include/python3.10 -DPYTHON_INCLUDE_DIRS=/usr/lib/x86_64-linux-gnu/libpython3.10.so -DPYTHON_EXECUTABLE=/usr/bin/python3 -Wno-dev .. -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "2") File "<string>", line 3 print sysconfig.get_python_lib(plat_specific=True, prefix='') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? CMake Error at cmake/Modules/GrPython.cmake:113 (file): file FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with exactly three arguments. Call Stack (most recent call first): python/CMakeLists.txt:23 (include) Traceback (most recent call last): File "<string>", line 2, in <module> TypeError: Strings must be encoded before hashing File "<string>", line 3 print sysconfig.get_python_lib(plat_specific=True, prefix='') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? CMake Error at cmake/Modules/GrPython.cmake:113 (file): file FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with exactly three arguments. Call Stack (most recent call first): apps/CMakeLists.txt:20 (include) Traceback (most recent call last): File "<string>", line 2, in <module> TypeError: Strings must be encoded before hashing CMake Error at cmake/Modules/GrPython.cmake:125 (add_custom_target): add_custom_target cannot create target "ALL" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/ennio/github/gr-doa/python". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): cmake/Modules/GrPython.cmake:228 (GR_UNIQUE_TARGET) apps/CMakeLists.txt:22 (GR_PYTHON_INSTALL) -- Configuring incomplete, errors occurred!
How can I fix this?
Thanks,
Ennio