1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-21 07:41:46 -05:00

Fixes for Android

This commit is contained in:
Jon Beniston 2024-10-21 17:11:55 +01:00
parent 89134729cc
commit 2538662c9b
5 changed files with 9 additions and 1 deletions

View File

@ -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"

View File

@ -26,6 +26,7 @@
#include <QRecursiveMutex>
#include <QDateTime>
#include "util/message.h"
#include "util/messagequeue.h"
#include "util/message.h"
#include "androidsdrdriverinputsettings.h"

View File

@ -19,6 +19,9 @@
#include <stdio.h>
#include <errno.h>
#include <QDebug>
#ifdef ANDROID
#include <QFile>
#endif
#include "fileinputworker.h"
#include "dsp/samplesinkfifo.h"

View File

@ -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})

View File

@ -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;