{"action":"created","issue":{"url":"https://api.github.com/repos/jb-alvarado/media-autobuild_suite/issues/418","repository_url":"https://api.github.com/repos/jb-alvarado/media-autobuild_suite","labels_url":"https://api.github.com/repos/jb-alvarado/media-autobuild_suite/issues/418/labels{/name}","comments_url":"https://api.github.com/repos/jb-alvarado/media-autobuild_suite/issues/418/comments","events_url":"https://api.github.com/repos/jb-alvarado/media-autobuild_suite/issues/418/events","html_url":"https://github.com/jb-alvarado/media-autobuild_suite/issues/418","id":191719641,"number":418,"title":"MPV with egl-angle-lib does not compile : multiple definition of `DllMain'","user":{"login":"pat357","id":13542862,"avatar_url":"https://avatars.githubusercontent.com/u/13542862?v=3","gravatar_id":"","url":"https://api.github.com/users/pat357","html_url":"https://github.com/pat357","followers_url":"https://api.github.com/users/pat357/followers","following_url":"https://api.github.com/users/pat357/following{/other_user}","gists_url":"https://api.github.com/users/pat357/gists{/gist_id}","starred_url":"https://api.github.com/users/pat357/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pat357/subscriptions","organizations_url":"https://api.github.com/users/pat357/orgs","repos_url":"https://api.github.com/users/pat357/repos","events_url":"https://api.github.com/users/pat357/events{/privacy}","received_events_url":"https://api.github.com/users/pat357/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-25T15:03:22Z","updated_at":"2016-11-26T14:51:43Z","closed_at":"2016-11-25T16:16:09Z","body":"What looks a bit strange to me is that he autodetection from MPV-config still detects both the ANGLE Backend and  the ANGLE Library.  Is this normal ?\r\nHow to disable the  ANGLE Backend detection ?\r\n\r\nChecking for OpenGL Win32 Backend                                 : yes \r\nChecking for OpenGL/DirectX Interop Backend                       : yes \r\nChecking for OpenGL Win32 ANGLE Backend                           : yes \r\nChecking for OpenGL Win32 ANGLE Library                           : yes \r\n\r\nMy MPV_OPTS:\r\n--enable-encoding --enable-dvdread --enable-dvdnav --enable-libbluray --enable-libass --enable-rubberband --enable-lcms2 --enable-lua --lua=luajit --enable-jpeg --enable-uchardet --enable-libarchive --enable-egl-angle-lib --disable-debug-build --enable-vapoursynth --enable-libmpv-shared\r\n\r\nThe error I get upon linking the mpv.exe and mpv-1.dll:\r\nI don't know where the path :C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/dllmain.c:10  comes from, as I don't have a  dir named \"repo\" on my C:\r\n\r\n```\r\n[458/470] Compiling video/out/win32/exclusive_hack.c\r\n[459/470] Compiling audio/filter/af_lavrresample.c\r\n[460/470] Compiling stream/stream_dvd.c\r\n[461/470] Compiling video/out/opengl/hwdec_dxva2egl.c\r\n[462/470] Compiling input/cmd_list.c\r\n[463/470] Compiling video/filter/vf_d3d11vpp.c\r\n[464/470] Compiling video/out/win32/exclusive_hack.c\r\n[465/470] Compiling osdep/semaphore_osx.c\r\n[466/470] Compiling video/out/opengl/video_shaders.c\r\n[467/470] Compiling demux/ebml.c\r\n[468/470] Linking build/mpv.com\r\n[469/470] Linking build/mpv-1.dll\r\n[470/470] Linking build/mpv.exe\r\nK:/Mingw644/local64/lib/libGLESv2.a(global_state.o):(.text+0x1e0): multiple definition of `DllMain'\r\nK:/Mingw644/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/lib/../lib\\libmingwex.a(lib64_libmingwex_a-dllmain.o):C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/dllmain.c:10: first defined here\r\ncollect2.exe: error: ld returned 1 exit status\r\n\r\nWaf: Leaving directory `/build/mpv-git/build'\r\nBuild failed\r\n -> task in 'mpv' failed (exit status 1): \r\n\t{task 7696573182080: cshlib audio.c.17.o,audio_buffer.c.17.o,chmap.c.17.o,chmap_sel.c.17.o,fmt-conversion.c.17.o,format.c.17.o,ad_lavc.c.17.o,ad_spdif.c.17.o,dec_audio.c.17.o,af.c.17.o,af_channels.c.17.o,af_drc.c.17.o,af_equalizer.c.17.o,af_format.c.17.o,af_lavcac3enc.c.17.o,af_lavfi.c.17.o,af_lavrresample.c.17.o,af_pan.c.17.o,af_rubberband.c.17.o,af_scaletempo.c.17.o,af_volume.c.17.o,tools.c.17.o,ao.c.17.o,ao_lavc.c.17.o,ao_null.c.17.o,ao_pcm.c.17.o,ao_wasapi.c.17.o,ao_wasapi_utils.c.17.o,ao_wasapi_changenotify.c.17.o,pull.c.17.o,push.c.17.o,av_common.c.17.o,av_log.c.17.o,codecs.c.17.o,encode_lavc.c.17.o,common.c.17.o,tags.c.17.o,msg.c.17.o,playlist.c.17.o,version.c.17.o,codec_tags.c.17.o,cue.c.17.o,demux.c.17.o,demux_cue.c.17.o,demux_disc.c.17.o,demux_edl.c.17.o,demux_lavf.c.17.o,demux_libarchive.c.17.o,demux_mf.c.17.o,demux_mkv.c.17.o,demux_mkv_timeline.c.17.o,demux_null.c.17.o,de"},"comment":{"url":"https://api.github.com/repos/jb-alvarado/media-autobuild_suite/issues/comments/263067330","html_url":"https://github.com/jb-alvarado/media-autobuild_suite/issues/418#issuecomment-263067330","issue_url":"https://api.github.com/repos/jb-alvarado/media-autobuild_suite/issues/418","id":263067330,"user":{"login":"pat357","id":13542862,"avatar_url":"https://avatars.githubusercontent.com/u/13542862?v=3","gravatar_id":"","url":"https://api.github.com/users/pat357","html_url":"https://github.com/pat357","followers_url":"https://api.github.com/users/pat357/followers","following_url":"https://api.github.com/users/pat357/following{/other_user}","gists_url":"https://api.github.com/users/pat357/gists{/gist_id}","starred_url":"https://api.github.com/users/pat357/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pat357/subscriptions","organizations_url":"https://api.github.com/users/pat357/orgs","repos_url":"https://api.github.com/users/pat357/repos","events_url":"https://api.github.com/users/pat357/events{/privacy}","received_events_url":"https://api.github.com/users/pat357/received_events","type":"User","site_admin":false},"created_at":"2016-11-26T14:51:43Z","updated_at":"2016-11-26T14:51:43Z","body":"Not so fast !\r\nThe second time I recompiled (ffmpeg,mpv) it worked  !\r\nThe issue was that my x265.pc contains 2 times -lmingwex and your patch removes only one !\r\n\r\n+pc_exists x265 && sed -i 's|-lmingwex||' \"$(file_installed x265.pc)\"\r\n\r\nshould be\r\n\r\n+pc_exists x265 && sed -i 's|-lmingwex||g' \"$(file_installed x265.pc)\" (notice extra g in sed)\r\n\r\nNow it works !!"}}
{"actor":{"display_login":"pat357"}}