compile qtwebkit, 'undefined reference to 'QMetaObjectBuilder::setClassName'
-
bugs appeared when compile qtwebkit , just like 'undefined reference to 'QMetaObjectBuilder::setClassName' ...
any idea?
thanks advance.TestWebCore.dir/Tests/WebCore/TextCodec.cpp.o -o bin/TestWebKitAPI/WebCore/TestWebCore -Wl,-rpath,/root/Downloads/qtwebkit-5.212.0-alpha4/build/lib lib/libWebCore.a lib/libgtest.so /usr/lib64/libQt5Gui.so.5.11.1 lib/libJavaScriptCore.a lib/libwoff2.a lib/libbrotli.a /usr/lib64/libQt5Network.so.5.11.1 /usr/lib/libQt5Sensors.so.5.11.1 -ljpeg -lpng -lz -lwebp -lhyphen -lxml2 -lxslt -lsqlite3 -lX11 -lgio-2.0 -lgstapp-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgstpbutils-1.0 -lgstaudio-1.0 -lgsttag-1.0 -lgstvideo-1.0 -lgstfft-1.0 -ljpeg -lpng -lz -lwebp -lhyphen -lxml2 -lxslt -lsqlite3 -lX11 -lgio-2.0 -lgstapp-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgstpbutils-1.0 -lgstaudio-1.0 -lgsttag-1.0 -lgstvideo-1.0 -lgstfft-1.0 lib/libANGLESupport.a lib/libWTF.a /usr/lib64/libQt5Core.so.5.11.1 -ldl -licuuc -lgobject-2.0 -lglib-2.0 -licui18n -lpthread && : /usr/lib/libQt5Sensors.so.5.11.1: error: undefined reference to 'QMetaObjectBuilder::setClassName(QByteArray const&)', version 'Qt_5_PRIVATE_API' /usr/lib/libQt5Sensors.so.5.11.1: error: undefined reference to 'QMetaMethodBuilder::signature() const', version 'Qt_5_PRIVATE_API' /usr/lib/libQt5Sensors.so.5.11.1: error: undefined reference to 'QMetaObjectBuilder::setSuperClass(QMetaObject const*)', version 'Qt_5_PRIVATE_API' /usr/lib/libQt5Sensors.so.5.11.1: error: undefined reference to 'QMetaObjectBuilder::QMetaObjectBuilder()', version 'Qt_5_PRIVATE_API' /usr/lib/libQt5Sensors.so.5.11.1: error: undefined reference to 'QMetaObjectBuilder::toMetaObject() const', version 'Qt_5_PRIVATE_API' /usr/lib/libQt5Sensors.so.5.11.1: error: undefined reference to 'QMetaObjectBuilder::~QMetaObjectBuilder()', version 'Qt_5_PRIVATE_API'
-
@zeroDawn
I think start by answering:- What platform are you on?
- What exact version of QtWebKit did you get sources for, and from where?
- What version of Qt are you using?
- Did you compile that version of Qt or did you get it ready-built from Linux distro?
- What compiler version are you using?
-
@zeroDawn
That may actually be an OK combination then. You might Google forqt 5.11 qtwebkit
.Your errors actually seem to come from the
/usr/lib/libQt5Sensors.so.5.11.1
when linking, rather than from the QtWebKit stuff?The other Qt libraries being linked with are in
/usr/lib64/
butlibQt5Sensors.so.5.11.1
is in/usr/lib
, I don't know whether that indicates a 32-/64-bit or other non-compatible mismatch?Do you know when it last compiled/linked successfully on such a system?
I think I'll leave it at that, others may know better than I. I think it is possible your actual issue is with
libQt5Sensors
rather than the QtWebKit stuff.