Nominate our 2022 Qt Champions!

Error in compiling for Qt5.3.2 with -no-xcb -eglfs -opengl es2

  • I am new for Qt development. These days, when I am using Qt5.3.2, and compiling under:
    ./configure -opensource -confirm-license -no-xcb -eglfs -opengl es2

    After configure finished his Makefile, I got the notice to run 'make'.
    During the make compiling, I reached an error like following:

    make[1]: Leaving directory /home/tony/Qt/5.3/Src/qtdeclarative/src/quick' cd qmltest/ && ( test -e Makefile || /home/tony/Qt/5.3/Src/qtbase/bin/qmake /home/tony/Qt/5.3/Src/qtdeclarative/src/qmltest/ -o Makefile ) && make -f Makefile make[1]: Entering directory/home/tony/Qt/5.3/Src/qtdeclarative/src/qmltest'
    rm -f
    g++ -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/usr/local/Qt-5.3.2/lib -shared -Wl,-Bsymbolic-functions -Wl,-soname, -o .obj/quicktest.o .obj/quicktestevent.o .obj/quicktestresult.o .obj/moc_quicktestevent_p.o .obj/moc_quicktestresult_p.o -L/home/tony/Qt/5.3/Src/qtbase/lib -lQt5Widgets -lQt5Gui -lQt5Core -lpthread -lQt5Quick -L/home/tony/Qt/5.3/Src/qtbase/lib -lGL -lQt5Qml -lm -ldl -lrt -lQt5Network -lQt5Gui -lQt5Test -lQt5Core -lpthread -lGLESv2
    /home/tony/Qt/5.3/Src/qtbase/lib/libQt5Quick.a(qsgdefaultdistancefieldglyphcache.o):qsgdefaultdistancefieldglyphcache.cpp:function QSGDefaultDistanceFieldGlyphCache::resizeTexture(QSGDefaultDistanceFieldGlyphCache::TextureInfo*, int, int): error: undefined reference to 'QOpenGLFunctions_3_2_Core::versionProfile()'
    collect2: ld returned 1 exit status
    make[1]: *** [../../lib/] Error 1

    Does anybody meet this issue before? How can I fix this problem?
    Thanks in advance.

Log in to reply