I had a go at compiling WFServer on a Raspberry Pi running Bulleye.
Initially I had an issue with getpid, fork, setsid, gettablesize, close and dup not being declared in main.cpp. I was able to resolve this by adding #include <unistd.h>.
I’m now getting errors
…/wfview/rigctld.cpp:1376:38: error: ‘as_const’ is not a member of ‘std’; did you mean ‘is_const’?
1376 | for (const bandType &band : std::as_const(rigCaps->bands))
This is the source file that is failing to compile.
g++ -c -pipe -s -fvisibility=hidden -fvisibility-inlines-hidden -faligned-new -O2 -Wall -Wextra -D_REENTRANT -fPIC -DWFVIEW_VERSION="2.03" -DBUILD_WFSERVER -D__LINUX_PULSE__ -DQT_DEPRECATED_WARNINGS -DQCUSTOMPLOT_COMPILE_LIBRARY -DOUTSIDE_SPEEX -DRANDOM_PREFIX=wf -DEIGEN_MPL2_ONLY -DEIGEN_DONT_VECTORIZE -DPREFIX="/usr/local" -DHOST="hostname" -DUNAME="whoami" -DGITSHORT="ed9a02a" -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…/wfview/resampler -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtMultimedia -I/usr/include/aarch64-linux-gnu/qt5/QtPrintSupport -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtSerialPort -I/usr/include/aarch64-linux-gnu/qt5/QtNetwork -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I. -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -o moc_commhandler.o moc_commhandler.cpp
…/wfview/rigctld.cpp: In member function ‘int rigCtlClient::dumpState(QStringList&, bool)’:
…/wfview/rigctld.cpp:1376:38: error: ‘as_const’ is not a member of ‘std’; did you mean ‘is_const’?
1376 | for (const bandType &band : std::as_const(rigCaps->bands))
| ^~~~~~~~
| is_const
…/wfview/rigctld.cpp:1389:42: error: ‘as_const’ is not a member of ‘std’; did you mean ‘is_const’?
1389 | for (const bandType &band : std::as_const(rigCaps->bands))
| ^~~~~~~~
| is_const
In file included from …/wfview/pttyhandler.h:14,
from …/wfview/rigcommander.h:12,
from …/wfview/servermain.h:18,
from moc_servermain.cpp:10:
I’m running “qmake …/wfview/wfserver.pro” then “make -j4” as per the Headless Server Instructions. Headless Server | wfview