f4exb / sdrangel

SDR Rx/Tx software for Airspy, Airspy HF+, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay and FunCube
GNU General Public License v3.0
2.92k stars 441 forks source link

Failed building on archlinux #1337

Closed edombek closed 2 years ago

edombek commented 2 years ago

(https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=sdrangel-git)

/home/edombek/.cache/aurman/sdrangel-git/src/sdrangel/plugins/channelrx/demodfreedv/freedvdemodsink.cpp: In constructor ‘FreeDVDemodSink::FreeDVDemodSink()’:
/home/edombek/.cache/aurman/sdrangel-git/src/sdrangel/plugins/channelrx/demodfreedv/freedvdemodsink.cpp:154:9: warning: ‘QMutex::QMutex(RecursionMode)’ is deprecated: Use QRecursiveMutex instead of a recursive QMutex [-Wdeprecated-declarations]
  154 |         m_mutex(QMutex::Recursive)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt/QtCore/QMutex:1,
                 from /home/edombek/.cache/aurman/sdrangel-git/src/sdrangel/sdrbase/util/messagequeue.h:24,
                 from /home/edombek/.cache/aurman/sdrangel-git/src/sdrangel/sdrbase/dsp/basebandsamplesink.h:24,
                 from /home/edombek/.cache/aurman/sdrangel-git/src/sdrangel/plugins/channelrx/demodfreedv/freedvdemodsink.cpp:23:
/usr/include/qt/QtCore/qmutex.h:140:14: note: declared here
  140 |     explicit QMutex(RecursionMode mode);
      |              ^~~~~~
/home/edombek/.cache/aurman/sdrangel-git/src/sdrangel/plugins/channelrx/demodfreedv/freedvdemodsink.cpp: In member function ‘void FreeDVDemodSink::applyFreeDVMode(FreeDVDemodSettings::FreeDVMode)’:
/home/edombek/.cache/aurman/sdrangel-git/src/sdrangel/plugins/channelrx/demodfreedv/freedvdemodsink.cpp:436:13: error: ‘struct freedv_advanced’ has no member named ‘interleave_frames’
  436 |         adv.interleave_frames = 1;
      |             ^~~~~~~~~~~~~~~~~
make[2]: *** [pluginssrv/channelrx/demodfreedv/CMakeFiles/demodfreedvsrv.dir/build.make:118: pluginssrv/channelrx/demodfreedv/CMakeFiles/demodfreedvsrv.dir/freedvdemodsink.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
srcejon commented 2 years ago

Looks like your compiling an old version of sdrangel that didn't work with the latest version of freedv.

edombek commented 2 years ago

@srcejon, no, I build the version by downloading the current version from the repository

tghe-retford commented 2 years ago

I noticed that the version that is being downloaded from the AUR has gone from 7.4.0 (which I currently have installed) to 6.20.3 (the "upgrade"). Something has gone wrong with the versioning. I have left a comment on the AUR page and hopefully whatever has caused this problem can be fixed.

edombek commented 2 years ago

@tghe-retford the version is automatically generated from the tag, and the version specified in the assembly instructions does not affect. (see pkgver function in PKGBUILD)

edombek commented 2 years ago

@tghe-retford this does not apply to this discussion, I tried to collect manually

srcejon commented 2 years ago

What version of freedv do you have? Did you do:

git reset --hard 76a20416d715ee06f8b36a9953506876689a3bd2

As per: https://github.com/f4exb/sdrangel/wiki/Compile-from-source-in-Linux

What command did you use to get the latest sdrangel source?

edombek commented 2 years ago

@srcejon thanks, i use codec2 1:1.0.4... and get sdrangel: git clone https://github.com/f4exb/sdrangel. As far as I understand, I'll have to use the old version codec2...

srcejon commented 2 years ago

Yes - Current version to use is 1.0.3 - See: https://github.com/f4exb/sdrangel/commit/93e51e140be0e6fe7588923457985ee4d793071f

Duplicate of https://github.com/f4exb/sdrangel/issues/1256

edombek commented 2 years ago

I add this version to aur codec2-1.0.3