i want build my project use libvlc but i havent library binary .a so QT error
undefined reference to `libvlc_exception_raised'



Qt Code:
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <vlc/vlc.h>
  4.  
  5. static void raise(libvlc_exception_t * ex)
  6. {
  7. if (libvlc_exception_raised (ex))
  8. {
  9. fprintf (stderr, "error: %s\n", libvlc_exception_get_message(ex));
  10. exit (-1);
  11. }
  12. }
  13. int main(int argc, char* argv[])
  14. {
  15. const char * const vlc_args[] = {
  16. "-I", "dummy", /* Don't use any interface */
  17. "--ignore-config", /* Don't use VLC's config */
  18. "--plugin-path=/set/your/path/to/libvlc/module/if/you/are/on/windows/or/macosx" };
  19. libvlc_exception_t ex;
  20. libvlc_instance_t * inst;
  21. libvlc_media_player_t *mp;
  22. libvlc_media_t *m;
  23.  
  24. libvlc_exception_init (&ex);
  25. /* init vlc modules, should be done only once */
  26. inst = libvlc_new (sizeof(vlc_args) / sizeof(vlc_args[0]), vlc_args, &ex);
  27. raise (&ex);
  28.  
  29. /* Create a new item */
  30. m = libvlc_media_new (inst, "http://mycool.movie.com/test.mov", &ex);
  31. raise (&ex);
  32.  
  33. /* XXX: demo art and meta information fetching */
  34.  
  35. /* Create a media player playing environement */
  36. mp = libvlc_media_player_new_from_media (m, &ex);
  37. raise (&ex);
  38.  
  39. /* No need to keep the media now */
  40. libvlc_media_release (m);
  41.  
  42. #if 0
  43. /* This is a non working code that show how to hooks into a window,
  44.   * if we have a window around */
  45. libvlc_drawable_t drawable = xdrawable;
  46. /* or on windows */
  47. libvlc_drawable_t drawable = hwnd;
  48.  
  49. libvlc_media_player_set_drawable (mp, drawable, &ex);
  50. raise (&ex);
  51. #endif
  52.  
  53. /* play the media_player */
  54. libvlc_media_player_play (mp, &ex);
  55. raise (&ex);
  56.  
  57. //sleep (10); /* Let it play a bit */
  58.  
  59. /* Stop playing */
  60. libvlc_media_player_stop (mp, &ex);
  61.  
  62. /* Free the media_player */
  63. libvlc_media_player_release (mp);
  64.  
  65. libvlc_release (inst);
  66. raise (&ex);
  67.  
  68. return 0;
  69. }
To copy to clipboard, switch view to plain text mode 
iF i add LIBS += -lvlc into .pro then

f:/programfiles/qt/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lvlc
collect2: ld returned 1 exit status