-
Notifications
You must be signed in to change notification settings - Fork 211
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
Issue with BinExport for Binary Ninja #109
Comments
Looks like it's working fine, just a bit fragile -- this is basically a dupe of #108 To build with the latest development versions of BN you have to manually update the hard-coded hashes in the cmake files. The latest dev git tag as of right now should be b57e34087f3c2e9bc76b841720a728bb54fbbf4d which should go here: https://github.com/google/binexport/blob/main/cmake/BinExportDeps.cmake#L97 Next, you'll want to re-generate the headers (which requires clang-format):
Finally, you should be able to build:
After that it worked for me on build 4097. |
Note that for organizational reasons, I can't easily provide binaries for both stable and dev (and dev changes too quickly). So I mostly test with stable. |
@0x8ff did my above steps work for you or are you still having any issues? |
@psifertex i wrote a shell script based on the commands you told me to run: i get this at each build: (and yes |
Even doing the commands manually exactly as you listed, I get the same issue |
You're sure you ran the generator script against a checked out development copy of the repo at the right commit hash? I ran into that issue before I ran the generator if I recall correctly. |
Actually, let me make a few mods to that script to have it validate the hash with the installed copy of binary ninja and check out that version of the repo as well. That should fully automate it 🤞 |
Ahh, yeah, it looks like you also have to define I've updated your gist here with that and a few other changes (the main one is it will match whatever the current version of BN you have installed in the default location, so it'll easily work even if you're not on the exact latest dev). Let me know if it works better for you: https://gist.github.com/psifertex/31d9bc3167eca91e466ebaae4382521c |
Thanks, this plugin now works for me :) |
Great! Thanks for the idea of the script. I imagine you can close the issue now? Maybe @cblichmann can integrate that script into the repo or documentation but you can probably close this issue then. I don't know about your contributions, but I hereby release any changes I made into the public domain for anyone to do what they want with. |
Thanks, @psifertex! |
It might be worth dropping the distinction between dev or stable as well as I think it would simplify the process some? Basically, just pull the API hash out of whatever version of BN you are building for and go from there. Only hurdle left would be to simplify the header regeneration and then it could be much smoother all around with minimal dependencies. |
|
FYI -- I just fixed a bug with that script (I wasn't doing a fetch on the BN repo if it already existed). Same gist url as before, but if @cblichmann already was building something on it, just a heads up. I think it's also safe to close this at this point too since it's fairly well resolved even if just by that script? |
I just built BinExport for Binary Ninja (from latest commit as of writing) and now Binja crashes when launching the app.
I'm on macOS 12.6.3 and using the latest
development
build of BinjaThe text was updated successfully, but these errors were encountered: