Need help for compiling libvlc for the vlc-winrt project

​VLC for Windows Store​ specific questions

This includes WinRT, Windows RT, Windows Phone, Windows Mobile and Xbox 1
chouquette
Developer
Developer
Posts: 291
Joined: 15 Apr 2010 00:54

Re: Need help for compiling libvlc for the vlc-winrt project

Postby chouquette » 19 Sep 2017 13:10

Sure, this is the associated Dockerfile: https://code.videolan.org/videolan/dock ... Dockerfile

zkuang
Blank Cone
Blank Cone
Posts: 27
Joined: 05 Sep 2017 19:06

Re: Need help for compiling libvlc for the vlc-winrt project

Postby zkuang » 19 Sep 2017 14:08

thanks chouquette and robUx4, I'll give it a try.

zkuang
Blank Cone
Blank Cone
Posts: 27
Joined: 05 Sep 2017 19:06

Re: Need help for compiling libvlc for the vlc-winrt project

Postby zkuang » 20 Sep 2017 03:52

when building the container, patches failed to apply:

make[1]: Leaving directory '/build/binutils-2.26/build'
error: patch failed: mingw-w64-crt/crt/crt_handler.c:40
error: mingw-w64-crt/crt/crt_handler.c: patch does not apply
error: patch failed: mingw-w64-crt/crt/crtdll.c:164
error: mingw-w64-crt/crt/crtdll.c: patch does not apply
error: patch failed: mingw-w64-crt/crt/crtexe.c:279
error: mingw-w64-crt/crt/crtexe.c: patch does not apply
error: patch failed: mingw-w64-crt/crt/gs_support.c:104
error: mingw-w64-crt/crt/gs_support.c: patch does not apply

how to resolve this?

zkuang
Blank Cone
Blank Cone
Posts: 27
Joined: 05 Sep 2017 19:06

Re: Need help for compiling libvlc for the vlc-winrt project

Postby zkuang » 20 Sep 2017 08:26

I fix the patching by checking out an older version of mingw-w64, but when I compile the libvlc, I got:
make[4]: Entering directory '/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/winrt-i686-msvcr120_app/modules'
CCLD libhttps_plugin.la
CCLD librtp_plugin.la
CCLD libavcodec_plugin.la
CCLD libvpx_plugin.la
CCLD libgestures_plugin.la
CCLD liboldrc_plugin.la
CCLD libhotkeys_plugin.la
CCLD libnetsync_plugin.la
CCLD libogg_plugin.la
CCLD libdemuxdump_plugin.la
CCLD librawdv_plugin.la
CCLD librawvid_plugin.la
CCLD libau_plugin.la
/opt/gcc-i686-w64-mingw32/lib/gcc/i686-w64-mingw32/5.4.0/../../../../i686-w64-mingw32/bin/ld: cannot find -lpthread
collect2: error: ld returned 1 exit status
Makefile:16769: recipe for target 'libvpx_plugin.la' failed
make[4]: *** [libvpx_plugin.la] Error 1
make[4]: *** Waiting for unfinished jobs....
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(onyx_if.c.o):(.text+0x1505): undefined reference to `pthread_mutex_destroy'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(onyx_if.c.o):(.text+0x1578): undefined reference to `pthread_mutex_init'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(onyx_if.c.o):(.text+0x307f): undefined reference to `pthread_mutex_destroy'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(onyx_if.c.o):(.text+0x4257): undefined reference to `sem_post'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(onyx_if.c.o):(.text+0x59cb): undefined reference to `sem_post'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(onyx_if.c.o):(.text+0x7112): undefined reference to `sem_wait'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(onyx_if.c.o):(.text+0x95ae): undefined reference to `sem_wait'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(encodeframe.c.o):(.text+0x1cd3): undefined reference to `sched_yield'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(encodeframe.c.o):(.text+0x23d0): undefined reference to `sem_post'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(encodeframe.c.o):(.text+0x26b3): undefined reference to `sched_yield'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(encodeframe.c.o):(.text+0x28f5): undefined reference to `sem_wait'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x24): undefined reference to `sem_wait'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x60): undefined reference to `sem_post'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0xc2): undefined reference to `sem_wait'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x2a3): undefined reference to `sched_yield'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x5b9): undefined reference to `sem_post'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0xeef): undefined reference to `pthread_mutex_init'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x106d): undefined reference to `sem_init'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x108d): undefined reference to `sem_init'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x10c5): undefined reference to `pthread_create'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x1102): undefined reference to `pthread_join'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x1112): undefined reference to `sem_destroy'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x1125): undefined reference to `sem_destroy'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x117c): undefined reference to `pthread_mutex_destroy'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x11ca): undefined reference to `sem_init'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x11ec): undefined reference to `sem_init'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x121a): undefined reference to `pthread_create'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x123f): undefined reference to `sem_post'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x124f): undefined reference to `sem_post'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x1268): undefined reference to `pthread_join'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x1278): undefined reference to `sem_destroy'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x128b): undefined reference to `sem_destroy'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x129c): undefined reference to `sem_destroy'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x12a4): undefined reference to `sem_destroy'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x12f6): undefined reference to `pthread_mutex_destroy'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x13d3): undefined reference to `sem_init'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x13f5): undefined reference to `sem_init'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x1423): undefined reference to `pthread_create'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x1488): undefined reference to `sem_post'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x1498): undefined reference to `sem_post'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x14b4): undefined reference to `pthread_join'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x14c4): undefined reference to `sem_destroy'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x14d2): undefined reference to `sem_destroy'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x14e8): undefined reference to `sem_post'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x14fe): undefined reference to `pthread_join'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x150c): undefined reference to `sem_destroy'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x1514): undefined reference to `sem_destroy'
/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/contrib/i686-w64-mingw32/lib/libvpx.a(ethreading.c.o):(.text+0x156a): undefined reference to `pthread_mutex_destroy'
collect2: error: ld returned 1 exit status
Makefile:12543: recipe for target 'libavcodec_plugin.la' failed
make[4]: *** [libavcodec_plugin.la] Error 1
make[4]: Leaving directory '/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/winrt-i686-msvcr120_app/modules'
Makefile:25282: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/winrt-i686-msvcr120_app/modules'
Makefile:10535: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/winrt-i686-msvcr120_app/modules'
Makefile:1520: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/zkuang/Projects/build/winrt-win10-i686/libvlc/vlc/winrt-i686-msvcr120_app'
Makefile:1405: recipe for target 'all' failed
make: *** [all] Error 2

Looks like the pthread library is missing. Do I have to build it myself? I'm doing this on a 64bit system, do I have to do this on a 32bit system?

zkuang
Blank Cone
Blank Cone
Posts: 27
Joined: 05 Sep 2017 19:06

Re: Need help for compiling libvlc for the vlc-winrt project

Postby zkuang » 21 Sep 2017 04:21

I fix this by changing the build environment to a docker container with https://code.videolan.org/videolan/dock ... Dockerfile, replacing the mingw with an older version (two month ago) and get the mpfr 3.1.6 instead of 3.1.5。 Then it works.. Thanks for all the help, guys!

862055876
New Cone
New Cone
Posts: 6
Joined: 05 Jan 2018 03:56

Re: Need help for compiling libvlc for the vlc-winrt project

Postby 862055876 » 05 Jan 2018 04:02

When I run the project on vs2017

严重性 代码 说明 项目 文件 行 禁止显示状态
错误 Type universe cannot resolve assembly: System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. VLC.Universal
错误 Cannot resolve Assembly or Windows Metadata file 'System.Runtime.dll' VLC.Universal D:\csworkspace\vlc_1\app\VLC.Universal\VLC.Universal.csproj
错误 C2446 “!=”: 没有从“std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>”到“int”的转换 libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 131
错误 C2672 “std::find_if”: 未找到匹配的重载函数 (编译源文件 ..\libvlcppcx\EventManagerCX.cpp) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 128
错误 C2780 “_InIt std::find_if(_InIt,_InIt,_Pr)”: 应输入 3 个参数,却提供了 1 个 (编译源文件 ..\libvlcppcx\EventManagerCX.cpp) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 130
错误 C3536 “it”: 初始化之前无法使用 (编译源文件 ..\libvlcppcx\EventManagerCX.cpp) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 131
错误 C2679 二进制“!=”: 没有找到接受“std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>”类型的右操作数的运算符(或没有可接受的转换) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 131
错误 C2664 “std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>> std::vector<_Ty,std::allocator<_Ty>>::erase(std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>)”: 无法将参数 1 从“int”转换为“std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>” libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 132
错误 C2446 “!=”: 没有从“std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>”到“int”的转换 libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 131
错误 C2672 “std::find_if”: 未找到匹配的重载函数 (编译源文件 ..\libvlcppcx\MediaListCX.cpp) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 128
错误 C2780 “_InIt std::find_if(_InIt,_InIt,_Pr)”: 应输入 3 个参数,却提供了 1 个 (编译源文件 ..\libvlcppcx\MediaListCX.cpp) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 130
错误 C3536 “it”: 初始化之前无法使用 (编译源文件 ..\libvlcppcx\MediaListCX.cpp) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 131
错误 C2679 二进制“!=”: 没有找到接受“std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>”类型的右操作数的运算符(或没有可接受的转换) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 131
错误 C2664 “std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>> std::vector<_Ty,std::allocator<_Ty>>::erase(std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>)”: 无法将参数 1 从“int”转换为“std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>” libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 132
错误 C2672 “std::find_if”: 未找到匹配的重载函数 (编译源文件 ..\libvlcppcx\MediaDiscovererCX.cpp) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 128
错误 C2780 “_InIt std::find_if(_InIt,_InIt,_Pr)”: 应输入 3 个参数,却提供了 1 个 (编译源文件 ..\libvlcppcx\MediaDiscovererCX.cpp) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 130
错误 C3536 “it”: 初始化之前无法使用 (编译源文件 ..\libvlcppcx\MediaDiscovererCX.cpp) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 131
错误 C2446 “!=”: 没有从“std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>”到“int”的转换 libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 131
错误 C2679 二进制“!=”: 没有找到接受“std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>”类型的右操作数的运算符(或没有可接受的转换) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 131
错误 C2664 “std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>> std::vector<_Ty,std::allocator<_Ty>>::erase(std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>)”: 无法将参数 1 从“int”转换为“std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>” libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 132
错误 C2446 “!=”: 没有从“std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>”到“int”的转换 libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 131
错误 C2672 “std::find_if”: 未找到匹配的重载函数 (编译源文件 ..\libvlcppcx\MediaCX.cpp) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 128
错误 C2780 “_InIt std::find_if(_InIt,_InIt,_Pr)”: 应输入 3 个参数,却提供了 1 个 (编译源文件 ..\libvlcppcx\MediaCX.cpp) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 130
错误 C3536 “it”: 初始化之前无法使用 (编译源文件 ..\libvlcppcx\MediaCX.cpp) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 131
错误 C2679 二进制“!=”: 没有找到接受“std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>”类型的右操作数的运算符(或没有可接受的转换) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 131
错误 C2664 “std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>> std::vector<_Ty,std::allocator<_Ty>>::erase(std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>)”: 无法将参数 1 从“int”转换为“std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>” libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 132
错误 C2446 “!=”: 没有从“std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>”到“int”的转换 libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 131
错误 C2672 “std::find_if”: 未找到匹配的重载函数 (编译源文件 ..\libvlcppcx\MediaPlayerCX.cpp) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 128
错误 C2780 “_InIt std::find_if(_InIt,_InIt,_Pr)”: 应输入 3 个参数,却提供了 1 个 (编译源文件 ..\libvlcppcx\MediaPlayerCX.cpp) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 130
错误 C3536 “it”: 初始化之前无法使用 (编译源文件 ..\libvlcppcx\MediaPlayerCX.cpp) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 131
错误 C2679 二进制“!=”: 没有找到接受“std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>”类型的右操作数的运算符(或没有可接受的转换) libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 131
错误 C2664 “std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>> std::vector<_Ty,std::allocator<_Ty>>::erase(std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>)”: 无法将参数 1 从“int”转换为“std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>” libVLCX.UWP d:\csworkspace\vlc_1\modules\libvlcpp\vlcpp\EventManager.hpp 132


How to deal with this problem

mfkl
Developer
Developer
Posts: 751
Joined: 13 Jun 2017 10:41

Re: Need help for compiling libvlc for the vlc-winrt project

Postby mfkl » 05 Jan 2018 15:57

Hi 862055876,

Please share your VS2017 installation information (what components you have installed, which versions).
Also look at this maybe https://stackoverflow.com/questions/363 ... -resolve-a
Do you have the C++ tools installed? Which target framework are you using?
https://mfkl.github.io

862055876
New Cone
New Cone
Posts: 6
Joined: 05 Jan 2018 03:56

Re: Need help for compiling libvlc for the vlc-winrt project

Postby 862055876 » 08 Jan 2018 07:34

Thank you,i tried this and fix it

862055876
New Cone
New Cone
Posts: 6
Joined: 05 Jan 2018 03:56

Re: Need help for compiling libvlc for the vlc-winrt project

Postby 862055876 » 08 Jan 2018 08:09

When I test ,found that when I change --network-caching=300 or --network-caching=1000 ,The delay time is the same.How to fix this?

mfkl
Developer
Developer
Posts: 751
Joined: 13 Jun 2017 10:41

Re: Need help for compiling libvlc for the vlc-winrt project

Postby mfkl » 08 Jan 2018 10:24

Please share some code so I can help further.
The delay time is the same
How did you test this?
https://mfkl.github.io

862055876
New Cone
New Cone
Posts: 6
Joined: 05 Jan 2018 03:56

Re: Need help for compiling libvlc for the vlc-winrt project

Postby 862055876 » 09 Jan 2018 02:02

I test this by change network-caching and INPUT_PTS_DELAY_MAX,for example network-caching=500 andINPUT_PTS_DELAY_MAX=500000 or network-caching=200 andINPUT_PTS_DELAY_MAX=200000

862055876
New Cone
New Cone
Posts: 6
Joined: 05 Jan 2018 03:56

Re: Need help for compiling libvlc for the vlc-winrt project

Postby 862055876 » 09 Jan 2018 02:03

I also found a question:Process memory is rising fast, 5S rises 1M ,how to fix this?

862055876
New Cone
New Cone
Posts: 6
Joined: 05 Jan 2018 03:56

Re: Need help for compiling libvlc for the vlc-winrt project

Postby 862055876 » 15 Jan 2018 03:26

ERROR: libopenjp2 >= 2.1.0 not found using pkg-config
how to fix this?


Return to “​VLC for Windows Store​”

Who is online

Users browsing this forum: No registered users and 12 guests