diff --git a/Dockerfile b/Dockerfile index db535a0..68d4ad5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ libpopt-dev \ libopus-dev \ libgsm1-dev \ + libmosquitto-dev \ && rm -rf /var/lib/apt/lists/* WORKDIR /src @@ -28,6 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ libpopt0 \ libopus0 \ libgsm1 \ + libmosquitto1 \ && rm -rf /var/lib/apt/lists/* COPY --from=builder /src/build/bin/svxreflector /usr/bin/svxreflector diff --git a/src/svxlink/reflector/CMakeLists.txt b/src/svxlink/reflector/CMakeLists.txt index ded6e1b..5da7eec 100644 --- a/src/svxlink/reflector/CMakeLists.txt +++ b/src/svxlink/reflector/CMakeLists.txt @@ -19,6 +19,11 @@ pkg_check_modules (JSONCPP REQUIRED jsoncpp) include_directories(${JSONCPP_INCLUDE_DIRS}) set(LIBS ${LIBS} ${JSONCPP_LIBRARIES}) +# Find mosquitto library (MQTT publishing) +pkg_check_modules(MOSQUITTO REQUIRED libmosquitto) +include_directories(${MOSQUITTO_INCLUDE_DIRS}) +set(LIBS ${LIBS} ${MOSQUITTO_LIBRARIES}) + # Add project libraries set(LIBS asynccpp asyncaudio asynccore svxmisc ${LIBS})