-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[compile error] error: ‘int shout_set_format(shout_t*, unsigned int)’ is deprecated #424
Comments
Ok, so it compiled after replacing the deprecated functions in output.cpp like so:
|
also, what version of |
Below you have some outputs: dan@rpi-adsb:~/rtlsdrairband/RTLSDR-Airband-4.1.1/build $ cmake -DPLATFORM=rpiv2 ../ -- - Build type: Release dan@rpi-adsb:~/rtlsdrairband/RTLSDR-Airband-4.1.1/build $ cat /etc/os-release dan@rpi-adsb:~/rtlsdrairband/RTLSDR-Airband-4.1.1/build $ uname -a Kinda in a hurry now, will try unstable later maybe. |
|
Yep, 4.2.0 compiles now. Thank you! |
Rpi3B+/raspiOS lite 32bit
make
options used to build the program: cmake -DPLATFORM=rpiv2 ../Compilation error
dan@rpi-adsb:~/rtlsdrairband/RTLSDR-Airband-4.1.1/build $ make
[ 4%] Generating version.cpp, _version.cpp
[ 8%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/config.cpp.o
[ 13%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/input-common.cpp.o
[ 17%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/input-file.cpp.o
[ 21%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/input-helpers.cpp.o
[ 26%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/mixer.cpp.o
[ 30%] Building CXX object src/CMakeFiles/rtl_airband_base.dir/output.cpp.o
/home/dan/rtlsdrairband/RTLSDR-Airband-4.1.1/src/output.cpp: In function ‘void shout_setup(icecast_data*, mix_modes)’:
/home/dan/rtlsdrairband/RTLSDR-Airband-4.1.1/src/output.cpp:81:29: error: ‘int shout_set_format(shout_t*, unsigned int)’ is deprecated: Use shout_set_content_format() [-Werror=deprecated-declarations]
81 | if (shout_set_format(shouttemp, SHOUT_FORMAT_MP3) != SHOUTERR_SUCCESS){
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/dan/rtlsdrairband/RTLSDR-Airband-4.1.1/src/output.cpp:30:
/usr/include/shout/shout.h:361:5: note: declared here
361 | int shout_set_format(shout_t self, unsigned int format) SHOUT_ATTR_F_DEPRECATED("Use shout_set_content_format()"); // obsolete
| ^~~~~~~~~~~~~~~~
/home/dan/rtlsdrairband/RTLSDR-Airband-4.1.1/src/output.cpp:84:43: error: ‘int shout_set_name(shout_t, const char*)’ is deprecated: use shout_set_meta() with SHOUT_META_NAME [-Werror=deprecated-declarations]
84 | if(icecast->name && shout_set_name(shouttemp, icecast->name) != SHOUTERR_SUCCESS) {
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/shout/shout.h:348:5: note: declared here
348 | int shout_set_name(shout_t self, const char name) SHOUT_ATTR_F_DEPRECATED("use shout_set_meta() with SHOUT_META_NAME"); // obsolete
| ^~~~~~~~~~~~~~
/home/dan/rtlsdrairband/RTLSDR-Airband-4.1.1/src/output.cpp:87:45: error: ‘int shout_set_genre(shout_t, const char)’ is deprecated: use shout_set_meta() with SHOUT_META_GENRE [-Werror=deprecated-declarations]
87 | if(icecast->genre && shout_set_genre(shouttemp, icecast->genre) != SHOUTERR_SUCCESS) {
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/shout/shout.h:354:5: note: declared here
354 | int shout_set_genre(shout_t self, const char genre) SHOUT_ATTR_F_DEPRECATED("use shout_set_meta() with SHOUT_META_GENRE"); // obsolete
| ^~~~~~~~~~~~~~~
/home/dan/rtlsdrairband/RTLSDR-Airband-4.1.1/src/output.cpp:90:57: error: ‘int shout_set_description(shout_t, const char)’ is deprecated: use shout_set_meta() with SHOUT_META_DESCRIPTION [-Werror=deprecated-declarations]
90 | if(icecast->description && shout_set_description(shouttemp, icecast->description) != SHOUTERR_SUCCESS) {
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/shout/shout.h:357:5: note: declared here
357 | int shout_set_description(shout_t self, const char description) SHOUT_ATTR_F_DEPRECATED("use shout_set_meta() with SHOUT_META_DESCRIPTION"); // obsolete
| ^~~~~~~~~~~~~~~~~~~~~
/home/dan/rtlsdrairband/RTLSDR-Airband-4.1.1/src/output.cpp: In function ‘void process_outputs(channel_t, int)’:
/home/dan/rtlsdrairband/RTLSDR-Airband-4.1.1/src/output.cpp:479:55: error: ‘int shout_set_metadata(shout_t, shout_metadata_t*)’ is deprecated: Use shout_set_metadata_utf8() [-Werror=deprecated-declarations]
479 | if (shout_set_metadata(icecast->shout, meta) != SHOUTERR_SUCCESS) {
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/shout/shout.h:367:5: note: declared here
367 | int shout_set_metadata(shout_t *self, shout_metadata_t *metadata) SHOUT_ATTR_F_WARN_UNUSED_RESULT SHOUT_ATTR_F_DEPRECATED("Use shout_set_metadata_utf8()");
| ^~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/rtl_airband_base.dir/build.make:153: src/CMakeFiles/rtl_airband_base.dir/output.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:117: src/CMakeFiles/rtl_airband_base.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Steps to Reproduce
Try compiling per wiki instructions.
Additional context
A RPi setup with readsb/tar1090 running already.
Your rtl_airband.conf file
Didn't get there yet.
What did I do wrong?
Thanks!
The text was updated successfully, but these errors were encountered: