Skip to content

Commit

Permalink
airspyhf compiled in docker to have latest fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jasper committed Oct 26, 2024
1 parent 66b3745 commit 7f7ac75
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Device/RTLSDR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ namespace Device {

// did we terminate too early?
if (isStreaming()) {
Warning() << "RTLSDR: lost device. Terminating.";
Error() << "RTLSDR: lost device. Terminating.";
lost = true;
}
}
Expand Down
14 changes: 11 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update
RUN apt-get upgrade -y

RUN apt-get install git make gcc g++ cmake pkg-config -y
RUN apt-get install libusb-1.0.0-dev libairspy-dev libhackrf-dev libairspyhf-dev libzmq3-dev libsoxr-dev zlib1g-dev libpq-dev libssl-dev -y
RUN apt-get install libusb-1.0.0-dev libairspy-dev libhackrf-dev libzmq3-dev libsoxr-dev zlib1g-dev libpq-dev libssl-dev -y

COPY . /root/AIS-catcher

Expand All @@ -16,6 +16,9 @@ RUN cd /root/AIS-catcher/rtl-sdr; mkdir build; cd build; cmake ../ -DINSTALL_UDE
RUN cp /root/AIS-catcher/rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/
RUN ldconfig

RUN cd /root/AIS-catcher; git clone https://github.com/airspy/airspyhf.git --depth 1
RUN cd /root/AIS-catcher/airspyhf && mkdir build && cd build && cmake ../ -DINSTALL_UDEV_RULES=ON && make && make install && ldconfig

RUN cd /root/AIS-catcher; git clone https://github.com/ttlappalainen/NMEA2000.git;
RUN cd /root/AIS-catcher/NMEA2000/src; g++ -O3 -c N2kMsg.cpp N2kStream.cpp N2kMessages.cpp N2kTimer.cpp NMEA2000.cpp N2kGroupFunctionDefaultHandlers.cpp N2kGroupFunction.cpp -I.
RUN cd /root/AIS-catcher/NMEA2000/src; ar rcs libnmea2000.a *.o
Expand All @@ -30,15 +33,20 @@ RUN apt-get update
RUN apt-get upgrade -y

RUN apt-get install git make gcc g++ cmake pkg-config libusb-1.0-0-dev -y
RUN apt-get install libusb-1.0 libairspy0 libhackrf0 libairspyhf1 libzmq5 libsoxr0 libpq5 libz1 libssl3 -y
RUN apt-get install libusb-1.0 libairspy0 libhackrf0 libzmq5 libsoxr0 libpq5 libz1 libssl3 -y

RUN cd /root; git clone https://gitea.osmocom.org/sdr/rtl-sdr.git
RUN cd /root/rtl-sdr; mkdir build; cd build; cmake ../ -DCMAKE_BUILD_TYPE=Release -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON; make; make install;
RUN cp /root/rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/
RUN rm -rf /root/rtl-sdr
RUN ldconfig

RUN cd /root/; git clone https://github.com/airspy/airspyhf.git --depth 1
RUN cd /root/airspyhf && mkdir build && cd build && cmake ../ -DINSTALL_UDEV_RULES=ON && make && make install && ldconfig
RUN rm -rf /root/airspyhf

RUN apt-get remove git make gcc g++ cmake pkg-config libusb-1.0-0-dev -y
RUN apt-get autoremove -y
RUN apt-get autoremove -y

COPY --from=build /usr/local/bin/AIS-catcher /usr/local/bin/AIS-catcher

Expand Down

0 comments on commit 7f7ac75

Please sign in to comment.