libvlc in vc2010 project

This forum is about all development around libVLC.
jcluo
New Cone
New Cone
Posts: 3
Joined: 26 Dec 2010 07:29

libvlc in vc2010 project

Postby jcluo » 26 Dec 2010 16:41

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.

jcluo
New Cone
New Cone
Posts: 3
Joined: 26 Dec 2010 07:29

Re: libvlc in vc2010 project

Postby jcluo » 27 Dec 2010 15:15

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.

happyboy
Blank Cone
Blank Cone
Posts: 13
Joined: 29 Dec 2010 19:19

Re: libvlc in vc2010 project

Postby happyboy » 29 Dec 2010 19:24

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


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests