-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hello,
I removed mupdf-third from the meson file and it worked. But on ninja -C build I get this:
FAILED: mmfm.p/src_mmfm_ui.c.o
cc -Immfm.p -I. -I../mmfm-0.0.1 -I../mmfm-0.0.1/src/mt_math -I../mmfm-0.0.1/src/mt_core -I../mmfm-0.0.1/src/media_player -I../mmfm-0.0.1/src/media_coder -I../mmfm-0.0.1/src/kinetic_ui -I../mmfm-0.0.1/src/kinetic_ui/egl -I../mmfm-0.0.1/src/kinetic_ui/handler -I../mmfm-0.0.1/src/kinetic_ui/texture -I../mmfm-0.0.1/src/mmfm -I../mmfm-0.0.1/src/mt_core_ext -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/SDL2 -I/usr/include/openjpeg-2.5 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu99 -O3 '-DPKG_DATADIR="/usr/share/mmfm"' '-DMMFM_VERSION="0.53b"' -Wno-unused-parameter -Wno-unused-but-set-variable -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIE -pthread -D_REENTRANT -MD -MQ mmfm.p/src_mmfm_ui.c.o -MF mmfm.p/src_mmfm_ui.c.o.d -o mmfm.p/src_mmfm_ui.c.o -c ../mmfm-0.0.1/src/mmfm/ui.c
../mmfm-0.0.1/src/mmfm/ui.c: In function ‘ui_init’:
../mmfm-0.0.1/src/mmfm/ui.c:1388:34: error: passing argument 2 of ‘ku_gen_type_apply’ from incompatible pointer type [-Wincompatible-pointer-types]
1388 | ku_gen_type_apply(view_list, ui_on_btn_event, ui_on_slider_event);
| ^~~~~~~~~~~~~~~
| |
| void (*)(vh_button_event_t) {aka void (*)(struct _vh_button_event_t)}
In file included from ../mmfm-0.0.1/src/mmfm/ui.c:46:
../mmfm-0.0.1/src/kinetic_ui/ku_gen_type.c:8:50: note: expected ‘int (*)(vh_button_event_t)’ {aka ‘int (*)(struct _vh_button_event_t)’} but argument is of type ‘void (*)(vh_button_event_t)’ {aka ‘void (*)(struct _vh_button_event_t)’}
8 | void ku_gen_type_apply(mt_vector_t* views, int (*button_event)(vh_button_event_t), void (*slider_event)(vh_slider_event_t));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../mmfm-0.0.1/src/mmfm/ui.c:1395:26: error: passing argument 2 of ‘vh_key_add’ from incompatible pointer type [-Wincompatible-pointer-types]
1395 | vh_key_add(ui.basev, ui_on_key_event);
| ^~~~~~~~~~~~~~~
| |
| void (*)(vh_key_event_t) {aka void (*)(struct _vh_key_event_t)}
In file included from ../mmfm-0.0.1/src/mmfm/ui.c:65:
../mmfm-0.0.1/src/kinetic_ui/handler/vh_key.c:20:40: note: expected ‘int (*)(vh_key_event_t)’ {aka ‘int (*)(struct _vh_key_event_t)’} but argument is of type ‘void (*)(vh_key_event_t)’ {aka ‘void (*)(struct _vh_key_event_t)’}
20 | void vh_key_add(ku_view_t* view, int (*on_event)(vh_key_event_t));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../mmfm-0.0.1/src/mmfm/ui.c:1559:39: error: passing argument 2 of ‘vh_touch_add’ from incompatible pointer type [-Wincompatible-pointer-types]
1559 | vh_touch_add(ui.contextpopupcont, ui_on_touch);
| ^~~~~~~~~~~
| |
| void (*)(vh_touch_event_t) {aka void (*)(struct _vh_touch_event_t)}
In file included from ../mmfm-0.0.1/src/mmfm/ui.c:70:
../mmfm-0.0.1/src/kinetic_ui/handler/vh_touch.c:25:42: note: expected ‘int (*)(vh_touch_event_t)’ {aka ‘int (*)(struct _vh_touch_event_t)’} but argument is of type ‘void (*)(vh_touch_event_t)’ {aka ‘void (*)(struct _vh_touch_event_t)’}
25 | void vh_touch_add(ku_view_t* view, int (*on_event)(vh_touch_event_t));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
../mmfm-0.0.1/src/mmfm/ui.c:1570:27: error: passing argument 2 of ‘vh_key_add’ from incompatible pointer type [-Wincompatible-pointer-types]
1570 | vh_key_add(okaypopup, ui_on_popup_key_event);
| ^~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(vh_key_event_t) {aka void (*)(struct _vh_key_event_t)}
../mmfm-0.0.1/src/kinetic_ui/handler/vh_key.c:20:40: note: expected ‘int (*)(vh_key_event_t)’ {aka ‘int (*)(struct _vh_key_event_t)’} but argument is of type ‘void (*)(vh_key_event_t)’ {aka ‘void (*)(struct _vh_key_event_t)’}
20 | void vh_key_add(ku_view_t* view, int (*on_event)(vh_key_event_t));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../mmfm-0.0.1/src/mmfm/ui.c:1571:29: error: passing argument 2 of ‘vh_touch_add’ from incompatible pointer type [-Wincompatible-pointer-types]
1571 | vh_touch_add(ui.okaycv, ui_on_touch);
| ^~~~~~~~~~~
| |
| void (*)(vh_touch_event_t) {aka void (*)(struct _vh_touch_event_t)}
../mmfm-0.0.1/src/kinetic_ui/handler/vh_touch.c:25:42: note: expected ‘int (*)(vh_touch_event_t)’ {aka ‘int (*)(struct _vh_touch_event_t)’} but argument is of type ‘void (*)(vh_touch_event_t)’ {aka ‘void (*)(struct _vh_touch_event_t)’}
25 | void vh_touch_add(ku_view_t* view, int (*on_event)(vh_touch_event_t));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
../mmfm-0.0.1/src/mmfm/ui.c:1586:28: error: passing argument 2 of ‘vh_key_add’ from incompatible pointer type [-Wincompatible-pointer-types]
1586 | vh_key_add(alertpopup, ui_on_popup_key_event);
| ^~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(vh_key_event_t) {aka void (*)(struct _vh_key_event_t)}
../mmfm-0.0.1/src/kinetic_ui/handler/vh_key.c:20:40: note: expected ‘int (*)(vh_key_event_t)’ {aka ‘int (*)(struct _vh_key_event_t)’} but argument is of type ‘void (*)(vh_key_event_t)’ {aka ‘void (*)(struct _vh_key_event_t)’}
20 | void vh_key_add(ku_view_t* view, int (*on_event)(vh_key_event_t));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../mmfm-0.0.1/src/mmfm/ui.c:1587:30: error: passing argument 2 of ‘vh_touch_add’ from incompatible pointer type [-Wincompatible-pointer-types]
1587 | vh_touch_add(ui.alertcv, ui_on_touch);
| ^~~~~~~~~~~
| |
| void (*)(vh_touch_event_t) {aka void (*)(struct _vh_touch_event_t)}
../mmfm-0.0.1/src/kinetic_ui/handler/vh_touch.c:25:42: note: expected ‘int (*)(vh_touch_event_t)’ {aka ‘int (*)(struct _vh_touch_event_t)’} but argument is of type ‘void (*)(vh_touch_event_t)’ {aka ‘void (*)(struct _vh_touch_event_t)’}
25 | void vh_touch_add(ku_view_t* view, int (*on_event)(vh_touch_event_t));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
../mmfm-0.0.1/src/mmfm/ui.c:1603:30: error: passing argument 2 of ‘vh_touch_add’ from incompatible pointer type [-Wincompatible-pointer-types]
1603 | vh_touch_add(ui.inputcv, ui_on_touch);
| ^~~~~~~~~~~
| |
| void (*)(vh_touch_event_t) {aka void (*)(struct _vh_touch_event_t)}
../mmfm-0.0.1/src/kinetic_ui/handler/vh_touch.c:25:42: note: expected ‘int (*)(vh_touch_event_t)’ {aka ‘int (*)(struct _vh_touch_event_t)’} but argument is of type ‘void (*)(vh_touch_event_t)’ {aka ‘void (*)(struct _vh_touch_event_t)’}
25 | void vh_touch_add(ku_view_t* view, int (*on_event)(vh_touch_event_t));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
[44/104] Compiling C object mmfm.p/src_media_coder_coder.c.o
../mmfm-0.0.1/src/media_coder/coder.c: In function ‘coder_load_image_into’:
../mmfm-0.0.1/src/media_coder/coder.c:239:17: warning: ‘avcodec_close’ is deprecated [-Wdeprecated-declarations]
239 | avcodec_close(codecContext); // CLOSE 1
| ^~~~~~~~~~~~~
In file included from ../mmfm-0.0.1/src/media_coder/coder.c:28:
/usr/include/libavcodec/avcodec.h:2387:5: note: declared here
2387 | int avcodec_close(AVCodecContext *avctx);
| ^~~~~~~~~~~~~
../mmfm-0.0.1/src/media_coder/coder.c: In function ‘coder_load_cover_into’:
../mmfm-0.0.1/src/media_coder/coder.c:319:13: warning: ‘avcodec_close’ is deprecated [-Wdeprecated-declarations]
319 | avcodec_close(codecContext); // CLOSE 1
| ^~~~~~~~~~~~~
/usr/include/libavcodec/avcodec.h:2387:5: note: declared here
2387 | int avcodec_close(AVCodecContext *avctx);
| ^~~~~~~~~~~~~
../mmfm-0.0.1/src/media_coder/coder.c: In function ‘coder_write_png’:
../mmfm-0.0.1/src/media_coder/coder.c:900:17: warning: ‘avcodec_close’ is deprecated [-Wdeprecated-declarations]
900 | avcodec_close(enc_ctx); // CLOSE 0
| ^~~~~~~~~~~~~
/usr/include/libavcodec/avcodec.h:2387:5: note: declared here
2387 | int avcodec_close(AVCodecContext *avctx);
| ^~~~~~~~~~~~~
[48/104] Compiling C object mmfm.p/src_media_player_mediaplayer.c.o
FAILED: mmfm.p/src_media_player_mediaplayer.c.o
cc -Immfm.p -I. -I../mmfm-0.0.1 -I../mmfm-0.0.1/src/mt_math -I../mmfm-0.0.1/src/mt_core -I../mmfm-0.0.1/src/media_player -I../mmfm-0.0.1/src/media_coder -I../mmfm-0.0.1/src/kinetic_ui -I../mmfm-0.0.1/src/kinetic_ui/egl -I../mmfm-0.0.1/src/kinetic_ui/handler -I../mmfm-0.0.1/src/kinetic_ui/texture -I../mmfm-0.0.1/src/mmfm -I../mmfm-0.0.1/src/mt_core_ext -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/SDL2 -I/usr/include/openjpeg-2.5 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu99 -O3 '-DPKG_DATADIR="/usr/share/mmfm"' '-DMMFM_VERSION="0.53b"' -Wno-unused-parameter -Wno-unused-but-set-variable -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIE -pthread -D_REENTRANT -MD -MQ mmfm.p/src_media_player_mediaplayer.c.o -MF mmfm.p/src_media_player_mediaplayer.c.o.d -o mmfm.p/src_media_player_mediaplayer.c.o -c ../mmfm-0.0.1/src/media_player/mediaplayer.c
../mmfm-0.0.1/src/media_player/mediaplayer.c: In function ‘mp_video_decode_thread’:
../mmfm-0.0.1/src/media_player/mediaplayer.c:379:21: warning: ‘pkt_pos’ is deprecated [-Wdeprecated-declarations]
379 | qframe->pos = frame->pkt_pos;
| ^~~~~~
In file included from ../mmfm-0.0.1/src/media_player/framequeue.c:4,
from ../mmfm-0.0.1/src/media_player/decoder.c:4,
from ../mmfm-0.0.1/src/media_player/mediaplayer.c:17:
/usr/include/libavutil/frame.h:654:13: note: declared here
654 | int64_t pkt_pos;
| ^~~~~~~
../mmfm-0.0.1/src/media_player/mediaplayer.c: In function ‘mp_audio_decode_thread’:
../mmfm-0.0.1/src/media_player/mediaplayer.c:775:25: warning: ‘pkt_pos’ is deprecated [-Wdeprecated-declarations]
775 | af->pos = frame->pkt_pos;
| ^~
/usr/include/libavutil/frame.h:654:13: note: declared here
654 | int64_t pkt_pos;
| ^~~~~~~
../mmfm-0.0.1/src/media_player/mediaplayer.c: In function ‘mp_stream_open’:
../mmfm-0.0.1/src/media_player/mediaplayer.c:901:164: error: ‘const struct AVInputFormat’ has no member named ‘read_seek’
901 | if ((ms->format->iformat->flags & (AVFMT_NOBINSEARCH | AVFMT_NOGENSEARCH | AVFMT_NO_BYTE_SEEK)) && !ms->format->iformat->read_seek)
| ^~
../mmfm-0.0.1/src/media_player/mediaplayer.c: In function ‘mp_audio_refresh’:
../mmfm-0.0.1/src/media_player/mediaplayer.c:1771:13: warning: ‘av_rdft_end’ is deprecated [-Wdeprecated-declarations]
1771 | av_rdft_end(ms->rdft);
| ^~~~~~~~~~~
In file included from ../mmfm-0.0.1/src/media_player/mediaplayer.c:22:
/usr/include/libavcodec/avfft.h:112:6: note: declared here
112 | void av_rdft_end(RDFTContext *s);
| ^~~~~~~~~~~
../mmfm-0.0.1/src/media_player/mediaplayer.c:1773:13: warning: ‘av_rdft_init’ is deprecated [-Wdeprecated-declarations]
1773 | ms->rdft = av_rdft_init(rdft_bits, DFT_R2C);
| ^~
/usr/include/libavcodec/avfft.h:108:14: note: declared here
108 | RDFTContext *av_rdft_init(int nbits, enum RDFTransformType trans);
| ^~~~~~~~~~~~
../mmfm-0.0.1/src/media_player/mediaplayer.c:1799:17: warning: ‘av_rdft_calc’ is deprecated [-Wdeprecated-declarations]
1799 | av_rdft_calc(ms->rdft, data[ch]);
| ^~~~~~~~~~~~
/usr/include/libavcodec/avfft.h:110:6: note: declared here
110 | void av_rdft_calc(RDFTContext *s, FFTSample *data);
| ^~~~~~~~~~~~
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
I'm on Arch Linux
Metadata
Metadata
Assignees
Labels
No labels