-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add v6 patched qemu binaries #32
Conversation
Thanks for submitting this. However, the binaries reference your locally installed libraries which others might not have installed (/opt/homebrew). You can check this by using the otool tool (I placed **** by the libraries in question):
Basically what you need to do is tell the binary to reference the libraries that will be bundled with ACVM. For myself, I run these on the binaries in the build folder for qemu like so:
Note that for the qemu-system-aarch64 we need to run on the unsigned binary, and then resign, otehrwise OS X will complain the binary signature was changed:
The binaries you get won't run standalone, the'll only run when in the folder structure of ACVM because of the library references. But they will work for anyone, as they won't have to have homebrew and the libraries installed outside of ACVM. I am new to Swift/OS X programming, so a lot of this I have picked up over on the macrumors forums from other users. Hopefully this make sense. |
You seem to know a lot more than me though ;-) (linux guy). Did not expect this, in normal unix systems, the loader will resolve shared libs from its search path. I expected the mac loader to be smart to look inside its app bundle thingy. Apparently not. |
Relocated the libs, and added a few that were missing. I added those to the project, but they are not automatically signed, trying to figure out how, but I don't want to commit my project files, as they have my signing keys etc, and I don't know enough about it to safely do that. |
now I can no longer get it to run :(. I get SIGABRT. Complaining about the signature on libjpeg and libpng. |
To confuse matters even more, the qemu binaries you ship point to libs in /usr/local/opt which does not exist on my system, but still it seems it finds them in the Frameworks folder? |
Ok figured it out, I had to add them to the project and in the build step also in several places ;). Learning. So I guess with the updated libs you can fix the project file yourself, as I dare not commit it. |
I updated the project file in a safe way I think (not commited the team change). The pod project file was also (massively) changed, did not commit that one, not sure about that. |
here are the binaries with v6 patches, works perfectly here.