JvanKatwijk / swradio-8

shortwave receiver for use with sdrplay, hackrf, dabsticks and pmsdr
GNU General Public License v2.0
76 stars 18 forks source link

swradio and Ubuntu 20.04 - 64 bit #2

Open frspin opened 3 years ago

frspin commented 3 years ago

Getting source from GIT repo swradio don't compile on Ubuntu 20.04 - 64 bit with this error:

/usr/lib/qt5/bin/moc -DGITHASH=\"9b775f9\" -DHAVE_SDRPLAY -DHAVE_RTLSDR -DHAVE_AM_DECODER -DHAVE_SSB_DECODER -DHAVE_CW_DECODER -DHAVE_AMTOR_DECODER -DHAVE_PSK_DECODER -DHAVE_RTTY_DECODER -DHAVE_MFSK_DECODER -DHAVE_FAX_DECODER -DHAVE_DRM_DECODER -DESTIMATOR_1 -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB --include /mnt/Prog/ham/sdr-j/swradio-8/moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/mnt/Prog/ham/sdr-j/swradio-8 -I/mnt/Prog/ham/sdr-j/swradio-8 -I/mnt/Prog/ham/sdr-j/swradio-8/decimators -I/mnt/Prog/ham/sdr-j/swradio-8/filters -I/mnt/Prog/ham/sdr-j/swradio-8/various -I/mnt/Prog/ham/sdr-j/swradio-8/output -I/mnt/Prog/ham/sdr-j/swradio-8/scopes-qwt6 -I/mnt/Prog/ham/sdr-j/swradio-8/devices -I/mnt/Prog/ham/sdr-j/swradio-8/devices/filereader -I/mnt/Prog/ham/sdr-j/swradio-8/decoders -I/usr/include/qwt -I/mnt/Prog/ham/sdr-j/swradio-8/devices/sdrplay-handler -I/mnt/Prog/ham/sdr-j/swradio-8/devices/rtlsdr-handler -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/am-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/ssb-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/cw-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/amtor-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/psk-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/rtty-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/mfsk-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/fax-decoder -I/usr/include/fdk-aac -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/ofdm -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/signal-handling -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/signal-handling/eq-1 -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/support -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/parameters -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/msc -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/sdc -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/fac -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/data -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/9 -I/usr/include/c++/9/x86_64-redhat-linux -I/usr/include/c++/9/backward -I/usr/lib/gcc/x86_64-redhat-linux/9/include -I/usr/local/include -I/usr/include radio.h -o moc_radio.cpp usr/include/c++/9/bits/stl_relops.:67: Parse error at "std" make: *** [Makefile:866: moc_radio.cpp] Errore 1

As you can see g++ is version is g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 and moc is moc 5.12.8

Compiling source from swradio-8-8.1.tar.gz (without errors) or using latest Appimage libmir_sdr.so is required:

error report libmir_sdr.so: impossibile aprire il file oggetto condiviso: File o directory non esistente

and there is no such library with API version 3.0.7

So 2 different problems:

Regards Franco Spinelli IW2DHW

JvanKatwijk commented 3 years ago

Good question, I did a quick check and in 20.04 you get this error On Fedora I do not get the error and - worse- the file referred to by the error messages is just correct - the file is equal to that in Fedora. So I really do not know

The swradio now does not support 3.06/7. The interface defined there differs fundamentally from the interface defined by 2.13. Writing the interface for 3.06/7 is on the to-do list, but there is a million of other things as well, so it might take some time.

Op za 17 okt. 2020 om 13:30 schreef frspin notifications@github.com:

Getting source from GIT repo swradio don't compile on Ubuntu 20.04 - 64 bit with this error:

/usr/lib/qt5/bin/moc -DGITHASH="9b775f9" -DHAVE_SDRPLAY -DHAVE_RTLSDR -DHAVE_AM_DECODER -DHAVE_SSB_DECODER -DHAVE_CW_DECODER -DHAVE_AMTOR_DECODER -DHAVE_PSK_DECODER -DHAVE_RTTY_DECODER -DHAVE_MFSK_DECODER -DHAVE_FAX_DECODER -DHAVE_DRM_DECODER -DESTIMATOR_1 -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB --include /mnt/Prog/ham/sdr-j/swradio-8/moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/mnt/Prog/ham/sdr-j/swradio-8 -I/mnt/Prog/ham/sdr-j/swradio-8 -I/mnt/Prog/ham/sdr-j/swradio-8/decimators -I/mnt/Prog/ham/sdr-j/swradio-8/filters -I/mnt/Prog/ham/sdr-j/swradio-8/various -I/mnt/Prog/ham/sdr-j/swradio-8/output -I/mnt/Prog/ham/sdr-j/swradio-8/scopes-qwt6 -I/mnt/Prog/ham/sdr-j/swradio-8/devices -I/mnt/Prog/ham/sdr-j/swradio-8/devices/filereader -I/mnt/Prog/ham/sdr-j/swradio-8/decoders -I/usr/include/qwt -I/mnt/Prog/ham/sdr-j/swradio-8/devices/sdrplay-handler -I/mnt/Prog/ham/sdr-j/swradio-8/devices/rtlsdr-handler -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/am-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/ssb-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/cw-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/amtor-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/psk-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/rtty-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/mfsk-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/fax-decoder -I/usr/include/fdk-aac -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/ofdm -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/signal-handling -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/signal-handling/eq-1 -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/support -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/parameters -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/msc -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/sdc -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/fac -I/mnt/Prog/ham/sdr-j/swradio-8/decoders/drm-decoder/data -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/9 -I/usr/include/c++/9/x86_64-redhat-linux -I/usr/include/c++/9/backward -I/usr/lib/gcc/x86_64-redhat-linux/9/include -I/usr/local/include -I/usr/include radio.h -o moc_radio.cpp usr/include/c++/9/bits/stl_relops.:67: Parse error at "std" make: *** [Makefile:866: moc_radio.cpp] Errore 1

