Qt6.5.0 issues
-
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 . -
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 QMetaType::registerHelper does not exist anymore in the doc.
https://doc.qt.io/qt-6/qmetatype-members.htmlIs it in the private module? try
QT += core-private -
@posktomten QMetaType::registerHelper does not exist anymore in the doc.
https://doc.qt.io/qt-6/qmetatype-members.htmlIs it in the private module? try
QT += core-private@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.