A Question about Compatibility

128 views
Skip to first unread message

KTH21

unread,
Aug 20, 2022, 8:44:07 AM8/20/22
to SdrGlut Users

I am preparing to load SDRGlut onto an older computer running MacOs 10.13.6 High Sierra. The computer is at the point where it is no longer be updated to the latest operating system, and I am wondering if I will run into a compatibility issue.   The computer has Xcode version 10.1 and Homebrew was loaded August 20, 2022.  The older computer is the one of choice because it is the second computer that has been retired from daily use.  The instructions for SDRGlut specify that xQuartz must be installed.  Now, looking at the information on xQuarts vs. MacOs versions, the list I find does not go back far enough.  Will this older computer and these versions be a stopping point for my planned installation?

Dale Ranta

unread,
Aug 20, 2022, 7:54:44 PM8/20/22
to SdrGlut Users
The xQuartz seems to go back before High Sierra enough -


I used High Sierra for a long time. You should be able to drag the new routines into an old Xcode project and compile them. Which SDR are you using ?



Dale Ranta

unread,
Aug 20, 2022, 8:45:55 PM8/20/22
to SdrGlut Users
Come to think of it - It is likely easiest to just use the makefile to build new versions of SdrtGlut on an old machine-

make -f makefileMACINTOSH -j 8




KTH21

unread,
Aug 21, 2022, 9:06:54 AM8/21/22
to SdrGlut Users

Thank you.  I am using the NESDR Smart, RTL-SDR.  I am intrigued by both of your suggestions.  Perhaps I should try both of them.  On the suggestion to copy into an existing project, do I copy the contents of the downloaded zip file SdrGlut-1.31 into an existing project including the SdrGlut.xcodeproj file, and then run the xcodeproj file?  On the suggestion to use the make file, do I run the makefileMACINTOSH from that same project directory?  I see there is a makefileM1Brew can that also be run from the folder that, at this point, has been copied into that same existing directory?

Dale Ranta

unread,
Aug 21, 2022, 10:25:45 AM8/21/22
to SdrGlut Users
I copy an old SdrGlut.xcodeproj from the Mac-M1 into the "SdrGlut-1.31" folder to build the Mac-M1 version.

The makefiles should be run from the directory that they are in. -

On a Intel Mac
cd SdrGlut-1.31
make -f makefileMACINTOSH -j 8

On a M1-Mac
cd SdrGlut-1.31
make -f makefileM1Brew -j 

That creates sdrglut.x which runs from the command line window. If you want a clickable version, rename it SdrGlut2 and copy it over the version in a SdrGlut.app package. 




KTH21

unread,
Aug 21, 2022, 8:05:42 PM8/21/22
to SdrGlut Users
Thank you very much. I followed your suggestion for compiling in the Xcode IDE.

I decided to try compiling with two computers and the results were almost the same.

The computers are;

MacOS 10.13.6 High Sierra and XCode version 10.1 
MacOS 12.5.1 Monterey and XCode version 13.4.1

To do this, I copied the downloaded folder, SdrGlut-1.31. I didn’t need to copy it to an existing XCode project, but just found the file SdrGlut.xcodeproj and double-clicked it. That started the XCode IDE where it could be compiled in the usual way. 

When the project is started, I see the following:
Folder “Digital” is red, but its contents are not.
Folder “Library” is not in red, but the following files are in red.
  libSoapySDR.dylib
  libliquid.a
  libsndfile.a
  librtaudio.a
  libglut.3.dylib

Folder “CExpress” is not in red, but the file Xappl.h is in red.

At build time, there is a file not found error at 
#include <Soapy/version.h> 

In the Issue Navigator, there are a number of warnings and two fatal items. 

Two fatal items are;
Lexical or Preprocessor Issues
  SoapySDR/Version.hpp file not found
  SoapySDR/Version.h file not found

Two notable warnings in XCode 13.4.1 but not 10.1 are;
OpenGL is deprecated. Consider migrating to Metal 
Could not read serialized diagnostics file: error (“Failed to open diagnostics file”)


Dale Ranta

