Error linking libQt5WebKit.so



  • Hi, guys! I tried to build both release and stable branches with the commands
    @
    ./configure -c++11 -qt-xcb -icu -cups -pch -opensource -confirm-license -developer-build -release -opengl desktop -nomake examples -nomake tests -v
    make
    @
    but always get this error:
    @
    rm -f libQt5WebKit.so.5.2.2 libQt5WebKit.so libQt5WebKit.so.5 libQt5WebKit.so.5.2
    g++ -Wl,--gc-sections -Wl,--no-undefined -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/media/sgnr/git/qt5/qtbase/lib -shared -Wl,-Bsymbolic-functions -Wl,-soname,libQt5WebKit.so.5 -o libQt5WebKit.so.5.2.2 -L/media/sgnr/git/qt5/qtbase/lib -lQt5Network -L/media/sgnr/git/qt5/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Gui -L/media/sgnr/git/qt5/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread -Wl,-whole-archive -lWebKit1 -Wl,-no-whole-archive -L/media/sgnr/git/qt5/qtwebkit/Source/WebKit/ -Wl,-whole-archive -lWebKit2 -Wl,-no-whole-archive -L/media/sgnr/git/qt5/qtwebkit/Source/WebKit2/ -lrt -Wl,-whole-archive -lWebCore -Wl,-no-whole-archive -L/media/sgnr/git/qt5/qtwebkit/Source/WebCore/ -lz -lXrender -lXcomposite -lXrender -ljpeg -lpng -Wl,-whole-archive -lANGLE -Wl,-no-whole-archive -L/media/sgnr/git/qt5/qtwebkit/Source/ThirdParty/ANGLE/ -Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive -L/media/sgnr/git/qt5/qtwebkit/Source/JavaScriptCore/ -Wl,-whole-archive -lWTF -Wl,-no-whole-archive -L/media/sgnr/git/qt5/qtwebkit/Source/WTF/ -licui18n -licuuc -licudata -lXext -lX11 -lm -L/usr/local/lib -lX11 -lxml2 -lQt5Quick -L/media/sgnr/git/qt5/qtbase/lib -lQt5Qml -L/media/sgnr/git/qt5/qtbase/lib -lQt5Network -L/media/sgnr/git/qt5/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread -lQt5Network -L/media/sgnr/git/qt5/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Gui -L/media/sgnr/git/qt5/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread -lQt5Multimedia -L/media/sgnr/git/qt5/qtbase/lib -lQt5Gui -L/media/sgnr/git/qt5/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Network -L/media/sgnr/git/qt5/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread -lQt5Qml -L/media/sgnr/git/qt5/qtbase/lib -lQt5Network -L/media/sgnr/git/qt5/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread -lQt5Sql -L/media/sgnr/git/qt5/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Gui -L/media/sgnr/git/qt5/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Network -L/media/sgnr/git/qt5/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Positioning -L/media/sgnr/git/qt5/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Sensors -L/media/sgnr/git/qt5/qtbase/lib -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lGL
    /media/sgnr/git/qt5/qtwebkit/Source/WebKit//.obj/qt/WebCoreSupport/QWebPageAdapter.o: In function QWebPageClient::~QWebPageClient()': QWebPageAdapter.cpp:(.text._ZN14QWebPageClientD0Ev[_ZN14QWebPageClientD5Ev]+0x12): undefined reference tovtable for QWebPageClient'
    /media/sgnr/git/qt5/qtwebkit/Source/WebKit//.obj/qt/WebCoreSupport/QWebPageAdapter.o: In function QWebPageAdapter::~QWebPageAdapter()': QWebPageAdapter.cpp:(.text._ZN15QWebPageAdapterD2Ev+0x8e): undefined reference tovtable for QWebPageClient'
    /media/sgnr/git/qt5/qtwebkit/Source/WebKit//.obj/qt/WebCoreSupport/QWebPageAdapter.o: In function QWebPageClient::~QWebPageClient()': QWebPageAdapter.cpp:(.text._ZN14QWebPageClientD2Ev[_ZN14QWebPageClientD5Ev]+0x11): undefined reference tovtable for QWebPageClient'
    collect2: error: ld returned 1 exit status
    make[3]: *** [/media/sgnr/git/qt5/qtbase/lib/libQt5WebKit.so.5.2.2] Error 1
    make[3]: Leaving directory /media/sgnr/git/qt5/qtwebkit/Source' make[2]: *** [sub-api-pri-make_first-ordered] Error 2 make[2]: Leaving directory/media/sgnr/git/qt5/qtwebkit/Source'
    make[1]: *** [sub-Source-QtWebKit-pro-make_first-ordered] Error 2
    make[1]: Leaving directory `/media/sgnr/git/qt5/qtwebkit'
    make: *** [module-qtwebkit-make_first] Error 2
    @
    The config of my PC:
    OS: xubuntu
    gcc: 4.9.0 20140124
    ld: 2.24.51.20140125

    Can someone tell what's wrong with it?
    Do I need qtwebkit module to subsequently build QtCreator?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.