jogolden / GhidraPS4Loader

A Ghidra loader for PlayStation 4 binaries.
91 stars 8 forks source link

Trying to build with gradle 6.6 and latest Ghidra #8

Open cspencer49519 opened 4 years ago

cspencer49519 commented 4 years ago

Does this require q specific version of Ghidra or gradle? I'm trying to build on macos 10.15.7 with gradle 6.6. I get the following errors:

graffix@Craigs-MacBook-Pro-2018 ghidra-plugin-PS4-loader % gradle

Task :compileJava FAILED /Users/graffix/Downloads/ghidra-plugin-PS4-loader/src/main/java/ghidraps4loader/GhidraPS4Loader.java:35: error: cannot find symbol import ghidra.app.util.importer.MemoryConflictHandler; ^ symbol: class MemoryConflictHandler location: package ghidra.app.util.importer /Users/graffix/Downloads/ghidra-plugin-PS4-loader/src/main/java/ghidraps4loader/GhidraPS4Loader.java:176: error: cannot find symbol success = this.loadInto(provider, loadSpec, options, log, program, monitor, MemoryConflictHandler.ALWAYS_OVERWRITE); ^ symbol: variable MemoryConflictHandler location: class GhidraPS4Loader /Users/graffix/Downloads/ghidra-plugin-PS4-loader/src/main/java/ghidraps4loader/GhidraPS4Loader.java:257: error: method does not override or implement a method from a supertype @Override ^ /Users/graffix/Downloads/ghidra-plugin-PS4-loader/src/main/java/ghidraps4loader/GhidraPS4Loader.java:259: error: method validateOptions in class BinaryLoader cannot be applied to given types; return super.validateOptions(provider, loadSpec, options); ^ required: ByteProvider,LoadSpec,List

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 4s 1 actionable task: 1 executed graffix@Craigs-MacBook-Pro-2018 ghidra-plugin-PS4-loader % sudo gradlr sudo: gradlr: command not found graffix@Craigs-MacBook-Pro-2018 ghidra-plugin-PS4-loader % sudo gradle

FAILURE: Build failed with an exception.

BUILD FAILED in 557ms

jogolden commented 4 years ago

Something has changed n the new Ghidra I believe. If I have time at some point I can fix it, or you could look into it.

cspencer49519 commented 4 years ago

I wish possessed the knowledge to do that. Do you happen to know what version of ghidra it works on?

nickl- commented 2 years ago

Updated deprecation errors against Ghidra 10.2. see #10

OpenJDK 18 Gradle 7.4.2

marcussacana commented 2 years ago

@nickl- I tried with your fork and I still got this error

GhidraPS4Loader/src/main/java/ghidraps4loader/PS4ElfParser.java:98: error: constructor ElfHeader in class ElfHeader cannot be applied to given types;
                ElfHeader elfHeader = new ElfHeader(provider, msg -> Msg.error(PS4ElfParser.class, msg));
                                      ^
  required: no arguments
  found:    ByteProvider,(msg)->Msg[...] msg)
  reason: actual and formal argument lists differ in length
1 error