unread,
Aug 21, 2022, 8:24:13 PM8/21/22
to SdrGlut Users
You do not have the SoapySDR stuff installed  see -


Section -

Install on MacOS 12.4 with brew

KTH21

unread,
Aug 23, 2022, 8:36:17 PM8/23/22
to SdrGlut Users
Now, with SoapySDR installed, I'm still getting fatal errors.  
Two are on the include statements for liquid.h and sndfile.h
It took a very long time for Soapy to download and install.

Dale Ranta

unread,
Aug 23, 2022, 10:26:49 PM8/23/22
to SdrGlut Users
What are the error messages ?

If you had a problem on MacOS 12.4 with the brew install, you likely have a mixture of brew and non-brew routines - a clean install worked for me.

 With the liquid include - it is always one for four possible problems. With the sndfile include I have only once had a problem and I do not remember what it was.

I never used brew on MacOS 10.13.6 High Sierra, I was using Macports or doing a direct install from source.

Dale Ranta

unread,
Aug 23, 2022, 10:39:19 PM8/23/22
to SdrGlut Users

Have you tried using "SdrGlut-1120-Install.dmg" ? It should work on both of your versions of MacOS.

KTH21

unread,
Aug 24, 2022, 12:00:22 PM8/24/22
to SdrGlut Users

Using the High Sierra computer …  

When opening the SDRGlut code in the XCode IDE, the error on line 11 is an IDE error that is generated as code is entered and before the code is compiled.  It has a pop-up notice.  The entire line states the following:

    #include <liquid/liquid.h>    ! ’liquid/liquid.h’ file not found.

If I comment out that line, then the error message moves to sndfile.h and appears, as:

    #include <sndfile.h> !’sndfile.h’ not found.

So most likely, sndfile.h has a dependency that is in liquid.h?

Searching the computer for a liquid.h file, I find nothing. Otherwise I am not able to determine which of the install steps should have included liquid.h.

When running SdrGlut-1120-Install.dmg and within that folder, running  SdrGlut.app, the error from terminal, has a lot of text, and here are the highlights.  I added the ellipsis points, “…” ,  to reduce the amount of irrelevant text which is usually a path. 

     dyld: Library not loaded: … librtaudio.6.dylib

     Referenced from: … SdrGlut.app/Contents/MacOS/./SdrGlut2

     Reason: Incompatible library version: SdrGlut2 requires version 7.0.0 or later, but librtaudio.6.dylib provides version 6.0.0 …

Attempting to rerun the app without rebooting the computer returns this error;

    “SdrGlut3.sh” can’t be opened because Sandbox is not allowed to open documents in Terminal. 

It took about 20 hours to install Soapy, and it had not been loaded before, so I’m figuring this must be a clean install from the start. I don’t know if it would take 20 hours if I tried to go through the steps again or if it would just reinstall things that might have failed the first time. 

I was hoping to be able to use the older computer for this “hobby” work, but maybe it’s 12 years are just too old for this.  Since I can still remember things from 12 years ago, it doesn't seem to be that long ago.

Dale Ranta

unread,
Aug 25, 2022, 12:43:14 AM8/25/22
to SdrGlut Users

The   "#include <liquid/liquid.h>    ! ’liquid/liquid.h’ file not found." means that do you not have liquid installed.

The " #include <sndfile.h> !’sndfile.h’ not found." means that you do not have libsndfile installed

I found that my oldest mac has "High Sierra"  and I got the same message as you -

 "SdrGlut2 requires version 7.0.0 or later, but librtaudio.6.dylib provides version 6.0.0 …"

which makes no sense at all since the librtaudio is version 6.0.0 and there is no version 7.0.0 and the

version that is there works fine on Monterey, Catallina, and Big Sur.

I use my old mac to play my dvd collection to the TV.

How did you do the install on Soapy ? 

If you are trying to use MacPorts for the install, MacPorts tends to get screwed up after a few months of usage and the only way to recover is to completely uninstall and reinstall it.

For “hobby” work unfortunately you need a fairly new machine. You can do a lot of interesting things with gnuradio-companion and other open source programs, but the lunkheads do not make their programs backwards compatible and they insist using all of the latest greatest stuff. Windows 7 is no longer supported by python 3, but lots of programs need python 3 - so Windows 7 is now dead to all those programs.

