hackrf-spectrum-analyzer icon indicating copy to clipboard operation
hackrf-spectrum-analyzer copied to clipboard

Compilation error

Open or-dos opened this issue 2 years ago • 2 comments

Kali GNU/Linux Rolling Got this error: ~/hackrf-spectrum-analyzer/src/hackrf-sweep] └─$ make

format the src # clang-format --style=file:../../../.clang-format -i hackrf_sweep.c

(cd lib/hackrf/ && git reset --hard v2023.01.1 && git apply < ../../src-c/0001-hackrf_sweep-to-library-conversion.patch) fatal: ambiguous argument 'v2023.01.1': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]' make: *** [Makefile:105: patch_hackrf] Error 128

or-dos avatar Apr 12 '23 15:04 or-dos

I had the same issue. git clone --recurse-submodules worked for me.

muaddib1984 avatar Apr 27 '23 20:04 muaddib1984

specifically doing the initial clone is there you do the --recurse-submodules, for example git clone --recurse-submodules --depth=1 https://github.com/pavsa/hackrf-spectrum-analyzer.git

copeland3300 avatar Jan 18 '24 06:01 copeland3300