Hi Jim,

Firstly, let me tell you that I haven't ever tried installing on a Pi,
so I may be missing some nuances.  Apologies if that's the case.

After step 5 gnuradio-companion should be in /usr/bin based on the
steps you took.  If gnuradio-companion is not in /usr/bin I suspect
that something was missing from your build.  Given your cmake command,
you will not need to set LD_LIBRARY_PATH and PYTHONPATH.   That's only
necessary if you didn't set -DCMAKE_INSTALL_PREFIX=/usr .

You should get something like the following at the end of your cmake command.

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

Ensure gnuradio-companion is on the list.  Also note if you have any
components in the disabled components list.

Once make install has completed you should have, roughly speaking, the
following directories / files.

/etc/gnuradio - all the system configuration files
/usr/bin/gnuradio-companion
/usr/lib/libgnuradio* - all the c++ libraries
/usr/lib/python3.9.2/site-packages/gnuradio - all the python components
/usr/share/gnuradio/grc/blocks - all the blocks files
/usr/include/gnuradio - c++ header files

Cannot import gnuradio means python can't find the gnuradio directory
and it's contents in the "python components".  This is critical as
gnuradio-companion is all python driven.  If you have all these
directories, perhaps a review of
https://wiki.gnuradio.org/index.php?title=LinuxInstall#Installing_Volk
to see if you missed a step.  (maybe running sudo ldconfig or
something like that.)

Anyway hoping you get this working.  Let me know if you're missing anything.

Take care,

Chris

On Sun, Oct 6, 2024 at 1:50 PM Elmore Family <wa4...@comcast.net> wrote:
>
> Chris,
>
> I have tried what you suggested but I am still having issues. I suspect that
> I am misunderstanding something.
>
> 1. I removed 3.9.4
> 2. I performed an export of LD-LIBRARY_PATH as you specified
> 3. I performed an export of PYTHONPATH with xx = .9.2
> 4. I performed
> cmake -DCMAKE_INSTALL_PREFIX=/usr  -DCMAKE_BUILD_TYPE=Release 
> --DPYTHON_EXECUTABLE=/usr/bin/python3
> ../
> 5. sudo make install
>
> Everything seemed to execute with no errors.
>
> I still find gnuradio-companion only in the /gnuradio/grc/scripts directory.
>
> When I execute it from the command line, a box pops up stating "Cannot
> import gnuradio" and asking if PYTHONPATH and LD_LIBRARY_PATH are set
> correctly.
>
> What is wrong now?
>
> Jim
>
> -----Original Message-----
> From: Chris Gorman
> Sent: Saturday, October 5, 2024 11:27 AM
> To: Volker Schroer
> Cc: discuss-gnuradio@gnu.org
> Subject: Re: New install of GNU Radio executes old version
>
> Hi Jim and Volker,
>
> I just tried what Jim is doing on my x86 system and got the same
> result.  Trying to run from the source tree runs the installed
> gnuradio (in my case 3.10.11).  My recommendations to Jim is to
>
> 1) `apt remove gnuradio` to remove gnuradio 3.9.4
> 2) install the gnuradio from his source tree
>    `cd gnuradio/build/`
>    `sudo make install`
> 3) then run gnuradio-companion from the command line.
>
> (Commands to run are in between ``).
>
> Some caveats from my installation experience unless
> -DCMAKE_INSTALL_PREFIX=/usr was set during the cmake configure, you
> will have to set both a LD_LIBRARY_PATH and PYTHONPATH to point to the
> directories in the install prefix.
>
> eg. with no -DCMAKE_INSTALL_PREFIX set, /usr/local becomes the default
> install prefix
> so Jim will need to export LD_LIBRARY_PATH=/usr/local/lib and export
> PYTHONPATH=/usr/local/lib/python3.xx/site-pacakges, where xx is the
> version of python on the system.
>
> Hope this helps,
>
> Good luck.
>
> Chris
>
> On Sat, Oct 5, 2024 at 6:45 AM Volker Schroer <dl1...@gmx.de> wrote:
> >
> > Hi Jim!
> > How did you install gnuradio 3.10.11 ? If you had 3.10.11 installed, you
> > did not had to run it from the source directory. So you did not install
> > 3.10.11. I suspect you downloaded the source code from somewhere, but
> > missed to build and install it.
> >
> > How did you get 3.9.4 ?
> >
> > I  recommend to read the gnuradio installation docs.
> >
> > https://wiki.gnuradio.org/index.php?title=InstallingGR
> >
> > -- Volker
> >
> >
> >
>
>
> --
> This email has been checked for viruses by AVG antivirus software.
> www.avg.com
>

Reply via email to