Salut dourouc05,
J'ai enfin réussi à intégrer la libvlc dans mon programme. J'ai essayé les versions 0.9.9, 1.0.0 et 1.0.5. Pas de problème.
Lorsque j'essaie avec les versions 1.1.0 et 1.0.5, j'ai ces erreurs :
1 2 3 4
| erreur : 'libvlc_exception_t' does not name a type
libvlc_exception_t _vlcexcep; // [20101215 JG] Used for versions prior to VLC 1.2.0.
erreur : 'libvlc_exception_t' has not been declared
void raise(libvlc_exception_t * ex); // [20101215 JG] Used for versions prior to VLC 1.2.0. |
Pourquoi ?
Solution trouvée ! Il fallait simplement que je regarde bien les typedef de libvlc. J'ai donc supprimé ces lignes.
J'arrive maintenant à utiliser les versions 0.9.9, 1.0.0, 1.0.5, 1.1.0 et 1.1.5 de libvlc. Je suis passé à la version 2.0.0 ! Ca compile, parfait ! Mais j'ai ces lignes présentes :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| Warning: option --plugin-path no longer exists.
[133681a8] main libvlc debug: VLC media player - 2.0.0 Twoflower
[133681a8] main libvlc debug: Copyright © 1996-2012 VLC authors and VideoLAN
[133681a8] main libvlc debug: revision 2.0.0-0-g421a4fc
[133681a8] main libvlc debug: configured with ../extras/package/win32/../../../configure '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-x264' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--enable-dvdread' '--enable-shout' '--enable-goom' '--enable-caca' '--disable-portaudio' '--disable-sdl' '--enable-qt4' '--enable-skins2' '--enable-sse' '--enable-mmx' '--enable-libcddb' '--enable-zvbi' '--disable-telx' '--enable-sqlite' '--disable-dirac' '--host' 'i586-mingw32msvc' 'host_alias=i586-mingw32msvc'
[133681a8] main libvlc debug: searching plug-in modules
[133681a8] main libvlc debug: loading plugins cache file D:\Documents\build-testVLC-Desktop_Qt_5_4_2_MinGW_32bit-Debug\debug\plugins\plugins.dat
[133681a8] main libvlc warning: cannot read D:\Documents\build-testVLC-Desktop_Qt_5_4_2_MinGW_32bit-Debug\debug\plugins\plugins.dat (No such file or directory)
[133681a8] main libvlc debug: recursively browsing `D:\Documents\build-testVLC-Desktop_Qt_5_4_2_MinGW_32bit-Debug\debug\plugins'
[133681a8] main libvlc debug: saving plugins cache D:\Documents\build-testVLC-Desktop_Qt_5_4_2_MinGW_32bit-Debug\debug\plugins\plugins.dat
[133681a8] main libvlc debug: plug-ins loaded: 1 modules
Warning: option --plugin-path no longer exists.
[133681a8] main libvlc debug: translation test: code is "C"
[133681a8] main libvlc error: No plugins found! Check your VLC installation.
Le programme s'est terminé subitement. |
Pourtant, les librairies de libvlc-2.0.0 sont bien au même niveau que mon exécutable...
J'ai bien compris que mon problème vient de cette ligne :
Warning: option --plugin-path no longer exists.
Car dans mon code, je fais ceci :
1 2 3 4
| const char * const vlc_args[] = {
"--verbose=2", //be much more verbose then normal for debugging purpose
"--plugin-path=D:\\Downloads\\vlc-2.0.0\\plugins\\"
}; |
Quel est l'option qui pourrait remplacer "--plugin-path" ?
Partager