Closed djipi closed 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).
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.
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:
gradle
packages in Debian and Ubuntu are woefully outdated and were last updated in 2018. You should install gradle manually from the official website, it's just a zip file to extract.openjdk-17-jdk
package and set it as the active JDK alternative with update-java-alternatives
.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.
Got the error when using "gradle buildExtension" on Win10/WSL.
FAILURE: Build failed with an exception.
Where: Build file '/mnt/c/Projects/Ghidra/ghidra-delinker-extension/build.gradle' line: 33
What went wrong: An exception occurred applying plugin request [id: 'com.diffplug.spotless', version: '6.20.0']
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1s