I’m trying to build from the master branch on Mac OS 12.3.1
I have installed qt5 with brew and downloaded QCustomPlot and untarred into the wfview source dir (that I pulled with git).
Under wfview I’ve created a buid dir and changed to the dir.
- qmake …/wfview.pro runs ok.
- make -j gives the following errors:
In file included from ../audiohandler.cpp:6:
../../wfview/audiohandler.h:19:10: fatal error: 'QAudioDeviceInfo' file not found
#include <QAudioDeviceInfo>
^~~~~~~~~~~~~~~~~~
In file included from moc_audiohandler.cpp:10:
./../audiohandler.h:19:10: fatal error: 'QAudioDeviceInfo' file not found
#include <QAudioDeviceInfo>
^~~~~~~~~~~~~~~~~~
1 error generated.
1 error generated.
make: *** [audiohandler.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [moc_audiohandler.o] Error 1
In file included from ../udphandler.cpp:4:
In file included from ../../wfview/udphandler.h:25:
../../wfview/audiohandler.h:19:10: fatal error: 'QAudioDeviceInfo' file not found
#include <QAudioDeviceInfo>
^~~~~~~~~~~~~~~~~~
In file included from moc_udphandler.cpp:10:
In file included from ./../udphandler.h:25:
../../wfview/audiohandler.h:19:10: fatal error: 'QAudioDeviceInfo' file not found
#include <QAudioDeviceInfo>
^~~~~~~~~~~~~~~~~~
1 error generated.
In file included from ../rigcommander.cpp:1:
In file included from ../../wfview/rigcommander.h:11:
In file included from ../../wfview/udphandler.h:25:
../../wfview/audiohandler.h:19:10: fatal error: 'QAudioDeviceInfo' file not found
#include <QAudioDeviceInfo>
^~~~~~~~~~~~~~~~~~
make: *** [moc_udphandler.o] Error 1
In file included from ../rigctld.cpp:1:
In file included from ../../wfview/rigctld.h:21:
In file included from ../../wfview/rigcommander.h:11:
In file included from ../../wfview/udphandler.h:25:
../../wfview/audiohandler.h:19:10: fatal error: 'QAudioDeviceInfo' file not found
#include <QAudioDeviceInfo>
^~~~~~~~~~~~~~~~~~
In file included from ../udpserver.cpp:1:
In file included from ../../wfview/udpserver.h:24:
In file included from ../../wfview/udphandler.h:25:
../../wfview/audiohandler.h:19:10: fatal error: 'QAudioDeviceInfo' file not found
#include <QAudioDeviceInfo>
^~~~~~~~~~~~~~~~~~
In file included from moc_rigcommander.cpp:10:
In file included from ./../rigcommander.h:11:
In file included from ../../wfview/udphandler.h:25:
../../wfview/audiohandler.h:19:10: fatal error: 'QAudioDeviceInfo' file not found
#include <QAudioDeviceInfo>
^~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [udphandler.o] Error 1
In file included from moc_udpserver.cpp:10:
In file included from ./../udpserver.h:24:
In file included from ../../wfview/udphandler.h:25:
../../wfview/audiohandler.h:19:10: fatal error: 'QAudioDeviceInfo' file not found
#include <QAudioDeviceInfo>
^~~~~~~~~~~~~~~~~~
In file included from moc_rigctld.cpp:10:
In file included from ./../rigctld.h:21:
In file included from ../../wfview/rigcommander.h:11:
In file included from ../../wfview/udphandler.h:25:
../../wfview/audiohandler.h:19:10: fatal error: 'QAudioDeviceInfo' file not found
#include <QAudioDeviceInfo>
^~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [moc_udpserver.o] Error 1
1 error generated.
1make: *** [moc_rigcommander.o] Error 1
error generated.
1 error generated.
make: *** [rigctld.o] Error 1
make: *** [rigcommander.o] Error 1
1 error generated.
make: *** [moc_rigctld.o] Error 1
In file included from ../pttyhandler.cpp:5:
In file included from /usr/local/lib/QtCore.framework/Headers/QFile:1:
/usr/local/lib/QtCore.framework/Headers/qfile.h:67:58: error: 'path' is unavailable: introduced in macOS 10.15
inline QString fromFilesystemPath(const std::filesystem::path &path)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/filesystem:902:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../pttyhandler.cpp:5:
In file included from /usr/local/lib/QtCore.framework/Headers/QFile:1:
/usr/local/lib/QtCore.framework/Headers/qfile.h:72:40: error: 'native' is unavailable: introduced in macOS 10.15
return QString::fromStdString(path.native());
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/filesystem:1154:22: note: 'native' has been explicitly marked unavailable here
const string_type& native() const noexcept { return __pn_; }
^
In file included from ../pttyhandler.cpp:5:
In file included from /usr/local/lib/QtCore.framework/Headers/QFile:1:
/usr/local/lib/QtCore.framework/Headers/qfile.h:76:25: error: 'path' is unavailable: introduced in macOS 10.15
inline std::filesystem::path toFilesystemPath(const QString &path)
The errors are truncated as the post was too big.
Many thanks.
Steve G0UQT