Skip to content

How to build and compile synfig on windows 11 using msys2 #3026

Closed

Description

@17Swagat

Describe the bug
I followed the instructions given on the official docs on the windows section (https://synfig-docs-dev.readthedocs.io/en/latest/building/Preparing%20Environment.html)

on trying to run the command ./1-setup-windows-msys2.sh
I got the following warnings/errors.
I tried a lot of ways to solve it, but failed.

`17swa@SwagatAsusLap MINGW64 /synfig.git
$ ./1-setup-windows-msys2.sh
Selected ARCH: mingw-w64-x86_64
Installing development tools
warning: autoconf-wrapper-20221207-1 is up to date -- skipping
warning: automake-wrapper-20221207-1 is up to date -- skipping
warning: intltool-0.51.0-3 is up to date -- skipping
warning: libtool-2.4.7-3 is up to date -- skipping
warning: make-4.4.1-1 is up to date -- skipping
warning: patch-2.7.6-2 is up to date -- skipping
warning: tar-1.34-3 is up to date -- skipping
warning: mingw-w64-x86_64-ccache-4.8-1 is up to date -- skipping
warning: mingw-w64-x86_64-cmake-3.26.0-1 is up to date -- skipping
warning: mingw-w64-x86_64-dlfcn-1.3.1-2 is up to date -- skipping
warning: mingw-w64-x86_64-ffmpeg-6.0-3 is up to date -- skipping
warning: mingw-w64-x86_64-fftw-3.3.10-5 is up to date -- skipping
warning: mingw-w64-x86_64-gcc-12.2.0-10 is up to date -- skipping
warning: mingw-w64-x86_64-glibmm-2.66.6-1 is up to date -- skipping
warning: mingw-w64-x86_64-gtkmm3-3.24.7-1 is up to date -- skipping
warning: mingw-w64-x86_64-harfbuzz-7.1.0-1 is up to date -- skipping
warning: mingw-w64-x86_64-imagemagick-7.1.1.3-2 is up to date -- skipping
warning: mingw-w64-x86_64-libltdl-2.4.7-1 is up to date -- skipping
warning: mingw-w64-x86_64-libmng-2.0.3-6 is up to date -- skipping
warning: mingw-w64-x86_64-libxml++2.6-2.42.0-4 is up to date -- skipping
warning: mingw-w64-x86_64-make-4.4-2 is up to date -- skipping
warning: mingw-w64-x86_64-ninja-1.11.1-3 is up to date -- skipping
warning: mingw-w64-x86_64-openexr-3.1.6-1 is up to date -- skipping
warning: mingw-w64-x86_64-pkgconf-1
1.8.0-2 is up to date -- skipping
warning: mingw-w64-x86_64-SDL2-2.26.4-1 is up to date -- skipping
there is nothing to do
======================= Compiling MLT++ =======================
/tmp ~/synfig.git
--2023-03-20 18:49:04-- https://github.com/mltframework/mlt/releases/download/v7.2.0/mlt-7.2.0.tar.gz
Loaded CA certificate '/usr/ssl/certs/ca-bundle.crt'
Resolving github.com (github.com)... 20.207.73.82
Connecting to github.com (github.com)|20.207.73.82|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/4019052/bf406d92-55b3-4786-b0c7-cd9fa13df2d0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230320%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230320T131907Z&X-Amz-Expires=300&X-Amz-Signature=d5e179b9f2445bc22ac3f50582562c577c65c2a880d1a7241afaa9948b5f57eb&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=4019052&response-content-disposition=attachment%3B%20filename%3Dmlt-7.2.0.tar.gz&response-content-type=application%2Foctet-stream [following]
--2023-03-20 18:49:07-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/4019052/bf406d92-55b3-4786-b0c7-cd9fa13df2d0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230320%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230320T131907Z&X-Amz-Expires=300&X-Amz-Signature=d5e179b9f2445bc22ac3f50582562c577c65c2a880d1a7241afaa9948b5f57eb&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=4019052&response-content-disposition=attachment%3B%20filename%3Dmlt-7.2.0.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1203489 (1.1M) [application/octet-stream]
Saving to: ‘mlt-7.2.0.tar.gz.4’

mlt-7.2.0.tar.gz.4 100%[====================================================================================================================>] 1.15M 205KB/s in 15s

2023-03-20 18:49:23 (79.0 KB/s) - ‘mlt-7.2.0.tar.gz.4’ saved [1203489/1203489]

/tmp/mlt-7.2.0 /tmp ~/synfig.git
Install path: /opt/mlt-7.2.0
Fixed MLT Path: C:/msys64/opt/mlt-7.2.0
/tmp/mlt-7.2.0/build /tmp/mlt-7.2.0 /tmp ~/synfig.git
-- Could NOT find JACK (missing: JACK_LIBRARY JACK_INCLUDE_DIR)
-- Checking for module 'movit'
-- Package 'movit', required by 'virtual:world', not found
-- Checking for module 'libebur128'
-- Package 'libebur128', required by 'virtual:world', not found
-- Checking for module 'samplerate'
-- Package 'samplerate', required by 'virtual:world', not found
-- Checking for module 'rtaudio'
-- Package 'rtaudio', required by 'virtual:world', not found
-- Checking for module 'rubberband'
-- Package 'rubberband', required by 'virtual:world', not found
-- Checking for module 'sdl'
-- Package 'sdl', required by 'virtual:world', not found
-- Checking for module 'sox'
-- Package 'sox', required by 'virtual:world', not found
-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)
-- The following features have been enabled:

  • GPLv2
  • GPLv3
  • Module: avformat
  • Module: DeckLink
  • Module: Frei0r
  • Module: JACKRack
  • Module: Normalize
  • Module: Oldfilm
  • Module: Plus
  • Module: PlusGPL
  • Module: RtAudio
  • Module: SDL2
  • Module: vid.stab
  • Module: Vorbis
  • Module: XINE
  • Module: XML

-- The following OPTIONAL packages have been found:

  • OpenGL

-- The following REQUIRED packages have been found:

  • Threads
  • Iconv
  • dlfcn-win32
  • PkgConfig

-- The following features have been disabled:

  • Tests
  • Doxygen
  • Module: GDK
  • Module: Kdenlive
  • Module: NDI
  • Module: OpenCV
  • Module: Movit
  • Module: Qt
  • Module: Resample
  • Module: Rubberband
  • Module: SDL1
  • Module: SoX
  • SWIG: C#
  • SWIG: Java
  • SWIG: Lua
  • SWIG: Node.js
  • SWIG: Perl
  • SWIG: PHP
  • SWIG: Python
  • SWIG: Ruby
  • SWIG: Tcl

-- The following OPTIONAL packages have not been found:

  • JACK
  • SWIG

-- Configuring done (0.6s)
-- Generating done (0.1s)
-- Build files have been written to: C:/msys64/tmp/mlt-7.2.0/build
[13/24] Building C object src/modules/avformat/CMakeFiles/mltavformat.dir/consumer_avformat.c.obj
FAILED: src/modules/avformat/CMakeFiles/mltavformat.dir/consumer_avformat.c.obj
C:\msys64\mingw64\bin\gcc.exe -DAVDATADIR="share/ffmpeg/" -DAVDEVICE -DAVFILTER -DCODECS -DFILTERS -DSWRESAMPLE -DUSE_MMX -Dmltavformat_EXPORTS -IC:/msys64/tmp/mlt-7.2.0/src/framework/.. -std=gnu11 -mmmx -msse -msse2 -MD -MT src/modules/avformat/CMakeFiles/mltavformat.dir/consumer_avformat.c.obj -MF src\modules\avformat\CMakeFiles\mltavformat.dir\consumer_avformat.c.obj.d -o src/modules/avformat/CMakeFiles/mltavformat.dir/consumer_avformat.c.obj -c C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c: In function 'add_audio_stream':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:706:17: warning: 'channel_layout' is deprecated [-Wdeprecated-declarations]
706 | c->channel_layout = channel_layout;
| ^
In file included from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:41:
C:/msys64/mingw64/include/libavcodec/avcodec.h:1100:14: note: declared here
1100 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:751:17: warning: 'channels' is deprecated [-Wdeprecated-declarations]
751 | c->channels = channels;
| ^
C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
1042 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c: In function 'open_audio':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:773:44: error: 'AVCodec' has no member named 'priv_data_size'
773 | if ( !c->priv_data && codec->priv_data_size )
| ^~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:775:57: error: 'AVCodec' has no member named 'priv_data_size'
775 | c->priv_data = av_mallocz( codec->priv_data_size );
| ^~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c: In function 'add_video_stream':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:863:50: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
863 | AVCodec *codec = avcodec_find_encoder( c->codec_id );
| ^~~~~~~~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c: In function 'open_video':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1116:52: error: 'AVCodec' has no member named 'priv_data_size'
1116 | if ( !video_enc->priv_data && codec->priv_data_size )
| ^~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1118:65: error: 'AVCodec' has no member named 'priv_data_size'
1118 | video_enc->priv_data = av_mallocz( codec->priv_data_size );
| ^~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c: In function 'encode_audio':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1270:17: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
1270 | av_init_packet( &pkt );
| ^~~~~~~~~~~~~~
In file included from C:/msys64/mingw64/include/libavformat/avformat.h:316,
from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:40:
C:/msys64/mingw64/include/libavcodec/packet.h:512:6: note: declared here
512 | void av_init_packet(AVPacket *pkt);
| ^~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1289:25: warning: 'channels' is deprecated [-Wdeprecated-declarations]
1289 | avcodec_fill_audio_frame( ctx->audio_avframe, codec->channels, codec->sample_fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~
C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
1042 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1369:25: warning: 'channels' is deprecated [-Wdeprecated-declarations]
1369 | avcodec_fill_audio_frame( ctx->audio_avframe, codec->channels, codec->sample_fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~
C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
1042 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c: In function 'consumer_thread':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1513:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
1513 | fmt = av_guess_format( format, NULL, NULL );
| ^
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1517:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
1517 | fmt = av_guess_format( NULL, filename, NULL );
| ^
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1521:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
1521 | fmt = av_guess_format( "mpeg", NULL, NULL );
| ^
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1647:33: warning: 'av_get_default_channel_layout' is deprecated [-Wdeprecated-declarations]
1647 | enc_ctx->audio_st[i] = add_audio_stream( consumer, enc_ctx->oc, audio_codec, &enc_ctx->acodec_ctx[i], j, av_get_default_channel_layout( j ) );
| ^~~~~~~
In file included from C:/msys64/mingw64/include/libavutil/frame.h:33,
from C:/msys64/mingw64/include/libswscale/swscale.h:33,
from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/common.h:24,
from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:20:
C:/msys64/mingw64/include/libavutil/channel_layout.h:482:9: note: declared here
482 | int64_t av_get_default_channel_layout(int nb_channels);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1777:25: warning: 'channel_layout' is deprecated [-Wdeprecated-declarations]
1777 | enc_ctx->audio_avframe->channel_layout = c->channel_layout;
| ^~~~~~~
C:/msys64/mingw64/include/libavutil/frame.h:524:14: note: declared here
524 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1777:25: warning: 'channel_layout' is deprecated [-Wdeprecated-declarations]
1777 | enc_ctx->audio_avframe->channel_layout = c->channel_layout;
| ^~~~~~~
C:/msys64/mingw64/include/libavcodec/avcodec.h:1100:14: note: declared here
1100 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1778:25: warning: 'channels' is deprecated [-Wdeprecated-declarations]
1778 | enc_ctx->audio_avframe->channels = c->channels;
| ^~~~~~~
C:/msys64/mingw64/include/libavutil/frame.h:662:9: note: declared here
662 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1778:25: warning: 'channels' is deprecated [-Wdeprecated-declarations]
1778 | enc_ctx->audio_avframe->channels = c->channels;
| ^~~~~~~
C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
1042 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:2024:49: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
2024 | av_init_packet( &pkt );
| ^~~~~~~~~~~~~~
C:/msys64/mingw64/include/libavcodec/packet.h:512:6: note: declared here
512 | void av_init_packet(AVPacket *pkt);
| ^~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:2156:25: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
2156 | av_init_packet( &pkt );
| ^~~~~~~~~~~~~~
C:/msys64/mingw64/include/libavcodec/packet.h:512:6: note: declared here
512 | void av_init_packet(AVPacket *pkt);
| ^~~~~~~~~~~~~~
[14/24] Building C object src/modules/avformat/CMakeFiles/mltavformat.dir/producer_avformat.c.obj
FAILED: src/modules/avformat/CMakeFiles/mltavformat.dir/producer_avformat.c.obj
C:\msys64\mingw64\bin\gcc.exe -DAVDATADIR="share/ffmpeg/" -DAVDEVICE -DAVFILTER -DCODECS -DFILTERS -DSWRESAMPLE -DUSE_MMX -Dmltavformat_EXPORTS -IC:/msys64/tmp/mlt-7.2.0/src/framework/.. -std=gnu11 -mmmx -msse -msse2 -MD -MT src/modules/avformat/CMakeFiles/mltavformat.dir/producer_avformat.c.obj -MF src\modules\avformat\CMakeFiles\mltavformat.dir\producer_avformat.c.obj.d -o src/modules/avformat/CMakeFiles/mltavformat.dir/producer_avformat.c.obj -c C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'list_components':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:254:35: error: 'AVCodec' has no member named 'decode'
254 | if ( codec->decode && codec->type == AVMEDIA_TYPE_AUDIO )
| ^~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:266:35: error: 'AVCodec' has no member named 'decode'
266 | if ( codec->decode && codec->type == AVMEDIA_TYPE_VIDEO )
| ^~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'find_default_streams':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:453:33: warning: 'channels' is deprecated [-Wdeprecated-declarations]
453 | if ( !codec_params->channels )
| ^~
In file included from C:/msys64/mingw64/include/libavformat/avformat.h:314,
from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:42:
C:/msys64/mingw64/include/libavcodec/codec_par.h:173:14: note: declared here
173 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:465:33: warning: 'channels' is deprecated [-Wdeprecated-declarations]
465 | mlt_properties_set_int( meta_media, key, codec_params->channels );
| ^~~~~~~~~~~~~~~~~~~~~~
C:/msys64/mingw64/include/libavcodec/codec_par.h:173:14: note: declared here
173 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'producer_open':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:813:51: warning: passing argument 3 of 'parse_url' from incompatible pointer type [-Wincompatible-pointer-types]
813 | char *filename = parse_url( profile, URL, &format, &params );
| ^~~~~~~
| |
| AVInputFormat **
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:528:85: note: expected 'const AVInputFormat **' but argument is of type 'AVInputFormat '
528 | static char
parse_url( mlt_profile profile, const char
URL, const AVInputFormat **format, AVDictionary **params )
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'find_first_pts':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:1075:9: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
1075 | av_init_packet( &pkt );
| ^~~~~~~~~~~~~~
In file included from C:/msys64/mingw64/include/libavformat/avformat.h:316:
C:/msys64/mingw64/include/libavcodec/packet.h:512:6: note: declared here
512 | void av_init_packet(AVPacket *pkt);
| ^~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'get_audio_streams_info':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:1224:33: warning: 'channels' is deprecated [-Wdeprecated-declarations]
1224 | self->total_channels += codec_params->channels;
| ^~~~
C:/msys64/mingw64/include/libavcodec/codec_par.h:173:14: note: declared here
173 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:1225:33: warning: 'channels' is deprecated [-Wdeprecated-declarations]
1225 | if ( codec_params->channels > self->max_channel )
| ^~
C:/msys64/mingw64/include/libavcodec/codec_par.h:173:14: note: declared here
173 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:1226:41: warning: 'channels' is deprecated [-Wdeprecated-declarations]
1226 | self->max_channel = codec_params->channels;
| ^~~~
C:/msys64/mingw64/include/libavcodec/codec_par.h:173:14: note: declared here
173 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'producer_get_image':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:1764:33: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
1764 | av_init_packet( &self->pkt );
| ^~~~~~~~~~~~~~
C:/msys64/mingw64/include/libavcodec/packet.h:512:6: note: declared here
512 | void av_init_packet(AVPacket *pkt);
| ^~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:1846:41: warning: 'reordered_opaque' is deprecated [-Wdeprecated-declarations]
1846 | self->video_codec->reordered_opaque = int_position;
| ^~~~
In file included from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:43:
C:/msys64/mingw64/include/libavcodec/avcodec.h:1397:13: note: declared here
1397 | int64_t reordered_opaque;
| ^~~~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:1898:41: warning: 'reordered_opaque' is deprecated [-Wdeprecated-declarations]
1898 | int_position = self->video_frame->reordered_opaque;
| ^~~~~~~~~~~~
In file included from C:/msys64/mingw64/include/libswscale/swscale.h:33,
from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/common.h:24,
from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:29:
C:/msys64/mingw64/include/libavutil/frame.h:510:13: note: declared here
510 | int64_t reordered_opaque;
| ^~~~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'decode_audio':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2510:9: warning: 'channels' is deprecated [-Wdeprecated-declarations]
2510 | int channels = codec_context->channels;
| ^~~
C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
1042 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2534:25: warning: 'channels' is deprecated [-Wdeprecated-declarations]
2534 | channels = codec_context->channels;
| ^~~~~~~~
C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
1042 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'producer_get_audio':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2677:33: warning: 'request_channel_layout' is deprecated [-Wdeprecated-declarations]
2677 | codec_context->request_channel_layout = av_get_default_channel_layout( *channels );
| ^~~~~~~~~~~~~
C:/msys64/mingw64/include/libavcodec/avcodec.h:1109:14: note: declared here
1109 | uint64_t request_channel_layout;
| ^~~~~~~~~~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2677:33: warning: 'av_get_default_channel_layout' is deprecated [-Wdeprecated-declarations]
2677 | codec_context->request_channel_layout = av_get_default_channel_layout( *channels );
| ^~~~~~~~~~~~~
In file included from C:/msys64/mingw64/include/libavutil/frame.h:33:
C:/msys64/mingw64/include/libavutil/channel_layout.h:482:9: note: declared here
482 | int64_t av_get_default_channel_layout(int nb_channels);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2697:17: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
2697 | av_init_packet( &pkt );
| ^~~~~~~~~~~~~~
C:/msys64/mingw64/include/libavcodec/packet.h:512:6: note: declared here
512 | void av_init_packet(AVPacket *pkt);
| ^~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2780:25: warning: 'channels' is deprecated [-Wdeprecated-declarations]
2780 | *channels = self->audio_codec[ index ]->channels;
| ^
C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
1042 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2784:25: warning: 'channel_layout' is deprecated [-Wdeprecated-declarations]
2784 | if( self->audio_codec[ index ]->channel_layout == 0 )
| ^~
C:/msys64/mingw64/include/libavcodec/avcodec.h:1100:14: note: declared here
1100 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2785:33: warning: 'av_get_default_channel_layout' is deprecated [-Wdeprecated-declarations]
2785 | layout = av_channel_layout_to_mlt( av_get_default_channel_layout( self->audio_codec[ index ]->channels ) );
| ^~~~~~
C:/msys64/mingw64/include/libavutil/channel_layout.h:482:9: note: declared here
482 | int64_t av_get_default_channel_layout(int nb_channels);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2785:33: warning: 'channels' is deprecated [-Wdeprecated-declarations]
2785 | layout = av_channel_layout_to_mlt( av_get_default_channel_layout( self->audio_codec[ index ]->channels ) );
| ^~~~~~
C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
1042 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2787:33: warning: 'channel_layout' is deprecated [-Wdeprecated-declarations]
2787 | layout = av_channel_layout_to_mlt( self->audio_codec[ index ]->channel_layout );
| ^~~~~~
C:/msys64/mingw64/include/libavcodec/avcodec.h:1100:14: note: declared here
1100 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2818:41: warning: 'channels' is deprecated [-Wdeprecated-declarations]
2818 | int current_channels = self->audio_codec[ index ]->channels;
| ^~~
C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
1042 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2827:33: warning: 'channels' is deprecated [-Wdeprecated-declarations]
2827 | int current_channels = self->audio_codec[ index ]->channels;
| ^~~
C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
1042 | int channels;
| ^~~~~~~~
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'producer_set_up_audio':
C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:3022:17: warning: 'channels' is deprecated [-Wdeprecated-declarations]
3022 | mlt_properties_set_int( frame_properties, "audio_channels", self->audio_codec[ index ]->channels );
| ^~~~~~~~~~~~~~~~~~~~~~
C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
1042 | int channels;
| ^~~~~~~~
[20/24] Building C object src/modules/xml/CMakeFiles/mltxml.dir/producer_xml.c.obj
C:/msys64/tmp/mlt-7.2.0/src/modules/xml/producer_xml.c: In function 'serialise_branch':
C:/msys64/tmp/mlt-7.2.0/src/modules/xml/producer_xml.c:126:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
126 | (unsigned long) mlt_deque_peek( context->stack_branch, i ) );
| ^
[21/24] Building CXX object src/modules/vid.stab/CMakeFiles/mltvidstab.dir/filter_vidstab.cpp.obj
ninja: build stopped: subcommand failed.`

can anyone please help me figure out these issues??

System information:

  • OS: windows 11
  • OS version: 11
  • Synfig version: 1.5.1

Activity

  1. ice0 commented on Mar 21, 2023

    @ice0
    Collaborator

    Hi!

    1. Do you use x64 or ARM Windows version?

    That's strange, but it fails when trying to build MLT from sources.
    I cannot check this issue right now, but you can skip this step and install MLT from the packages.

    pacman -S mingw-w64-x86_64-mlt
    

    (x86_64 in case if you are on x86_64 arch, for ARM here should be another package name)

    After that use CMake to build Synfig.
    P.S. If you need Debug build, then you should use lld linker, because gcc linker can't link Synfig (too much symbols for it).

    cmake ../synfig/ -GNinja -DCMAKE_C_FLAGS="-fuse-ld=lld" -DCMAKE_CXX_FLAGS="-fuse-ld=lld"
    
  2. veermetri05 commented on May 29, 2023

    @veermetri05
    Contributor

    I also get similar issue.

    Complete log

    Pastebin

    $ ./1-setup-windows-msys2.sh
    Selected ARCH: mingw-w64-x86_64
    Installing development tools
    warning: autoconf-wrapper-20221207-1 is up to date -- skipping
    warning: automake-wrapper-20221207-1 is up to date -- skipping
    warning: intltool-0.51.0-3 is up to date -- skipping
    warning: libtool-2.4.7-3 is up to date -- skipping
    warning: make-4.4.1-1 is up to date -- skipping
    warning: patch-2.7.6-2 is up to date -- skipping
    warning: tar-1.34-3 is up to date -- skipping
    warning: mingw-w64-x86_64-ccache-4.8-1 is up to date -- skipping
    warning: mingw-w64-x86_64-cmake-3.26.4-1 is up to date -- skipping
    warning: mingw-w64-x86_64-dlfcn-1.4.0-1 is up to date -- skipping
    warning: mingw-w64-x86_64-ffmpeg-6.0-3 is up to date -- skipping
    warning: mingw-w64-x86_64-fftw-3.3.10-5 is up to date -- skipping
    warning: mingw-w64-x86_64-gcc-13.1.0-6 is up to date -- skipping
    warning: mingw-w64-x86_64-glibmm-2.66.6-1 is up to date -- skipping
    warning: mingw-w64-x86_64-gtkmm3-3.24.7-1 is up to date -- skipping
    warning: mingw-w64-x86_64-harfbuzz-7.3.0-1 is up to date -- skipping
    warning: mingw-w64-x86_64-imagemagick-7.1.1.9-1 is up to date -- skipping
    warning: mingw-w64-x86_64-libltdl-2.4.7-1 is up to date -- skipping
    warning: mingw-w64-x86_64-libmng-2.0.3-6 is up to date -- skipping
    warning: mingw-w64-x86_64-libxml++2.6-2.42.0-4 is up to date -- skipping
    warning: mingw-w64-x86_64-make-4.4-2 is up to date -- skipping
    warning: mingw-w64-x86_64-ninja-1.11.1-3 is up to date -- skipping
    warning: mingw-w64-x86_64-openexr-3.1.7-1 is up to date -- skipping
    warning: mingw-w64-x86_64-pkgconf-1~1.8.0-2 is up to date -- skipping
    warning: mingw-w64-x86_64-SDL2-2.26.5-1 is up to date -- skipping
    there is nothing to do
    ======================= Compiling MLT++ =======================
    /tmp ~/synfigv
    --2023-05-29 16:45:25-- https://github.com/mltframework/mlt/releases/download/v7.2.0/mlt-7.2.0.tar.gz
    Loaded CA certificate '/usr/ssl/certs/ca-bundle.crt'
    Resolving github.com (github.com)... 20.207.73.82
    Connecting to github.com (github.com)|20.207.73.82|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/4019052/bf406d92-55b3-4786-b0c7-cd9fa13df2d0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230529%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230529T111528Z&X-Amz-Expires=300&X-Amz-Signature=e72a14ea9c403064cf9366eb142c88b76d40fa074210de6c0d31539ed6742ebe&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=4019052&response-content-disposition=attachment%3B%20filename%3Dmlt-7.2.0.tar.gz&response-content-type=application%2Foctet-stream [following]
    --2023-05-29 16:45:26-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/4019052/bf406d92-55b3-4786-b0c7-cd9fa13df2d0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230529%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230529T111528Z&X-Amz-Expires=300&X-Amz-Signature=e72a14ea9c403064cf9366eb142c88b76d40fa074210de6c0d31539ed6742ebe&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=4019052&response-content-disposition=attachment%3B%20filename%3Dmlt-7.2.0.tar.gz&response-content-type=application%2Foctet-stream
    Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
    Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1203489 (1.1M) [application/octet-stream]
    Saving to: ‘mlt-7.2.0.tar.gz.2’

    mlt-7.2.0.tar.gz.2 100%[==================================>] 1.15M 554KB/s in 2.1s

    2023-05-29 16:45:29 (554 KB/s) - ‘mlt-7.2.0.tar.gz.2’ saved [1203489/1203489]

    /tmp/mlt-7.2.0 /tmp ~/synfigv
    Install path: /opt/mlt-7.2.0
    Fixed MLT Path: C:/msys64/opt/mlt-7.2.0
    /tmp/mlt-7.2.0/build /tmp/mlt-7.2.0 /tmp ~/synfigv
    -- Could NOT find JACK (missing: JACK_LIBRARY JACK_INCLUDE_DIR)
    -- Checking for module 'movit'
    -- Package 'movit', required by 'virtual:world', not found
    -- Checking for module 'libebur128'
    -- Package 'libebur128', required by 'virtual:world', not found
    -- Checking for module 'samplerate'
    -- Package 'samplerate', required by 'virtual:world', not found
    -- Checking for module 'rtaudio'
    -- Package 'rtaudio', required by 'virtual:world', not found
    -- Checking for module 'rubberband'
    -- Package 'rubberband', required by 'virtual:world', not found
    -- Checking for module 'sdl'
    -- Package 'sdl', required by 'virtual:world', not found
    -- Checking for module 'sox'
    -- Package 'sox', required by 'virtual:world', not found
    -- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)
    -- The following features have been enabled:

    • GPLv2
    • GPLv3
    • Module: avformat
    • Module: DeckLink
    • Module: Frei0r
    • Module: JACKRack
    • Module: Normalize
    • Module: Oldfilm
    • Module: Plus
    • Module: PlusGPL
    • Module: RtAudio
    • Module: SDL2
    • Module: vid.stab
    • Module: Vorbis
    • Module: XINE
    • Module: XML

    -- The following OPTIONAL packages have been found:

    • OpenGL

    -- The following REQUIRED packages have been found:

    • Threads
    • Iconv
    • dlfcn-win32
    • PkgConfig

    -- The following features have been disabled:

    • Tests
    • Doxygen
    • Module: GDK
    • Module: Kdenlive
    • Module: NDI
    • Module: OpenCV
    • Module: Movit
    • Module: Qt
    • Module: Resample
    • Module: Rubberband
    • Module: SDL1
    • Module: SoX
    • SWIG: C#
    • SWIG: Java
    • SWIG: Lua
    • SWIG: Node.js
    • SWIG: Perl
    • SWIG: PHP
    • SWIG: Python
    • SWIG: Ruby
    • SWIG: Tcl

    -- The following OPTIONAL packages have not been found:

    • JACK
    • SWIG

    -- Configuring done (0.6s)
    -- Generating done (0.1s)
    -- Build files have been written to: C:/msys64/tmp/mlt-7.2.0/build
    [12/70] Building C object src/modules/avformat/CMakeFiles/mltavformat.dir/consumer_avformat.c.obj
    FAILED: src/modules/avformat/CMakeFiles/mltavformat.dir/consumer_avformat.c.obj
    C:\msys64\mingw64\bin\cc.exe -DAVDATADIR="share/ffmpeg/" -DAVDEVICE -DAVFILTER -DCODECS -DFILTERS -DSWRESAMPLE -DUSE_MMX -Dmltavformat_EXPORTS -IC:/msys64/tmp/mlt-7.2.0/src/framework/.. -std=gnu11 -mmmx -msse -msse2 -MD -MT src/modules/avformat/CMakeFiles/mltavformat.dir/consumer_avformat.c.obj -MF src\modules\avformat\CMakeFiles\mltavformat.dir\consumer_avformat.c.obj.d -o src/modules/avformat/CMakeFiles/mltavformat.dir/consumer_avformat.c.obj -c C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c: In function 'add_audio_stream':
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:706:17: warning: 'channel_layout' is deprecated [-Wdeprecated-declarations]
    706 | c->channel_layout = channel_layout;
    | ^
    In file included from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:41:
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1100:14: note: declared here
    1100 | uint64_t channel_layout;
    | ^~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:751:17: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    751 | c->channels = channels;
    | ^
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
    1042 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c: In function 'open_audio':
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:773:44: error: 'AVCodec' has no member named 'priv_data_size'
    773 | if ( !c->priv_data && codec->priv_data_size )
    | ^~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:775:57: error: 'AVCodec' has no member named 'priv_data_size'
    775 | c->priv_data = av_mallocz( codec->priv_data_size );
    | ^~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c: In function 'add_video_stream':
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:863:50: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    863 | AVCodec *codec = avcodec_find_encoder( c->codec_id );
    | ^~~~~~~~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c: In function 'open_video':
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1116:52: error: 'AVCodec' has no member named 'priv_data_size'
    1116 | if ( !video_enc->priv_data && codec->priv_data_size )
    | ^~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1118:65: error: 'AVCodec' has no member named 'priv_data_size'
    1118 | video_enc->priv_data = av_mallocz( codec->priv_data_size );
    | ^~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c: In function 'encode_audio':
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1270:17: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
    1270 | av_init_packet( &pkt );
    | ^~~~~~~~~~~~~~
    In file included from C:/msys64/mingw64/include/libavformat/avformat.h:316,
    from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:40:
    C:/msys64/mingw64/include/libavcodec/packet.h:512:6: note: declared here
    512 | void av_init_packet(AVPacket *pkt);
    | ^~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1289:25: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    1289 | avcodec_fill_audio_frame( ctx->audio_avframe, codec->channels, codec->sample_fmt,
    | ^~~~~~~~~~~~~~~~~~~~~~~~
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
    1042 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1369:25: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    1369 | avcodec_fill_audio_frame( ctx->audio_avframe, codec->channels, codec->sample_fmt,
    | ^~~~~~~~~~~~~~~~~~~~~~~~
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
    1042 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c: In function 'consumer_thread':
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1513:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1513 | fmt = av_guess_format( format, NULL, NULL );
    | ^
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1517:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1517 | fmt = av_guess_format( NULL, filename, NULL );
    | ^
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1521:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1521 | fmt = av_guess_format( "mpeg", NULL, NULL );
    | ^
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1647:33: warning: 'av_get_default_channel_layout' is deprecated [-Wdeprecated-declarations]
    1647 | enc_ctx->audio_st[i] = add_audio_stream( consumer, enc_ctx->oc, audio_codec, &enc_ctx->acodec_ctx[i], j, av_get_default_channel_layout( j ) );
    | ^~~~~~~
    In file included from C:/msys64/mingw64/include/libavutil/frame.h:33,
    from C:/msys64/mingw64/include/libswscale/swscale.h:33,
    from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/common.h:24,
    from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:20:
    C:/msys64/mingw64/include/libavutil/channel_layout.h:482:9: note: declared here
    482 | int64_t av_get_default_channel_layout(int nb_channels);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1777:25: warning: 'channel_layout' is deprecated [-Wdeprecated-declarations]
    1777 | enc_ctx->audio_avframe->channel_layout = c->channel_layout;
    | ^~~~~~~
    C:/msys64/mingw64/include/libavutil/frame.h:524:14: note: declared here
    524 | uint64_t channel_layout;
    | ^~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1777:25: warning: 'channel_layout' is deprecated [-Wdeprecated-declarations]
    1777 | enc_ctx->audio_avframe->channel_layout = c->channel_layout;
    | ^~~~~~~
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1100:14: note: declared here
    1100 | uint64_t channel_layout;
    | ^~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1778:25: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    1778 | enc_ctx->audio_avframe->channels = c->channels;
    | ^~~~~~~
    C:/msys64/mingw64/include/libavutil/frame.h:662:9: note: declared here
    662 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:1778:25: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    1778 | enc_ctx->audio_avframe->channels = c->channels;
    | ^~~~~~~
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
    1042 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:2024:49: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
    2024 | av_init_packet( &pkt );
    | ^~~~~~~~~~~~~~
    C:/msys64/mingw64/include/libavcodec/packet.h:512:6: note: declared here
    512 | void av_init_packet(AVPacket *pkt);
    | ^~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/consumer_avformat.c:2156:25: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
    2156 | av_init_packet( &pkt );
    | ^~~~~~~~~~~~~~
    C:/msys64/mingw64/include/libavcodec/packet.h:512:6: note: declared here
    512 | void av_init_packet(AVPacket *pkt);
    | ^~~~~~~~~~~~~~
    [14/70] Building C object src/modules/avformat/CMakeFiles/mltavformat.dir/producer_avformat.c.obj
    FAILED: src/modules/avformat/CMakeFiles/mltavformat.dir/producer_avformat.c.obj
    C:\msys64\mingw64\bin\cc.exe -DAVDATADIR="share/ffmpeg/" -DAVDEVICE -DAVFILTER -DCODECS -DFILTERS -DSWRESAMPLE -DUSE_MMX -Dmltavformat_EXPORTS -IC:/msys64/tmp/mlt-7.2.0/src/framework/.. -std=gnu11 -mmmx -msse -msse2 -MD -MT src/modules/avformat/CMakeFiles/mltavformat.dir/producer_avformat.c.obj -MF src\modules\avformat\CMakeFiles\mltavformat.dir\producer_avformat.c.obj.d -o src/modules/avformat/CMakeFiles/mltavformat.dir/producer_avformat.c.obj -c C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'list_components':
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:254:35: error: 'AVCodec' has no member named 'decode'
    254 | if ( codec->decode && codec->type == AVMEDIA_TYPE_AUDIO )
    | ^~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:266:35: error: 'AVCodec' has no member named 'decode'
    266 | if ( codec->decode && codec->type == AVMEDIA_TYPE_VIDEO )
    | ^~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'find_default_streams':
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:453:33: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    453 | if ( !codec_params->channels )
    | ^~
    In file included from C:/msys64/mingw64/include/libavformat/avformat.h:314,
    from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:42:
    C:/msys64/mingw64/include/libavcodec/codec_par.h:173:14: note: declared here
    173 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:465:33: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    465 | mlt_properties_set_int( meta_media, key, codec_params->channels );
    | ^~~~~~~~~~~~~~~~~~~~~~
    C:/msys64/mingw64/include/libavcodec/codec_par.h:173:14: note: declared here
    173 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'producer_open':
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:813:51: warning: passing argument 3 of 'parse_url' from incompatible pointer type [-Wincompatible-pointer-types]
    813 | char *filename = parse_url( profile, URL, &format, &params );
    | ^~~~~~~
    | |
    | AVInputFormat **
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:528:85: note: expected 'const AVInputFormat **' but argument is of type 'AVInputFormat '
    528 | static char
    parse_url( mlt_profile profile, const char
    URL, const AVInputFormat **format, AVDictionary **params )
    | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'find_first_pts':
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:1075:9: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
    1075 | av_init_packet( &pkt );
    | ^~~~~~~~~~~~~~
    In file included from C:/msys64/mingw64/include/libavformat/avformat.h:316:
    C:/msys64/mingw64/include/libavcodec/packet.h:512:6: note: declared here
    512 | void av_init_packet(AVPacket *pkt);
    | ^~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'get_audio_streams_info':
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:1224:33: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    1224 | self->total_channels += codec_params->channels;
    | ^~~~
    C:/msys64/mingw64/include/libavcodec/codec_par.h:173:14: note: declared here
    173 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:1225:33: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    1225 | if ( codec_params->channels > self->max_channel )
    | ^~
    C:/msys64/mingw64/include/libavcodec/codec_par.h:173:14: note: declared here
    173 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:1226:41: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    1226 | self->max_channel = codec_params->channels;
    | ^~~~
    C:/msys64/mingw64/include/libavcodec/codec_par.h:173:14: note: declared here
    173 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'producer_get_image':
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:1764:33: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
    1764 | av_init_packet( &self->pkt );
    | ^~~~~~~~~~~~~~
    C:/msys64/mingw64/include/libavcodec/packet.h:512:6: note: declared here
    512 | void av_init_packet(AVPacket *pkt);
    | ^~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:1846:41: warning: 'reordered_opaque' is deprecated [-Wdeprecated-declarations]
    1846 | self->video_codec->reordered_opaque = int_position;
    | ^~~~
    In file included from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:43:
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1397:13: note: declared here
    1397 | int64_t reordered_opaque;
    | ^~~~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:1898:41: warning: 'reordered_opaque' is deprecated [-Wdeprecated-declarations]
    1898 | int_position = self->video_frame->reordered_opaque;
    | ^~~~~~~~~~~~
    In file included from C:/msys64/mingw64/include/libswscale/swscale.h:33,
    from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/common.h:24,
    from C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:29:
    C:/msys64/mingw64/include/libavutil/frame.h:510:13: note: declared here
    510 | int64_t reordered_opaque;
    | ^~~~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'decode_audio':
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2510:9: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    2510 | int channels = codec_context->channels;
    | ^~~
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
    1042 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2534:25: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    2534 | channels = codec_context->channels;
    | ^~~~~~~~
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
    1042 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'producer_get_audio':
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2677:33: warning: 'request_channel_layout' is deprecated [-Wdeprecated-declarations]
    2677 | codec_context->request_channel_layout = av_get_default_channel_layout( *channels );
    | ^~~~~~~~~~~~~
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1109:14: note: declared here
    1109 | uint64_t request_channel_layout;
    | ^~~~~~~~~~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2677:33: warning: 'av_get_default_channel_layout' is deprecated [-Wdeprecated-declarations]
    2677 | codec_context->request_channel_layout = av_get_default_channel_layout( *channels );
    | ^~~~~~~~~~~~~
    In file included from C:/msys64/mingw64/include/libavutil/frame.h:33:
    C:/msys64/mingw64/include/libavutil/channel_layout.h:482:9: note: declared here
    482 | int64_t av_get_default_channel_layout(int nb_channels);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2697:17: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
    2697 | av_init_packet( &pkt );
    | ^~~~~~~~~~~~~~
    C:/msys64/mingw64/include/libavcodec/packet.h:512:6: note: declared here
    512 | void av_init_packet(AVPacket *pkt);
    | ^~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2780:25: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    2780 | *channels = self->audio_codec[ index ]->channels;
    | ^
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
    1042 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2784:25: warning: 'channel_layout' is deprecated [-Wdeprecated-declarations]
    2784 | if( self->audio_codec[ index ]->channel_layout == 0 )
    | ^~
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1100:14: note: declared here
    1100 | uint64_t channel_layout;
    | ^~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2785:33: warning: 'av_get_default_channel_layout' is deprecated [-Wdeprecated-declarations]
    2785 | layout = av_channel_layout_to_mlt( av_get_default_channel_layout( self->audio_codec[ index ]->channels ) );
    | ^~~~~~
    C:/msys64/mingw64/include/libavutil/channel_layout.h:482:9: note: declared here
    482 | int64_t av_get_default_channel_layout(int nb_channels);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2785:33: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    2785 | layout = av_channel_layout_to_mlt( av_get_default_channel_layout( self->audio_codec[ index ]->channels ) );
    | ^~~~~~
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
    1042 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2787:33: warning: 'channel_layout' is deprecated [-Wdeprecated-declarations]
    2787 | layout = av_channel_layout_to_mlt( self->audio_codec[ index ]->channel_layout );
    | ^~~~~~
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1100:14: note: declared here
    1100 | uint64_t channel_layout;
    | ^~~~~~~~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2818:41: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    2818 | int current_channels = self->audio_codec[ index ]->channels;
    | ^~~
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
    1042 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:2827:33: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    2827 | int current_channels = self->audio_codec[ index ]->channels;
    | ^~~
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
    1042 | int channels;
    | ^~~~~~~~
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c: In function 'producer_set_up_audio':
    C:/msys64/tmp/mlt-7.2.0/src/modules/avformat/producer_avformat.c:3022:17: warning: 'channels' is deprecated [-Wdeprecated-declarations]
    3022 | mlt_properties_set_int( frame_properties, "audio_channels", self->audio_codec[ index ]->channels );
    | ^~~~~~~~~~~~~~~~~~~~~~
    C:/msys64/mingw64/include/libavcodec/avcodec.h:1042:9: note: declared here
    1042 | int channels;
    | ^~~~~~~~
    [25/70] Building C object src/modules/plus/CMakeFiles/mltplus.dir/producer_count.c.obj
    ninja: build stopped: subcommand failed.

    I am using Windows 11
    image

    Yes, my System type is x64

    Processor AMD Ryzen 5 5600H with Radeon Graphics 3.30 GHz
    Installed RAM 8.00 GB (7.34 GB usable)
    System type 64-bit operating system, x64-based processor

    As mentioned, above.
    I installed MLT and used CMake to build. This works fine.

    @ice0 , is this issue needed to be fixed? Or CMake is recommended way to build Synfig for Windows Users?

  3. added 4 commits that reference this issue on Oct 14, 2024
    24b14a5
    54cb42e
    4a3f4f0
    9c1234b
  4. shreyaspranav commented on Oct 24, 2024

    @shreyaspranav
    Contributor

    Dear Maintainers,

    Since the PR that fixes this issue has been merged, please feel free to close the issue at your convenience.

    Best,
    Shreyas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions