radareorg/r2ghidra

[BUG] Windows Build Errors

Closed this issue ยท 3 comments

[BUG] Windows Build Errors

Issue Description:

The batch scripts provided to configure and make the plugin seem to have errors. Also the plugin sources have errors, which is causing ninja to teminate abruptly, but the CI continues without detecting. Windows builds have the following errors that i have spotted till now.

Issue Causes and Solutions (if any spotted):

Firstly the preconfigure scripts have 2 errors.

  • The ARCH variable is declared but later left unused L18.

    First Solution:
    I fixed this little bug by replacing %VSARCH% with %ARCH%
    bash~ ~sed -i 's|%VSARCH%|%ARCH%|g' preconfigure.bat~ ~

    Fixed in commit fd5366d

  • Secondly the url provided for ghidra-native is broken L6.
    Second Solution:
    To fix this I replaced the url with tag url

    - python -m wget https://github.com/radareorg/ghidra-native/releases/download/0.1.8/ghidra-native-0.1.8.zip
    + python -m wget https://github.com/radareorg/ghidra-native/archive/refs/tags/0.1.8.zip -o ghidra-native-0.1.8.zip
  • Errors in src\CodeXMLParse.cpp cause plugin dll build to fail. [Logs Here].

  • Errors in src\ArchMap.cpp cause plugin sleigh build to fail. [Logs Here].

Related Issues

None spotted till now.

The other 3 points are wrong.

I didnt created the release with the tag, so the 0.1.8 artifact wasnt generated. this dist zip contains the patched source. otherwise you get the compile errors if you pick the src directly from git.

ill close this ticket now when i get the thing to compile

All fixed. Thanks for motivating me to do it

All fixed. Thanks for motivating me to do it

Now I feel sorry for pinging you too much, hope you didn't mind ๐Ÿ˜†๐Ÿ˜†

Also Thanks a Lot, Much love 2radare :)