mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-861: More fixes for DevGuide.md
This commit is contained in:
parent
28c198adaf
commit
835fc958c0
2 changed files with 30 additions and 7 deletions
35
DevGuide.md
35
DevGuide.md
|
@ -136,11 +136,14 @@ instructions below...
|
||||||
|
|
||||||
### Manual Download Instructions
|
### Manual Download Instructions
|
||||||
|
|
||||||
Create the `~/git/ghidra/dependencies/` and `~/git/ghidra/dependencies/flatRepo` directories to hold the manually-downloaded dependencies:
|
Create the `~/git/ghidra/dependencies/` directory and required subdirectories to hold the manually-downloaded dependencies:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mkdir ~/git/ghidra/dependencies
|
mkdir ~/git/ghidra/dependencies
|
||||||
mkdir ~/git/ghidra/dependencies/flatRepo
|
mkdir ~/git/ghidra/dependencies/flatRepo
|
||||||
|
mkdir ~/git/ghidra/dependencies/fidb
|
||||||
|
mkdir ~/git/ghidra/dependencies/GhidraServer
|
||||||
|
mkdir ~/git/ghidra/dependencies/GhidraDev
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Get Dependencies for FileFormats:
|
#### Get Dependencies for FileFormats:
|
||||||
|
@ -183,26 +186,26 @@ cp csframework.jar hfsx_dmglib.jar hfsx.jar iharder-base64.jar ~/git/ghidra/depe
|
||||||
|
|
||||||
Building the GhidraServer requires "Yet another Java service wrapper" (yajsw) version 12.12.
|
Building the GhidraServer requires "Yet another Java service wrapper" (yajsw) version 12.12.
|
||||||
Download `yajsw-stable-12.12.zip` from their project on www.sourceforge.net, and place it in:
|
Download `yajsw-stable-12.12.zip` from their project on www.sourceforge.net, and place it in:
|
||||||
`~/git/ghidra/dependencies/`:
|
`~/git/ghidra/dependencies/GhidraServer/`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd ~/Downloads # Or wherever
|
cd ~/Downloads # Or wherever
|
||||||
curl -OL https://sourceforge.net/projects/yajsw/files/yajsw/yajsw-stable-12.12/yajsw-stable-12.12.zip
|
curl -OL https://sourceforge.net/projects/yajsw/files/yajsw/yajsw-stable-12.12/yajsw-stable-12.12.zip
|
||||||
cp ~/Downloads/yajsw-stable-12.12.zip ~/git/ghidra/dependencies/
|
cp ~/Downloads/yajsw-stable-12.12.zip ~/git/ghidra/dependencies/GhidraServer/
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Get Dependencies for GhidraDev
|
#### Get Dependencies for GhidraDev
|
||||||
|
|
||||||
Building the GhidraDev plugin for Eclipse requires the CDT and PyDev plugins for Eclipse.
|
Building the GhidraDev plugin for Eclipse requires the CDT and PyDev plugins for Eclipse.
|
||||||
Download `cdt-8.6.0.zip` from The Eclipse Foundation, and place it in:
|
Download `cdt-8.6.0.zip` from The Eclipse Foundation, and place it in:
|
||||||
`~/git/ghidra/dependencies/`:
|
`~/git/ghidra/dependencies/GhidraDev/`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd ~/Downloads # Or wherever
|
cd ~/Downloads # Or wherever
|
||||||
curl -OL 'https://archive.eclipse.org/tools/cdt/releases/8.6/cdt-8.6.0.zip'
|
curl -OL 'https://archive.eclipse.org/tools/cdt/releases/8.6/cdt-8.6.0.zip'
|
||||||
curl -o 'cdt-8.6.0.zip.sha512' -L --retry 3 'https://www.eclipse.org/downloads/sums.php?type=sha512&file=/tools/cdt/releases/8.6/cdt-8.6.0.zip'
|
curl -o 'cdt-8.6.0.zip.sha512' -L --retry 3 'https://www.eclipse.org/downloads/sums.php?type=sha512&file=/tools/cdt/releases/8.6/cdt-8.6.0.zip'
|
||||||
shasum -a 512 -c 'cdt-8.6.0.zip.sha512'
|
shasum -a 512 -c 'cdt-8.6.0.zip.sha512'
|
||||||
cp ~/Downloads/cdt-8.6.0.zip ~/git/ghidra/dependencies/
|
cp ~/Downloads/cdt-8.6.0.zip ~/git/ghidra/dependencies/GhidraDev/
|
||||||
```
|
```
|
||||||
|
|
||||||
Download `PyDev 6.3.1.zip` from www.pydev.org, and place it in the same directory:
|
Download `PyDev 6.3.1.zip` from www.pydev.org, and place it in the same directory:
|
||||||
|
@ -210,7 +213,27 @@ Download `PyDev 6.3.1.zip` from www.pydev.org, and place it in the same director
|
||||||
```bash
|
```bash
|
||||||
cd ~/Downloads # Or wherever
|
cd ~/Downloads # Or wherever
|
||||||
curl -L -o 'PyDev 6.3.1.zip' https://sourceforge.net/projects/pydev/files/pydev/PyDev%206.3.1/PyDev%206.3.1.zip
|
curl -L -o 'PyDev 6.3.1.zip' https://sourceforge.net/projects/pydev/files/pydev/PyDev%206.3.1/PyDev%206.3.1.zip
|
||||||
cp ~/Downloads/'PyDev 6.3.1.zip' ~/git/ghidra/dependencies/
|
cp ~/Downloads/'PyDev 6.3.1.zip' ~/git/ghidra/dependencies/GhidraDev/
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Get Ghidra Function ID datasets
|
||||||
|
|
||||||
|
Download the Ghidra Function ID dataset files from the `ghidra-data` GitHub repository and place them
|
||||||
|
in `~/git/ghidra/dependencies/fidb`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd ~/Downloads # Or wherever
|
||||||
|
curl -L -o 'vs2012_x64.fidb' https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2012_x64.fidb
|
||||||
|
curl -L -o 'vs2012_x86.fidb' https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2012_x86.fidb
|
||||||
|
curl -L -o 'vs2015_x64.fidb' https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2015_x64.fidb
|
||||||
|
curl -L -o 'vs2015_x86.fidb' https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2015_x86.fidb
|
||||||
|
curl -L -o 'vs2017_x64.fidb' https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2017_x64.fidb
|
||||||
|
curl -L -o 'vs2017_x86.fidb' https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2017_x86.fidb
|
||||||
|
curl -L -o 'vs2019_x64.fidb' https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2019_x64.fidb
|
||||||
|
curl -L -o 'vs2019_x86.fidb' https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2019_x86.fidb
|
||||||
|
curl -L -o 'vsOlder_x64.fidb' https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vsOlder_x64.fidb
|
||||||
|
curl -L -o 'vsOlder_x86.fidb' https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vsOlder_x86.fidb
|
||||||
|
cp ~/Downloads/*.fidb ~/git/ghidra/dependencies/fidb/
|
||||||
```
|
```
|
||||||
|
|
||||||
## Building Ghidra
|
## Building Ghidra
|
||||||
|
|
|
@ -82,7 +82,7 @@ else {
|
||||||
File f = file("ghidra.repos.config")
|
File f = file("ghidra.repos.config")
|
||||||
if (!f.exists()) {
|
if (!f.exists()) {
|
||||||
throw new GradleException("\n\n\n\tUnable to find the local maven repo." +
|
throw new GradleException("\n\n\n\tUnable to find the local maven repo." +
|
||||||
" Ensure you have created the ${f.getName()} file.\n\n\n");
|
" Ensure you have created the ${flatRepo.getName()} directory or ${f.getName()} file.\n\n\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue