locked Re: problem with cmake


Bill Somerville
 

On 20/11/2020 20:17, Greg Cook via groups.io wrote:
Hi Bill,

The build failed at the output below

[ 94%] Building CXX object CMakeFiles/wsjtx.dir/main.cpp.o
/home/pi/Downloads/build/wsjtx-prefix/src/wsjtx/main.cpp: In function ‘void {anonymous}::safe_stream_QVariant(boost::log::v2_mt_posix::record_ostream&, const QVariant&)’:
/home/pi/Downloads/build/wsjtx-prefix/src/wsjtx/main.cpp:79:50: error: no matching function for call to ‘QByteArray::toHex(char)’
         os << "0x" << v.toByteArray ().toHex (':').toStdString ();
                                                  ^
In file included from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qstring.h:49:0,
                 from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qobject.h:47,
                 from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qsharedmemory.h:43,
                 from /usr/include/arm-linux-gnueabihf/qt5/QtCore/QSharedMemory:1,
                 from /home/pi/Downloads/build/wsjtx-prefix/src/wsjtx/main.cpp:11:
/usr/include/arm-linux-gnueabihf/qt5/QtCore/qbytearray.h:361:16: note: candidate: QByteArray QByteArray::toHex() const
     QByteArray toHex() const;
                ^~~~~
/usr/include/arm-linux-gnueabihf/qt5/QtCore/qbytearray.h:361:16: note:   candidate expects 0 arguments, 1 provided
Hi Greg,

getting closer. Apologies for not doing this all in one go, I currently do not have space for a new Linux VM. Attached a revised patch file that should fix that compilation error.

73
Bill
G4WJS.

Join main@WSJTX.groups.io to automatically receive all group messages.