If you are still interested, It should not take very long to put together a script to do a direct build of SdrGlut for High Sierra using the RTL-Stick.

Dale Ranta

unread,
Aug 25, 2022, 10:16:54 AM8/25/22
to SdrGlut Users
You can get liquid from -


You can get rtaudio from -


Your build may work if you install them.

KTH21

unread,
Aug 25, 2022, 8:29:41 PM8/25/22
to SdrGlut Users
Thank you.  
I'm going to get those installed and see how that helps.

Dale Ranta

unread,
Aug 25, 2022, 8:50:01 PM8/25/22
to SdrGlut Users
You can get libsndfile from -

https://github.com/libsndfile/libsndfile

KTH21

unread,
Aug 25, 2022, 9:52:15 PM8/25/22
to SdrGlut Users
Thank you.  I will get that one as well.

Attempting to clone liquid as recommended by the GitHub site for liquid, 

I used the recommended statement in Terminal:

    git clone git://github.com/jgaeddert/liquid-dsp.git

And received the following response 

    Cloning into 'liquid-dsp'...

    fatal: unable to connect to github.com:

    github.com[0: 140.82.113.4]: errno=Operation timed out


I can download it from github, without the git command, but where should I put it to make it available to SDRGlut?


KTH21

unread,
Aug 25, 2022, 9:54:36 PM8/25/22
to SdrGlut Users
The download referred to above is source code in a zip file

KTH21

unread,
Aug 26, 2022, 9:58:07 AM8/26/22
to SdrGlut Users

August 26, 2022

I made progress in my attempt to obtain liquid.h

Using the instructions from https://liquidsdr.org/blog/liquid-dsp-1.3.0/ instead of the instructions at github, I entered the following commands in Terminal and got the following error messages.

Commands:

git clone https://github.com/jgaeddert/liquid-dsp.git

cd liquid-dsp

git checkout v1.3.0

 Response:

 You are in 'detached HEAD' state. You can look around, make experimental

changes and commit them, and you can discard any commits you make in this

state without impacting any branches by performing another checkout.

 If you want to create a new branch to retain commits you create, you may

do so (now or later) by using -b with the checkout command again. Example:

git checkout -b <new-branch-name>

Command:

./bootstrap.sh

 Response:

./bootstrap.sh: line 30: aclocal: command not found

./bootstrap.sh: line 31: autoconf: command not found

./bootstrap.sh: line 32: autoheader: command not found

Dale Ranta

unread,
Aug 26, 2022, 11:57:39 AM8/26/22
to SdrGlut Users
The instructions given work - if you have autoconf and automake installed, but as I recall with the latest version a simple

configure --prefix=/usr/local

works also - the bootstrap is not need and I did not do a check out

autoconf is at -


automake is at -

KTH21

unread,
Aug 26, 2022, 9:50:11 PM8/26/22
to SdrGlut Users

I sincerely appreciate your patience.  I’ve programmed for over a half-century and still run into things that are very new. This is one of them. I may have to say “enough” on this, but decided on one more try.

The links to autoconf and automake were an ftp site with tar.gz extensions.  Opening them did nothing meaningful and moving to the autoconf page suggested yet another dependency, so it’s getting very deep with dependencies that I can’t keep track of. 

So I looked at your comment that I might be able to use  

    configure --prefix=/usr/local

So I tried the following sequence. Brackets "[" and "]" delimit my comments 

    cd liquid-dsp

    git checkout v1.3.0

[Return: ] “HEAD is now at [shows an address here that I’m not sure is local or distant] build: updating history description to reflect v1.3.0 release”

[skip this …./bootstrap.sh]

[skip this …./configure]

[Trying this:]

    configure --prefix=/usr/local

[Return:] “-bash: configure: command not found”

[Trying this:]

    bash: configure --prefix=/usr/local

[Return:] “-bash: configure: command not found”

[Trying this:]

    make -j8

[Return:] “make: *** No targets specified and no makefile found.  Stop.”

