myriadrf / gr-limesdr

gr-limesdr Plugin for GNURadio
Other
142 stars 77 forks source link

PYTHON_INCLUDE_DIR with install on 3.10 #85

Open ghost opened 1 year ago

ghost commented 1 year ago

gr-limesdr from fork (commit 57fc840...) https://github.com/chrisjohgorman/gr-limesdr was installed successfully with gnuradio 3.10.5.1 on opensuse Leap 15.4. However, the PYTHON_INCLUDE_DIR was not found and I noticed that CMakeCache.txt contained the line PYTHON_INCLUDE_DIRS:INTERNAL=/usr/include/python3.6m which was correct; notice the DIRS as opposed to DIR. Is there a typo somewhere in the code? Explicitly setting -DPYTHON_INCLUDE_DIR=/usr/include/python3.6m in the invocation of cmake resulted in the successful build and installation.

Some additional information follows. gnuradio and gr-limeSDR were both installed with DCMAKE_INSTALL_PREFIX=/home/user/.local and the environment variables set: PYTHONPATH="/home/user/.local/lib64/python3.6/site-packages" LD_LIBRARY_PATH="/home/user/.local/lib"