boricj / ghidra-delinker-extension

Ghidra extension for exporting relocatable object files
Apache License 2.0
365 stars 14 forks source link

Compilation error on Win10/WSL platform #3

Closed djipi closed 1 year ago

djipi commented 1 year ago

Got the error when using "gradle buildExtension" on Win10/WSL.

FAILURE: Build failed with an exception.

BUILD FAILED in 1s

boricj commented 1 year ago

Your Gradle version appears to be too old. Building anything Ghidra related requires at least Gradle 7.3 (https://github.com/NationalSecurityAgency/ghidra/blob/master/Ghidra/application.properties#L5).

I have Gradle 8.2.1 locally installed and the CI jobs use Gradle 8.3 (https://github.com/boricj/ghidra-delinker-extension/actions/runs/6487869167/job/17619119160#step:5:10).

djipi commented 1 year ago

Thank you for this information.

Unfortunately, Win10/WSL doesn't have a recent package. Reading package lists... Done Building dependency tree Reading state information... Done gradle is already the newest version (4.4.1-10). 0 upgraded, 0 newly installed, 0 to remove and 413 not upgraded.

Anyway, I will give a try with the gradle package for Windows.

boricj commented 1 year ago

I'm assuming your WSL distribution is Ubuntu 20.04 based on that gradle version. It should be recent enough to build this, with these caveats:

Building under Windows should work in theory (I've never tried it), but the test suite assumes that objcopy with ELF support is installed on the system. Most of the unit tests will fail without it.

Alternatively, you can download prebuilt versions of this extension through the releases pages or from the CI builds if you just want to use it as-is.

You can reach me on Discord if you need help (the link is on my GitHub profile, leftmost column, just above the Achievements heading). It will be easier to get you up to speed through instant messaging than through GitHub issues.