Hi all. So far I’ve used the search function but can’t find wats going wrong here. So far I have tried to run the script and also cloned the git repo and installed one step at a time as I found in one thread here talking about the RPi.
I am getting this c++ compliler error when running the make -j or make -j2 of -faligned-new
pi@raspberrypi:~/Downloads/wfview/build $ make -j2
g++ -c -pipe -s -fvisibility=hidden -fvisibility-inlines-hidden -faligned-new -O2 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQCUSTOMPLOT_COMPILE_LIBRARY -DUSE_NEON -DOUTSIDE_SPEEX -DRANDOM_PREFIX=wf -D__LINUX_ALSA__ -DHOST="hostname
" -DUNAME="whoami
" -DGITSHORT=“c7f0cee” -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I…/…/wfview -I. -I…/resampler -isystem /usr/include/arm-linux-gnueabihf/qt5 -isystem /usr/include/arm-linux-gnueabihf/qt5/QtMultimedia -isystem /usr/include/arm-linux-gnueabihf/qt5/QtPrintSupport -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtSerialPort -isystem /usr/include/arm-linux-gnueabihf/qt5/QtNetwork -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -I. -I. -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -o main.o …/main.cpp
g++ -c -pipe -s -fvisibility=hidden -fvisibility-inlines-hidden -faligned-new -O2 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQCUSTOMPLOT_COMPILE_LIBRARY -DUSE_NEON -DOUTSIDE_SPEEX -DRANDOM_PREFIX=wf -D__LINUX_ALSA__ -DHOST="hostname
" -DUNAME="whoami
" -DGITSHORT=“c7f0cee” -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I…/…/wfview -I. -I…/resampler -isystem /usr/include/arm-linux-gnueabihf/qt5 -isystem /usr/include/arm-linux-gnueabihf/qt5/QtMultimedia -isystem /usr/include/arm-linux-gnueabihf/qt5/QtPrintSupport -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtSerialPort -isystem /usr/include/arm-linux-gnueabihf/qt5/QtNetwork -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -I. -I. -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -o wfmain.o …/wfmain.cpp
g++: error: unrecognized command line option ‘-faligned-new’; did you mean ‘-falign-jumps’?
Makefile:691: recipe for target ‘main.o’ failed
make: *** [main.o] Error 1
make: *** Waiting for unfinished jobs…
g++: error: unrecognized command line option ‘-faligned-new’; did you mean ‘-falign-jumps’?
Makefile:717: recipe for target ‘wfmain.o’ failed
make: *** [wfmain.o] Error 1
Sorry for the big dump of text. I can’t see any code insert.
1 Like
eliggett
(Elliott Liggett)
11 July 2021 19:09
2
Hi Paul,
That’s a new one for me! Exactly what operating system and g++ are you using?
Can you send the output of these two commands:
g++ -v
lsb_release -a
Thanks,
–Elliott
de W6EL
eliggett
(Elliott Liggett)
11 July 2021 19:15
3
Hi Paul,
You can probably get this to work if you just disable that particular option in the wfview.pro file. This option is in line 23: QMAKE_CXXFLAGS += -faligned-new
. Just remove that line all together.
I’m definitely curious as to what your system is, we should make wfview detect this condition and disable this option automatically in the future.
–E
de W6EL
Hi Elliot,
I have commented out the line but now I get this error. Maybe it’s worth me just installing the latest version of Raspbian.
pi@raspberrypi:~/Downloads/wfview/build $ make -j2
/usr/lib/arm-linux-gnueabihf/qt5/bin/qmake -o Makefile …/wfview.pro
g++ -c -pipe -s -fvisibility=hidden -fvisibility-inlines-hidden -O2 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQCUSTOMPLOT_COMPILE_LIBRARY -DUSE_NEON -DOUTSIDE_SPEEX -DRANDOM_PREFIX=wf -D__LINUX_ALSA__ -DHOST="hostname
" -DUNAME="whoami
" -DGITSHORT=“c7f0cee” -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I…/…/wfview -I. -I…/resampler -isystem /usr/include/arm-linux-gnueabihf/qt5 -isystem /usr/include/arm-linux-gnueabihf/qt5/QtMultimedia -isystem /usr/include/arm-linux-gnueabihf/qt5/QtPrintSupport -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtSerialPort -isystem /usr/include/arm-linux-gnueabihf/qt5/QtNetwork -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -I. -I. -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -o main.o …/main.cpp
g++ -c -pipe -s -fvisibility=hidden -fvisibility-inlines-hidden -O2 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQCUSTOMPLOT_COMPILE_LIBRARY -DUSE_NEON -DOUTSIDE_SPEEX -DRANDOM_PREFIX=wf -D__LINUX_ALSA__ -DHOST="hostname
" -DUNAME="whoami
" -DGITSHORT=“c7f0cee” -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I…/…/wfview -I. -I…/resampler -isystem /usr/include/arm-linux-gnueabihf/qt5 -isystem /usr/include/arm-linux-gnueabihf/qt5/QtMultimedia -isystem /usr/include/arm-linux-gnueabihf/qt5/QtPrintSupport -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtSerialPort -isystem /usr/include/arm-linux-gnueabihf/qt5/QtNetwork -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -I. -I. -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -o wfmain.o …/wfmain.cpp
In file included from …/rigcommander.h:9:0,
from …/wfmain.h:16,
from …/wfmain.cpp:1:
…/udphandler.h:6:28: fatal error: QNetworkDatagram: No such file or directory
#include
^
In file included from …/rigcommander.h:9:0,
from …/wfmain.h:16,
from …/main.cpp:3:
…/udphandler.h:6:28: fatal error: QNetworkDatagram: No such file or directory
#include
^
compilation terminated.
compilation terminated.
Makefile:721: recipe for target ‘wfmain.o’ failed
make: *** [wfmain.o] Error 1
make: *** Waiting for unfinished jobs…
Makefile:694: recipe for target ‘main.o’ failed
make: *** [main.o] Error 1
Thanks for your help.
73,
Paul
pi@raspberrypi:~ $ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/6/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: …/src/configure -v --with-pkgversion=‘Raspbian 6.3.0-18+rpi1+deb9u1’ --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1+deb9u1)
pi@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.13 (stretch)
Release: 9.13
Codename: stretch
It’s an older version which I can just do a fresh install of the latest raspbian. It’s just what I had laying around.
I’ll try deleting the line and see if it works
Cheers,
Paul
eliggett
(Elliott Liggett)
12 July 2021 06:33
6
Hi Paul,
I suspect you may be compiling against qt4. We’ve mostly tested with qt5, which is available on the raspberry pi. Are you able to do this command:
sudo apt-get install qt5-default
Or do you get an error? If that command succeeds, I would make a new build directory and try compiling again.
–E
de W6EL
When I run the apt qt5-default I get the message that qt5-default is already the newest version. Not sure what else would be going on.
Might be worth me downloading the latest raspbian and installing it on a second microsd and seeing if that works.
I guess I could always remove qt4 to be sure it doesn’t use it to build
phil
(Phil Taylor M0VSE)
12 July 2021 08:42
8
Hi Paul.
Yes that is Raspbian Stretch which is pretty old. You can either do an in-place upgrade to Buster How to Upgrade Raspbian Stretch to Raspbian Buster - Pi My Life Up or install a new image.
73 Phil M0VSE
I’m just downloading the latest version Phil and I’ll see how it goes. It’s easier for me to get the whole image as we have really poor internet here and if I stuff something up and had to do an upgrade twice then it really starts to add up. Fingers crossed it works with the newer version but I’ll still have the old image to play with if I get bored. I’ve been using linux as my primary OS now for about the last 15 years and it’s amazing how much it still trips me up.
73,
Paul
Well good news is it’s up and running on the Pi now.
Thanks everybody for your help and suggestions
73,
Paul
1 Like
eliggett
(Elliott Liggett)
12 July 2021 16:47
11
Hi Paul,
Glad it’s working! Let us know how it goes. The Pi makes a great server for the 7300 and other non-LAN rigs too!
–E
de W6EL
KG5UMH
(Michael H Grossie)
22 September 2021 18:49
12
Also trying to install on Pi 3b+
I had it working and the sd card got corrupted (to close to the amplifier?)
Reimaged with Raspbian Buster - May 201 version.
Ran the wfview script from August 2021.
Received this error at the end of the install -
"…/wfview/audiohandler.h:40:10: fatal error: opus/opus.h: No such file or directory
#include “opus/opus.h”*
^~~~~~~~~~~~~*
In file included from …/wfview/udphandler.h:24,
from ../wfview/rigcommander.h:9,*
from ../wfview/wfmain.h:16,*
from ../wfview/main.cpp:3:*
…/wfview/audiohandler.h:40:10: fatal error: opus/opus.h: No such file or directory
#include “opus/opus.h”*
^~~~~~~~~~~~~*
compilation terminated.
compilation terminated.
make: *** [Makefile:811: wfmain.o] Error 1
make: *** Waiting for unfinished jobs…
make: *** [Makefile:785: main.o] Error 1
Error in make step.
wfview was not compiled.
Please consider posting the error(s) to https://forum.wfview.org/
Results of g++ -v
“Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/8/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: …/src/configure -v --with-pkgversion=‘Raspbian 8.3.0-6+rpi1’ --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1)”
Results of lsb_release -a
“No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster”
There is no icon for wfview displayed (as there was on the first install).
Am I missing a library?
TIA
Michael
phil
(Phil Taylor M0VSE)
22 September 2021 18:54
13
Hi Michael.
Yes and the install script has been updated accordingly, so you should either download the latest version of the install script from fullbuild-wfview.sh · master · Elliott Liggett / scripts · GitLab or manually install the opus library
sudo apt-get install libopus-dev
73 Phil