mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-26 12:27:51 +02:00
android fixes
This commit is contained in:
@ -23,14 +23,9 @@ if (MSVC)
|
||||
|
||||
target_link_libraries(rtl_sdr_source PRIVATE rtlsdr)
|
||||
elseif (ANDROID)
|
||||
target_include_directories(rtl_sdr_source PUBLIC
|
||||
/mnt/android_sdr/libusb/libusb
|
||||
/mnt/android_sdr/librtlsdr/include
|
||||
)
|
||||
|
||||
target_link_libraries(rtl_sdr_source PUBLIC
|
||||
/mnt/android_sdr/output/libusb/${ANDROID_ABI}/libusb1.0.so
|
||||
/mnt/android_sdr/output/librtlsdr/${ANDROID_ABI}/librtlsdr.so
|
||||
/sdr-kit/${ANDROID_ABI}/lib/libusb1.0.so
|
||||
/sdr-kit/${ANDROID_ABI}/lib/librtlsdr.so
|
||||
)
|
||||
else (MSVC)
|
||||
find_package(PkgConfig)
|
||||
|
@ -285,7 +285,7 @@ private:
|
||||
#ifndef __ANDROID__
|
||||
int oret = rtlsdr_open(&_this->openDev, _this->devId);
|
||||
#else
|
||||
int oret = rtlsdr_open(&_this->openDev, _this->devFd);
|
||||
int oret = rtlsdr_open_fd(&_this->openDev, _this->devFd);
|
||||
#endif
|
||||
|
||||
if (oret < 0) {
|
||||
|
Reference in New Issue
Block a user