Failed to build when tuned features
-
I was trying to tune some unnecessary features, here's my qconfig-myfeatures.h, for Windows Mobile 6 platform.
@
/* D-Bus */
#ifndef QT_NO_DBUSdefine QT_NO_DBUS
#endif
/* Data structures */
#ifndef QT_NO_QUUID_STRINGdefine QT_NO_QUUID_STRING
#endif
#ifndef QT_NO_TEXTDATEdefine QT_NO_TEXTDATE
#endif
/* Dialogs */
#ifndef QT_NO_COLORDIALOGdefine QT_NO_COLORDIALOG
#endif
#ifndef QT_NO_FONTDIALOGdefine QT_NO_FONTDIALOG
#endif
#ifndef QT_NO_PRINTDIALOGdefine QT_NO_PRINTDIALOG
#endif
#ifndef QT_NO_TABDIALOGdefine QT_NO_TABDIALOG
#endif
#ifndef QT_NO_WIZARDdefine QT_NO_WIZARD
#endif
/* File I/O */
#ifndef QT_NO_DOMdefine QT_NO_DOM
#endif
#ifndef QT_NO_TEMPORARYFILEdefine QT_NO_TEMPORARYFILE
#endif
/* Fonts */
#ifndef QT_NO_QWS_QPFdefine QT_NO_QWS_QPF
#endif
#ifndef QT_NO_QWS_QPF2define QT_NO_QWS_QPF2
#endif
/* Gui */
#ifndef QT_NO_SOFTKEYMANAGERdefine QT_NO_SOFTKEYMANAGER
#endif
/* Images */
#ifndef QT_NO_IMAGEFORMATPLUGINdefine QT_NO_IMAGEFORMATPLUGIN
#endif
#ifndef QT_NO_IMAGEFORMAT_XBMdefine QT_NO_IMAGEFORMAT_XBM
#endif
#ifndef QT_NO_IMAGE_HEURISTIC_MASKdefine QT_NO_IMAGE_HEURISTIC_MASK
#endif
#ifndef QT_NO_IMAGE_TEXTdefine QT_NO_IMAGE_TEXT
#endif
#ifndef QT_NO_MOVIEdefine QT_NO_MOVIE
#endif
/* ItemViews */
#ifndef QT_NO_DATAWIDGETMAPPERdefine QT_NO_DATAWIDGETMAPPER
#endif
#ifndef QT_NO_COLUMNVIEWdefine QT_NO_COLUMNVIEW
#endif
#ifndef QT_NO_SORTFILTERPROXYMODELdefine QT_NO_SORTFILTERPROXYMODEL
#endif
#ifndef QT_NO_STRINGLISTMODELdefine QT_NO_STRINGLISTMODEL
#endif
#ifndef QT_NO_TABLEVIEWdefine QT_NO_TABLEVIEW
#endif
/* Kernel */
#ifndef QT_NO_CLIPBOARDdefine QT_NO_CLIPBOARD
#endif
#ifndef QT_NO_CONCURRENTdefine QT_NO_CONCURRENT
#endif
#ifndef QT_NO_CSSPARSERdefine QT_NO_CSSPARSER
#endif
#ifndef QT_NO_SESSIONMANAGERdefine QT_NO_SESSIONMANAGER
#endif
#ifndef QT_NO_SHAREDMEMORYdefine QT_NO_SHAREDMEMORY
#endif
#ifndef QT_NO_SOUNDdefine QT_NO_SOUND
#endif
#ifndef QT_NO_SYSTEMSEMAPHOREdefine QT_NO_SYSTEMSEMAPHORE
#endif
#ifndef QT_NO_TABLETEVENTdefine QT_NO_TABLETEVENT
#endif
#ifndef QT_NO_TEXTHTMLPARSERdefine QT_NO_TEXTHTMLPARSER
#endif
#ifndef QT_NO_XMLSTREAMdefine QT_NO_XMLSTREAM
#endif
/* Networking */
#ifndef QT_NO_COPdefine QT_NO_COP
#endif
#ifndef QT_NO_HOSTINFOdefine QT_NO_HOSTINFO
#endif
#ifndef QT_NO_NETWORKINTERFACEdefine QT_NO_NETWORKINTERFACE
#endif
#ifndef QT_NO_NETWORKPROXYdefine QT_NO_NETWORKPROXY
#endif
#ifndef QT_NO_UDPSOCKETdefine QT_NO_UDPSOCKET
#endif
#ifndef QT_NO_URLINFOdefine QT_NO_URLINFO
#endif
/* Painting */
#ifndef QT_NO_PICTUREdefine QT_NO_PICTURE
#endif
/* Phonon */
#ifndef QT_NO_PHONON_ABSTRACTMEDIASTREAMdefine QT_NO_PHONON_ABSTRACTMEDIASTREAM
#endif
#ifndef QT_NO_PHONON_AUDIOCAPTUREdefine QT_NO_PHONON_AUDIOCAPTURE
#endif
#ifndef QT_NO_PHONON_EFFECTdefine QT_NO_PHONON_EFFECT
#endif
#ifndef QT_NO_PHONON_MEDIACONTROLLERdefine QT_NO_PHONON_MEDIACONTROLLER
#endif
#ifndef QT_NO_PHONON_OBJECTDESCRIPTIONMODELdefine QT_NO_PHONON_OBJECTDESCRIPTIONMODEL
#endif
#ifndef QT_NO_PHONON_SEEKSLIDERdefine QT_NO_PHONON_SEEKSLIDER
#endif
#ifndef QT_NO_PHONON_VIDEOdefine QT_NO_PHONON_VIDEO
#endif
#ifndef QT_NO_PHONON_VOLUMESLIDERdefine QT_NO_PHONON_VOLUMESLIDER
#endif
/* Qt for Embedded Linux */
#ifndef QT_NO_QWSEMBEDWIDGETdefine QT_NO_QWSEMBEDWIDGET
#endif
#ifndef QT_NO_QWS_ALPHA_CURSORdefine QT_NO_QWS_ALPHA_CURSOR
#endif
#ifndef QT_NO_QWS_CURSORdefine QT_NO_QWS_CURSOR
#endif
#ifndef QT_NO_QWS_DECORATION_DEFAULTdefine QT_NO_QWS_DECORATION_DEFAULT
#endif
#ifndef QT_NO_QWS_KEYBOARDdefine QT_NO_QWS_KEYBOARD
#endif
#ifndef QT_NO_QWS_MOUSEdefine QT_NO_QWS_MOUSE
#endif
#ifndef QT_NO_QWS_MOUSE_AUTOdefine QT_NO_QWS_MOUSE_AUTO
#endif
#ifndef QT_NO_QWS_MOUSE_MANUALdefine QT_NO_QWS_MOUSE_MANUAL
#endif
#ifndef QT_NO_QWS_MULTIPROCESSdefine QT_NO_QWS_MULTIPROCESS
#endif
#ifndef QT_NO_QWS_PROPERTIESdefine QT_NO_QWS_PROPERTIES
#endif
#ifndef QT_NO_QWS_PROXYSCREENdefine QT_NO_QWS_PROXYSCREEN
#endif
/* Styles */
#ifndef QT_NO_STYLE_MOTIFdefine QT_NO_STYLE_MOTIF
#endif
#ifndef QT_NO_STYLE_WINDOWSVISTAdefine QT_NO_STYLE_WINDOWSVISTA
#endif
/* Utilities */
#ifndef QT_NO_ANIMATIONdefine QT_NO_ANIMATION
#endif
#ifndef QT_NO_COMPLETERdefine QT_NO_COMPLETER
#endif
#ifndef QT_NO_GESTURESdefine QT_NO_GESTURES
#endif
#ifndef QT_NO_STATEMACHINEdefine QT_NO_STATEMACHINE
#endif
#ifndef QT_NO_SYSTEMTRAYICONdefine QT_NO_SYSTEMTRAYICON
#endif
#ifndef QT_NO_UNDOCOMMANDdefine QT_NO_UNDOCOMMAND
#endif
/* Widgets */
#ifndef QT_NO_LCDNUMBERdefine QT_NO_LCDNUMBER
#endif
#ifndef QT_NO_LISTWIDGETdefine QT_NO_LISTWIDGET
#endif
#ifndef QT_NO_CONTEXTMENUdefine QT_NO_CONTEXTMENU
#endif
#ifndef QT_NO_DOCKWIDGETdefine QT_NO_DOCKWIDGET
#endif
#ifndef QT_NO_WORKSPACEdefine QT_NO_WORKSPACE
#endif
#ifndef QT_NO_DIALdefine QT_NO_DIAL
#endif
#ifndef QT_NO_GRAPHICSVIEWdefine QT_NO_GRAPHICSVIEW
#endif
#ifndef QT_NO_MDIAREAdefine QT_NO_MDIAREA
#endif
#ifndef QT_NO_SYNTAXHIGHLIGHTERdefine QT_NO_SYNTAXHIGHLIGHTER
#endif
#ifndef QT_NO_TEXTBROWSERdefine QT_NO_TEXTBROWSER
#endif
#ifndef QT_NO_SPLASHSCREENdefine QT_NO_SPLASHSCREEN
#endif
#ifndef QT_NO_TABBARdefine QT_NO_TABBAR
#endif
#ifndef QT_NO_TOOLBOXdefine QT_NO_TOOLBOX
#endif
#ifndef QT_NO_WHATSTHISdefine QT_NO_WHATSTHIS
#endif
#ifndef QT_NO_TREEWIDGETdefine QT_NO_TREEWIDGET
#endif
/* Windows */
#ifndef QT_NO_WIN_ACTIVEQTdefine QT_NO_WIN_ACTIVEQT
#endif
@[EDIT: fixed code formatting, Volker]
-
I strictly followed the shadow build guide, here's my configuration,
[quote]
configure -qconfig myfeature -platform win32-msvc2005 -xplatform wincewm60professional-msvc2005 -opensource -release -no-qmake -confirm-license
[/quote]Tool qconfig provided quite a straight way to check out features and shows how they depends on others. But I'm afraid that qconfig didn't show all dependencies of those features so that I ended up with following compiling errors.
[quote]
d:Qt4.7.1.CEsrcguikernelqapplication.cpp(201) : error C2065: 'move_cursor'
: undeclared identifier
d:Qt4.7.1.CEsrcguikernelqapplication.cpp(202) : error C2065: 'copy_cursor'
: undeclared identifier
d:Qt4.7.1.CEsrcguikernelqapplication.cpp(203) : error C2065: 'link_cursor'
: undeclared identifier
d:Qt4.7.1.CEsrcguikernelqapplication.cpp(1116) : error C2039: 'move_cursor
' : is not a member of 'QApplicationPrivate'
d:qt4.7.1.cesrcguikernelqapplication_p.h(290) : see declaration of
'QApplicationPrivate'
d:Qt4.7.1.CEsrcguikernelqapplication.cpp(1116) : error C2039: 'move_cursor
' : is not a member of 'QApplicationPrivate'
d:qt4.7.1.cesrcguikernelqapplication_p.h(290) : see declaration of
'QApplicationPrivate'
d:Qt4.7.1.CEsrcguikernelqapplication.cpp(1117) : error C2039: 'copy_cursor
' : is not a member of 'QApplicationPrivate'
d:qt4.7.1.cesrcguikernelqapplication_p.h(290) : see declaration of
'QApplicationPrivate'
d:Qt4.7.1.CEsrcguikernelqapplication.cpp(1117) : error C2039: 'copy_cursor
' : is not a member of 'QApplicationPrivate'
d:qt4.7.1.cesrcguikernelqapplication_p.h(290) : see declaration of
'QApplicationPrivate'
d:Qt4.7.1.CEsrcguikernelqapplication.cpp(1118) : error C2039: 'link_cursor
' : is not a member of 'QApplicationPrivate'
d:qt4.7.1.cesrcguikernelqapplication_p.h(290) : see declaration of
'QApplicationPrivate'
d:Qt4.7.1.CEsrcguikernelqapplication.cpp(1118) : error C2039: 'link_cursor
' : is not a member of 'QApplicationPrivate'
[/quote]Then I checked out qapplication_p.h
@
#if defined(Q_WS_X11) || defined(Q_WS_WIN)
QPixmap *move_cursor;
QPixmap *copy_cursor;
QPixmap *link_cursor;
#endif
@and I also saw there was another macro Q_WS_WINCE_WM, I didn't figure out what happened.
Any suggestion?