Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hackrf #171

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
CFLAGS?=-O2 -g -Wall -W $(shell pkg-config --cflags librtlsdr)
LDLIBS+=$(shell pkg-config --libs librtlsdr) -lpthread -lm
CFLAGS?=-O2 -g -Wall -W $(shell pkg-config --cflags librtlsdr libhackrf libairspy soxr)
LDLIBS+=$(shell pkg-config --libs librtlsdr libhackrf libairspy soxr) -lpthread -lm

ifeq ($(NoSDRplay),1)
CFLAGS+= -DNoSDRplay
else
LDLIBS+= -lmirsdrapi-rsp
endif

CC?=gcc
PROGNAME=dump1090

all: dump1090
all: $(PROGNAME)

%.o: %.c
$(CC) $(CFLAGS) -c $<

dump1090: dump1090.o anet.o
$(CC) -g -o dump1090 dump1090.o anet.o $(LDFLAGS) $(LDLIBS)
$(PROGNAME): $(PROGNAME).o anet.o
$(CC) -g -o $@ $^ $(LDFLAGS) $(LDLIBS)

clean:
rm -f *.o dump1090
rm -f *.o $(PROGNAME)
27 changes: 27 additions & 0 deletions build_libs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
To build RTL-SDR, HackRF and Airspy librares use the relevant git statements below and then the same build sequence of...

cd <lib directory>
mkdir build
cd build
cmake ../
make
sudo make install
sudo ldconfig

RTL-SDR: git clone git//git.osmocom.org/rtl-sdr.git ./rtl-sdr
HACKRF: git clone https://github.com/mossmann/hackrf/host.git ./hackrf
AIRSPY: git clone https://github.com/airspy/host.git ./airspy

For Soxr:

git clone https://github.com/uklauer/soxr.git ./soxr

then...

cd soxr
./go
cd Release
sudo make install

wget https://www.sdrplay.com/software/SDRplay_RSP_API-RPi-2.13.1.run
sh ./SDRplay_RSP_API-RPi-2.13.1.run
Loading