❯ mkdir build && cd build
meson .. --optimization=3 --default-library=static -Db_lto=true -Dc_args="-march=native" -Dcpp_args="-march=native"
ninja -j$(nproc)
sudo cp libvslsmashsource.so /usr/lib/vapoursynth/
The Meson build system
Version: 0.61.2
Source dir: /home/nanghe/git_ubuntu22.4/av1/L-SMASH-Works/VapourSynth
Build dir: /home/nanghe/git_ubuntu22.4/av1/L-SMASH-Works/VapourSynth/build
Build type: native build
Project name: L-SMASH-Works
Project version: undefined
C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C linker for the host machine: cc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency vapoursynth found: YES 63
Run-time dependency liblsmash found: YES 2.16.1 rev.1477
Run-time dependency libavcodec found: YES 58.134.100
Run-time dependency libavformat found: YES 58.76.100
Run-time dependency libavutil found: YES 56.70.100
Run-time dependency libswscale found: YES 5.9.100
Build targets in project: 2
NOTICE: Future-deprecated features used:
0.56.0: {'Dependency.get_pkgconfig_variable'}
L-SMASH-Works undefined
User defined options
default_library: static
optimization : 3
b_lto : true
c_args : -march=native
cpp_args : -march=native
Found ninja-1.10.1 at /usr/bin/ninja
[6/17] Compiling C object libvslsmashsource.so.p/.._common_decode.c.o
../../common/decode.c: In function ‘find_decoder’:
../../common/decode.c:106:31: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
106
^~
[16/17] Compiling C object libvslsmashsource.so.p/.._common_lwindex.c.o
../../common/lwindex.c: In function ‘create_index’:
../../common/lwindex.c:2628:37: warning: implicit declaration of function ‘avformat_index_get_entries_count’ [-Wimplicit-function-declaration]
2628
^~~~~~~~
../../common/lwindex.c:2722:50: warning: passing argument 2 of ‘write_av_index_entry’ makes pointer from integer without a cast [-Wint-conversion]
2722
../../common/lwindex.c:1913:25: note: expected ‘const AVIndexEntry *’ but argument is of type ‘int’
1913
const AVIndexEntry *ie
~~~~^~
../../common/lwindex.c:2730:46: warning: initialization of ‘const AVIndexEntry *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2730
^~~~~~~~
../../common/lwindex.c:2743:50: warning: passing argument 2 of ‘write_av_index_entry’ makes pointer from integer without a cast [-Wint-conversion]
2743
❯ mkdir build && cd build meson .. --optimization=3 --default-library=static -Db_lto=true -Dc_args="-march=native" -Dcpp_args="-march=native" ninja -j$(nproc) sudo cp libvslsmashsource.so /usr/lib/vapoursynth/ The Meson build system Version: 0.61.2 Source dir: /home/nanghe/git_ubuntu22.4/av1/L-SMASH-Works/VapourSynth Build dir: /home/nanghe/git_ubuntu22.4/av1/L-SMASH-Works/VapourSynth/build Build type: native build Project name: L-SMASH-Works Project version: undefined C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0") C linker for the host machine: cc ld.bfd 2.38 Host machine cpu family: x86_64 Host machine cpu: x86_64 Found pkg-config: /usr/bin/pkg-config (0.29.2) Run-time dependency vapoursynth found: YES 63 Run-time dependency liblsmash found: YES 2.16.1 rev.1477 Run-time dependency libavcodec found: YES 58.134.100 Run-time dependency libavformat found: YES 58.76.100 Run-time dependency libavutil found: YES 56.70.100 Run-time dependency libswscale found: YES 5.9.100 Build targets in project: 2 NOTICE: Future-deprecated features used:
L-SMASH-Works undefined
User defined options default_library: static optimization : 3 b_lto : true c_args : -march=native cpp_args : -march=native
~~~~~~~ ../../common/lwindex.c:2722:50: warning: implicit declaration of function ‘avformat_index_get_entry’ [-Wimplicit-function-declaration] 2722~~~~~~~ ../../common/lwindex.c:2722:50: warning: passing argument 2 of ‘write_av_index_entry’ makes pointer from integer without a cast [-Wint-conversion] 2722~~~~~~~~~~~~~~^~ ../../common/lwindex.c:2730:46: warning: initialization of ‘const AVIndexEntry *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 2730~~~~~~~ ../../common/lwindex.c:2743:50: warning: passing argument 2 of ‘write_av_index_entry’ makes pointer from integer without a cast [-Wint-conversion] 2743~~~~~~~~~~../../common/lwindex.c:1913:25: note: expected ‘const AVIndexEntry ’ but argument is of type ‘int’ 1913 | const AVIndexEntry ie |%d \n", &active_video_index ) != 1
| ^~
../../common/lwindex.c:2945:6: warning: writing into constant object (argument 3) [-Wformat=]
2945 | || fscanf( index, "%d \n", &active_audio_index ) != 1
| ^~
../../common/lwindex.c:2946:6: warning: writing into constant object (argument 3) [-Wformat=]
2946 | || fscanf( index, "%d \n", &default_audio ) != 1 )
| ^~
ninja: build stopped: subcommand failed.
~~~~^~ ../../common/lwindex.c:2753:46: warning: initialization of ‘const AVIndexEntry ’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 2753 | const AVIndexEntry ie = avformat_index_get_entry(stream, i); | ^~~~~~~~ ../../common/lwindex.c: In function ‘parse_index’: ../../common/lwindex.c:2944:5: warning: writing into constant object (argument 3) [-Wformat=] 2944 | if( fscanf( index, "