Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, March 2007
QT 4.3.0 beta building error for Windows


Message 1 in thread

Hello friends,I'm trying build QT 4.3.0 for Microsoft Windows XP and the following errors happen:styles\qwindowsvistastyle.cpp: In member function `virtual void QWindowsVistaStyle::drawControl(QStyle::ControlElement, const QStyleOption*, QPainter*, const QWidget*) const':styles\qwindowsvistastyle.cpp:773: warning: passing `float' for converting 2 of`QRect::QRect(int, int, int, int)'styles\qwindowsvistastyle.cpp:776: warning: passing `float' for converting 1 of`QRect::QRect(int, int, int, int)'styles\qwindowsvistastyle.cpp:821: warning: passing `float' for converting 2 of`QRect::QRect(int, int, int, int)'styles\qwindowsvistastyle.cpp:825: warning: passing `float' for converting 1 of`QRect::QRect(int, int, int, int)'styles\qwindowsvistastyle.cpp: In member function `virtual void QWindowsVistaStyle::drawComplexControl(QStyle::ComplexControl, const QStyleOptionComplex*, QPainter*, const QWidget*) const':styles\qwindowsvistastyle.cpp:1152: warning: unused variable 'slider'styles\qwindowsvistastyle.cpp:1319: warning: comparison between `const enum Qt::LayoutDirection' and `enum Qt::Orientation'styles\qwindowsvistastyle.cpp:1380: error: `TMT_SIZINGMARGINS' undeclared (first use this function)styles\qwindowsvistastyle.cpp:1380: error: (Each undeclared identifier is reported only once for each function it appears in.)styles\qwindowsvistastyle.cpp: In member function `virtual QSize QWindowsVistaStyle::sizeFromContents(QStyle::ContentsType, const QStyleOption*, const QSize&, const QWidget*) const':styles\qwindowsvistastyle.cpp:1498: error: `TMT_CONTENTMARGINS' undeclared (first use this function)styles\qwindowsvistastyle.cpp: In member function `virtual QRect QWindowsVistaStyle::subElementRect(QStyle::SubElement, const QStyleOption*, const QWidget*) const':styles\qwindowsvistastyle.cpp:1567: error: `TMT_CONTENTMARGINS' undeclared (first use this function)make[2]: *** [tmp\obj\debug_shared\qwindowsvistastyle.o] Error 1make[1]: *** [debug-all] Error 2make: *** [sub-gui-make_default-ordered] Error 2thanks,Marcelo Estanislau GeyerStandard Net Tecnologia e Informação
_________________________________________________________________
Obtenha o novo Windows Live Messenger!
http://get.live.com/messenger/overview

Message 2 in thread

Hi,

> I'm trying build QT 4.3.0 for Microsoft Windows XP and the following 
> errors happen:
> [...]
> styles\qwindowsvistastyle.cpp: In member function `virtual void 
> QWindowsVistaSty
> [...]

You're attempting to build the Vista style on Windows XP. Do you have 
the latest Vista DSL? Did you force Vista style when configuring Qt?

--
 [ signature omitted ] 

Message 3 in thread

Hello !

I had the same problem and I looked two days but now it works !

the solution is:

Update the win32-api from mingw and it should work (w32api-3.6).


Heiko


