Help me build sample of VLC

This forum is about all development around libVLC.
chaoraksa
New Cone
New Cone
Posts: 4
Joined: 18 Feb 2010 08:20

Help me build sample of VLC

Postby chaoraksa » 18 Feb 2010 08:37

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,,

Rémi Denis-Courmont
Developer
Developer
Posts: 15263
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Help me build sample of VLC

Postby Rémi Denis-Courmont » 18 Feb 2010 18:35

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

chaoraksa
New Cone
New Cone
Posts: 4
Joined: 18 Feb 2010 08:20

Re: Help me build sample of VLC

Postby chaoraksa » 19 Feb 2010 09:18

Thanks for reply. It too bed for me please give me any idea beside this.

ppaulojr
Blank Cone
Blank Cone
Posts: 10
Joined: 11 Feb 2010 13:48

Re: Help me build sample of VLC

Postby ppaulojr » 19 Feb 2010 16:23

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

chaoraksa
New Cone
New Cone
Posts: 4
Joined: 18 Feb 2010 08:20

Re: Help me build sample of VLC

Postby chaoraksa » 20 Feb 2010 05:54

If it is can!
Tell me how to compile it please.

Thanks,,
Raksa,,

Rémi Denis-Courmont
Developer
Developer
Posts: 15263
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Help me build sample of VLC

Postby Rémi Denis-Courmont » 20 Feb 2010 09:59

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 16 guests