ret-sync icon indicating copy to clipboard operation
ret-sync copied to clipboard

Building ret-sync for Ghidra 10.3.1

Open saidelike opened this issue 2 years ago • 7 comments

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>

saidelike avatar Jul 10 '23 12:07 saidelike

Thanks @saidelike for the hint, also works ion current ghidra version 10.3.2.

n3x77 avatar Aug 01 '23 05:08 n3x77

Thanks too!

sud0why avatar Aug 16 '23 02:08 sud0why

Thanks!

SweDevDoesTech avatar Nov 27 '23 18:11 SweDevDoesTech

Thank you so much, @saidelike ! Confirmed working on Ghidra 10.5 DEV (20231213).

ognz avatar Dec 13 '23 09:12 ognz

Also works for ghidra_11.0_PUBLIC

Ebiroll avatar Jan 17 '24 11:01 Ebiroll

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...

rblakeslee avatar Mar 11 '24 03:03 rblakeslee

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

Ebiroll avatar Apr 14 '24 06:04 Ebiroll