Fails to build for me with ‘mirisdr_set_transfer’ was not declared in this scope
:
==> Starting build()...
-- The CXX compiler identification is GNU 11.1.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type not specified: defaulting to Release
-- Performing Test CXX_HAS_PTHREAD
-- Performing Test CXX_HAS_PTHREAD - Success
-- Performing Test CXX_HAS_FFAST_MATH
-- Performing Test CXX_HAS_FFAST_MATH - Success
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0")
-- Checking for module 'libconfig++'
-- Found libconfig++, version 1.7.3
-- Found lame includes: /usr/include/lame/lame.h
-- Found lame library: /usr/lib/libmp3lame.so
-- Checking for module 'shout'
-- Found shout, version 2.4.5
-- Checking for module 'librtlsdr'
-- Found librtlsdr, version v0.8.x-xxx-xunknown
-- Found RTLSDR: /usr/lib/librtlsdr.so
-- Checking for module 'libmirisdr'
-- Found libmirisdr, version 59ba
-- Found MiriSDR: /usr/lib/libmirisdr.so
-- Checking for SoapySDR
-- SoapySDR found, /usr/include, SoapySDR
-- Checking for module 'libpulse'
-- Found libpulse, version 15.0
-- Checking for module 'fftw3f'
-- Found fftw3f, version 3.3.10
-- RTLSDR-Airband configuration summary:
-- - Build type: Release
-- - Operating system: Linux
-- - SDR drivers:
-- - librtlsdr: requested: ON, enabled: TRUE
-- - mirisdr: requested: ON, enabled: TRUE
-- - soapysdr: requested: ON, enabled: TRUE
-- - Other options:
-- - Platform: native
-- - Broadcom VideoCore GPU: FALSE
-- - NFM support: ON
-- - PulseAudio: requested: ON, enabled: TRUE
-- - Profiling: requested: OFF, enabled: FALSE
-- Configuring done
-- Generating done
-- Build files have been written to: /[...]/rtlsdr-airband-git/src/rtlsdr-airband/BUILD
[ 6%] Generating version.cpp, _version.cpp
[ 25%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/config.cpp.o
[ 25%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/input-file.cpp.o
[ 25%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/input-common.cpp.o
[ 31%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/input-helpers.cpp.o
[ 37%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/mixer.cpp.o
[ 43%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/output.cpp.o
[ 50%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/rtl_airband.cpp.o
[ 56%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/squelch.cpp.o
[ 62%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/util.cpp.o
[ 62%] Generating version.cpp, _version.cpp
[ 68%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/input-rtlsdr.cpp.o
[ 75%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/input-mirisdr.cpp.o
[ 81%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/input-soapysdr.cpp.o
[ 87%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/pulse.cpp.o
/[...]/rtlsdr-airband-git/src/rtlsdr-airband/src/input-mirisdr.cpp: In function ‘int mirisdr_init(input_t*)’:
/[...]/rtlsdr-airband-git/src/rtlsdr-airband/src/input-mirisdr.cpp:99:38: error: ‘MIRISDR_HW_DEFAULT’ was not declared in this scope
99 | mirisdr_open(&dev_data->dev, MIRISDR_HW_DEFAULT, dev_data->index);
| ^~~~~~~~~~~~~~~~~~
/[...]/rtlsdr-airband-git/src/rtlsdr-airband/src/input-mirisdr.cpp:106:17: error: ‘mirisdr_set_transfer’ was not declared in this scope
106 | int r = mirisdr_set_transfer(miri, (char *)"BULK");
| ^~~~~~~~~~~~~~~~~~~~
/[...]/rtlsdr-airband-git/src/rtlsdr-airband/src/input-mirisdr.cpp:135:13: error: ‘mirisdr_set_sample_format’ was not declared in this scope; did you mean ‘mirisdr_set_sample_rate’?
135 | r = mirisdr_set_sample_format(miri, (char *)"504_S8");
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| mirisdr_set_sample_rate
make[2]: *** [src/CMakeFiles/rtl_airband_base.dir/build.make:237: src/CMakeFiles/rtl_airband_base.dir/input-mirisdr.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:126: src/CMakeFiles/rtl_airband_base.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
I have installed libmirisdr-git
, version 59ba372-1
.
Pinned Comments
EndlessEden commented on 2022-09-13 06:11 (UTC)
I'm still really busy with offline stuff, accepting co-maintainers
EndlessEden commented on 2021-08-27 15:51 (UTC)
Update: overhauled PKGBUILD, added removed conf from upstream to speed up first installs. added missing configs, from config directory.
Fixed: Fixed versioning to be more sensible.
if i have missed something or you have some suggestions, please leave a comment and i will review it when i have time.