jpenalbae / gr-osmosdr_hackrftcp

gr-osmosdr fork with hackrf_tcp source support
GNU General Public License v3.0
33 stars 4 forks source link

MPIR & gnuradio-fcd not found #1

Closed watchix closed 3 years ago

watchix commented 3 years ago

Hello,

I'm trying to compile your fork but i'm getting blocked at MPIR and gnuradio-fcd modules check :

root@radio:/home/watchix/gr-osmosdr_hackrftcp/build# rm CMakeCache.txt `root@radio:/home/watchix/gr-osmosdr_hackrftcp/build# cmake -DCMAKE_INSTALL_PREFIX=/usr/share/gnuradio/ ../ -- The CXX compiler identification is GNU 9.3.0 -- The C compiler identification is GNU 9.3.0 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Build type not specified: defaulting to release. -- Found Git: /usr/bin/git (found version 2.25.1) -- Extracting version information from git describe... -- Configuring Boost C++ Libraries... -- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version 1.71.0) found components: thread system -- Found LOG4CPP: /usr/lib/x86_64-linux-gnu/liblog4cpp.so -- Found PkgConfig: /usr/bin/pkg-config (found version 0.29.1) -- Checking for module gmp -- Found gmp, version 6.2.0 -- Found GMP: /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Checking for module mpir >= 3.0 -- No package mpir found -- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY MPIR_INCLUDE_DIR) -- Found MPLIB: /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version 1.71.0, minimum required is 1.71.0) found components: date_time program_options filesystem system regex thread unit_test_framework -- Found Volk: Volk::volk
CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GnuradioConfig.cmake:36 (if): if given arguments:

ON

An argument named ON appears in a conditional statement. Policy CMP0012 is not set: if() recognizes numbers and boolean constants. Run cmake --help-policy CMP0012 for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): CMakeLists.txt:151 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GnuradioConfig.cmake: Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH and POP. Run cmake --help-policy CMP0011 for policy details. Use the cmake_policy command to set the policy and suppress this warning.

The included script

/usr/lib/x86_64-linux-gnu/cmake/gnuradio/GnuradioConfig.cmake

affects policy settings. CMake is implying the NO_POLICY_SCOPE option for compatibility, so the effects are applied to the including context. Call Stack (most recent call first): CMakeLists.txt:151 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.

-- Checking for module gnuradio-iqbalance -- Found gnuradio-iqbalance, version 0 -- Found GNURADIO_IQBALANCE: /usr/lib/x86_64-linux-gnu/libgnuradio-iqbalance.so
-- Found UHD: /usr/lib/x86_64-linux-gnu/libuhd.so
-- Checking for module gnuradio-uhd -- Found gnuradio-uhd, version 3.9.0 -- Found gnuradio-uhd: /usr/include, /usr/lib/x86_64-linux-gnu/libgnuradio-uhd.so -- Found GNURADIO_UHD: /usr/lib/x86_64-linux-gnu/libgnuradio-uhd.so
-- Checking for module gnuradio-fcd -- No package gnuradio-fcd found -- gnuradio-fcd not found. -- Could NOT find GNURADIO_FCD (missing: GNURADIO_FCD_LIBRARIES GNURADIO_FCD_INCLUDE_DIRS) -- Checking for module gnuradio-fcdproplus -- Found gnuradio-fcdproplus, version 3.8.0.0 -- Found gnuradio-fcdproplus: /usr/include, /usr/lib/x86_64-linux-gnu/libgnuradio-fcdproplus.so -- Found GNURADIO_FCDPP: /usr/lib/x86_64-linux-gnu/libgnuradio-fcdproplus.so
-- Checking for module libosmosdr -- Found libosmosdr, version -- Found libosmosdr: /usr/include, /usr/lib/x86_64-linux-gnu/libosmosdr.so -- Checking for module librtlsdr -- Found librtlsdr, version 0.6.0 -- Found librtlsdr: /usr/include, /usr/lib/x86_64-linux-gnu/librtlsdr.so -- Checking for module libmirisdr -- Found libmirisdr, version 0.0.0 -- Found libmirisdr: /usr/include, /usr/lib/x86_64-linux-gnu/libmirisdr.so -- Checking for module libhackrf -- Found libhackrf, version 0.5 -- Found LIBHACKRF: /usr/lib/x86_64-linux-gnu/libhackrf.so
-- Checking for module libairspy -- Found libairspy, version 1.0 -- Found LIBAIRSPY: /usr/lib/x86_64-linux-gnu/libairspy.so
-- Checking for module libbladeRF -- Found libbladeRF, version 2.2.1-0.2019.07-4build1 -- Found libbladeRF: /usr/include, /usr/lib/x86_64-linux-gnu/libbladeRF.so -- Found Doxygen: /usr/bin/doxygen (found version "1.8.17") found components: doxygen missing components: dot CMake Error at CMakeLists.txt:166 (message): GnuRadio Runtime required to build gr-osmosdr

-- Configuring incomplete, errors occurred! See also /home/watchix/gr-osmosdr_hackrftcp/build/CMakeFiles/CMakeOutput.log. See also /home/watchix/gr-osmosdr_hackrftcp/build/CMakeFiles/CMakeError.log. root@radio:/home/watchix/gr-osmosdr_hackrftcp/build# `

root@radio:/home/watchix/gr-osmosdr_hackrftcp/build# locate gnuradio-fcd /usr/lib/x86_64-linux-gnu/libgnuradio-fcdproplus.so /usr/lib/x86_64-linux-gnu/libgnuradio-fcdproplus.so.3.8.0 /usr/lib/x86_64-linux-gnu/libgnuradio-fcdproplus.so.3.8.0.0 /usr/lib/x86_64-linux-gnu/cmake/gr-fcdproplus/gnuradio-fcdproplusConfig.cmake /usr/lib/x86_64-linux-gnu/cmake/gr-fcdproplus/gnuradio-fcdproplusTargets-release.cmake /usr/lib/x86_64-linux-gnu/cmake/gr-fcdproplus/gnuradio-fcdproplusTargets.cmake /usr/lib/x86_64-linux-gnu/pkgconfig/gnuradio-fcdproplus.pc /usr/share/doc/libgnuradio-fcdproplus3.8.0 /usr/share/doc/libgnuradio-fcdproplus3.8.0/changelog.Debian.gz /usr/share/doc/libgnuradio-fcdproplus3.8.0/copyright /var/lib/dpkg/info/libgnuradio-fcdproplus3.8.0.list /var/lib/dpkg/info/libgnuradio-fcdproplus3.8.0.md5sums /var/lib/dpkg/info/libgnuradio-fcdproplus3.8.0.shlibs /var/lib/dpkg/info/libgnuradio-fcdproplus3.8.0.triggers

I know your fork is 7 yers old but if somebody is having an idea ...

Regards, :smiley:

jpenalbae commented 3 years ago

As you mention this is a 7 years old fork, and I would be surprised if it still builds and works on any modern distro with uptodate dependencies...

Also someone should have come with a better and more polished solution, as this was basically a PoC... Maybe try using an inexpensive rtl dongle and rtl_tcp + gqrx, spyserver or any other maintained solution.

Anyway in case you want to spend your time with this, try disabling support for the funcube dongle which looks like you are missing:

$ cmake  -DENABLE_FCD=OFF -DCMAKE_INSTALL_PREFIX=/usr/share/gnuradio/ ../

Regarding MPIR, some people claim gr-osmosdr is not compatible with gnu radio 3.8 https://github.com/gnuradio/gnuradio/issues/2838

You can always try to build MPIR yourself and see what happens.... https://github.com/wbhart/mpir