Results 1 to 3 of 3

Thread: minimal-config option for configure.exe ?

  1. #1
    Join Date
    Dec 2007
    Location
    Colorado, USA
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default minimal-config option for configure.exe ?

    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!

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: minimal-config option for configure.exe ?

    Try "-qconfig minimal".
    J-P Nurmi

  3. #3
    Join Date
    Dec 2007
    Location
    Colorado, USA
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: minimal-config option for configure.exe ?

    Quote Originally Posted by jpn View Post
    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".

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.