Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. compile qtwebkit, 'undefined reference to 'QMetaObjectBuilder::setClassName'
QtWS25 Last Chance

compile qtwebkit, 'undefined reference to 'QMetaObjectBuilder::setClassName'

Scheduled Pinned Locked Moved Unsolved Qt WebKit
6 Posts 2 Posters 742 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zeroDawn
    wrote on 14 Apr 2023, 12:35 last edited by
    #1

    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'
    
    
    J 1 Reply Last reply 14 Apr 2023, 12:42
    0
    • Z zeroDawn
      14 Apr 2023, 12:35

      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'
      
      
      J Offline
      J Offline
      JonB
      wrote on 14 Apr 2023, 12:42 last edited by JonB
      #2

      @zeroDawn
      QtWebKit was deprecated a long time ago. You are probably trying to build it against a version of Qt which is too recent?

      Z 1 Reply Last reply 14 Apr 2023, 12:46
      0
      • J JonB
        14 Apr 2023, 12:42

        @zeroDawn
        QtWebKit was deprecated a long time ago. You are probably trying to build it against a version of Qt which is too recent?

        Z Offline
        Z Offline
        zeroDawn
        wrote on 14 Apr 2023, 12:46 last edited by
        #3

        @JonB
        thanks.
        i have to compile qtwebkit ,because i have an old project.
        i have been troubled by this problem for several days.

        J 1 Reply Last reply 14 Apr 2023, 12:55
        0
        • Z zeroDawn
          14 Apr 2023, 12:46

          @JonB
          thanks.
          i have to compile qtwebkit ,because i have an old project.
          i have been troubled by this problem for several days.

          J Offline
          J Offline
          JonB
          wrote on 14 Apr 2023, 12:55 last edited by JonB
          #4

          @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?
          Z 1 Reply Last reply 14 Apr 2023, 13:06
          0
          • J JonB
            14 Apr 2023, 12:55

            @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?
            Z Offline
            Z Offline
            zeroDawn
            wrote on 14 Apr 2023, 13:06 last edited by
            #5

            @JonB
            platform : linux aarch64
            version of QtWebKit:5.212.0-alpha4 from github(qt)
            version of qt:5.11.1,my linuxOS has qt-5.11.1,and i was also compiled qt-5.11.1 with g++ 7.3.0

            J 1 Reply Last reply 14 Apr 2023, 13:20
            0
            • Z zeroDawn
              14 Apr 2023, 13:06

              @JonB
              platform : linux aarch64
              version of QtWebKit:5.212.0-alpha4 from github(qt)
              version of qt:5.11.1,my linuxOS has qt-5.11.1,and i was also compiled qt-5.11.1 with g++ 7.3.0

              J Offline
              J Offline
              JonB
              wrote on 14 Apr 2023, 13:20 last edited by
              #6

              @zeroDawn
              That may actually be an OK combination then. You might Google for qt 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/ but libQt5Sensors.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.

              1 Reply Last reply
              0

              3/6

              14 Apr 2023, 12:46

              • Login

              • Login or register to search.
              3 out of 6
              • First post
                3/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved