PDA

View Full Version : minimal-config option for configure.exe ?



Lynn
4th December 2007, 20:37
WinXp-Sp2 and VisStudio-2005 and open-source qt-4.3.2

I'm wrestling with getting smaller executables with static linking. I was able to get the tutorial/t1.ex reduced from about 4.0mb to 2.9mb with lots of:
configure -static -release -no-exceptions .... -no-stl etc. (about 20 of them)

After the confirmation of using GPL and before the compilation starts, there are a bunch of lines that confirm which options for configure.exe are in effect. There are references to:
minimal-config
small-config
medium-config
large-config
full-config
build-all

I am curious what happens with minimal-config, but I don't see any way of specifying this. I tried:
configure -loadconfig minimal-config
but that didn't seem to make any difference (at least as far as the confirmation that happens when configure.exe gets started after the confirmation of acception GPL).

Is there an argument to configure.exe to have it do a "minimal-config"?

configure -no-large-config caused an error statement about unknown option.

configure -disable-large-config was accepted, but didn't seem to do anything.

Can this be accomplished some other way?

Thanks!

jpn
4th December 2007, 20:49
Try "-qconfig minimal".

Lynn
4th December 2007, 22:20
Try "-qconfig minimal".

Thanks for the reply, but the result of the command line:
configure -static -release -platform win32-msvc2005 -qconfig minimal

is a bunch of compiler errors, starting with:

cl -c -Foproject.obj -W3 -nologo -O2 -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -IC:\Temp\_Stage\src\corelib\arch\generic -IC:\Temp\_Stage\include -IC:\Temp\_Stage\include\QtCore -IC:\Temp\_Stage\include -IC:\Temp\_Stage\include\QtCore -IC:\Temp\_Stage\src\corelib\global -IC:\Temp\_Stage\include\QtScript -IC:\Temp\_Stage\mkspecs\win32-msvc -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQMAKE_OPENSOURCE_EDITION project.cpp
project.cpp
c:\temp\_stage\qmake\project.h(77) : error C2146: syntax error : missing ';' before identifier 'eng'
c:\temp\_stage\qmake\project.h(77) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\temp\_stage\qmake\project.h(77) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
project.cpp(154) : error C2146: syntax error : missing ';' before identifier 'qscript_projectWrapper'
project.cpp(154) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
project.cpp(154) : error C2065: 'QScriptEngine' : undeclared identifier
project.cpp(154) : error C2065: 'eng' : undeclared identifier
project.cpp(154) : error C2065: 'project' : undeclared identifier
project.cpp(154) : error C2275: 'QMakeProject' : illegal use of this type as an expression
c:\temp\_stage\qmake\project.h(62) : see declaration of 'QMakeProject'
project.cpp(155) : error C2059: syntax error : 'const'
project.cpp(157) : error C2061: syntax error : identifier 'QScriptValue'
project.cpp(159) : error C2065: 'QScriptValueIterator' : undeclared identifier
project.cpp(159) : error C2146: syntax error : missing ';' before identifier 'it'
project.cpp(159) : error C2065: 'js' : undeclared identifier
project.cpp(159) : error C3861: 'it': identifier not found
project.cpp(160) : error C2065: 'it' : undeclared identifier
project.cpp(160) : error C2228: left of '.hasNext' must have class/struct/union
type is ''unknown-type''
project.cpp(160) : fatal error C1903: unable to recover from previous error(s); stopping compilation


The above errors also show up with "minimal", "small", "medium", and "large". They don't show up with "full".