[vlc-devel] Re: compiling for qte

Cucaratxa cucaratxa at yahoo.fr
Wed Nov 3 21:17:58 CET 2004


I finally solved the problem with dimensions. I
modified /modules/video_output/qte/qte.cpp:

static int OpenDisplay( vout_thread_t *p_vout )
{
    /* for displaying the vout in a qt window we need
the QtApplication */
    p_vout->p_sys->p_QApplication = NULL;
    p_vout->p_sys->p_VideoWidget = NULL;

    p_vout->p_sys->p_event = (event_thread_t*)
vlc_object_create( p_vout, sizeof(event_thread_t) );
    p_vout->p_sys->p_event->p_vout = p_vout;

    /* Initializations */
#if 1 /* FIXME: I need an event queue to handle video
output size changes. */
    p_vout->b_fullscreen = VLC_TRUE;
#endif

    /* Set main window's size Modified by Cucaratxa*/
    QWidget *desktop =
p_vout->p_sys->p_QApplication->desktop();
    p_vout->p_sys->i_width = 800;
//p_vout->b_fullscreen ? desktop->height() :
                                      //             
p_vout->i_window_width;
    p_vout->p_sys->i_height = 600;
//p_vout->b_fullscreen ? desktop->width() :
                                    //                
p_vout->i_window_height;


lines 518 and 520.

My be I should have change something else when I
ported qte and opie for my platform. I will try to
crompenhend the code better to see if that's the
problem.
 
--- Jean-Paul Saman <jean-paul.saman at planet.nl> wrote:

> I could not resist to take a quick look into the
> source code ;-)
> 
> In file modules/misc/qte_main.cpp  I found this:
> 
> If you are running vlc as a GUI Server then the
> screensize of the video 
> output will be set to
> 
> if (p_this->b_gui_server) {
>        
>
p_this->p_qte_application->desktop()->setFixedSize(240,
> 320);
>     }
> 
> Which is a fixed size suitable for PDA (iPAQ)
> handhelds, but not for 
> your screensize. I think you want to change this.
> 
> 
> Jean-Paul Saman wrote:
> 
> > The files you want to look at are:
> >
> > modules/gui/opie/opie.ui                      -->
> The none existing 
> > GUI for Opie/Qt Embedded
> > modules/video_output/qte/qte.{cpp,h} --> The bare
> bones (directly to 
> > framebuffer) video output
> > modules/misc/qte_main.cpp                 --> The
> GUI helper module 
> > needed to support both a video_output and GUI
> plugin. Qt Embedded only 
> > has to be initialized ones.
> >
> > Hopefully these files will give you enough of a
> starting point to look 
> > at the code. Feel free to ask questions I'll try
> to answer them.
> >
> > Qt Embedded in vlc-0.7.1 should work alright
> independent of screen 
> > size. Are you trying to write to a windows instead
> of to the 
> > framebuffer directly? The Qt Embedded video output
> is written for 
> > direct use with the framebuffer.
> >
> > Cucaratxa wrote:
> >
> >> Yes, sorry, you are right I'm  xcompiling and I'm
> >> using  vlc 0.7.1.
> >> Besides I'm working on a project for developing
> an
> >> embedded multimedia portable device so I'm
> interested
> >> in making qte module work right though I'm not a
> good
> >> programer I'll send any changes I make for qte
> module
> >> to work in this platform wich is using an arm
> >> processor an a 800x600 display. By the way could
> you
> >> point any file a shoulf start to solve the prolem
> I
> >> stated in my previous e-mail? Thank you.
> >> --- Jean-Paul Saman <jean-paul.saman at planet.nl>
> wrote:
> >>
> >>  
> >>
> >>> Hi,
> >>>
> >>> You have not stated which VLC version and under
> >>> which conditions you are trying to build VLC. I
> guess you are
> >>> cross-compiling, are you?
> >>>
> >>> Cucaratxa wrote:
> >>>
> >>>   
> >>>
> >>>> Hi I'm trying to compile vlc for qte and the
> >>>>     
> >>>
> >>> message
> >>>   
> >>>
> >>>> isued by configure is:
> >>>>
> >>>> checking qt.h usability... no
> >>>> checking qt.h presence... yes
> >>>> configure: WARNING: qt.h: present but cannot be
> >>>> compiled
> >>>> configure: WARNING: qt.h:     check for missing
> >>>> prerequisite headers?
> >>>> configure: WARNING: qt.h: see the Autoconf
> >>>> documentation
> >>>> configure: WARNING: qt.h:     section "Present
> But
> >>>> Cannot Be Compiled"
> >>>> configure: WARNING: qt.h: proceeding with the
> >>>> preprocessor's result
> >>>> configure: WARNING: qt.h: in the future, the
> >>>>     
> >>>
> >>> compiler
> >>>   
> >>>
> >>>> will take precedence
> >>>> configure: WARNING:     ##
> >>>> ------------------------------ ##
> >>>> configure: WARNING:     ## Report this to the
> vlc
> >>>> lists.  ##
> >>>> configure: WARNING:     ##
> >>>> ------------------------------ ##
> >>>> checking for qt.h... yes
> >>>> checking jpeglib.h usability... no
> >>>> checking jpeglib.h presence... no
> >>>> checking for jpeglib.h... no
> >>>> configure: error: echo "Cannot find QT Embedded
> >>>> development headers."
> >>>>
> >>>>
> >>>>     
> >>>
> >>> You need to compile Qt Embedded with jpeglib I
> think
> >>> you did not. Or you have not included the
> headerfiles in the include
> >>> path. Anyway the configure script did not find a
> build environment
> >>> suited for building VLC against Qt Embedded.
> >>>
> >>> Look at the buildscript "ipkg/rules.opie" in the
> VLC
> >>> source code tree and read
> vlc/doc/arm-crosscompile-howto.sgml
> >>>
> >>>   
> >>>
> >>>> I compiles qte and opie myself so there should
> be
> >>>>     
> >>>
> >>> no
> >>>   
> >>>
> >>>> problem, I think.
> >>>>
> >>>>
> >>>>     
> >>>
> >>> Do not assume you have never made a mistake ;-)
> >>>
> >>>   
> >>>
> >>>> I have also the following problem:
> >>>> Im using a development platform with a display
> >>>>     
> >>>
> >>> 800x600
> >>>   
> >>>
> >>>> and when try to play video with vlc the image
> was
> >>>>     
> >>>
> >>> like
> >>>   
> >>>
> >>>> overlaping like if vlc thinks my display is
> >>>>     
> >>>
> >>> 360x240. I
> >>>   
> >>>
> >>>> was reading SDL module for qtopia and changed
> lines
> >>>> that had to do with display size. Compiled
> libSDL
> >>>>     
> >>>
> >>> and
> >>>   
> >>>
> >>>> tried using a precompiled vlc with this new
> >>>> compilation but the problem remains. I've been
> >>>>     
> >>>
> >>> reading
> >>>   
> >>>
> >>>> vlc module for qte but still dont know if I
> should
> >>>> change somthing there.
> >>>>
> >>>>     
> >>>
> 
=== message truncated ===

> ATTACHMENT part 2 application/pgp-signature
name=signature.asc



=====
"I've seen things you people wouldn't believe. Attack ships on fire off the sholder of Orion. I watched sea beams glitter in the darkness at Tan Hauser Gate. All those moments will be lost in time like tears in rain. Time to die"
Roy, Blade Runner

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list