Home        Store        Learn        Blog

Ping View build error

Hi BlueRobotics!
Having errors when building Ping-view from source with build instruction
…/src/link/udplink.cpp: In constructor ‘UDPLink::UDPLink(QObject*)’:
…/src/link/udplink.cpp:17:43: error: ‘errorOccurred’ is not a member of ‘QAbstractSocket’
connect(_udpSocket, &QAbstractSocket::errorOccurred, this,
Makefile:6866: recipe for target ‘udplink.o’ failed

  • uname -mov
    #78~18.04.1-Ubuntu SMP Sat Mar 20 14:10:07 UTC 2021 x86_64 GNU/Linux
  • qmake --version
    QMake version 3.1
    Using Qt version 5.12.6 in /home/me/Src/Qt/5.12.6/gcc_64/lib
  • gcc --version
    gcc (GCC) 8.2.0

Hi, I would recommend to check your installation, as you can see in the documentation, Qt 5.12 has QAbstractSocket::errorOccurred: QAbstractSocket Class | Qt Network 5.12.10.

If you are building master branch, I would recommend to use Qt 5.15 since we are starting to work over Qt6 release.

Thanks, that solved the issue!