righthalfplane / SdrGlut

SdrGlut is a simple software defined radio - using glut and glui for its interface
MIT License
86 stars 15 forks source link

Build problem on Raspberry Pi #39

Closed DeonMarais64 closed 11 months ago

DeonMarais64 commented 11 months ago

Hi, I think I have followed your build instructions, but I am getting this error below. I tried to build the current master and tags/v1.32, and the error is the same for both. I would appreciate any suggestions.

deon@pi400:~/Downloads/SdrGlut $  make -f makefileRaspbian
g++ -O3 -std=gnu++11 -DNO_FORTRAN  -I./Digital -pthread -I./glui-routines/include -I/usr/local/hdf-64/include -I/usr/X11R6/include  -I./DrawFindPointHistory  -I ./SdrFile -I./MainSource -I./KdTree-routines -I./glui-routines/include -I./CExpress -I./Classes -I./SdrGlut -I./FMRadio  -I./Radio   -c -o MainSource/main.o MainSource/main.cpp
In file included from ./Radio/Radio.h:11,
                 from MainSource/DialogFileOpen.h:12,
                 from MainSource/main.cpp:15:
./Radio/RaceFastsdr.h:28:10: fatal error: sndfile.h: No such file or directory
   28 | #include <sndfile.h>
      |          ^~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: MainSource/main.o] Error 1
deon@pi400:~/Downloads/SdrGlut $

deon@pi400:~/Downloads/SdrGlut $ neofetch
       _,met$$$$$gg.          deon@pi400
    ,g$$$$$$$$$$$$$$$P.       ----------
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 11 (bullseye) aarch64
 ,$$P'              `$$$.     Host: Raspberry Pi 400 Rev 1.1
',$$P       ,ggs.     `$$b:   Kernel: 6.1.21-v8+
`d$$'     ,$P"'   .    $$$    Uptime: 13 hours, 15 mins
 $$P      d$'     ,    $$P    Packages: 1852 (dpkg)
 $$:      $$.   -    ,d$$'    Shell: bash 5.1.4
 $$;      Y$b._   _,d$P'      Terminal: /dev/pts/0
 Y$$.    `.`"Y$$$$P"'         CPU: BCM2835 (4) @ 2.100GHz
 `$$b      "-.__              Memory: 409MiB / 3794MiB
  `Y$$
   `Y$$.
     `$$b.
       `Y$$b.
          `"Y$b._
              `"""
righthalfplane commented 11 months ago

The instruction for the pis are slightly different - This works on most versions

sudo apt-get update sudo apt-get upgrade sudo apt-get install build-essential sudo apt-get install libsoapysdr-dev sudo apt-get install libopenal-dev sudo apt-get install libliquid-dev sudo apt-get install freeglut3-dev sudo apt-get install libalut-dev sudo apt-get install libsndfile1-dev sudo apt-get install librtaudio-dev sudo apt-get install libglew-dev sudo apt-get install git cd ~/Desktop git clone --depth=1 https://github.com/righthalfplane/SdrGlut.git cd SdrGlut make -f makefileRaspbian -j 8 ./sdrglut.x