From 10000e410d6d35d89e8d9d51aa85284fca5d19f5 Mon Sep 17 00:00:00 2001 From: Jan Zeiseweis Date: Thu, 6 Apr 2023 14:05:08 +0200 Subject: [PATCH] Fix cloning command to include submodules When cloning the project you also want to initialize and update the submodules (src/hackrf-sweep/lib/hackrf). Otherwise building will fail with the error `fatal: ambiguous argument 'v2023.01.1': unknown revision or path not in the working tree.`. This happens because the hackrf folder will be empty if the submodule is not initialized and updated during cloning. --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index b3a01af..f69484e 100644 --- a/Readme.md +++ b/Readme.md @@ -48,7 +48,7 @@ If something does not work, you can try to build it manually. Building native libraries for Windows (using mingw-w64) and linux is done in one unified build using Ubuntu 18.04 x64. 1. You'll need to install these packages: `sudo apt install build-essential ant git libusb-1.0 libfftw3-bin libfftw3-dev default-jdk mingw-w64` -1. `git clone --depth=1 https://github.com/pavsa/hackrf-spectrum-analyzer.git` +1. `git clone --recurse-submodules --depth=1 https://github.com/pavsa/hackrf-spectrum-analyzer.git` 1. `cd hackrf-spectrum-analyzer/src/hackrf-sweep/` 1. `make` 1. To run, simply execute: `build/hackrf_sweep_spectrum_analyzer_linux.sh`