[hpsdr] Up and running

Andy Howell andy at gamubaru.com
Sun Mar 31 21:43:52 PDT 2013


Pat,

I'm cc'ing the list so I can find this again when I forget :)

As Andrea warned me, this is still an experimental bit of software. It takes a bit of
fiddling, but I was quite happy when I suddenly heard someone calling CQ on my laptop :)

The README in the source has notes on building,
https://github.com/alexlee188/ghpsdr3-alex/blob/master/README  but Andrea pointed me here:

http://napan.ca/ghpsdr3/index.php/Developers_Documentation

First you need to checkout the source:

# Make a directory somewhere:

mkdir ghpsdr
cd ghpsdr

# Check out the source

git clone https://github.com/alexlee188/ghpsdr3-alex.git

# I used his branch, as it contains a working version for metis/pennylane/mercury:

git checkout iw0hdv

Then follow the directions on the development webpage. Note that we ran into a linking
issue on my machine, because I didn't use the same version of Qt 5 as mentioned on the
webpage. I'm running Ubuntu 12.10. QtRadio requires QT version 5.x. I grabbed that from:

https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-proper

The end result is that QtRadio gets linked to a mish-mash of QT4 and QT 5 libraries. It
crashes on startup. I worked around that by manually fixing the link line. You need to
change the -lQtMultimedia to -lQt5Multimedia. Just let the build complete and:

cd trunk/src/QtRadio

cut and paste the last build command and replace the library as indicated above. Here I
ended up with:

g++ -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_OPENGL_LIB
-DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -g -O2 -m64 -Wl,-O1 -o
QtRadio QtRadio-About.o QtRadio-BandStackEntry.o QtRadio-Buffer.o QtRadio-DIGUFilters.o
QtRadio-Frequency.o QtRadio-Mode.o QtRadio-Waterfall.o QtRadio-AMFilters.o
QtRadio-Bookmark.o QtRadio-Configure.o QtRadio-DSBFilters.o QtRadio-FrequencyInfo.o
QtRadio-SAMFilters.o QtRadio-Xvtr.o QtRadio-Audio.o QtRadio-BookmarkDialog.o
QtRadio-Connection.o QtRadio-Filter.o QtRadio-KeypadDialog.o QtRadio-Spectrum.o
QtRadio-XvtrEntry.o QtRadio-Band.o QtRadio-Bookmarks.o QtRadio-CWLFilters.o
QtRadio-FiltersBase.o QtRadio-LSBFilters.o QtRadio-UI.o QtRadio-BandLimit.o
QtRadio-BookmarksDialog.o QtRadio-CWUFilters.o QtRadio-Filters.o QtRadio-main.o
QtRadio-USBFilters.o QtRadio-Bandscope.o QtRadio-BookmarksEditDialog.o
QtRadio-DIGLFilters.o QtRadio-FMNFilters.o QtRadio-Meter.o QtRadio-vfo.o QtRadio-smeter.o
QtRadio-ctl.o QtRadio-rigctl.o QtRadio-Audioinput.o QtRadio-servers.o QtRadio-G711A.o
QtRadio-RTP.o QtRadio-hardware.o QtRadio-powermate.o QtRadio-About.moc.o
QtRadio-Audio.moc.o QtRadio-Audioinput.moc.o QtRadio-Band.moc.o QtRadio-Bandscope.moc.o
QtRadio-BandStackEntry.moc.o QtRadio-Bookmark.moc.o QtRadio-BookmarkDialog.moc.o
QtRadio-Bookmarks.moc.o QtRadio-BookmarksDialog.moc.o QtRadio-BookmarksEditDialog.moc.o
QtRadio-Configure.moc.o QtRadio-Connection.moc.o QtRadio-Filter.moc.o
QtRadio-FiltersBase.moc.o QtRadio-Filters.moc.o QtRadio-KeypadDialog.moc.o
QtRadio-Mode.moc.o QtRadio-Spectrum.moc.o QtRadio-UI.moc.o QtRadio-vfo.moc.o
QtRadio-Waterfall.moc.o QtRadio-Xvtr.moc.o QtRadio-smeter.moc.o QtRadio-ctl.moc.o
QtRadio-rigctl.moc.o QtRadio-servers.moc.o QtRadio-G711A.moc.o QtRadio-RTP.moc.o
QtRadio-hardware.moc.o QtRadio-powermate.moc.o -m64 -Wl,-O1  -L/usr/X11R6/lib64
-lQt5OpenGL -L/usr/lib/x86_64-linux-gnu -lQt5Widgets -lQt5Network -lQt5Gui -lQt5Core -lGL
-lpthread -lQt5Multimedia  -lortp -lsamplerate -lcodec2

