Improve the wiki on Dependencies for Compiling from source on macos #761
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I don't know what's the best course of action since the wiki is open to the public but editing it directly felt wrong, so here I am instead making an issue instead, lemme know if this is fine to include :)
For some reason I wasn't able to use the dmg from the releases and kept getting hit by errors saying that the binary wasn't signed and such, compiling from source helped.
Dependencies
Let's start by downloading them from the official website: https://qt-project.org/downloads or from homebrew using
Then set the appropriate environment variables to your current shell session:
Or better yet, just launch a subshell with those environment vars set:
HI, I too had to compile from source to get an M1 native binary. I did the same, by installing QT5 from brew and defining the envs... and it works if I run it directly from the generated
.app
.The I wanted to create a dmg to install it on another mac ... but I get the "unsigned error". I tried signing with a self signed cert (using macdeployqt sign option):
macdeployqt cool-retro-term.app -always-overwrite -qmldir=app/qml -dmg -fs=APFS -codesign="MyCert" -sign-for-notarization="MyCert"
but still doesn't work. It refuses to load some QT libs :
Do you know how can I fix this ?
I think you're best option is to compile it from source on that other mac as well (or maybe just install qt on it?), I am not too well versed with creating portable binaries on mac so I am afraid that's probably all I can say.