Fix MacOS build

Need to use:
CONFIG+=rs_macos11.1 CONFIG+=no_rs_sam3 CONFIG+=no_rs_sam3_libsam3
CONFIG+=c++14
This commit is contained in:
RETROSHARE Phenom 2022-04-02 14:30:18 +02:00
parent 574e67e7d5
commit 36d3f1899e
2 changed files with 16 additions and 0 deletions

View File

@ -47,7 +47,9 @@
#include <QTcpSocket> #include <QTcpSocket>
#include <QTimer> #include <QTimer>
#ifdef RS_USE_I2P_SAM3
#include <libsam3.h> #include <libsam3.h>
#endif
#define ICON_STATUS_UNKNOWN ":/images/ledoff1.png" #define ICON_STATUS_UNKNOWN ":/images/ledoff1.png"
#define ICON_STATUS_WORKING ":/images/yellowled.png" #define ICON_STATUS_WORKING ":/images/yellowled.png"
@ -1562,6 +1564,7 @@ void ServerPage::syncI2PProxyAddrSam(QString t)
void ServerPage::taskFinished(taskTicket *&ticket) void ServerPage::taskFinished(taskTicket *&ticket)
{ {
#ifdef RS_USE_I2P_SAM3
switch (ticket->task) { switch (ticket->task) {
case autoProxyTask::receiveKey: case autoProxyTask::receiveKey:
{ {
@ -1629,6 +1632,7 @@ void ServerPage::taskFinished(taskTicket *&ticket)
delete ticket; delete ticket;
ticket = nullptr; ticket = nullptr;
#endif //RS_USE_I2P_SAM3
} }
void ServerPage::connectionWithoutCert() void ServerPage::connectionWithoutCert()

View File

@ -140,6 +140,7 @@ rs_macos10.12:CONFIG -= rs_macos10.11
rs_macos10.13:CONFIG -= rs_macos10.11 rs_macos10.13:CONFIG -= rs_macos10.11
rs_macos10.14:CONFIG -= rs_macos10.11 rs_macos10.14:CONFIG -= rs_macos10.11
rs_macos10.15:CONFIG -= rs_macos10.11 rs_macos10.15:CONFIG -= rs_macos10.11
rs_macos11.1:CONFIG -= rs_macos10.11
# To enable JSON API append the following assignation to qmake command line # To enable JSON API append the following assignation to qmake command line
# "CONFIG+=rs_jsonapi" # "CONFIG+=rs_jsonapi"
@ -790,6 +791,13 @@ macx-* {
QMAKE_CXXFLAGS += -Wno-nullability-completeness QMAKE_CXXFLAGS += -Wno-nullability-completeness
QMAKE_CFLAGS += -Wno-nullability-completeness QMAKE_CFLAGS += -Wno-nullability-completeness
} }
rs_macos11.1 {
message(***retroshare.pri: Set Target and SDK to MacOS 11.1 )
QMAKE_MACOSX_DEPLOYMENT_TARGET=11.1
QMAKE_MAC_SDK = macosx11.1
QMAKE_CXXFLAGS += -Wno-nullability-completeness
QMAKE_CFLAGS += -Wno-nullability-completeness
}
@ -798,6 +806,10 @@ macx-* {
INCLUDEPATH += "/usr/local/include" INCLUDEPATH += "/usr/local/include"
RS_UPNP_LIB = miniupnpc RS_UPNP_LIB = miniupnpc
QT += macextras QT += macextras
INCLUDEPATH += "/usr/local/opt/openssl/include"
QMAKE_LIBDIR += "/usr/local/opt/openssl/lib"
QMAKE_LIBDIR += "/usr/local/opt/sqlcipher/lib"
QMAKE_LIBDIR += "/usr/local/opt/miniupnpc/lib"
} }
# If not yet defined attempt UPnP library autodetection should works at least # If not yet defined attempt UPnP library autodetection should works at least