mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 15:51:47 -05:00
Fixes for Android
This commit is contained in:
parent
89134729cc
commit
2538662c9b
@ -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"
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include <QRecursiveMutex>
|
||||
#include <QDateTime>
|
||||
|
||||
#include "util/message.h"
|
||||
#include "util/messagequeue.h"
|
||||
#include "util/message.h"
|
||||
#include "androidsdrdriverinputsettings.h"
|
||||
|
@ -19,6 +19,9 @@
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <QDebug>
|
||||
#ifdef ANDROID
|
||||
#include <QFile>
|
||||
#endif
|
||||
|
||||
#include "fileinputworker.h"
|
||||
#include "dsp/samplesinkfifo.h"
|
||||
|
@ -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})
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user