Marcelo Estanislau Geyer schrieb:
> Hello friends,
>
> I'm trying build QT 4.3.0 for Microsoft Windows XP and the following 
> errors happen:
>
> styles\qwindowsvistastyle.cpp: In member function `virtual void 
> QWindowsVistaSty
> le::drawControl(QStyle::ControlElement, const QStyleOption*, 
> QPainter*, const QW
> idget*) const':
> styles\qwindowsvistastyle.cpp:773: warning: passing `float' for 
> converting 2 of
> `QRect::QRect(int, int, int, int)'
> styles\qwindowsvistastyle.cpp:776: warning: passing `float' for 
> converting 1 of
> `QRect::QRect(int, int, int, int)'
> styles\qwindowsvistastyle.cpp:821: warning: passing `float' for 
> converting 2 of
> `QRect::QRect(int, int, int, int)'
> styles\qwindowsvistastyle.cpp:825: warning: passing `float' for 
> converting 1 of
> `QRect::QRect(int, int, int, int)'
> styles\qwindowsvistastyle.cpp: In member function `virtual void 
> QWindowsVistaSty
> le::drawComplexControl(QStyle::ComplexControl, const 
> QStyleOptionComplex*, QPain
> ter*, const QWidget*) const':
> styles\qwindowsvistastyle.cpp:1152: warning: unused variable 'slider'
> styles\qwindowsvistastyle.cpp:1319: warning: comparison between `const 
> enum Qt::
> LayoutDirection' and `enum Qt::Orientation'
> styles\qwindowsvistastyle.cpp:1380: error: `TMT_SIZINGMARGINS' 
> undeclared (first
>  use this function)
> styles\qwindowsvistastyle.cpp:1380: error: (Each undeclared identifier 
> is report
> ed only once for each function it appears in.)
> styles\qwindowsvistastyle.cpp: In member function `virtual QSize 
> QWindowsVistaSt
> yle::sizeFromContents(QStyle::ContentsType, const QStyleOption*, const 
> QSize&, c
> onst QWidget*) const':
> styles\qwindowsvistastyle.cpp:1498: error: `TMT_CONTENTMARGINS' 
> undeclared (firs
> t use this function)
> styles\qwindowsvistastyle.cpp: In member function `virtual QRect 
> QWindowsVistaSt
> yle::subElementRect(QStyle::SubElement, const QStyleOption*, const 
> QWidget*) con
> st':
> styles\qwindowsvistastyle.cpp:1567: error: `TMT_CONTENTMARGINS' 
> undeclared (firs
> t use this function)
> make[2]: *** [tmp\obj\debug_shared\qwindowsvistastyle.o] Error 1
> make[1]: *** [debug-all] Error 2
> make: *** [sub-gui-make_default-ordered] Error 2
>
>
> thanks,
>
> Marcelo Estanislau Geyer
> Standard Net Tecnologia e Informação
>
> ------------------------------------------------------------------------
> Obtenha o novo Windows Live Messenger! Experimente! 
> <http://get.live.com/messenger/overview>


Message 4 in thread

Hi again !

This fixes the problem on Windows Vista.

Under Windows XP, QWindowsVistaStyle will not work, because it depends 
on the Vista Theme engine (see at 
http://doc.trolltech.com/4.3-snapshot/qwindowsvistastyle.html).

Heiko

Heiko Steindl schrieb:
> Hello !
>
> I had the same problem and I looked two days but now it works !
>
> the solution is:
>
> Update the win32-api from mingw and it should work (w32api-3.6).
>
>
> Heiko
>
>
> Marcelo Estanislau Geyer schrieb:
>> Hello friends,
>>
>> I'm trying build QT 4.3.0 for Microsoft Windows XP and the following 
>> errors happen:
>>
>> styles\qwindowsvistastyle.cpp: In member function `virtual void 
>> QWindowsVistaSty
>> le::drawControl(QStyle::ControlElement, const QStyleOption*, 
>> QPainter*, const QW
>> idget*) const':
>> styles\qwindowsvistastyle.cpp:773: warning: passing `float' for 
>> converting 2 of
>> `QRect::QRect(int, int, int, int)'
>> styles\qwindowsvistastyle.cpp:776: warning: passing `float' for 
>> converting 1 of
>> `QRect::QRect(int, int, int, int)'
>> styles\qwindowsvistastyle.cpp:821: warning: passing `float' for 
>> converting 2 of
>> `QRect::QRect(int, int, int, int)'
>> styles\qwindowsvistastyle.cpp:825: warning: passing `float' for 
>> converting 1 of
>> `QRect::QRect(int, int, int, int)'
>> styles\qwindowsvistastyle.cpp: In member function `virtual void 
>> QWindowsVistaSty
>> le::drawComplexControl(QStyle::ComplexControl, const 
>> QStyleOptionComplex*, QPain
>> ter*, const QWidget*) const':
>> styles\qwindowsvistastyle.cpp:1152: warning: unused variable 'slider'
>> styles\qwindowsvistastyle.cpp:1319: warning: comparison between 
>> `const enum Qt::
>> LayoutDirection' and `enum Qt::Orientation'
>> styles\qwindowsvistastyle.cpp:1380: error: `TMT_SIZINGMARGINS' 
>> undeclared (first
>>  use this function)
>> styles\qwindowsvistastyle.cpp:1380: error: (Each undeclared 
>> identifier is report
>> ed only once for each function it appears in.)
>> styles\qwindowsvistastyle.cpp: In member function `virtual QSize 
>> QWindowsVistaSt
>> yle::sizeFromContents(QStyle::ContentsType, const QStyleOption*, 
>> const QSize&, c
>> onst QWidget*) const':
>> styles\qwindowsvistastyle.cpp:1498: error: `TMT_CONTENTMARGINS' 
>> undeclared (firs
>> t use this function)
>> styles\qwindowsvistastyle.cpp: In member function `virtual QRect 
>> QWindowsVistaSt
>> yle::subElementRect(QStyle::SubElement, const QStyleOption*, const 
>> QWidget*) con
>> st':
>> styles\qwindowsvistastyle.cpp:1567: error: `TMT_CONTENTMARGINS' 
>> undeclared (firs
>> t use this function)
>> make[2]: *** [tmp\obj\debug_shared\qwindowsvistastyle.o] Error 1
>> make[1]: *** [debug-all] Error 2
>> make: *** [sub-gui-make_default-ordered] Error 2
>>
>>
>> thanks,
>>
>> Marcelo Estanislau Geyer
>> Standard Net Tecnologia e Informação
>>
>> ------------------------------------------------------------------------
>> Obtenha o novo Windows Live Messenger! Experimente! 
>> <http://get.live.com/messenger/overview>
>


Message 5 in thread

Hi,

> Under Windows XP, QWindowsVistaStyle will not work, because it depends 
> on the Vista Theme engine

True, but it Qt can still be built with Vista style support on Windows 
XP, provided all necessary Vista SDK headers are present (either 
Microsoft's or MinGW's).

--
 [ signature omitted ] 

Message 6 in thread

Hello friends,
I'm trying build QT 4.3.0 for Microsoft Windows XP with MinGW 5.1.3 and the following
errors ocurred:cd C:\Qt\4.3.0configure.exe -no-style-windowsvistamingw32-make[...]g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -shared -Wl,--out-implib,c:\Qt\4.3.0\lib\libQtGuid4.a -o "..\..\lib\QtGuid4.dll" object_script.QtGuid.Debug  -L"c:\Qt\4.3.0\lib" -L"c:\Qt\4.3.0\lib" -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lws2_32 -lole32-luuid -luser32 -ladvapi32 tmp\obj\debug_shared\QtGuid_resource_res.o -lmsimg32-lshell32 -lQtCored4Creating library file: c:\Qt\4.3.0\lib\libQtGuid4.a./tmp\obj\debug_shared\qwizard.o: In function `ZNK5QHashIi15QHashDummyValueE10constBeginEv':C:/Qt/4.3.0/include/QtCore/../../src/corelib/tools/qhash.h:(.rdata$_ZTV7QWizard[vtable for QWizard]+0xb8): undefined reference to `QWizard::winEvent(tagMSG*, long*)'collect2: ld returned 1 exit statusmingw32-make[2]: *** [..\..\lib\QtGuid4.dll] Error 1mingw32-make[2]: Leaving directory `C:/Qt/4.3.0/src/gui'mingw32-make[1]: *** [debug-all] Error 2mingw32-make[1]: Leaving directory `C:/Qt/4.3.0/src/gui'mingw32-make: *** [sub-gui-make_default-ordered] Error 2Which the recommended version of the MinGW?Thanks,MarceloDate: Sat, 24 Mar 2007 09:38:17 +0100From: heiko@xxxxxxxx: estanisgeyer@xxxxxxxxxxxxx: qt-interest@xxxxxxxxxxxxxxxxxxxx: Re: QT 4.3.0 beta building error for Windows




  


