discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] I can't get my gsl to link


From: Vasil Velichkov
Subject: Re: [Discuss-gnuradio] I can't get my gsl to link
Date: Sat, 7 Sep 2019 20:36:27 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

Hi Alan,

On 07/09/2019 19.34, Alan Corey wrote:
> Oh no, it's worse, it's Gnuradio 3.9, I think
> <<< Welcome to GNU Radio Companion 3.9.0.0-git >>>
> and 3.9 is in filenames like libgnuradio-runtime.so.3.9.0.0-git
> And cmake 3.15.2
> 
> Maybe I'm playing with bleeding edge stuff, I just followed the
> directions (somewhere) that said to do a git clone: git clone
> --recursive https://github.com/gnuradio/gnuradio.git

In my opinion it is better to switch gnuradio to maint-3.8 branch and reinstall 
or you'll need to edit gr-osmosdr's CMakeList.txt 

In CMakeList.txt on line 115 (my maint-3.8 branch)

    find_package(Gnuradio "3.8" REQUIRED COMPONENTS blocks uhd) # Side effect 
of MODULE_PATH getting prepended with system components

To use it with gnuradio's master branch you will need to change "3.8" to "3.9" 
and if you don't use/have uhd just removed it.

BTW for new projects SoapySDR and SoapyRTLSDR are probably a better 
alternatives to gr-osmosdr.

https://github.com/pothosware/SoapySDR/wiki
https://github.com/pothosware/SoapyRTLSDR/wiki

> The cmake I've had a month, used it on Firefox.
> 
> I was trying to use
> https://github.com/velichkov/gr-osmosdr/tree/maint-3.8, now I'm trying
> https://github.com/igorauad/gr-osmosdr/tree/gr3.8
> 
> Initial cmake output without tinkering:
> 
> -- The CXX compiler identification is GNU 6.3.0
> -- The C compiler identification is GNU 6.3.0

> CMake Error at CMakeLists.txt:179 (message):
>   GnuRadio Runtime required to build gr-osmosdr
> 
> 
> -- Configuring incomplete, errors occurred!
> See also 
> "/usr/src/misc/osmocom2019/two/gr-osmosdr/build/CMakeFiles/CMakeOutput.log".
> See also 
> "/usr/src/misc/osmocom2019/two/gr-osmosdr/build/CMakeFiles/CMakeError.log".
> ------------------------------
> That error message comes from
> 
> if(NOT GNURADIO_RUNTIME_FOUND)
>     message(FATAL_ERROR "GnuRadio Runtime required to build " 
> ${CMAKE_PROJECT_NA
> endif()

Neither my fork nor igorauad's contains such check in CMakeLists.txt:179

https://github.com/velichkov/gr-osmosdr/blob/a76d332/CMakeLists.txt#L179
https://github.com/igorauad/gr-osmosdr/blob/f3905d3/CMakeLists.txt#L179

Most probably you are still using the master branch. The HEAD of my branch is 
a76d332, make sure that you are using this commit.

> 
> And this is interesting:
> 
> grep -r GNURADIO_RUNTIME_FOUND .
> ./CMakeLists.txt:if(NOT GNURADIO_RUNTIME_FOUND)
> 
> It's not defined anywhere that I can find.  I tried to define it,
> didn't try commentng out the test.

That is to be expected. 
https://wiki.gnuradio.org/index.php/GNU_Radio_3.8_OOT_Module_Porting_Guide

> -------------------------------------
> 
> Gold and Ninja, I think, have less memory usage than ld and make.
> Firefox is 1.6 GB of source.  I only have 4 GB of RAM (you can't add
> more on these ARM machines, it's designed into the SOC) and about 15
> GB of swap.  I was compiling for days.  But in the end I had to change
> my CPU cores to performance mode which somehow got rid of a scheduling
> problem that led to a fatal error.

In this case cross compiling everything on your desktop might be a better 
alternative.

BTW why did you choose to install gnuradio from source? I just checked and 
there are gnuradio and gr-osmosdr for arm64 architecture in the debian 
repositories.

Regards,
Vasil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]