Page 1 of 1

libvlc 0.9.4 : module path for libvlc_new parameters?

Posted: 24 Nov 2008 17:26
by tiliona
Dear all,

I use cygwin and c++. I have a problem when I execute my program. It says:
vlc: unknown option or missing mandatory argument '--module-path=C:/vlc-0.9.4/src/libvlc-module.c
I think the trouble is here:

Code: Select all

const char * const vlc_args[] = { "-I", "dummy", /* Don't use any interface */ "--ignore-config", /* Don't use VLC's config */ "--module-path=C:/vlc-0.9.4/src/libvlc-module.c" };

But I don't know where the path to libvlc module is...
And
vlc --help
does not work neither.

Could anyone help me, please?
Thanks!

Re: libvlc 0.9.4 : module path for libvlc_new parameters?

Posted: 26 Nov 2008 14:54
by tiliona
Any ideas??
Thanks in advance!

Re: libvlc 0.9.4 : module path for libvlc_new parameters?

Posted: 26 Nov 2008 14:55
by Jean-Baptiste Kempf
--plugin-path ?

Re: libvlc 0.9.4 : module path for libvlc_new parameters?

Posted: 26 Nov 2008 15:30
by tiliona
Thank you for answering me!

I've already tried --plugin-path: the result is after compiling well, the .exe says:
main libvlc error: no memcpy module matched "any"
main access error: no access module matched "file"
main input error: open of 'file/xspf-open://C:\Documents and Settings\Baloo\Application Data\vlc\ml.xspf' failed: could not create access: no access module matched "file"
main interface error: no interface module matched "hotkeys,none"
main interface error: no suitable interface module
main libvlc error: interface hotkeys,none" initialization failed
main access error: no access module matched "any"
That is why I used to initialize the parameters of libvlc_new (vlc_args[]) :

Code: Select all

"--module-path=cygdrive/d/cygwinTestVLC/vlc/modules"};
And the error messages above are deleted but I have after compiling well:
vlc: unknown option or missing mandatory argument '--module-path=cygdrive/d/cygwinTestVLC/vlc/module'
Try 'vlc --help' for more information
The command line options couldn't be loaded, check that they are valid



My aim is to generate an .exe of the following source code: Tutorial for version 0.9.x, with cygwin
http://wiki.videolan.org/LibVLC_Tutorial

Does anyone succeed iin executing this Tutorial for version 0.9.x, with cygwin?

Thanks in advance.

Re: libvlc 0.9.4 : module path for libvlc_new parameters?

Posted: 26 Nov 2008 15:41
by Jean-Baptiste Kempf
Don't use --module-path but --plugin-path

Re: libvlc 0.9.4 : module path for libvlc_new parameters?

Posted: 27 Nov 2008 09:26
by tiliona
Ok, thank you for helping me!

Re: libvlc 0.9.4 : module path for libvlc_new parameters?

Posted: 27 Nov 2008 18:52
by BexX
you do need a working install of VLC 0.9x on your system then use:

Code: Select all

--plugin-path=cygdrive/c/program_files/videolan/vlc/plugins
This is where the plugin's binary are located!