Hi again !

This fixes the problem on Windows Vista.

Under Windows XP, QWindowsVistaStyle will not work, because it depends
on the Vista Theme engine (see at
http://doc.trolltech.com/4.3-snapshot/qwindowsvistastyle.html).

Heiko

Heiko Steindl schrieb:

  
  
Hello !
  
I had the same problem and I looked two days but now it works !
  
the solution is:
  
Update the win32-api from mingw and it should work (w32api-3.6).
  
  
Heiko
  
  
Marcelo Estanislau Geyer schrieb:
  
    
    Hello friends,
    
I'm trying build QT 4.3.0 for Microsoft Windows XP and the following
errors happen:
    
styles\qwindowsvistastyle.cpp: In member function `virtual void
QWindowsVistaSty
le::drawControl(QStyle::ControlElement, const QStyleOption*, QPainter*,
const QW
idget*) const':
styles\qwindowsvistastyle.cpp:773: warning: passing `float' for
converting 2 of
`QRect::QRect(int, int, int, int)'
styles\qwindowsvistastyle.cpp:776: warning: passing `float' for
converting 1 of
`QRect::QRect(int, int, int, int)'
styles\qwindowsvistastyle.cpp:821: warning: passing `float' for
converting 2 of
`QRect::QRect(int, int, int, int)'
styles\qwindowsvistastyle.cpp:825: warning: passing `float' for
converting 1 of
`QRect::QRect(int, int, int, int)'
styles\qwindowsvistastyle.cpp: In member function `virtual void
QWindowsVistaSty
le::drawComplexControl(QStyle::ComplexControl, const
QStyleOptionComplex*, QPain
ter*, const QWidget*) const':
styles\qwindowsvistastyle.cpp:1152: warning: unused variable 'slider'
styles\qwindowsvistastyle.cpp:1319: warning: comparison between `const
enum Qt::
LayoutDirection' and `enum Qt::Orientation'
styles\qwindowsvistastyle.cpp:1380: error: `TMT_SIZINGMARGINS'
undeclared (first
 use this function)
styles\qwindowsvistastyle.cpp:1380: error: (Each undeclared identifier
is report
ed only once for each function it appears in.)
styles\qwindowsvistastyle.cpp: In member function `virtual QSize
QWindowsVistaSt
yle::sizeFromContents(QStyle::ContentsType, const QStyleOption*, const
QSize&, c
onst QWidget*) const':
styles\qwindowsvistastyle.cpp:1498: error: `TMT_CONTENTMARGINS'
undeclared (firs
t use this function)
styles\qwindowsvistastyle.cpp: In member function `virtual QRect
QWindowsVistaSt
yle::subElementRect(QStyle::SubElement, const QStyleOption*, const
QWidget*) con
st':
styles\qwindowsvistastyle.cpp:1567: error: `TMT_CONTENTMARGINS'
undeclared (firs
t use this function)
make[2]: *** [tmp\obj\debug_shared\qwindowsvistastyle.o] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-gui-make_default-ordered] Error 2
    
    
thanks,
    
Marcelo Estanislau Geyer
Standard Net Tecnologia e Informação
    
    
    Obtenha o novo Windows Live Messenger! Experimente!
  





_________________________________________________________________
O Windows Live Spaces está aqui! Descubra como é fácil criar seu espaço na Web e sua rede amigos.
http://spaces.live.com/signup.aspx

Message 7 in thread

Marcelo Estanislau Geyer schrieb:
> Hello friends,
> I'm trying build QT 4.3.0 for Microsoft Windows XP with MinGW 5.1.3 and the following
> errors ocurred:cd C:\Qt\4.3.0configure.exe -no-style-windowsvistamingw32-make[...]g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -shared -Wl,--out-implib,c:\Qt\4.3.0\lib\libQtGuid4.a -o "..\..\lib\QtGuid4.dll" object_script.QtGuid.Debug  -L"c:\Qt\4.3.0\lib" -L"c:\Qt\4.3.0\lib" -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lws2_32 -lole32-luuid -luser32 -ladvapi32 tmp\obj\debug_shared\QtGuid_resource_res.o -lmsimg32-lshell32 -lQtCored4Creating library file: c:\Qt\4.3.0\lib\libQtGuid4.a./tmp\obj\debug_shared\qwizard.o: In function `ZNK5QHashIi15QHashDummyValueE10constBeginEv':C:/Qt/4.3.0/include/QtCore/../../src/corelib/tools/qhash.h:(.rdata$_ZTV7QWizard[vtable for QWizard]+0xb8): undefined reference to `QWizard::winEvent(tagMSG*, long*)'collect2: ld returned 1 exit statusmingw32-make[2]: *** [..\..\lib\QtGuid4.dll] Error 1mingw32-make[2]: Leaving directory `C:/Qt/4.3.0/src/gui'mingw32-make[1]: *** [debug-all] Err
or 2mingw32-make[1]: Leaving directory `C:/Qt/4.3.0/src/gui'mingw32-make: *** [sub-gui-make_default-ordered] Error 2Which the recommended version of the MinGW?Thanks,MarceloDate: Sat, 24 Mar 2007 09:38:17 +0100From: heiko@xxxxxxxx: estanisgeyer@xxxxxxxxxxxxx: qt-interest@xxxxxxxxxxxxxxxxxxxx: Re: QT 4.3.0 beta building error for Windows
> 
> 
> 
> 
>   
> 
> 
> Hi again !
> 
> This fixes the problem on Windows Vista.
> 
> Under Windows XP, QWindowsVistaStyle will not work, because it depends
> on the Vista Theme engine (see at
> http://doc.trolltech.com/4.3-snapshot/qwindowsvistastyle.html).
> 
> Heiko
> 
> Heiko Steindl schrieb:
> 
>   
>   
> Hello !
>   
> I had the same problem and I looked two days but now it works !
>   
> the solution is:
>   
> Update the win32-api from mingw and it should work (w32api-3.6).
>   
>   
> Heiko
>   
>   
> Marcelo Estanislau Geyer schrieb:
>   
>     
>     Hello friends,
>     
> I'm trying build QT 4.3.0 for Microsoft Windows XP and the following
> errors happen:
>     
> styles\qwindowsvistastyle.cpp: In member function `virtual void
> QWindowsVistaSty
> le::drawControl(QStyle::ControlElement, const QStyleOption*, QPainter*,
> const QW
> idget*) const':
> styles\qwindowsvistastyle.cpp:773: warning: passing `float' for
> converting 2 of
> `QRect::QRect(int, int, int, int)'
> styles\qwindowsvistastyle.cpp:776: warning: passing `float' for
> converting 1 of
> `QRect::QRect(int, int, int, int)'
> styles\qwindowsvistastyle.cpp:821: warning: passing `float' for
> converting 2 of
> `QRect::QRect(int, int, int, int)'
> styles\qwindowsvistastyle.cpp:825: warning: passing `float' for
> converting 1 of
> `QRect::QRect(int, int, int, int)'
> styles\qwindowsvistastyle.cpp: In member function `virtual void
> QWindowsVistaSty
> le::drawComplexControl(QStyle::ComplexControl, const
> QStyleOptionComplex*, QPain
> ter*, const QWidget*) const':
> styles\qwindowsvistastyle.cpp:1152: warning: unused variable 'slider'
> styles\qwindowsvistastyle.cpp:1319: warning: comparison between `const
> enum Qt::
> LayoutDirection' and `enum Qt::Orientation'
> styles\qwindowsvistastyle.cpp:1380: error: `TMT_SIZINGMARGINS'
> undeclared (first
>  use this function)
> styles\qwindowsvistastyle.cpp:1380: error: (Each undeclared identifier
> is report
> ed only once for each function it appears in.)
> styles\qwindowsvistastyle.cpp: In member function `virtual QSize
> QWindowsVistaSt
> yle::sizeFromContents(QStyle::ContentsType, const QStyleOption*, const
> QSize&, c
> onst QWidget*) const':
> styles\qwindowsvistastyle.cpp:1498: error: `TMT_CONTENTMARGINS'
> undeclared (firs
> t use this function)
> styles\qwindowsvistastyle.cpp: In member function `virtual QRect
> QWindowsVistaSt
> yle::subElementRect(QStyle::SubElement, const QStyleOption*, const
> QWidget*) con
> st':
> styles\qwindowsvistastyle.cpp:1567: error: `TMT_CONTENTMARGINS'
> undeclared (firs
> t use this function)
> make[2]: *** [tmp\obj\debug_shared\qwindowsvistastyle.o] Error 1
> make[1]: *** [debug-all] Error 2
> make: *** [sub-gui-make_default-ordered] Error 2
>     
>     
> thanks,
>     
> Marcelo Estanislau Geyer
> Standard Net Tecnologia e Informação
>     
>     
>     Obtenha o novo Windows Live Messenger! Experimente!
>   
> 
> 
> 
> 
> 
> _________________________________________________________________
> O Windows Live Spaces está aqui! Descubra como é fácil criar seu espaço na Web e sua rede amigos.
> http://spaces.live.com/signup.aspx

Qt Snapshot from 2007/03/23 compiles fine for me. I'm using
MinGW 5.0.3 with this settings/pacakges:

[settings]
mirror=http://ufpr.dl.sourceforge.net/sourceforge/mingw
installtype=candidate

[components]
runtime=mingw-runtime-3.10.tar.gz
w32api=w32api-3.7.tar.gz
binutils=binutils-2.16.91-20060119-1.tar.gz
core=gcc-core-3.4.5-20060117-1.tar.gz
gpp=gcc-g++-3.4.5-20060117-1.tar.gz

make=mingw32-make-3.80.0-3.tar.gz

Good luck

--
 [ signature omitted ]