Qt+LibVLC in Windows: How to disable the command line window

This forum is about all development around libVLC.
levanhung79
New Cone
New Cone
Posts: 1
Joined: 23 Dec 2009 09:53

Qt+LibVLC in Windows: How to disable the command line window

Postby levanhung79 » 22 Jan 2010 04:22

Hi all,
I base on this page http://wiki.videolan.org/LibVLC_SampleCode_Qt to write one video player with Qt Creator and LibVLc in Windows XP (I don't change anything in the code). My program runs well but there is one problem: When the program works, these are two windows display together: The video window and the command line window, like in this picture:
http://lh6.ggpht.com/_x8Qw9_y1Fso/S1kVf ... enshot.png
Now, how can Iturn off, disable the command line window ?
Thanks for your help.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Qt+LibVLC in Windows: How to disable the command line window

Postby Jean-Baptiste Kempf » 22 Jan 2010 11:32

remove "--extraintf=logger"
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

coder_gate
Blank Cone
Blank Cone
Posts: 24
Joined: 12 Mar 2010 07:34

Re: Qt+LibVLC in Windows: How to disable the command line wi

Postby coder_gate » 13 Mar 2010 05:26

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


Code: Select all

#include <stdio.h> #include <stdlib.h> #include <vlc/vlc.h> static void raise(libvlc_exception_t * ex) { if (libvlc_exception_raised (ex)) { fprintf (stderr, "error: %s\n", libvlc_exception_get_message(ex)); exit (-1); } } int main(int argc, char* argv[]) { const char * const vlc_args[] = { "-I", "dummy", /* Don't use any interface */ "--ignore-config", /* Don't use VLC's config */ "--plugin-path=/set/your/path/to/libvlc/module/if/you/are/on/windows/or/macosx" }; libvlc_exception_t ex; libvlc_instance_t * inst; libvlc_media_player_t *mp; libvlc_media_t *m; libvlc_exception_init (&ex); /* init vlc modules, should be done only once */ inst = libvlc_new (sizeof(vlc_args) / sizeof(vlc_args[0]), vlc_args, &ex); raise (&ex); /* Create a new item */ m = libvlc_media_new (inst, "http://mycool.movie.com/test.mov", &ex); raise (&ex); /* XXX: demo art and meta information fetching */ /* Create a media player playing environement */ mp = libvlc_media_player_new_from_media (m, &ex); raise (&ex); /* No need to keep the media now */ libvlc_media_release (m); #if 0 /* This is a non working code that show how to hooks into a window, * if we have a window around */ libvlc_drawable_t drawable = xdrawable; /* or on windows */ libvlc_drawable_t drawable = hwnd; libvlc_media_player_set_drawable (mp, drawable, &ex); raise (&ex); #endif /* play the media_player */ libvlc_media_player_play (mp, &ex); raise (&ex); //sleep (10); /* Let it play a bit */ /* Stop playing */ libvlc_media_player_stop (mp, &ex); /* Free the media_player */ libvlc_media_player_release (mp); libvlc_release (inst); raise (&ex); return 0; }
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

vlan4us
New Cone
New Cone
Posts: 4
Joined: 23 Feb 2010 12:57

Re: Qt+LibVLC in Windows: How to disable the command line wi

Postby vlan4us » 16 Mar 2010 01:34

I am trying to create single exe file .Is it possible to link all the plugin dlls as part of single exe.I need to deliver is as part of single file.I have also followed the same qt example.Please let me know


Return to “Development around libVLC”

Who is online

Users browsing this forum: bismackvlc and 3 guests