As you can see g++ is version is g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 and moc is moc 5.12.8

Compiling source from swradio-8-8.1.tar.gz (without errors) or using latest Appimage libmir_sdr.so is required:

error report libmir_sdr.so: impossibile aprire il file oggetto condiviso: File o directory non esistente

and there is no such library with API version 3.0.7

So 2 different problems:

  • how to compile swradio from GIT on Ubuntu 20.04
  • how to use swradio with SDRPlay API 3.0.7

Regards Franco Spinelli IW2DHW

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/swradio-8/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCPHQHOZNBFUFZ4CNL5YQ3SLF55VANCNFSM4SUJUYNQ .

-- Jan van Katwijk

frspin commented 3 years ago

Which version of g++ and moc are in Fedora?

For support of 3.06/7 API are you considering SoapySDR support? Supporting SoapySDR you get support of more hardware without writing code for each.

Regards Franco Spinelli IW2DHW

frspin commented 3 years ago

A search with Google show an old message (2018) suggesting to remove .qmake.stash file. In source downloaded with GIT qmake command create a .qmake.stash file. Removing this file make go to the end without any error.

So compilation error is gone.

Franco Spinelli IW2DHW

JvanKatwijk commented 3 years ago

Yes, Something to remember to put the .squash file in the .gitignore

Wrt the 3.06/7 driver software: SDRplay decided to provide the interface as "service", however, the handling of the service should happen a;; in a single thread, which is pretty incompatible with the normal way of working with a GUI starting actions in different threads. Furthermore, the software is complicated since it is supposed to handle different versions of the device, each with own parameter settings Personally I prefer the 2.13.1 software, that is sufficiently complex and covers the SDRplay devices I have.

As soon as I find the time, I'll consider creating a 3.x0 interface

Op za 17 okt. 2020 om 21:09 schreef frspin notifications@github.com:

A search with Google show an old message (2018) suggesting to remove .qmake.stash file. In source downloaded with GIT qmake command create a .qmake.stash file. Removing this file make go to the end without any error.

So compilation error is gone.

Franco Spinelli IW2DHW

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/swradio-8/issues/2#issuecomment-711066398, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCPHQFKFEP3A7SQKQBJFR3SLHTU5ANCNFSM4SUJUYNQ .

-- Jan van Katwijk

frspin commented 3 years ago

I have copied libmirsdrapi-rsp.so.2.13 from my previous API install, done required links and, without reinstall 2.13 API, now swradio is finding required libraries.

I will now test if there are problems with other programs using API 3.07

Regards Franco Spinelli IW2DHW

alphafox02 commented 3 years ago

I was able to build it on 20.04, but I did comment out drm, sdrplay and rtlsdr. I also changed the .pro file to reference the correct location for QWT. After that it built fine and I was able to mess around with Swradio and the hackrf.

The soapy addin would be great and I could test with sdrplay 3.0X/sdrplay hardware, Ettus, bladerf and lime here on this end when/if soapy support is added.

JvanKatwijk commented 3 years ago

Thanks for the message

drm is a little messy right now, since I am moving over to another aac library. as soon as that is stable I'll update.

Whenever I have some time left, I'll add support for the 3.0x versions of SDRplay support. The origins of the software date from a period with drm devices that used a soundcard for the data transfer, and it was meant for the lower frequencies (i.e. 0 .. 50 MHz).

Op za 20 feb. 2021 om 14:15 schreef alphafox02 notifications@github.com:

I was able to build it on 20.04, but I did comment out drm, sdrplay and rtlsdr. I also changed the .pro file to reference the correct location for QWT. After that it built fine and I was able to mess around with Swradio and the hackrf.

The soapy addin would be great and I could get with sdrplay 3.0X/sdrplay hardware, Ettus, bladerf and lime here on this end when/if soapy support is added.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/swradio-8/issues/2#issuecomment-782649065, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCPHQH24QVTLJLJC4XXD5TS76YY7ANCNFSM4SUJUYNQ .

-- Jan van Katwijk