[Trying this:]

    sudo make install

[Return:] “make: *** No rule to make target `install'.  Stop.”

Dale Ranta

unread,
Aug 27, 2022, 12:24:10 AM8/27/22
to SdrGlut Users
autoconf with the version that I got -
tar -zxvf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure --prefix=/usr/local
make
sudo make install

automake with the version that I got 
tar -zxvf automake-1.15.tar.gz
cd automake-1.15
./configure --prefix=/usr/local
make 
sudo make install

 cd liquid-dsp
./bootstrap.sh
./configure --prefix=/usr/local
make -j 8
sudo make install

I have my local environment set so I do not need the ./ with the configure and other local commands and scripts  - you seem to need it.
Sometimes you also need do a "chmod +x  configure" or a "chmod +x  bootstrap.sh" before you can execute the scripts.

I have to try and guess what is on your machine and how much detail that I need to tell you.

Using the instructions above, I have installed liquid-dsp on four different Macintoshs and six different versions of MacOS - unfortunately that is no guarantee that it will work for you - every system is just a little different.


Dale Ranta

unread,
Aug 27, 2022, 1:17:40 AM8/27/22
to SdrGlut Users
To handle installing and using open source programs - I have a list of about 30 commands that I refer to when I need to - that is all that is really need.

To install a program using a config script and makefile  -

./configure --prefix=/usr/local
make -j 8
sudo make install

To install a program using a cmake and makefile  (CMakeLists.txt is the file used by make and it needs to be in the same directory as the build folder)-

mkdir build
cd build
cmake  ../
make - j 8
sudo make install

Those two examples handles the direct installation for 95 percent of the open source programs.
Then you have program managers like fink, MacPorts, Brew, apt-get, etc...,  that sometimes makes installation easier.

KTH21

unread,
Aug 27, 2022, 11:34:14 PM8/27/22
to SdrGlut Users
Thanks for those two posts.  I'll try them.

Dale Ranta

unread,
Aug 28, 2022, 10:24:18 AM8/28/22
to SdrGlut Users
The install of rtaudio -
tar -zxvf rtaudio-5.1.0.tar.gz
cd rtaudio-5.1.0
cd build
cmake ../

KTH21

unread,
Aug 29, 2022, 4:31:36 PM8/29/22
to SdrGlut Users

August 27, 2022

Working through the autoconf install, I have the following dialogue with the computer.

the "$" indicate commands I gave the system, and [Return:] indicates what i got back

$ cd autoconf-2.69

$ ls

[Return:]
  AUTHORS
  ChangeLog
  GNUmakefile
  README

  build-aux
  lib
  BUGS
  ChangeLog.0
  INSTALL
  THANKS
  cfg.mk
  m4
  COPYING
  ChangeLog.1
  Makefile.am
  TODO
  Configure
  maint.mk
  COPYING.EXCEPTION
  ChangeLog.2
  Makefile.in
  aclocal.m4
  configure.ac
  man
  COPYINGv3
  ChangeLog.3
  NEWS
  Bin
  Doc
  tests 

$./configure – prefix-usr/local

 [Return:]

   configure: error: expected an absolute directory name for --prefix: usr/local

Dale Ranta

unread,
Aug 29, 2022, 10:50:22 PM8/29/22
to SdrGlut Users
It should have been -

./configure --prefix=/usr/local

Is that what you used and it printed it out incorrectly ? 


Dale Ranta

unread,
Aug 29, 2022, 11:25:26 PM8/29/22
to SdrGlut Users
Looking at your output from "cd autoconf-2.69" "ls" does not make any sense - i get -

bash-3.2$ cd /Users/dir/Desktop/autoconf-2.69

bash-3.2$ ls

AUTHORS            GNUmakefile        build-aux

BUGS            INSTALL            cfg.mk

COPYING            Makefile.am        configure

COPYING.EXCEPTION    Makefile.in        configure.ac

COPYINGv3        NEWS            doc

ChangeLog        README            lib

ChangeLog.0        THANKS            m4

ChangeLog.1        TODO            maint.mk

ChangeLog.2        aclocal.m4        man

ChangeLog.3        bin            tests

The stupid google editor shows it with an extra line. You are missing files and things are shown in upper case that are lower case.
I use the "Terminal.app"  program - What are you using  ? With the Terminal program you can copy and paste things to and from Safari.

KTH21

unread,
Aug 30, 2022, 9:26:55 PM8/30/22
to SdrGlut Users

August 30, 2022

Thank you for your help. 

I redid the steps, today.  This time, I blocked out the name of my machine and user account and left the returned value from the ls command exactly as it was returned. In the previous post I reformatted the returned value in an effort to make it more readable. This time it is as is. To get here, I put the autoconf-2.69.tar.gz file into a folder called “documents/gnu” and this dialogue begins with a cd to that folder and then an ls of that folder.   

Here is the dialogue I had in Mac Terminal  

Last login: Tue Aug 30 20:06:56 on ttys000

Mycomputer:~ MyUserName$ cd documents/gnu

Mycomputer:gnu MyUserName$ ls

autoconf-2.69       autoconf-2.69.tar   automake-1.15         automake-1.15.tar

Mycomputer:gnu MyUserName$ cd autoconf-2.69

Mycomputer:autoconf-2.69 MyUserName$ ls

AUTHORS         ChangeLog       GNUmakefile     README             build-aux      lib

BUGS            ChangeLog.0     INSTALL         THANKS             cfg.mk               m4

COPYING         ChangeLog.1     Makefile.am     TODO               configure      maint.mk

COPYING.EXCEPTION   ChangeLog.2     Makefile.in    aclocal.m4     configure.ac         man

COPYINGv3       ChangeLog.3     NEWS            bin           doc            tests

Mycomputer:autoconf-2.69 MyUserName$ ./configure --prefix=usr/local

configure: error: expected an absolute directory name for --prefix: usr/local

MyComputer:autoconf-2.69 MyUserName$ 

Dale Ranta

unread,
Aug 30, 2022, 11:21:45 PM8/30/22
to SdrGlut Users
How are you getting -

 ./configure --prefix=usr/local

Instead of 

./configure --prefix=/usr/local

Copy and paste the above line into the terminal window and hit return to execute it.

KTH21

unread,
Aug 31, 2022, 7:26:11 AM8/31/22
to SdrGlut Users
I apologize, that was a typo on my part.  Thank you for catching it. Now the configuration ran, but it says it can't find gawk, mark, and hawk.
Will that be a problem down the line?
I ran the configuration for automake and it had similar items it could not find. (google keeps changing this to automaker, so hope it stays correct when posted)
I ran the configuration for liquid and it said it couldn't find autoconf


Last login: Wed Aug 31 06:11:40 on ttys000

MyComputer:~ MyUserAccount $ cd documents/gnu

MyComputer:gnu MyUserAccount$ ls

autoconf-2.69       autoconf-2.69.tar   automake-1.15         automake-1.15.tar    liquid-dsp     liquid-dsp-1.3.0

MyComputer:gnu MyUserAccount$ cd autoconf-2.69

MyComputer:autoconf-2.69 MyUserAccount$ ./configure --prefix=/usr/local

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... build-aux/install-sh -c -d

checking for gawk... no

checking for mawk... no

checking for nawk... no

checking for awk... awk

checking whether make sets $(MAKE)... yes

checking build system type... x86_64-apple-darwin17.7.0

checking host system type... x86_64-apple-darwin17.7.0

configure: autobuild project... GNU Autoconf

configure: autobuild revision... 2.69

configure: autobuild hostname... MyComputer

configure: autobuild timestamp... 20220831T111359Z

checking whether /bin/sh -n is known to work... yes

checking for characters that cannot appear in file names... none

checking whether directories can have trailing spaces... yes

checking for expr... /bin/expr

checking for GNU M4 that supports accurate traces... /usr/bin/m4

checking whether /usr/bin/m4 accepts --gnu... no

configure: WARNING: the version of M4 that was found does not support -g

configure: WARNING: using it with POSIXLY_CORRECT set may cause problems

checking how m4 supports trace files... --error-output

checking for perl... /usr/bin/perl

checking whether /usr/bin/perl Fcntl::flock is implemented... yes

checking for emacs... emacs

checking whether emacs is sufficiently recent... yes

checking for emacs... emacs

checking where .elc files should go... ${datarootdir}/emacs/site-lisp

checking for grep that handles long lines and -e... /usr/bin/grep

checking for egrep... /usr/bin/grep -E

checking for a sed that does not truncate output... /usr/bin/sed

checking whether make is case sensitive... yes

configure: creating ./config.status

config.status: creating tests/Makefile

config.status: creating tests/atlocal

config.status: creating man/Makefile

config.status: creating lib/emacs/Makefile

config.status: creating Makefile

config.status: creating doc/Makefile

config.status: creating lib/Makefile

config.status: creating lib/Autom4te/Makefile

config.status: creating lib/autoscan/Makefile

config.status: creating lib/m4sugar/Makefile

config.status: creating lib/autoconf/Makefile

config.status: creating lib/autotest/Makefile

config.status: creating bin/Makefile

config.status: executing tests/atconfig commands

MyComputer:autoconf-2.69 MyUserAccount$

 


Dale Ranta

unread,
Aug 31, 2022, 11:36:44 PM8/31/22
to SdrGlut Users
The configuration script printed no errors - so everything is likely Ok.

After the

configure --prefix=/usr/local

you do in the same folder a -

make -j 8

and if it runs without errors you do a

sudo make install

so in both the autoconf and automake  folders you want to do (I think that you need to do the autoconf install first)-

configure --prefix=/usr/local
make -j 8
sudo make install

liquid cannot find them until you install them.

KTH21

unread,
Sep 2, 2022, 2:55:03 AM9/2/22
to SdrGlut Users
It says liquid was successfully installed!
That's exciting.  Thank you. 
I've lost track of what should be next.  Should I start from the beginning?

KTH21

unread,
Sep 2, 2022, 8:30:47 AM9/2/22
to SdrGlut Users
On second thought, at the first opportunity I will go back to the xcodeproject and see how it compiles.

On Wednesday, August 31, 2022 at 10:36:44 PM UTC-5 righthal...@gmail.com wrote:
Message has been deleted

Dale Ranta

unread,
Sep 2, 2022, 1:03:47 PM9/2/22
to SdrGlut Users
You are down to the last few steps.

You should be able to install libsndfile and rtaudio.

Try it and see how it goes -

Get libsndfile from-

https://github.com/libsndfile/libsndfile

To install libsndfile-

unzip libsndfile-master.zip
cd libsndfile-master

mkdir build
cd build
cmake ../
make -j 8
sudo make install

Get rtaudio from -

https://www.music.mcgill.ca/~gary/rtaudio/

To install rtaudio-

tar -zxvf rtaudio-5.2.0.tar.gz
cd rtaudio-5.2.0

mkdir build
cd build
cmake ../
make -j 8
sudo make install


KTH21

unread,
Sep 2, 2022, 4:24:29 PM9/2/22
to SdrGlut Users

At https://github.com/libsndfile/libsndfile/releases

It looks like I need 

libsndfile-1.1.0.tar.xz

double-clicking that turns it into libsndfile-1.1.0.tar.xz.cpgz

but other than that, nothing substantive happens.

KTH21

unread,
Sep 2, 2022, 6:06:07 PM9/2/22
to SdrGlut Users
At https://github.com/libsndfile/libsndfile/releases It appears to have successfully installed from the file "Source Code (zip)
Moving on to the next one.

KTH21

unread,
Sep 2, 2022, 7:20:23 PM9/2/22
to SdrGlut Users

It appears that libsndfile was successfully installed from “Source Code (zip)”, I continued on to download and install rtaudio and that appears to be successful.  

Now going back to SdrGlut main.cpp, I have a file not found error on line 29.

#include <sndfile.h>  ‘!sndfile.h’ file not found.

KTH21

unread,
Sep 2, 2022, 8:20:19 PM9/2/22
to SdrGlut Users

I looked at the github site again and located libsndfile-master.  Downloaded it and installed it.  It appears to have installed correctly.

 Going back to main.cpp, the error on line for the missing sndfile.h is now resolved. 

 The program now has three issues here is a summary of them.

 Warning Error: DialogRadio.cpp – Code will never be executed

Warning Error: Directory not found for option ‘-L/opt/x11/lib’

Fatal Error:  clang  linker command failed with exit code 1. (use –v to see invocation).  I tried entering a –v and was unable to locate it.  Not sure what it expects here. 

 We’ve come a long way and I hope this is a fixable error.

Dale Ranta

unread,
Sep 3, 2022, 12:27:17 AM9/3/22
to SdrGlut Users
You are missing xQuartz.

Down load it from -


Double click on -

XQuartz-2.8.2.dmg

Then double click on -

XQuartz.pkg

And follow the install instructions.

KTH21

unread,
Sep 3, 2022, 1:38:53 AM9/3/22
to SdrGlut Users
Thank you. Success!!!
I installed xQuartz. The program compiles, with warnings, 
I do not see a signal display.  

Dale Ranta

unread,
Sep 3, 2022, 11:12:47 AM9/3/22
to SdrGlut Users
If you are using Xcode, you should activate the console - select from the menu -

View->Debug Area->Activate Console

then run the program - select from the menu -

Product->Run

Your should get a screen like the include image or error messages in the console window.




Screen Shot SdrGlut.png

Dale Ranta

unread,
Sep 3, 2022, 11:18:01 AM9/3/22
to SdrGlut Users
Another note : After installing xQuartz you need to restart your machine.

Dale Ranta

unread,
Sep 3, 2022, 11:38:10 AM9/3/22
to SdrGlut Users
If you complied it with the -

make -f makefileMACINTOSH -j 8

you just need to run the program  -

make -f makefileMACINTOSH -j 8

./sdrglut.x


KTH21

unread,
Sep 3, 2022, 9:21:42 PM9/3/22
to SdrGlut Users

Thank you very much. 

The program is running well.  There is a problem with the sound. When tuned in to an AM station, in the default setting it emits a shsh…shsh…shsh sound with a cycle rate of slightly less than one shsh per second. 

Here are the details.

To compile and or run the program I used three procedures. The project is in a folder called XCodeProjects.


Procedure 1 – Use the XCode IDE

Open XCode IDE

Open: /Users /Documents/XCodeProjects/SdrGlut-1.31/SdrGlut.xcodeproj

Open: /Users/…/Documents/XCodeProjects/SdrGlut-1.31/MainSource/main.cpp

Run from the IDE

With this procedure, the code checked before it is compiled.  At compile time the code is available for inspection and editing, and the debug output is provided. In the attached image, the debug screen can be seen in the background. 


Procedure 2 – To run a program built in Procedure 1, but run directly. 

Double-click on …

/Users/MyUserName/Library/Developer/XCodeProjects/DerivedData/SdrGlut-… /Build/Products/Debug/SdrGlut

Actual path may be different on other Mac OS versions and XCode installations.


Procedure 3 -- Using Make file

Open Terminal

Go to Folder: /Users /Documents/XCodeProjects/CPP_SdrGlut-1.31

Enter: make –f makefileMACINTOSH –j 8

Enter: ./sdrglut.x

Attached is an image of selected parts of the screen showing SdrGlut in operation.  The IDE may be seen in the background.

This image is set to the default AM settings and a frequency of 135 Mhz.  That’s because there is a 125 Mhz upconverter and the received signal is WWV 10 Mhz AM. The 10 Mhz carrier and the 100 Hz sidebands can be seen in the zoom screen. The zoom screen also shows what may be the 600 Hz tone sidebands, although the higher sideband has greater amplitude than the lower sideband, and that is an interesting characteristic of the signal’s propagation. 


temp_2022_09_03_sdrglut_run_in_ide.jpg

Dale Ranta

unread,
Sep 3, 2022, 11:35:55 PM9/3/22
to SdrGlut Users
You are running with too small of a sample rate -

 in the "Select Device" dialog select a Sample Rate of 2048000

Or you can right click on the water fall and select -

SampleRate->2048000

If you are using an up converter - you can correct the frequency readings by -

right clicking on the water fall and select -

SDR Dialog...

To open the dialog

Set the "Frequency Offset" to -125e6 and Hit the "Set Frequency" button.
After that you should find a 10e6 station at a frequency of 10e6 instead of 135e6.




Dale Ranta

unread,
Sep 3, 2022, 11:44:34 PM9/3/22
to SdrGlut Users
There are many stations just below WWV to be seen early in the morning or late at night - if you have a good antenna.

KTH21

unread,
Sep 4, 2022, 10:21:18 PM9/4/22
to SdrGlut Users
It is working. 
I found that if I enter the offset incorrectly at "=125.0" thinking it should be Mhz it causes an uncaught error.  Same thing if I incorrectly enter a positive value.  
So now, I'm accustomed to entering the frequency and offset values only in scientific notation. 
I'm using the higher sampling rate you suggested.  the shshsh...shshsh is gone but still am not hearing any audio. Do I have a a setting wrong?
I'm not even getting anything at the default settings of 101.5 setting at either AM or FM.

Dale Ranta

unread,
Sep 5, 2022, 12:02:24 AM9/5/22
to SdrGlut Users
Get rid of the up converter and plug the RTL Stick directly into the the antenna and the usb port.

Then in the "Select Device" widow set the "Mode" to FM and the "Sample Rate" to 2048000.

When you click on the Device button it should open a window near the center of the FM band.

Left click near the center of any of the wide peaks in the power display window - that should get you the sound.

If it does not work show some plots of the of the  Power Display/Water Fall  window and copy the text from the debug window into to your reply. 



For later reference it should be "-125e6" not "=125e6"

KTH21

unread,
Sep 5, 2022, 12:50:39 PM9/5/22
to SdrGlut Users
Thank you.  
Leaving off the up converter and the -125e6 I'm getting local FM very nicely.  It turns out that the AM reception is improved by increasing the gain from 0.25 to 0.50. Looking at the aviation channels I see carriers, but no voice.  That may be because they're not busy at the moment.  I see the carriers on the screens.  Alternatively I checked them in USB mode, and indeed the signals are there.  Will look again.  Will also look at AM on 10Mhz again with the gain set to a higher level.  I'm betting that when conditions are better, I'll be hearing WWV.
Thanks for noting that it should be a "-"  and not "=125e6" That was a typo that occurred when writing the note.  It is also the sort of error that will cause crash.  
When closing the Xcode IDE, I notice that xQuartz doesn't want to shut down and sometimesI have to use a force-quit on it.  
I am trying to better understand how an SDR works, and looked at the code in main.cpp  I see a function, glutMainLoop() but I find no other reference to that.  Does the program work in a continuous loop? That seems logical, and where is where is that function?
One thing for sure I can see and appreciate the work that went into creating the program.  Thank you for sharing it.

KTH21

unread,
Sep 5, 2022, 6:28:34 PM9/5/22
to SdrGlut Users
This is an update of my post from today.  I found the documentation for glutMainLoop() in the openGL documentation.  The document title is "The Open-Source OpenGL Utility Toolkit (freeglut 2.0.0)"

On Sunday, September 4, 2022 at 11:02:24 PM UTC-5 righthal...@gmail.com wrote:

Dale Ranta

unread,
Sep 5, 2022, 11:58:33 PM9/5/22
to SdrGlut Users
If you are interested how a SDR receiver works, SdrGlut-1.31->sdrReceive does all of the basic stuff.
It runs from the command line so there is no GUI stuff around. It runs with three basic threads. One
to save the I/Q data, One to handle the Audio, and one for everything else.

cd SdrGlut-1.31/sdrReceive 

make -f makefileMACINTOSH -j 8

./sdrReceive.x -h

./sdrReceive.x -f 101.5 -fm


"./sdrReceive.x -h" prints out the help information.

"./sdrReceive.x -f 101.5 -fm" plays the fm station at 101.5 MHz.


KTH21

unread,
Sep 6, 2022, 2:31:06 PM9/6/22
to SdrGlut Users
Thank you. 
Reply all
Reply to author
Forward
0 new messages