[MPlayer-users] Build error MinGW/VCD

Ingo Brückl ib at wupperonline.de
Sun Aug 30 11:44:48 CEST 2015


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stream_vcd.patch
Type: text/x-diff
Size: 809 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20150830/7fd51ba5/attachment.patch>


More information about the MPlayer-users mailing list