Building ret-sync for Ghidra 10.3.1
See https://github.com/NationalSecurityAgency/ghidra/issues/4962
With the below changes, it builds fine:
C:\ret-sync>git diff --cached
diff --git a/ext_ghidra/src/main/help/help/shared/Frontpage.css b/ext_ghidra/src/main/help/help/shared/DefaultStyle.css
similarity index 100%
rename from ext_ghidra/src/main/help/help/shared/Frontpage.css
rename to ext_ghidra/src/main/help/help/shared/DefaultStyle.css
diff --git a/ext_ghidra/src/main/help/help/topics/retsync/help.html b/ext_ghidra/src/main/help/help/topics/retsync/help.html
index 8f858d2..1f9d6a1 100644
--- a/ext_ghidra/src/main/help/help/topics/retsync/help.html
+++ b/ext_ghidra/src/main/help/help/topics/retsync/help.html
@@ -10,7 +10,7 @@
<META name="ProgId" content="FrontPage.Editor.Document">
<TITLE>Skeleton Help File for a Module</TITLE>
- <LINK rel="stylesheet" type="text/css" href="../../shared/Frontpage.css">
+ <LINK rel="stylesheet" type="text/css" href="help/shared/DefaultStyle.css">
</HEAD>
<BODY>
Thanks @saidelike for the hint, also works ion current ghidra version 10.3.2.
Thanks too!
Thanks!
Thank you so much, @saidelike ! Confirmed working on Ghidra 10.5 DEV (20231213).
Also works for ghidra_11.0_PUBLIC
Also works for ghidra_11.0_PUBLIC
I tried over and over on ubuntu to compile this with the changes, and no matter what it kept failing at the help file, with errors like this:
Exception in thread "main" ghidra.util.exception.AssertException: Errors parsing HTML file: help.html Incorrect stylesheet defined - none match help/shared/DefaultStyle.css in file /home/box/ret-sync/ext_ghidra/src/main/help/help/topics/retsync/help.html Discovered stylesheets: [/home/box/ret-sync/ext_ghidra/src/main/help/help/shared/DefaultStyle.css]
DefaultStyle is referenced in the HTML, renamed in the shared folder, and it says it discovered it, and fails anyway. I'm at my wits end of this, so I just forced it to run the 10.2 version that I could find pre-built. I would prefer to have it compile, so if anyone has any ideas as to what's going on...
Also works for ghidra_11.0_PUBLIC
I tried over and over on ubuntu to compile this with the changes, and no matter what it kept failing at the help file, with errors like this:
Exception in thread "main" ghidra.util.exception.AssertException: Errors parsing HTML file: help.html Incorrect stylesheet defined - none match help/shared/DefaultStyle.css in file /home/box/ret-sync/ext_ghidra/src/main/help/help/topics/retsync/help.html Discovered stylesheets: [/home/box/ret-sync/ext_ghidra/src/main/help/help/shared/DefaultStyle.css]
Do not forget the important step, rename from ext_ghidra/src/main/help/help/shared/Frontpage.css to ext_ghidra/src/main/help/help/shared/DefaultStyle.css . I used Alpine in WSL2. Also note that I edited Extensions/Ghidra/Skeleton/src/main/help/help/topics/skeleton/help.html