You can make sure its correct by doing:

ldd QtRadio|grep -i qt

	libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007fae2519a000)
	libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007fae24e62000)
	libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007fae2489e000)
	libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007fae24289000)
	libQt5Multimedia.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Multimedia.so.5 (0x00007f

You should not see any QT 4 libs. It may be fine if you use the QT distribution mentioned
in the web page.

As I was writing this, I found a solution to the above. On the bottom of the
http://napan.ca/ghpsdr3/index.php/Developers_Documentation it says to do:


$ cd /opt/qt5/lib
$ sudo ln -s libQtMultimedia.so.5.0.0 libQt5Multimedia.so
$ sudo ln -s libQtMultimedia.so.5.0.0 libQt5Multimedia.so.5
$ sudo ln -s libQtMultimedia.so.5.0.0 libQt5Multimedia.so.5.0

This is assuming that your Qt libs are under opt/qt5/lib. They are not with mine, but
might be if you installed them as described on the web page. This is work-around to my
thinking. Mind you I am ignorant about Qt development, though I do develop in C++ for work.

You can start it up without installing in:

cd trunk/src/server ;  ./hpsdr-server  --metis --samplerate 96000

cd trunk/src/dspserver ;  ./dspserver --lo 0  --hpsdr --nocorrectiq

cd trunk/src/QtRadio ;  ./QtRadio 127.0.0.1


Getting fldigi to work with it is not do hard under Ubuntu. There are two issues. First is
controlling the rig, and second is dealing with audio. Start up QtRadio. For controlling
QtRadio from within fldigi, first go to the Configure->Rig Control menu.

Select the Hamlib tab, check the "Use hamlib" box.
In the Rig box, select "Hamlib NET rigctl  (Beta)"
In the Device box, put "127.0.0.1:19090" ( no quotes  )
Hit the "Initialize" button and then "save" button.

You should now see the correct frequency in the fldigi. This seems a bit quirky. I had to
re-initialize once or twice.

For the audio, use the Pulse Audio Volume Control. In the Recording tab, find "ALSA
Plug-in [fldigi]. On the right hand side there is a button "Built-in Audio Analog Stereo".
Click that and select "Monitor of built in Audio Analog device.

Now fldigi should be getting the audio from QtRadio. Note that I have not done anything
with the transmit side of things yet. That is for another day.

Regards,
	Andy - Kf5JLJ

On 03/31/2013 06:14 PM, Pat McGrath wrote:
> Congratulations.
> 
> Any step by step guide available that I can use to install ghpsdr3-alex?
> 
> 
> -----Original Message-----
> From: Andy Howell [mailto:andy at gamubaru.com] 
> Sent: Sunday, March 31, 2013 2:45 PM
> To: hpsdr at lists.openhpsdr.org
> Subject: [hpsdr] Up and running
> 
> ***** High Performance Software Defined Radio Discussion List *****
> 
> Thanks to Andrea Montefusco, I got my radio up and running with
> ghpsdr3-alex. Sitting in my living room with the my laptop, QtRadio and
> Fldigi is really neat!
> 
> Great stuff! Thanks to all that made this possible.
> 
> Andy - KF5JLJ
> _______________________________________________
> HPSDR Discussion List
> To post msg: hpsdr at openhpsdr.org
> Subscription help:
> http://lists.openhpsdr.org/listinfo.cgi/hpsdr-openhpsdr.org
> HPSDR web page: http://openhpsdr.org
> Archives: http://lists.openhpsdr.org/pipermail/hpsdr-openhpsdr.org/
> 


 1364791432.0


More information about the Hpsdr mailing list