Compiling Qt as static libraries

Thomas Hartmann thartman at trolltech.com
Thu Nov 8 15:29:28 CET 2007


Hi,

here is the patch that fixes the bug:

==== //depot/qt/main/mkspecs/features/qt.prf#26 (text) - 
//depot/qt/main/mkspecs/features/qt.prf#27 (text) ==== content 
@@ -132,3 +132,7 
@@                                                                                                      

    INCLUDEPATH *= 
$$QMAKE_INCDIR_QT/Qt                                                                                  

    DEFINES *= 
QT_COMPAT                                                                                                 

 }                                                                                                                       

+                                                                                                                        

+wince*:static:gui 
{                                                                                                     

+   QTLIB += 
qmenu_wce.res                                                                                               

+}                                                                                                                       


Building with Visual Studio for static builds does not break QMenuBar 
any more.

Regards,
Thomas

George H. Locktish wrote:
>
> I am attempting to run my application using the Qt static libraries 
> and I am getting an assert statement each time I run.
>
>  
>
> The assert statement is:
>
> ASSERT failure in rebuild !created no left menubar: "cannot create 
> menubar from resource", file 
> ..\..\..\4.3.2-tp1\src\gui\widgets\qmenu_wce.cpp, line 494
>
>  
>
>  
>
> I have been able to reproduce this with the stylesheet example.  Both 
> applications are QMainWindows with menu bars.
>
>  
>
> Any ideas on what I could do to avoid the assert?
>
>  
>
> Thank you,
>
> George
>



More information about the Qtce-preview-feedback mailing list