diff --git a/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinput.cpp b/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinput.cpp index f14b5b882..481d9d1b1 100644 --- a/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinput.cpp +++ b/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinput.cpp @@ -29,6 +29,7 @@ #include "SWGDeviceReport.h" #include "SWGAndroidSDRDriverInputReport.h" +#include "util/android.h" #include "util/simpleserializer.h" #include "dsp/dspcommands.h" #include "device/deviceapi.h" diff --git a/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinputtcphandler.h b/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinputtcphandler.h index b856f2d28..bba34ef28 100644 --- a/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinputtcphandler.h +++ b/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinputtcphandler.h @@ -26,6 +26,7 @@ #include #include +#include "util/message.h" #include "util/messagequeue.h" #include "util/message.h" #include "androidsdrdriverinputsettings.h" diff --git a/plugins/samplesource/fileinput/fileinputworker.cpp b/plugins/samplesource/fileinput/fileinputworker.cpp index c6dcc2dae..4bf5d6772 100644 --- a/plugins/samplesource/fileinput/fileinputworker.cpp +++ b/plugins/samplesource/fileinput/fileinputworker.cpp @@ -19,6 +19,9 @@ #include #include #include +#ifdef ANDROID +#include +#endif #include "fileinputworker.h" #include "dsp/samplesinkfifo.h" diff --git a/plugins/samplesource/limesdrinput/CMakeLists.txt b/plugins/samplesource/limesdrinput/CMakeLists.txt index df8b00ed6..440f374ee 100644 --- a/plugins/samplesource/limesdrinput/CMakeLists.txt +++ b/plugins/samplesource/limesdrinput/CMakeLists.txt @@ -68,6 +68,9 @@ target_link_libraries(${TARGET_NAME} PRIVATE ${LIMESUITE_LIBRARY} limesdrdevice ) +if(ANDROID) + target_link_libraries(${TARGET_NAME} PRIVATE ${LIBUSB_LIBRARIES} log) +endif() install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER}) diff --git a/plugins/samplesource/rtlsdr/rtlsdrinput.cpp b/plugins/samplesource/rtlsdr/rtlsdrinput.cpp index 61733d012..e8ecb8dad 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrinput.cpp +++ b/plugins/samplesource/rtlsdr/rtlsdrinput.cpp @@ -128,7 +128,7 @@ bool RTLSDRInput::openDevice() qCritical("RTLSDRInput::openDevice: could not open USB device %s", qPrintable(m_deviceAPI->getSamplingDeviceSerial())); return false; } - if ((res = rtlsdr_open_fd(&m_dev, fd)) < 0) + if ((rtlsdr_open_fd(&m_dev, fd)) < 0) { qCritical("RTLSDRInput::openDevice: could not open RTLSDR: %s", strerror(errno)); return false;