Unable to build on macOS
H4kt opened this issue · comments
Environment:
- macOS monterey 12.3
- Qt 6.2.3
- SASM #4e74afe
Steps:
- $ qmake
- $ make
Error log:
singleapplication/qtlocalpeer.cpp:81:19: error: use of undeclared identifier 'QRegExp'
prefix.remove(QRegExp("[^a-zA-Z]"));
^
singleapplication/qtlocalpeer.cpp:85:21: warning: 'qChecksum' is deprecated: Use the QByteArrayView overload. [-Wdeprecated-declarations]
quint16 idNum = qChecksum(idc.constData(), idc.size());
^
/Users/H4kt/Qt/6.2.3/macos/lib/QtCore.framework/Headers/qbytearrayview.h:334:1: note: 'qChecksum' has been explicitly marked deprecated here
QT_DEPRECATED_VERSION_X_6_0("Use the QByteArrayView overload.")
^
/Users/H4kt/Qt/6.2.3/macos/lib/QtCore.framework/Headers/qglobal.h:382:44: note: expanded from macro 'QT_DEPRECATED_VERSION_X_6_0'
# define QT_DEPRECATED_VERSION_X_6_0(text) QT_DEPRECATED_X(text)
^
/Users/H4kt/Qt/6.2.3/macos/lib/QtCore.framework/Headers/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/Users/H4kt/Qt/6.2.3/macos/lib/QtCore.framework/Headers/qcompilerdetection.h:1146:36: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(x) [[deprecated(x)]]
^
1 warning and 1 error generated.
make: *** [qtlocalpeer.o] Error 1
Fixed by installing Qt 5 via Homebrew and changing MACOSX_DEPLOYMENT_TARGET to 11.13 in Makefile
it works better on an older mac. try that.
…On Mon, Apr 11, 2022 at 4:59 AM H4kt ***@***.***> wrote:
*Environment:*
- macOS monterey 12.3
- Qt 6.2.3
- SASM #4e74afe
*Steps:*
- $ qmake
- $ make
*Error log:*
singleapplication/qtlocalpeer.cpp:81:19: error: use of undeclared identifier 'QRegExp'
prefix.remove(QRegExp("[^a-zA-Z]"));
^
singleapplication/qtlocalpeer.cpp:85:21: warning: 'qChecksum' is deprecated: Use the QByteArrayView overload. [-Wdeprecated-declarations]
quint16 idNum = qChecksum(idc.constData(), idc.size());
^
/Users/H4kt/Qt/6.2.3/macos/lib/QtCore.framework/Headers/qbytearrayview.h:334:1: note: 'qChecksum' has been explicitly marked deprecated here
QT_DEPRECATED_VERSION_X_6_0("Use the QByteArrayView overload.")
^
/Users/H4kt/Qt/6.2.3/macos/lib/QtCore.framework/Headers/qglobal.h:382:44: note: expanded from macro 'QT_DEPRECATED_VERSION_X_6_0'
# define QT_DEPRECATED_VERSION_X_6_0(text) QT_DEPRECATED_X(text)
^
/Users/H4kt/Qt/6.2.3/macos/lib/QtCore.framework/Headers/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/Users/H4kt/Qt/6.2.3/macos/lib/QtCore.framework/Headers/qcompilerdetection.h:1146:36: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(x) [[deprecated(x)]]
^
1 warning and 1 error generated.
make: *** [qtlocalpeer.o] Error 1
—
Reply to this email directly, view it on GitHub
<#186>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSYD7GAJGBKVHCIE22RJBDVEPSU5ANCNFSM5TCPDPSQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>