mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
27.84k stars 2.87k forks source link

building mpv with vapoursynth broken since May? #11755

Closed johnattan1 closed 1 year ago

johnattan1 commented 1 year ago

Important Information

Reproduction steps

Build fails with mpv_options :

--enable-vapoursynth 
--enable-libmpv-shared 

(but succeeds without them)

Expected behavior

Build completes successfully

Actual behavior

Using mpv options: -Dc_link_args='-Wl,-Bsymbolic' --enable-vapoursynth --enable-libmpv-shared
usage: meson [-h] {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,help} ...
meson: error: unrecognized arguments: --enable-vapoursynth --enable-libmpv-shared

Log file

Log File

CounterPillow commented 1 year ago

We switched mpv-build away from waf to meson, so now the options are:

-Dlibmpv=true
-Dvapoursynth=enabled
johnattan1 commented 1 year ago

We switched mpv-build away from waf to meson, so now the options are:

-Dlibmpv=true
-Dvapoursynth=enabled

Hello, thank you for the reply.

I have added the correct flags now, but this seems to produce a different error. I don't quite understand what's going on there.

/usr/bin/ld: (.text+0x18b): undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/usr/bin/ld: (.text+0x1b0): undefined reference to `vtable for std::basic_streambuf<char, std::char_traits<char> >'
/usr/bin/ld: (.text+0x1e8): undefined reference to `std::ios_base::ios_base()'
/usr/bin/ld: (.text+0x1ef): undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/bin/ld: (.text+0x1f6): undefined reference to `vtable for std::basic_ios<char, std::char_traits<char> >'
/usr/bin/ld: (.text+0x26c): undefined reference to `std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*)'
/usr/bin/ld: (.text+0x297): undefined reference to `std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*)'
/usr/bin/ld: (.text+0x2bb): undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/bin/ld: (.text+0x315): undefined reference to `std::locale::locale()'
/usr/bin/ld: (.text+0x367): undefined reference to `std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*)'
/usr/bin/ld: (.text+0x413): undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base const*)'
/usr/bin/ld: (.text+0x48e): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
/usr/bin/ld: (.text+0x495): undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/bin/ld: (.text+0x4be): undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/bin/ld: (.text+0x4d9): undefined reference to `operator delete(void*)'
/usr/bin/ld: (.text+0x4e0): undefined reference to `vtable for std::basic_streambuf<char, std::char_traits<char> >'
/usr/bin/ld: (.text+0x4f6): undefined reference to `std::locale::~locale()'
/usr/bin/ld: (.text+0x54a): undefined reference to `vtable for std::basic_ios<char, std::char_traits<char> >'
/usr/bin/ld: (.text+0x567): undefined reference to `std::ios_base::~ios_base()'
/usr/bin/ld: (.text+0x5a7): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: (.text+0x5b1): undefined reference to `std::__throw_bad_function_call()'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libSPIRV-Tools.a(extensions.cpp.o): in function `std::_Function_handler<void (spvtools::Extension), spvtools::ExtensionSetToString[abi:cxx11](spvtools::EnumSet<spvtools::Extension> const&)::{lambda(spvtools::Extension)#1}>::_M_invoke(std::_Any_data const&, spvtools::Extension&&)':
(.text+0x85): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libSPIRV-Tools.a(extensions.cpp.o):(.data.rel.ro+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
collect2: error: ld returned 1 exit status