Closed Judder closed 1 year ago
You can try this:
diff --git a/phoenix.pro b/phoenix.pro
index dab1ba21..f184750f 100644
--- a/phoenix.pro
+++ b/phoenix.pro
@@ -90,10 +90,9 @@ macx {
QMAKE_INFO_PLIST = FritzingInfo.plist
#DEFINES += QT_NO_DEBUG # uncomment this for xcode
LIBS += -lz
- LIBS += /usr/lib/libz.dylib
- LIBS += /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
- LIBS += /System/Library/Frameworks/Carbon.framework/Carbon
- LIBS += /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
+ LIBS += -framework corefoundation
+ LIBS += -framework carbon
+ LIBS += -framework iokit
LIBS += -liconv
}
unix {
diff --git a/pri/libgit2detect.pri b/pri/libgit2detect.pri
index 66b3e0d0..b425dd1c 100644
--- a/pri/libgit2detect.pri
+++ b/pri/libgit2detect.pri
@@ -59,7 +59,7 @@ unix {
error("static libgit2 library not found in $$LIBGIT2LIB")
}
macx {
- LIBS += $$LIBGIT2LIB/libgit2.a /System/Library/Frameworks/Security.framework/Versions/A/Security
+ LIBS += $$LIBGIT2LIB/libgit2.a -framework security
} else {
LIBS += $$LIBGIT2LIB/libgit2.a -lssl -lcrypto
}
Caveat that I haven't tested it other than a compile and then seeing if the app opens
What release of QT are you using for your build?
Fritzing seems to only be compatible with 5.x but I'm now having trouble linking in quazip as even make it for QT 5.x it lacks the /lib and /include structure that pri/quazipdetect.pri is looking for
cmake -S . -B /usr/local/Cellar/quazip/latest -DCMAKE_PREFIX_PATH=/Users/alexander/Qt/5.15.2/clang_64 -D QUAZIP_QT_MAJOR_VERSION=5
Trying to use quazip1_qt6
gives errors due to incompatability
:-1: error: Undefined symbols for architecture x86_64: "QuaZipFile::open(QFlags<QIODevice::OpenModeFlag>)", referenced from: FolderUtils::unzipTo(QString const&, QString const&, QString&) in folderutils.o "QuaZipFile::open(QFlags<QIODevice::OpenModeFlag>, QuaZipNewInfo const&, char const*, unsigned int, int, int, bool, int, int, int)", referenced from: FolderUtils::createZipAndSaveTo(QDir const&, QString const&, QStringList const&) in folderutils.o
You can try this:
I can confirm this worked for me (although I have not yet thoroughly tested the app). Thanks for providing the fix.
Current Behaviour
alexander@Alexs-iMac fritzing-app % ./tools/deploy_fritzing_mac.sh