As most distributions have dropped Qt5 and switched to Qt6, this is the way to go with system dependencies.
Code: Select all
$ git clone [email protected]:qcad/qcad.git qcad
Cloning into 'qcad'...
$ cd qcad/
$ cmake -DBUILD_QT6=ON -DCMAKE_BUILD_TYPE=Release -G Ninja .
-- The CXX compiler identification is GNU 14.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /usr/lib64/libOpenGL.so
-- Found WrapOpenGL: TRUE
-- Found XKB: /usr/lib64/libxkbcommon.so (found suitable version "1.8.0", minimum required is "0.5.0")
-- Found WrapVulkanHeaders: /usr/include
-- Found Cups: /usr/lib64/libcups.so (found version "2.4.11")
-- Configuring done (3.0s)
-- Generating done (0.2s)
-- Build files have been written to: /home/mb/src/other/qcad
$ ninja
[52/508] Building CXX object src/3rdparty/opennurbs/opennurbs/CMakeFiles/opennurbs.dir/__/opennurbs_archive.cpp.o
/home/mb/src/other/qcad/src/3rdparty/opennurbs/opennurbs_archive.cpp: In member function ‘virtual bool ON_BinaryFile::AtEnd() const’:
/home/mb/src/other/qcad/src/3rdparty/opennurbs/opennurbs_archive.cpp:12503:14: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
12503 | fread( &buffer, 1, 1, m_fp );
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
[164/508] Building CXX object src/core/CMakeFiles/qcadcore.dir/REntity.cpp.o
/home/mb/src/other/qcad/src/core/REntity.cpp: In member function ‘virtual bool REntity::setProperty(RPropertyTypeId, const QVariant&, RTransaction*)’:
/home/mb/src/other/qcad/src/core/REntity.cpp:345:23: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
345 | if (value.type() == QVariant::Int || value.type() == QVariant::LongLong) {
| ~~~~~~~~~~^~
In file included from /usr/include/qt6/QtCore/QVariant:1,
from /home/mb/src/other/qcad/src/core/RPropertyAttributes.h:28,
from /home/mb/src/other/qcad/src/core/RObject.h:27,
from /home/mb/src/other/qcad/src/core/RTransaction.h:30,
from /home/mb/src/other/qcad/src/core/RTransactionStack.h:28,
from /home/mb/src/other/qcad/src/core/RDocument.h:30,
from /home/mb/src/other/qcad/src/core/REntity.cpp:20:
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/REntity.cpp:345:56: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
345 | if (value.type() == QVariant::Int || value.type() == QVariant::LongLong) {
| ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/REntity.cpp:347:30: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
347 | } else if (value.type() == QVariant::String) {
| ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/REntity.cpp:355:23: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
355 | if (value.type() == QVariant::Int || value.type() == QVariant::LongLong) {
| ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/REntity.cpp:355:56: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
355 | if (value.type() == QVariant::Int || value.type() == QVariant::LongLong) {
| ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/REntity.cpp:368:23: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
368 | if (value.type()==QVariant::Int || value.type()==QVariant::Double) {
| ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/REntity.cpp:368:54: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
368 | if (value.type()==QVariant::Int || value.type()==QVariant::Double) {
| ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
[169/508] Building CXX object src/core/CMakeFiles/qcadcore.dir/RDxfServices.cpp.o
/home/mb/src/other/qcad/src/core/RDxfServices.cpp: In member function ‘QString RDxfServices::collectVersion2Info(const QString&)’:
/home/mb/src/other/qcad/src/core/RDxfServices.cpp:340:52: warning: ‘QMultiMap<Key, T>::iterator QMultiMap<Key, T>::insertMulti(const Key&, const T&) [with Key = int; T = QString]’ is deprecated: Use insert() instead [-Wdeprecated-declarations]
340 | ellipseData.insertMulti(iCode, values[k]);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/qdebug.h:33,
from /usr/include/qt6/QtCore/qvariant.h:12,
from /usr/include/qt6/QtCore/qlocale.h:7,
from /usr/include/qt6/QtCore/qcalendar.h:10,
from /usr/include/qt6/QtCore/qdatetime.h:8,
from /usr/include/qt6/QtCore/qfileinfo.h:12,
from /usr/include/qt6/QtCore/QFileInfo:1,
from /home/mb/src/other/qcad/src/core/RDxfServices.cpp:19:
/usr/include/qt6/QtCore/qmap.h:1482:14: note: declared here
1482 | iterator insertMulti(const Key &key, const T &value)
| ^~~~~~~~~~~
/home/mb/src/other/qcad/src/core/RDxfServices.cpp:404:36: warning: ‘QMultiMap<Key, T>::iterator QMultiMap<Key, T>::insertMulti(const Key&, const T&) [with Key = int; T = QString]’ is deprecated: Use insert() instead [-Wdeprecated-declarations]
404 | ellipseData.insertMulti(iCode, value);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qmap.h:1482:14: note: declared here
1482 | iterator insertMulti(const Key &key, const T &value)
| ^~~~~~~~~~~
[184/508] Building CXX object src/core/CMakeFiles/qcadcore.dir/RLayer.cpp.o
/home/mb/src/other/qcad/src/core/RLayer.cpp: In member function ‘virtual bool RLayer::setProperty(RPropertyTypeId, const QVariant&, RTransaction*)’:
/home/mb/src/other/qcad/src/core/RLayer.cpp:154:23: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
154 | if (value.type() == QVariant::Int || value.type() == QVariant::LongLong) {
| ~~~~~~~~~~^~
In file included from /usr/include/qt6/QtCore/QVariant:1,
from /home/mb/src/other/qcad/src/core/RPropertyAttributes.h:28,
from /home/mb/src/other/qcad/src/core/RObject.h:27,
from /home/mb/src/other/qcad/src/core/RLayer.h:27,
from /home/mb/src/other/qcad/src/core/RLayer.cpp:19:
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RLayer.cpp:154:56: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
154 | if (value.type() == QVariant::Int || value.type() == QVariant::LongLong) {
| ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RLayer.cpp:166:23: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
166 | if (value.type()==QVariant::Int || value.type()==QVariant::Double) {
| ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RLayer.cpp:166:54: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
166 | if (value.type()==QVariant::Int || value.type()==QVariant::Double) {
| ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
[188/508] Building CXX object src/core/CMakeFiles/qcadcore.dir/RGuiAction.cpp.o
/home/mb/src/other/qcad/src/core/RGuiAction.cpp: In member function ‘void RGuiAction::addShortcut(const QKeySequence&)’:
/home/mb/src/other/qcad/src/core/RGuiAction.cpp:374:33: warning: ‘constexpr QKeyCombination::operator int() const’ is deprecated: Use QKeyCombination instead of int [-Wdeprecated-declarations]
374 | key += QChar(shortcut[i]);
| ^
In file included from /usr/include/qt6/QtCore/qbytearray.h:9,
from /usr/include/qt6/QtCore/qstringview.h:10,
from /usr/include/qt6/QtCore/qchar.h:660,
from /usr/include/qt6/QtCore/qstring.h:14,
from /usr/include/qt6/QtCore/qdir.h:8,
from /usr/include/qt6/QtCore/QDir:1,
from /home/mb/src/other/qcad/src/core/RGuiAction.cpp:19:
/usr/include/qt6/QtCore/qnamespace.h:1912:26: note: declared here
1912 | constexpr Q_IMPLICIT operator int() const noexcept
| ^~~~~~~~
[192/508] Building CXX object src/core/CMakeFiles/qcadcore.dir/RLocalPeer.cpp.o
/home/mb/src/other/qcad/src/core/RLocalPeer.cpp: In constructor ‘RLocalPeer::RLocalPeer(QObject*, const QString&)’:
/home/mb/src/other/qcad/src/core/RLocalPeer.cpp:55:30: warning: ‘quint16 qChecksum(const char*, qsizetype, Qt::ChecksumType)’ is deprecated: Use the QByteArrayView overload. [-Wdeprecated-declarations]
55 | quint16 idNum = qChecksum(idc.constData(), idc.size());
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/qbytearray.h:15,
from /usr/include/qt6/QtCore/qstringview.h:10,
from /usr/include/qt6/QtCore/qchar.h:660,
from /usr/include/qt6/QtCore/qstring.h:14,
from /usr/include/qt6/QtCore/qcoreapplication.h:8,
from /usr/include/qt6/QtCore/QCoreApplication:1,
from /home/mb/src/other/qcad/src/core/RLocalPeer.cpp:19:
/usr/include/qt6/QtCore/qbytearrayview.h:404:16: note: declared here
404 | inline quint16 qChecksum(const char *s, qsizetype len,
| ^~~~~~~~~
[194/508] Building CXX object src/core/CMakeFiles/qcadcore.dir/RMouseEvent.cpp.o
/home/mb/src/other/qcad/src/core/RMouseEvent.cpp: In constructor ‘RMouseEvent::RMouseEvent(QEvent::Type, const RVector&, Qt::MouseButton, Qt::MouseButtons, Qt::KeyboardModifiers, RGraphicsScene&, RGraphicsView&)’:
/home/mb/src/other/qcad/src/core/RMouseEvent.cpp:32:31: warning: ‘QMouseEvent::QMouseEvent(QEvent::Type, const QPointF&, Qt::MouseButton, Qt::MouseButtons, Qt::KeyboardModifiers, const QPointingDevice*)’ is deprecated: Use another constructor [-Wdeprecated-declarations]
32 | RInputEvent(position, s, v) {
| ^
In file included from /usr/include/qt6/QtGui/QMouseEvent:1,
from /home/mb/src/other/qcad/src/core/RMouseEvent.h:25,
from /home/mb/src/other/qcad/src/core/RMouseEvent.cpp:21:
/usr/include/qt6/QtGui/qevent.h:202:5: note: declared here
202 | QMouseEvent(Type type, const QPointF &localPos, Qt::MouseButton button,
| ^~~~~~~~~~~
/home/mb/src/other/qcad/src/core/RMouseEvent.cpp: In constructor ‘RMouseEvent::RMouseEvent(const QMouseEvent&, RGraphicsScene&, RGraphicsView&, qreal)’:
/home/mb/src/other/qcad/src/core/RMouseEvent.cpp:39:44: warning: ‘QPointF QMouseEvent::localPos() const’ is deprecated: Use position() [-Wdeprecated-declarations]
39 | RInputEvent(RVector(mouseEvent.localPos().x(), mouseEvent.localPos().y()), s, v, devicePixelRatio) {
| ~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:236:13: note: declared here
236 | QPointF localPos() const { return position(); }
| ^~~~~~~~
/home/mb/src/other/qcad/src/core/RMouseEvent.cpp:39:71: warning: ‘QPointF QMouseEvent::localPos() const’ is deprecated: Use position() [-Wdeprecated-declarations]
39 | RInputEvent(RVector(mouseEvent.localPos().x(), mouseEvent.localPos().y()), s, v, devicePixelRatio) {
| ~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:236:13: note: declared here
236 | QPointF localPos() const { return position(); }
| ^~~~~~~~
[200/508] Building CXX object src/core/CMakeFiles/qcadcore.dir/RLinetypePattern.cpp.o
/home/mb/src/other/qcad/src/core/RLinetypePattern.cpp: In member function ‘bool RLinetypePattern::setPatternString(const QString&)’:
/home/mb/src/other/qcad/src/core/RLinetypePattern.cpp:465:25: warning: ignoring return value of ‘qsizetype QString::indexOf(const QRegularExpression&, qsizetype, QRegularExpressionMatch*) const’, declared with attribute ‘nodiscard’ [-Wunused-result]
465 | part.indexOf(rx, 0, &match);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/qobject.h:11,
from /usr/include/qt6/QtCore/qiodevice.h:10,
from /usr/include/qt6/QtCore/qfiledevice.h:7,
from /usr/include/qt6/QtCore/qfile.h:8,
from /usr/include/qt6/QtCore/QFile:1,
from /home/mb/src/other/qcad/src/core/RLinetypePattern.cpp:19:
/usr/include/qt6/QtCore/qstring.h:327:29: note: declared here
327 | [[nodiscard]] qsizetype indexOf(const QRegularExpression &re, qsizetype from = 0,
| ^~~~~~~
/home/mb/src/other/qcad/src/core/RLinetypePattern.cpp: In static member function ‘static QList<std::pair<QString, RLinetypePattern*> > RLinetypePattern::loadAllFrom(bool, const QString&)’:
/home/mb/src/other/qcad/src/core/RLinetypePattern.cpp:878:25: warning: ignoring return value of ‘qsizetype QString::indexOf(const QRegularExpression&, qsizetype, QRegularExpressionMatch*) const’, declared with attribute ‘nodiscard’ [-Wunused-result]
878 | line.indexOf(rx, 0, &match);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qstring.h:327:29: note: declared here
327 | [[nodiscard]] qsizetype indexOf(const QRegularExpression &re, qsizetype from = 0,
| ^~~~~~~
[202/508] Building CXX object src/core/CMakeFiles/qcadcore.dir/RPattern.cpp.o
/home/mb/src/other/qcad/src/core/RPattern.cpp: In static member function ‘static QList<std::pair<QString, RPattern*> > RPattern::loadAllFrom(const QString&)’:
/home/mb/src/other/qcad/src/core/RPattern.cpp:70:25: warning: ignoring return value of ‘qsizetype QString::indexOf(const QRegularExpression&, qsizetype, QRegularExpressionMatch*) const’, declared with attribute ‘nodiscard’ [-Wunused-result]
70 | line.indexOf(rx, 0, &match);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/qdebug.h:16,
from /usr/include/qt6/QtCore/QDebug:1,
from /home/mb/src/other/qcad/src/core/RPattern.cpp:19:
/usr/include/qt6/QtCore/qstring.h:327:29: note: declared here
327 | [[nodiscard]] qsizetype indexOf(const QRegularExpression &re, qsizetype from = 0,
| ^~~~~~~
[215/508] Building CXX object src/core/CMakeFiles/qcadcore.dir/RPropertyChange.cpp.o
/home/mb/src/other/qcad/src/core/RPropertyChange.cpp: In constructor ‘RPropertyChange::RPropertyChange(RPropertyTypeId, QVariant, QVariant)’:
/home/mb/src/other/qcad/src/core/RPropertyChange.cpp:26:22: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
26 | if (oldValue.type()==QVariant::UserType &&
| ~~~~~~~~~~~~~^~
In file included from /usr/include/qt6/QtCore/QVariant:1,
from /home/mb/src/other/qcad/src/core/RPropertyChange.h:25,
from /home/mb/src/other/qcad/src/core/RPropertyChange.cpp:20:
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RPropertyChange.cpp:86:22: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
86 | if (oldValue.type()==QVariant::UserType &&
| ~~~~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RPropertyChange.cpp:147:26: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
147 | if (oldValue.type()!=newValue.type() && oldValue.isValid() && newValue.isValid()) {
| ~~~~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RPropertyChange.cpp:147:43: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
147 | if (oldValue.type()!=newValue.type() && oldValue.isValid() && newValue.isValid()) {
| ~~~~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
[225/508] Building CXX object src/core/CMakeFiles/qcadcore.dir/RS.cpp.o
/home/mb/src/other/qcad/src/core/RS.cpp: In static member function ‘static bool RS::compare(const QVariant&, const QVariant&, bool)’:
/home/mb/src/other/qcad/src/core/RS.cpp:69:20: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
69 | switch (v1.type()) {
| ~~~~~~~^~
In file included from /usr/include/qt6/QtCore/qlocale.h:7,
from /usr/include/qt6/QtGui/qguiapplication.h:11,
from /usr/include/qt6/QtGui/QGuiApplication:1,
from /home/mb/src/other/qcad/src/core/RS.cpp:30:
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RS.cpp:72:24: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
72 | if (v2.type()==QVariant::Double) {
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RS.cpp:75:29: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
75 | else if (v2.type()==QVariant::Int) {
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RS.cpp:80:24: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
80 | if (v2.type()==QVariant::Double) {
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RS.cpp:83:29: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
83 | else if (v2.type()==QVariant::Int) {
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RS.cpp:91:24: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
91 | if (v2.type()==QVariant::Int) {
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RS.cpp:94:29: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
94 | else if (v2.type()==QVariant::Double) {
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RS.cpp:99:24: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
99 | if (v2.type()==QVariant::Int) {
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RS.cpp:102:29: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
102 | else if (v2.type()==QVariant::Double) {
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RS.cpp:109:20: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
109 | if (v2.type()==QVariant::Bool) {
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RS.cpp:115:20: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
115 | if (v2.type()==QVariant::UInt) {
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RS.cpp:121:20: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
121 | if (v2.type()==QVariant::LongLong) {
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RS.cpp:127:20: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
127 | if (v2.type()==QVariant::ULongLong) {
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
/home/mb/src/other/qcad/src/core/RS.cpp:133:20: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
133 | if (v2.type()==QVariant::String) {
| ~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
[230/508] Building CXX object src/core/CMakeFiles/qcadcore.dir/RSettings.cpp.o
/home/mb/src/other/qcad/src/core/RSettings.cpp: In static member function ‘static RColor RSettings::getColorValue(const QString&, const RColor&)’:
/home/mb/src/other/qcad/src/core/RSettings.cpp:1658:28: warning: ‘bool QVariant::canConvert(int) const’ is deprecated [-Wdeprecated-declarations]
1658 | else if (ret.canConvert(QMetaType::QString)) {
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/qlocale.h:7,
from /usr/include/qt6/QtGui/qguiapplication.h:11,
from /usr/include/qt6/QtWidgets/qapplication.h:13,
from /usr/include/qt6/QtWidgets/QApplication:1,
from /home/mb/src/other/qcad/src/core/RSettings.cpp:19:
/usr/include/qt6/QtCore/qvariant.h:354:10: note: declared here
354 | bool canConvert(int targetTypeId) const
| ^~~~~~~~~~
/home/mb/src/other/qcad/src/core/RSettings.cpp:1665:28: warning: ‘bool QVariant::canConvert(int) const’ is deprecated [-Wdeprecated-declarations]
1665 | else if (ret.canConvert(QMetaType::QColor)) {
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qvariant.h:354:10: note: declared here
354 | bool canConvert(int targetTypeId) const
| ^~~~~~~~~~
/home/mb/src/other/qcad/src/core/RSettings.cpp: In static member function ‘static double RSettings::getDoubleValue(const QString&, double)’:
/home/mb/src/other/qcad/src/core/RSettings.cpp:1684:17: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
1684 | if (ret.type()==QVariant::List
| ~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
[352/508] Building CXX object src/entity/CMakeFiles/qcadentity.dir/RDimensionEntity.cpp.o
/home/mb/src/other/qcad/src/entity/RDimensionEntity.cpp: In member function ‘virtual bool RDimensionEntity::setProperty(RPropertyTypeId, const QVariant&, RTransaction*)’:
/home/mb/src/other/qcad/src/entity/RDimensionEntity.cpp:255:31: warning: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
255 | if (value.type()==QVariant::String) {
| ~~~~~~~~~~^~
In file included from /usr/include/qt6/QtCore/QVariant:1,
from /home/mb/src/other/qcad/src/entity/../../src/core/RS.h:29,
from /home/mb/src/other/qcad/src/entity/../../src/core/math/RVector.h:29,
from /home/mb/src/other/qcad/src/entity/../../src/core/math/RBox.h:28,
from /home/mb/src/other/qcad/src/entity/../../src/core/REntity.h:27,
from /home/mb/src/other/qcad/src/entity/../../src/core/RBlockReferenceEntity.h:25,
from /home/mb/src/other/qcad/src/entity/RDimensionEntity.cpp:19:
/usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here
433 | Type type() const
| ^~~~
[429/508] Building CXX object src/gui/CMakeFiles/qcadgui.dir/RCharacterWidget.cpp.o
/home/mb/src/other/qcad/src/gui/RCharacterWidget.cpp: In member function ‘virtual void RCharacterWidget::mouseMoveEvent(QMouseEvent*)’:
/home/mb/src/other/qcad/src/gui/RCharacterWidget.cpp:76:59: warning: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition() [-Wdeprecated-declarations]
76 | QPoint widgetPosition = mapFromGlobal(event->globalPos());
| ~~~~~~~~~~~~~~~~^~
In file included from /usr/include/qt6/QtGui/QMouseEvent:1,
from /home/mb/src/other/qcad/src/gui/RCharacterWidget.cpp:20:
/usr/include/qt6/QtGui/qevent.h:225:19: note: declared here
225 | inline QPoint globalPos() const { return globalPosition().toPoint(); }
| ^~~~~~~~~
/home/mb/src/other/qcad/src/gui/RCharacterWidget.cpp:85:40: warning: ‘QPoint QMouseEvent::globalPos() const’ is deprecated: Use globalPosition() [-Wdeprecated-declarations]
85 | QToolTip::showText(event->globalPos(), text, this);
| ~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:225:19: note: declared here
225 | inline QPoint globalPos() const { return globalPosition().toPoint(); }
| ^~~~~~~~~
/home/mb/src/other/qcad/src/gui/RCharacterWidget.cpp: In member function ‘virtual void RCharacterWidget::mousePressEvent(QMouseEvent*)’:
/home/mb/src/other/qcad/src/gui/RCharacterWidget.cpp:90:28: warning: ‘int QMouseEvent::y() const’ is deprecated: Use position() [-Wdeprecated-declarations]
90 | lastKey = (event->y() / squareSize) * columns + event->x() / squareSize;
| ~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:229:16: note: declared here
229 | inline int y() const { return qRound(position().y()); }
| ^
/home/mb/src/other/qcad/src/gui/RCharacterWidget.cpp:90:65: warning: ‘int QMouseEvent::x() const’ is deprecated: Use position() [-Wdeprecated-declarations]
90 | lastKey = (event->y() / squareSize) * columns + event->x() / squareSize;
| ~~~~~~~~^~
/usr/include/qt6/QtGui/qevent.h:227:16: note: declared here
227 | inline int x() const { return qRound(position().x()); }
| ^
[460/508] Building CXX object src/gui/CMakeFiles/qcadgui.dir/RListWidget.cpp.o
/home/mb/src/other/qcad/src/gui/RListWidget.cpp: In member function ‘virtual void RListWidget::mousePressEvent(QMouseEvent*)’:
/home/mb/src/other/qcad/src/gui/RListWidget.cpp:57:13: warning: ‘int QMouseEvent::x() const’ is deprecated: Use position() [-Wdeprecated-declarations]
57 | if (e->x()-iconOffset < iconSize().width()) {
| ~~~~^~
In file included from /usr/include/qt6/QtGui/QContextMenuEvent:1,
from /home/mb/src/other/qcad/src/gui/RListWidget.cpp:22:
/usr/include/qt6/QtGui/qevent.h:227:16: note: declared here
227 | inline int x() const { return qRound(position().x()); }
| ^
/home/mb/src/other/qcad/src/gui/RListWidget.cpp: In member function ‘virtual void RListWidget::mouseReleaseEvent(QMouseEvent*)’:
/home/mb/src/other/qcad/src/gui/RListWidget.cpp:66:13: warning: ‘int QMouseEvent::x() const’ is deprecated: Use position() [-Wdeprecated-declarations]
66 | if (e->x()-iconOffset < iconSize().width()) {
| ~~~~^~
/usr/include/qt6/QtGui/qevent.h:227:16: note: declared here
227 | inline int x() const { return qRound(position().x()); }
| ^
/home/mb/src/other/qcad/src/gui/RListWidget.cpp:69:34: warning: ‘int QMouseEvent::x() const’ is deprecated: Use position() [-Wdeprecated-declarations]
69 | emit iconClicked(e->x()-iconOffset, item);
| ~~~~^~
/usr/include/qt6/QtGui/qevent.h:227:16: note: declared here
227 | inline int x() const { return qRound(position().x()); }
| ^
/home/mb/src/other/qcad/src/gui/RListWidget.cpp: In member function ‘virtual void RListWidget::mouseMoveEvent(QMouseEvent*)’:
/home/mb/src/other/qcad/src/gui/RListWidget.cpp:78:13: warning: ‘int QMouseEvent::x() const’ is deprecated: Use position() [-Wdeprecated-declarations]
78 | if (e->x()-iconOffset < iconSize().width()) {
| ~~~~^~
/usr/include/qt6/QtGui/qevent.h:227:16: note: declared here
227 | inline int x() const { return qRound(position().x()); }
| ^
[466/508] Building CXX object src/gui/CMakeFiles/qcadgui.dir/RGraphicsSceneQt.cpp.o
/home/mb/src/other/qcad/src/gui/RGraphicsSceneQt.cpp: In member function ‘virtual double RGraphicsSceneQt::getLineTypePatternScale(const RLinetypePattern&) const’:
/home/mb/src/other/qcad/src/gui/RGraphicsSceneQt.cpp:926:68: warning: ‘bool QVariant::canConvert(int) const’ is deprecated [-Wdeprecated-declarations]
926 | if (!scaleVariant.isValid() || !scaleVariant.canConvert(QVariant::String)) {
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/QVariant:1,
from /home/mb/src/other/qcad/src/gui/../../src/core/RS.h:29,
from /home/mb/src/other/qcad/src/gui/../../src/core/math/RMath.h:25,
from /home/mb/src/other/qcad/src/gui/../../src/core/math/RShape.h:28,
from /home/mb/src/other/qcad/src/gui/../../src/core/math/RArc.h:25,
from /home/mb/src/other/qcad/src/gui/RGraphicsSceneQt.cpp:26:
/usr/include/qt6/QtCore/qvariant.h:354:10: note: declared here
354 | bool canConvert(int targetTypeId) const
| ^~~~~~~~~~
[504/508] Building CXX object src/run/CMakeFiles/qcad.dir/main.cpp.o
/home/mb/src/other/qcad/src/run/main.cpp: In function ‘int main(int, char**)’:
/home/mb/src/other/qcad/src/run/main.cpp:184:44: warning: ‘Qt::AA_EnableHighDpiScaling’ is deprecated: High-DPI scaling is always enabled. This attribute no longer has any effect. [-Wdeprecated-declarations]
184 | QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/qbytearray.h:9,
from /usr/include/qt6/QtCore/qstringview.h:10,
from /usr/include/qt6/QtCore/qchar.h:660,
from /usr/include/qt6/QtCore/qstring.h:14,
from /usr/include/qt6/QtCore/qcoreapplication.h:8,
from /usr/include/qt6/QtWidgets/qapplication.h:8,
from /usr/include/qt6/QtWidgets/QApplication:1,
from /home/mb/src/other/qcad/src/run/main.cpp:21:
/usr/include/qt6/QtCore/qnamespace.h:451:9: note: declared here
451 | AA_EnableHighDpiScaling Q_DECL_ENUMERATOR_DEPRECATED_X(
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/mb/src/other/qcad/src/run/main.cpp:187:44: warning: ‘Qt::AA_EnableHighDpiScaling’ is deprecated: High-DPI scaling is always enabled. This attribute no longer has any effect. [-Wdeprecated-declarations]
187 | QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, false);
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qnamespace.h:451:9: note: declared here
451 | AA_EnableHighDpiScaling Q_DECL_ENUMERATOR_DEPRECATED_X(
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/mb/src/other/qcad/src/run/main.cpp:211:40: warning: ‘Qt::AA_UseHighDpiPixmaps’ is deprecated: High-DPI pixmaps are always enabled. This attribute no longer has any effect. [-Wdeprecated-declarations]
211 | QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qnamespace.h:440:9: note: declared here
440 | AA_UseHighDpiPixmaps Q_DECL_ENUMERATOR_DEPRECATED_X(
| ^~~~~~~~~~~~~~~~~~~~
[506/508] Building CXX object src/io/dxf/CMakeFiles/qcaddxf.dir/RDxfImporter.cpp.o
/home/mb/src/other/qcad/src/io/dxf/RDxfImporter.cpp: In member function ‘virtual void RDxfImporter::addImage(const DL_ImageData&)’:
/home/mb/src/other/qcad/src/io/dxf/RDxfImporter.cpp:1404:23: warning: ‘QMultiMap<Key, T>::iterator QMultiMap<Key, T>::insertMulti(const Key&, const T&) [with Key = int; T = int]’ is deprecated: Use insert() instead [-Wdeprecated-declarations]
1404 | images.insertMulti(handle, entity->getId());
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/qdebug.h:33,
from /usr/include/qt6/QtCore/qvariant.h:12,
from /usr/include/qt6/QtCore/qlocale.h:7,
from /usr/include/qt6/QtCore/qcalendar.h:10,
from /usr/include/qt6/QtCore/qdatetime.h:8,
from /usr/include/qt6/QtCore/qfileinfo.h:12,
from /usr/include/qt6/QtCore/QFileInfo:1,
from /home/mb/src/other/qcad/src/io/dxf/RDxfImporter.cpp:20:
/usr/include/qt6/QtCore/qmap.h:1482:14: note: declared here
1482 | iterator insertMulti(const Key &key, const T &value)
| ^~~~~~~~~~~
[508/508] Linking CXX shared library plugins/libqcaddxf.so
$ release/qcad-bin
QCAD version 3.32.2
enable high dpi scaling
21:18:40: Debug: loading plugins...
21:18:40: Debug: loading static plugins...
Warning: No script handler found...
Warning: QThreadStorage: Thread 0x5630f65cf310 exited after QThreadStorage 1 destroyed