godarklight / dream

Dream AM/DRM Receiver
GNU General Public License v2.0
11 stars 6 forks source link

Trying to build on kubuntu 21.10 #1

Open nmaster2042 opened 2 years ago

nmaster2042 commented 2 years ago

I get issue building this version of dream under kubuntu 21.10.

First, qt5-defaults isn't avaliable any more. It has to be replaced by qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools

Now, in dream folder: $ qmake

Project MESSAGE: Qt 5 release GUI mode
Project MESSAGE: building on Linux for this platform
Project MESSAGE: with fdk-aac
Project MESSAGE: with opus
Project MESSAGE: with libsndfile
Project MESSAGE: with libspeexdsp
Project MESSAGE: with hamlib
Project MESSAGE: with Qwt
Project MESSAGE: with pulseaudio
Project MESSAGE: with SoapySDR
Project MESSAGE: Qt modules core gui network xml widgets svg

It seem ok, then $ make

I get a fatal error:

g++ -c -pipe -O2 -g -O2 -ffile-prefix-map=/home/nicolas/Applis/SDR/dream=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -Wextra -D_REENTRANT -fPIC -DEXECUTABLE_NAME=dream -DHAVE_DLFCN_H -DHAVE_MEMORY_H -DHAVE_STDINT_H -DHAVE_STDLIB_H -DHAVE_STRINGS_H -DHAVE_STRING_H -DSTDC_HEADERS -DHAVE_INTTYPES_H -DHAVE_STDINT_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DHAVE_LIBZ -DHAVE_LIBPCAP -DHAVE_LIBFDK_AAC -DHAVE_USAC -DHAVE_LIBOPUS -DUSE_OPUS_LIBRARY -DHAVE_LIBSNDFILE -DHAVE_SPEEX -DHAVE_LIBHAMLIB -DUSE_PULSEAUDIO -DUSE_SOAPYSDR -D_REENTRANT -DQWT_DLL -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I/home/nicolas/Applis/SDR/dream/include -Isrc/GUI-QT -I/usr/include/qwt -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtSvg -I/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -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/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtCore -Imoc -Iui -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o obj/DialogUtil.o src/GUI-QT/DialogUtil.cpp
In file included from src/GUI-QT/DialogUtil.cpp:66:
src/GUI-QT/../sourcedecoders/fdk_aac_codec.h:33:10: fatal error: fdk-aac/aacdecoder_lib.h: Aucun fichier ou dossier de ce type
   33 | #include <fdk-aac/aacdecoder_lib.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:2348 : obj/DialogUtil.o] Erreur 1

Any advise for this ?

RyLeeRyno commented 2 years ago

You're missing the fdk-aac dev package.

sudo apt install libfdk-aac-dev

nmaster2042 commented 2 years ago

Thanks, I now the lib but I missing other ones:

/usr/bin/ld : ne peut pas trouver /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so : Aucun fichier ou dossier de ce type /usr/bin/ld : ne peut pas trouver /usr/lib/x86_64-linux-gnu/libQt5Gui.so : Aucun fichier ou dossier de ce type /usr/bin/ld : ne peut pas trouver /usr/lib/x86_64-linux-gnu/libQt5Core.so : Aucun fichier ou dossier de ce type collect2: error: ld returned 1 exit status make: *** [Makefile:853 : dream] Erreur 1 Tried install: sudo apt install libqt5opengl5-dev but was already installed.

and no more success.

RyLeeRyno commented 2 years ago

You didn't specify to build with Qt5. Run with this:

qmake -qt=qt5 CONFIG+=console

nmaster2042 commented 2 years ago

Doing this I get a console only dream. I don't have GUI