[MPlayer-users] Build error MinGW/VCD

Josh joshf87 at live.com
Sun Aug 30 21:50:13 CEST 2015


On 8/30/2015 05:44, Ingo Brückl wrote:
> Roberto Togni wrote on Sat, 29 Aug 2015 21:37:10 +0200:
>
>> On Sat, 29 Aug 2015 13:40:24 -0400
>> Josh <joshf87 at live.com> wrote:
>
>>> I'm unable to build with VCD enabled in the latest SVN under
>>> MinGW-w64/GCC 4.9.3.
>>>
>>> stream/stream_vcd.c: In function 'close_s':
>>> stream/stream_vcd.c:131:3: error: implicit declaration of function
>>> 'cdio_destroy' [-Werror=implicit-function-declaration]
>>>      cdio_destroy(vcd->cdio);
>>>      ^
>
>> The attached patch may fix it for you, but it's probably not the best
>> fix (you lose the new functionalities about playing video CDs with
>> libcdio, even if I have no idea if that may work in Windows).
>
> I also have no idea and can't test in Windows.
>
>> Index: stream_vcd.c
>> ===================================================================
>> +++ stream_vcd.c        (copia locale)
>> @@ -40,12 +40,16 @@
>>
>>   #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ||
>> defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__)
>>   #include "vcd_read_fbsd.h"
>> +#undef CONFIG_LIBCDIO
>>   #elif defined(__APPLE__)
>>   #include "vcd_read_darwin.h"
>> +#undef CONFIG_LIBCDIO
>>   #elif defined(__MINGW32__) || defined(__CYGWIN__)
>>   #include "vcd_read_win32.h"
>> +#undef CONFIG_LIBCDIO
>>   #elif defined(__OS2__)
>>   #include "vcd_read_os2.h"
>> +#undef CONFIG_LIBCDIO
>>   #elif CONFIG_LIBCDIO
>>   #include "vcd_read_libcdio.h"
>>   #else
>
> Either this, or we prefer libcdio if detected - please see patch. (I'd
> suspect libcdio to work if it is available for fbsd, darwin, win32 or os2.)
>
> Ingo
>
>
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>

Also builds successfully with Ingo's patch.


More information about the MPlayer-users mailing list