Page 1 of 1

Help me build sample of VLC

Posted: 18 Feb 2010 08:37
by chaoraksa
Hi all!
Can you help me with Build Sample VLC to get it works? Like this i use to done.
1. I go to http://wiki.videolan.org/LibVLC_Tutorial_086c

Code: Select all

#include <stdio.h> #include <windows.h> #include <vlc/libvlc.h> static void quit_on_exception (libvlc_exception_t *excp) { if (libvlc_exception_raised (excp)) { fprintf(stderr, "error: %s\n", libvlc_exception_get_message(excp)); exit(-1); } } int main(int argc, char **argv) { libvlc_exception_t excp; libvlc_instance_t *inst; int item; char *myarg0 = "-I"; char *myarg1 = "dummy"; char *myarg2 = "--plugin-path=c:\\Programmi\\VideoLAN\\VLC\\plugins"; char *myargs[4] = {myarg0, myarg1, myarg2, NULL}; char *filename = "c:\\Pippo.flv"; libvlc_exception_init (&excp); inst = libvlc_new (3, myargs, &excp); quit_on_exception (&excp); item = libvlc_playlist_add (inst, filename, NULL, &excp); quit_on_exception (&excp); libvlc_playlist_play (inst, item, 0, NULL, &excp); quit_on_exception (&excp); Sleep (10000); libvlc_destroy (inst); return 0; }
2. I create a sample in VC++ 2005 then I got error on the #include <vlc/libvlc.h>.
NO Such as the Dirctory
Please guild me.

Thanks,,
Raksa,,

Re: Help me build sample of VLC

Posted: 18 Feb 2010 18:35
by Rémi Denis-Courmont
Contrary to what the name would have you believe, Visual C is not actually compatible with the C programming language. Expect problems.

Also, support for VLC 0.8.6 has terminated a long time ago.

Re: Help me build sample of VLC

Posted: 19 Feb 2010 09:18
by chaoraksa
Thanks for reply. It too bed for me please give me any idea beside this.

Re: Help me build sample of VLC

Posted: 19 Feb 2010 16:23
by ppaulojr
Contrary to what the name would have you believe, Visual C is not actually compatible with the C programming language. Expect problems.

Also, support for VLC 0.8.6 has terminated a long time ago.
That's not quite true.

Visual Studio 2008 is fully compatible with C++ in the 2003 standard (ISO/IEC 14882:2003) and C in ISO standard C89 (http://blogs.msdn.com/vcblog/archive/20 ... pdate.aspx)

However, libvlc not always behave correctly in Windows/VSS environment and lack proper support to it

Re: Help me build sample of VLC

Posted: 20 Feb 2010 05:54
by chaoraksa
If it is can!
Tell me how to compile it please.

Thanks,,
Raksa,,

Re: Help me build sample of VLC

Posted: 20 Feb 2010 09:59
by Rémi Denis-Courmont
Visual Studio 2008 is fully compatible with C++ in the 2003 standard (ISO/IEC 14882:2003) and C in ISO standard C89 (http://blogs.msdn.com/vcblog/archive/20 ... pdate.aspx)

However, libvlc not always behave correctly in Windows/VSS environment and lack proper support to it
LibVLC follows the ISO C99 standard. Just about every compiler vendor except Microsoft support it.We are not going to get stuck with a 21 years old, and 11 years out-of-date standard just for Microsoft. You can use the Intel CC or MingW if you want a proper compiler for Windows.