Important: Please read the Qt Code of Conduct -

QtWebEngine build with errors

  • I am trying to compile qtwebengine for raspberry pi using
    [ ](link url)


    the compilation terminates with following errors :

    .obj/qquickwebengineview.o:qquickwebengineview.cpp:function QQuickWebEngineView::webChannel(): error: undefined reference to 'QQmlWebChannel::QQmlWebChannel(QObject*)'
    collect2: error: ld returned 1 exit status
    make[2]: *** [../../lib/] Error 1
    make[2]: Leaving directory `/home/gesar/pi-qt5.6/raspi/qtwebengine/src/webengine'
    make[1]: *** [sub-webengine-install_subtargets] Error 2
    make[1]: Leaving directory `/home/gesar/pi-qt5.6/raspi/qtwebengine/src'
    make: *** [sub-src-install_subtargets] Error 2

    Every other module is successfully build except qtwebengine.
    What am I missing?

    Please anyone help. I have been trying for 2 weeks

  • Old post but I had the same error; I had to build qtdeclarative BEFORE qwebchannel to solve this error.