Page 1 of 1

libvlc in vc2010 project

Posted: 26 Dec 2010 16:41
by jcluo
I want to use libvlc in a vc2010 project. I built the sample code that I download from the wiki http://wiki.videolan.org/LibVLC_Tutorial
but when I ran it, I get this error:
[001d1c7c] main libvlc error: No modules were found, refusing to start. Check that you properly gave a module path with --plugin-path.

inst = libvlc_new (0, NULL);
inst returns 0x000000

Any one can help me on this?

Here is how I built it in vc2010 in windows 7 x64.
I created a libvlc.lib from libvlc.dll as instructed here http://wiki.videolan.org/GenerateLibFromDll
Then I copied libvlc.dll and libvlccore.dll to the same folder of the project.exe file.
It built, but not running.

Thanks in advance for your help.

Re: libvlc in vc2010 project

Posted: 27 Dec 2010 15:15
by jcluo
Problem solved.
Have to give an argument "--plugin-path=c:\program files (x86)\VIDEOLAN\VLC\plugins" to libvlc_new.
I am using windows 7 x64 probably that cause the problem.

Re: libvlc in vc2010 project

Posted: 29 Dec 2010 19:24
by happyboy
Problem solved.
Have to give an argument "--plugin-path=c:\program files (x86)\VIDEOLAN\VLC\plugins" to libvlc_new.
I am using windows 7 x64 probably that cause the problem.
I have the same problem on this.
May I know how did you fix it?
what is the meaning of "Have to give an argument "--plugin-path=c:\program files (x86)\VIDEOLAN\VLC\plugins" to libvlc_new."
how can I give an argument to libvlc_new?

Thanks