mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 23:55:13 -05:00
Fixes for Android
This commit is contained in:
parent
89134729cc
commit
2538662c9b
@ -29,6 +29,7 @@
|
|||||||
#include "SWGDeviceReport.h"
|
#include "SWGDeviceReport.h"
|
||||||
#include "SWGAndroidSDRDriverInputReport.h"
|
#include "SWGAndroidSDRDriverInputReport.h"
|
||||||
|
|
||||||
|
#include "util/android.h"
|
||||||
#include "util/simpleserializer.h"
|
#include "util/simpleserializer.h"
|
||||||
#include "dsp/dspcommands.h"
|
#include "dsp/dspcommands.h"
|
||||||
#include "device/deviceapi.h"
|
#include "device/deviceapi.h"
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#include <QRecursiveMutex>
|
#include <QRecursiveMutex>
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
|
|
||||||
|
#include "util/message.h"
|
||||||
#include "util/messagequeue.h"
|
#include "util/messagequeue.h"
|
||||||
#include "util/message.h"
|
#include "util/message.h"
|
||||||
#include "androidsdrdriverinputsettings.h"
|
#include "androidsdrdriverinputsettings.h"
|
||||||
|
@ -19,6 +19,9 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
#ifdef ANDROID
|
||||||
|
#include <QFile>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "fileinputworker.h"
|
#include "fileinputworker.h"
|
||||||
#include "dsp/samplesinkfifo.h"
|
#include "dsp/samplesinkfifo.h"
|
||||||
|
@ -68,6 +68,9 @@ target_link_libraries(${TARGET_NAME} PRIVATE
|
|||||||
${LIMESUITE_LIBRARY}
|
${LIMESUITE_LIBRARY}
|
||||||
limesdrdevice
|
limesdrdevice
|
||||||
)
|
)
|
||||||
|
if(ANDROID)
|
||||||
|
target_link_libraries(${TARGET_NAME} PRIVATE ${LIBUSB_LIBRARIES} log)
|
||||||
|
endif()
|
||||||
|
|
||||||
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|
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()));
|
qCritical("RTLSDRInput::openDevice: could not open USB device %s", qPrintable(m_deviceAPI->getSamplingDeviceSerial()));
|
||||||
return false;
|
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));
|
qCritical("RTLSDRInput::openDevice: could not open RTLSDR: %s", strerror(errno));
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user