Nominate our 2022 Qt Champions!

Qt5.5.1 tslib compile failing

  • Re: QT5 - TSLIB plugin compilation
    I am trying to compile as detailed in the referenced post

    "just go to the qtbase/src/plugins/generic/tslib/ folder and call qmake + make/make install"

    The compiling is failing

    pi@clockpi:~/qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/generic/tslib $ make
    rm -f
    /usr/bin/g++ -Wl,-rpath-link,/opt/vc/lib -mfloat-abi=hard -Wl,--no-undefined -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -Wl,-rpath,/opt/Qt5.5.1/lib -shared -o .obj/main.o  -lts -L/opt/Qt5.5.1/lib -lQt5PlatformSupport -lfontconfig -lfreetype -lQt5DBus -lgthread-2.0 -pthread -lglib-2.0 -ludev -lmtdev -lEGL -L/opt/vc/lib -lQt5Gui -lQt5Core -lGLESv2 -lpthread
    .obj/main.o:main.cpp:function QTsLibPlugin::create(QString const&, QString const&): error: undefined reference to 'QTsLibMouseHandler::QTsLibMouseHandler(QString const&, QString const&, QObject*)'
    collect2: error: ld returned 1 exit status
    Makefile:129: recipe for target '../../../../plugins/generic/' failed
    make: *** [../../../../plugins/generic/] Error 1

    Does anyone know how I can fix this?
    I have tried looking for the QTsLibMouseHandler to include it in the makefile but I have had no luck.

Log in to reply