locked Re: problem with cmake


Greg Cook
 

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
CMakeFiles/wsjtx.dir/build.make:903: recipe for target 'CMakeFiles/wsjtx.dir/main.cpp.o' failed
make[5]: *** [CMakeFiles/wsjtx.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:1486: recipe for target 'CMakeFiles/wsjtx.dir/all' failed
make[4]: *** [CMakeFiles/wsjtx.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/wsjtx-build.dir/build.make:60: recipe for target 'wsjtx-prefix/src/wsjtx-stamp/wsjtx-build' failed
make[2]: *** [wsjtx-prefix/src/wsjtx-stamp/wsjtx-build] Error 2
CMakeFiles/Makefile2:388: recipe for target 'CMakeFiles/wsjtx-build.dir/all' failed
make[1]: *** [CMakeFiles/wsjtx-build.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
pi@raspberrypi:~/Downloads/build $

Greg

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