Results 1 to 2 of 2

Thread: Fail to deploy a static app in qt 4.5

  1. #1
    Join Date
    Feb 2009
    Location
    Guangzhou,China
    Posts
    89
    Thanks
    17
    Qt products
    Qt4
    Platforms
    Windows

    Default Fail to deploy a static app in qt 4.5

    I can do it in qt4.4.3.
    > configure -static -release -no-exceptions
    > mingw32-make sub-src

    But I fail in qt 4.5 in the same way.

    There are two files qtvars.bat and qtenv.bat in qt directory. Even I try both, but fail. The message is here:




    Setting Direct3D to NO, since the proper Direct3D SDK was not detected.
    Make sure you have the Direct3D SDK installed, and that you have run
    the <path to SDK>\Utilities\Bin\dx_setenv.cmd script.
    The D3D SDK library path *needs* to appear before the Platform SDK library
    path in your LIB environment variable.
    All the required DirectShow/Direct3D files couldn't be found.
    Make sure you have either the platform SDK AND the DirectX SDK or the Windows SD
    K installed.
    If you have the DirectX SDK installed, please make sure that you have run the <p
    ath to SDK>\SetEnv.Cmd script.
    Environment:
    INCLUDE=
    Unset
    LIB=
    Unset
    PATH=
    c:\Qt\2009.01\qt\bin
    c:\Qt\2009.01\bin
    c:\Qt\2009.01\mingw\bin
    C:\WINDOWS\System32
    You are licensed to use this software under the terms of the GNU LGPL version 2.
    1 or the GNU GPL version 3.
    See C:/Qt/2009.01/qt/LICENSE.LGPL
    or C:/Qt/2009.01/qt/LICENSE.GPL3

    Configuration:
    dist-config
    large-config
    medium-config
    minimal-config
    small-config
    full-config
    release
    Qt Configuration:
    release
    zlib
    gif
    png
    accessibility
    qt3support
    opengl
    ipv6
    scripttools
    webkit
    svg
    minimal-config
    small-config
    medium-config
    large-config
    full-config

    QMAKESPEC...................win32-g++ (env)
    Architecture................windows
    Maketool....................mingw32-make
    Debug symbols...............no
    Accessibility support.......yes
    STL support.................yes
    Exception support...........no
    RTTI support................yes
    MMX support.................no
    3DNOW support...............no
    SSE support.................no
    SSE2 support................no
    IWMMXT support..............no
    OpenGL support..............yes
    Direct3D support............no
    OpenSSL support.............no
    QtDBus support..............no
    QtXmlPatterns support.......no
    Phonon support..............no
    WebKit support..............yes
    QtScriptTools support.......yes
    Graphics System.............raster
    Qt3 compatibility...........yes

    Third Party Libraries:
    ZLIB support............qt
    GIF support.............yes
    TIFF support............plugin
    JPEG support............plugin
    PNG support.............qt
    MNG support.............plugin

    Styles:
    Windows.................yes
    Windows XP..............yes
    Windows Vista...........yes
    Plastique...............yes
    Cleanlooks..............yes
    Motif...................yes
    CDE.....................yes
    Windows CE..............no
    Windows Mobile..........no

    Sql Drivers:
    ODBC....................no
    MySQL...................no
    OCI.....................no
    PostgreSQL..............no
    TDS.....................no
    DB2.....................no
    SQLite..................plugin (qt)
    SQLite2.................no
    InterBase...............no

    Sources are in..............C:\Qt\2009.01\qt
    Build is done in............C:\Qt\2009.01\qt
    Install prefix..............C:\Qt\2009.01\qt
    Headers installed to........C:/Qt/2009.01/qt/include
    Libraries installed to......C:/Qt/2009.01/qt/lib
    Plugins installed to........C:/Qt/2009.01/qt/plugins
    Binaries installed to.......C:/Qt/2009.01/qt/bin
    Docs installed to...........C:/Qt/2009.01/qt/doc
    Data installed to...........C:/Qt/2009.01/qt
    Translations installed to...C:/Qt/2009.01/qt/translations
    Examples installed to.......C:/Qt/2009.01/qt/examples
    Demos installed to..........C:/Qt/2009.01/qt/demos

    WARNING: Using static linking will disable the use of plugins.
    Make sure you compile ALL needed modules into the library.
    Creating qmake...
    g++ -c -oqconfig.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
    nerators/mac -IC:\Qt\2009.01\qt/include -IC:\Qt\2009.01\qt/include/QtCore -IC:\Q
    t\2009.01\qt/include -IC:\Qt\2009.01\qt/include/QtCore -IC:\Qt\2009.01\qt/src/co
    relib/global -IC:\Qt\2009.01\qt/include/QtScript -IC:\Qt\2009.01\qt/mkspecs/win3
    2-g++ -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PCRE -
    DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_Q
    MAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQM
    AKE_OPENSOURCE_EDITION C:\Qt\2009.01\qt/src/corelib/global/qconfig.cpp
    g++ -o qmake.exe project.o main.o makefile.o unixmake.o unixmake2.o mingw_make.
    o option.o winmakefile.o projectgenerator.o property.o meta.o makefiledeps.o met
    amakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o msvc_nmake.o msvc_dsp.o m
    svc_vcproj.o msvc_objectmodel.o qbitarray.o qbuffer.o qbytearray.o qcryptographi
    chash.o qvsnprintf.o qbytearraymatcher.o qconfig.o qdatetime.o qdir.o qdiriterat
    or.o qfile.o qtemporaryfile.o qfileinfo.o qabstractfileengine.o qfsfileengine.o
    qfsfileengine_iterator.o qfsfileengine_win.o qfsfileengine_iterator_win.o qgloba
    l.o qhash.o qiodevice.o qlibraryinfo.o qlistdata.o qlinkedlist.o qlocale.o qmall
    oc.o qmap.o qregexp.o qstring.o qstringlist.o qtextstream.o quuid.o qvector.o qu
    rl.o qsettings.o qsettings_win.o qvariant.o qmetatype.o qnumeric.o qscriptasm.o
    qscriptast.o qscriptastvisitor.o qscriptcompiler.o qscriptecmaarray.o qscriptecm
    aboolean.o qscriptecmacore.o qscriptecmadate.o qscriptecmafunction.o qscriptecma
    global.o qscriptecmamath.o qscriptecmanumber.o qscriptecmaobject.o qscriptecmare
    gexp.o qscriptecmastring.o qscriptecmaerror.o qscriptcontext_p.o qscriptengine.o
    qscriptengine_p.o qscriptengineagent.o qscriptextenumeration.o qscriptextvarian
    t.o qscriptcontext.o qscriptcontextinfo.o qscriptfunction.o qscriptgrammar.o qsc
    riptlexer.o qscriptclassdata.o qscriptparser.o qscriptprettypretty.o qscriptsynt
    axchecker.o qscriptclass.o qscriptclasspropertyiterator.o qscriptstring.o qscrip
    tvalue.o qscriptvalueimpl.o qscriptvalueiterator.o qscriptvalueiteratorimpl.o -l
    ole32 -luuid
    copy qmake.exe C:\Qt\2009.01\qt\bin\qmake.exe
    1 file(s) copied.
    Creating makefiles in src...
    Generating Makefiles...
    Could not find mkspecs for your QMAKESPEC(win32-g++) after trying:
    C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_cre
    ate_more/Troll/4.5.0/qt\mkspecs
    Error processing project file: C:/Qt/2009.01/qt/projects.pro
    Qmake failed, return code 3

    Can anyone tell me why and how to kill this problem?

    Thanks very much!

  2. #2
    Join Date
    Apr 2009
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Fail to deploy a static app in qt 4.5

    I had similar problem as yours when I am using 2009.01 version.However I've read somewhere that it seems to have a bug (correct me if Im wrong) so I've removed and tried 2009.02 version instead.

    now it is able to pass this step "configure -static -release -no-exceptions"

    but still fail at "mingw32-make sub-src"
    ...

    http://www.qtcentre.org/forum/f-inst...ows-21412.html

Similar Threads

  1. Replies: 22
    Last Post: 8th October 2008, 13:54
  2. new problem with simple C++ static variables
    By landonmkelsey in forum Qt Programming
    Replies: 2
    Last Post: 18th August 2008, 05:42
  3. Replies: 16
    Last Post: 23rd May 2008, 10:12
  4. static declaration
    By jhearon in forum Qt Programming
    Replies: 1
    Last Post: 18th February 2008, 21:37
  5. Accessing to a static variable from the same class
    By xgoan in forum General Programming
    Replies: 6
    Last Post: 5th March 2007, 10:50

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.