myriadrf / gr-limesdr

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

Compiling for GnuRadio 3.8.1.0 #60

Closed rush0815 closed 4 years ago

rush0815 commented 4 years ago

I installed GnuRadio 3.8.1.0 via ppa. While trying to cmake gr-limesdr I get this:

"-- The CXX compiler identification is GNU 7.4.0 -- The C compiler identification is GNU 7.4.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. -- Configuring Boost C++ Libraries... -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Boost version: 1.65.1 -- Found the following Boost libraries: -- thread -- system -- chrono -- date_time -- atomic -- Found Doxygen: /usr/bin/doxygen (found version "1.8.13") found components: doxygen missing components: dot -- Configuring GNU Radio C++ Libraries... -- 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' -- No package 'gmp' found -- 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 VOLK: Volk::volk
CMake Warning (dev) at /usr/local/lib/cmake/gnuradio/GnuradioConfig.cmake:48 (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:130 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in /usr/local/lib/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/local/lib/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:130 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:133 (MESSAGE): GnuRadio version required: >="3.7.8" < "3.8.0" found: "3.8.1.0"

-- Configuring incomplete, errors occurred! See also "/home/rush/gr-limesdr/build/CMakeFiles/CMakeOutput.log". See also "/home/rush/gr-limesdr/build/CMakeFiles/CMakeError.log". "

Will there be a release for GnuRadio 3.8.1.0. in the next time? Or is there any other way to compile it for GnuRadio 3.8.1.0 ?

gracid commented 4 years ago

GnuRadio version required: >="3.7.8" < "3.8.0" found: "3.8.1.0"

Please switch branches from master to gr-3.8 by using git checkout gr-3.8 command and clean your build directory before compiling again.

rush0815 commented 4 years ago

That worked! Thank you very much!