[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuradio-discuss
Subject:    Re: Building From Source On Linux
From:       Ron Economos <w6rz () comcast ! net>
Date:       2024-03-16 21:24:11
Message-ID: bb0e973e-e97e-43f0-a3f5-e5eaba6066bd () comcast ! net
[Download RAW message or body]

You have more than one problem.

1) There are many more than 32 tests. This indicates that you haven't 
built all of the components. When you run cmake, check the output at the 
end. It should look similar this.

-- ######################################################
-- # Gnuradio enabled components
-- ######################################################
--   * testing-support
--   * python-support
--   * doxygen
--   * man-pages
--   * gnuradio-runtime
--   * common-precompiled-headers
--   * gr-ctrlport
--   * gnuradio-companion
--   * JSON/YAML config blocks
--   * gr-blocks
--   * gr-fec
--   * gr-fft
--   * gr-filter
--   * gr-analog
--   * gr-digital
--   * gr-dtv
--   * gr-audio
--   * * alsa
--   * * oss
--   * gr-channels
--   * gr-pdu
--   * gr-qtgui
--   * gr-trellis
--   * gr-uhd
--   * gr-uhd UHD 4.0 RFNoC
--   * gr-utils
--   * gr_modtool
--   * gr_blocktool
--   * gr-video-sdl
--   * gr-vocoder
--   * gr-wavelet
--   * gr-zeromq
--   * gr-network
--   * gr-soapy
-- 
-- ######################################################
-- # Gnuradio disabled components
-- ######################################################
--   * post-install
--   * gr-iio

If you have a lot of disabled components, you're missing dependencies. 
This is also why you only have gnuradio-config-info in your bin directory.

2) When you install to a custom directory, you have to tell the system 
about it. On Ubuntu, I use two files:

/etc/ld.so.conf.d/gnuradio.conf

This file contains the line (adjust for your install directory):

/opt/gnuradio-3.11.0git/lib

/etc/profile.d/gnuradio.sh

This file contains (adjust for your install directory and Python version):

#!/bin/bash
# add gnuradio to path
export PATH=$PATH:/opt/gnuradio-3.11.0git/bin
# add gnuradio python libraries to python search path
if [ $PYTHONPATH ]; then
         export 
PYTHONPATH=$PYTHONPATH:/opt/gnuradio-3.11.0git/lib/python3.11/site-packages
else
         export 
PYTHONPATH=/opt/gnuradio-3.11.0git/lib/python3.11/site-packages
fi

3) You need to uninstall the package manager version.

sudo apt-get purge gnuradio

sudo apt-get purge gnuradio-dev

Ron

On 3/16/24 13:52, Hamza Mohammed wrote:
> I am trying to build gnu radio from source on linux from the linux 
> install. I already have gnuradio running because I installed it using 
> my package manager. I want to make changes to the source code so I 
> cloned the repository and tried to build it somewhere else in the 
> system by using the -DCMAKE_INSTALL_PREFIX=XXX flag during cmake. 
> Everything works fine, even after running make test, all 32 tests are 
> passed however when I go to the XXX/bin directory there is only one 
> file "gnuradio-config-info" and when i run it the output is:
> "./gnuradio-config-info: error while loading shared libraries: 
> libgnuradio-runtime.so.3.11.0git: cannot open shared object file: No 
> such file or directory"
> I don't know where did I go wrong, but it seems to not detect the 
> shared libraries.  Dependencies are 100% installed because I am using 
> the release gnu radio software. Any ideas what could be the problem?

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic