Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt6.5.0 issues
Forum Updated to NodeBB v4.3 + New Features

Qt6.5.0 issues

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 545 Views 1 Watching
  • 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.
  • posktomtenP Offline
    posktomtenP Offline
    posktomten
    wrote on last edited by posktomten
    #1

    Hello!
    My program and my libraries don't work together!
    .
    Qt6.4.3 works as I want.
    I have made several libraries that I use in my program. The libraries "libselectfont" and "libcheckupdate" do not work with Qt6.5.0. Both of these blibraries communicate with the program using signal/slots.
    Anyone understand these error messages?
    With Qt6.4.3 and earlier versions everything works as it should.

    :-1: error: /home/ingemar/PROGRAMMERING/streamcapture2/code/../lib6/libselectfont.so: undefined reference to `QMetaType::registerHelper(QtPrivate::QMetaTypeInterface const*)@Qt_6'
    
    :-1: error: /home/ingemar/PROGRAMMERING/streamcapture2/code/../lib6/libcheckupdate.so: undefined reference to `QString::append(QBasicUtf8StringView<false>)@Qt_6'
    
    :-1: error: /home/ingemar/PROGRAMMERING/streamcapture2/code/../lib6/libcheckupdate.so: undefined reference to `qt_version_tag@Qt_6.5'
    

    The problem only occurs when I compile with Linux. Ubuntu 22.04, GCC 11.3.0, GLIBC 2.35
    Windows works fine with both Qt6.4.3 (and earlier versions) and Qt6.5.0.
    Thanks if anyone comes up with a good idea.
    I use the same version of Qt to compile the libraries and the program.

    EDIT
    Update! I have tried the exact same code on Ubuntu 20.04, GCC 9.4.0. And it works! (Strange) Remaining to resolve libssl and libcrypto with Qt6.5.0 .

    posktomten

    JoeCFDJ 1 Reply Last reply
    0
    • posktomtenP posktomten

      Hello!
      My program and my libraries don't work together!
      .
      Qt6.4.3 works as I want.
      I have made several libraries that I use in my program. The libraries "libselectfont" and "libcheckupdate" do not work with Qt6.5.0. Both of these blibraries communicate with the program using signal/slots.
      Anyone understand these error messages?
      With Qt6.4.3 and earlier versions everything works as it should.

      :-1: error: /home/ingemar/PROGRAMMERING/streamcapture2/code/../lib6/libselectfont.so: undefined reference to `QMetaType::registerHelper(QtPrivate::QMetaTypeInterface const*)@Qt_6'
      
      :-1: error: /home/ingemar/PROGRAMMERING/streamcapture2/code/../lib6/libcheckupdate.so: undefined reference to `QString::append(QBasicUtf8StringView<false>)@Qt_6'
      
      :-1: error: /home/ingemar/PROGRAMMERING/streamcapture2/code/../lib6/libcheckupdate.so: undefined reference to `qt_version_tag@Qt_6.5'
      

      The problem only occurs when I compile with Linux. Ubuntu 22.04, GCC 11.3.0, GLIBC 2.35
      Windows works fine with both Qt6.4.3 (and earlier versions) and Qt6.5.0.
      Thanks if anyone comes up with a good idea.
      I use the same version of Qt to compile the libraries and the program.

      EDIT
      Update! I have tried the exact same code on Ubuntu 20.04, GCC 9.4.0. And it works! (Strange) Remaining to resolve libssl and libcrypto with Qt6.5.0 .

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      @posktomten QMetaType::registerHelper does not exist anymore in the doc.
      https://doc.qt.io/qt-6/qmetatype-members.html

      Is it in the private module? try
      QT += core-private

      posktomtenP 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        @posktomten QMetaType::registerHelper does not exist anymore in the doc.
        https://doc.qt.io/qt-6/qmetatype-members.html

        Is it in the private module? try
        QT += core-private

        posktomtenP Offline
        posktomtenP Offline
        posktomten
        wrote on last edited by
        #3

        @JoeCFD Thanks!
        You put me on the right track. (QT += core-private) I've just learned how to use CMakeLists.txt (or am doing, to be honest) I made a *.pro file and it worked! Without QT += core-private.
        Strange that it works with Ubuntu 20.04 but not with 22.04.
        I'll have to go through my CMakeLists.txt and try to understand what's going on.

        posktomten

        1 Reply Last reply
        0

        • Login

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