Page 2 of 2 FirstFirst 12
Results 21 to 34 of 34

Thread: qtgui4.dll error in visual c++ 2005

  1. #21
    Join Date
    Jun 2008
    Posts
    20
    Thanks
    3

    Default Re: qtgui4.dll error in visual c++ 2005

    and now the configure -help command

    E:\qt>configure -help
    Usage: configure [-buildkey <key>]
    [-release] [-debug] [-debug-and-release] [-shared] [-static]
    [-no-fast] [-fast] [-no-exceptions] [-exceptions]
    [-no-accessibility] [-accessibility] [-no-rtti] [-rtti]
    [-no-stl] [-stl] [-no-sql-<driver>] [-qt-sql-<driver>]
    [-plugin-sql-<driver>] [-system-sqlite] [-arch <arch>]
    [-D <define>] [-I <includepath>] [-L <librarypath>]
    [-help] [-no-dsp] [-dsp] [-no-vcproj] [-vcproj]
    [-no-qmake] [-qmake] [-dont-process] [-process]
    [-no-style-<style>] [-qt-style-<style>] [-redo]
    [-saveconfig <config>] [-loadconfig <config>]
    [-qt-zlib] [-system-zlib] [-no-gif] [-qt-gif] [-no-libpng]
    [-qt-libpng] [-system-libpng] [-no-libtiff] [-qt-libtiff]
    [-system-libtiff] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg]
    [-no-libmng] [-qt-libmng] [-system-libmng] [-no-qt3support]
    [-mmx] [-no-mmx] [-no-3dnow] [-no-sse] [-no-sse2]
    [-no-iwmmxt] [-iwmmxt] [-direct3d] [-openssl] [-openssl-linked]
    [-no-openssl] [-no-dbus] [-dbus] [-dbus-linked] [-platform <spec>]
    [-qtnamespace <namespace>] [-no-phonon] [-phonon]
    [-no-webkit] [-webkit]

    Installation options:

    You may use these options to turn on strict plugin loading:

    -buildkey <key> .... Build the Qt library and plugins using the specified <k
    ey>. When the library loads plugins, it will only load those that have a matchi
    ng <key>.

    Configure options:

    The defaults (*) are usually acceptable. A plus (+) denotes a default value tha
    t needs to be evaluated. If the evaluation succeeds, the feature is included. He
    re is a short explanation of each option:

    -release ........... Compile and link Qt with debugging turned off.
    * -debug ............. Compile and link Qt with debugging turned on.
    + -debug-and-release . Compile and link two Qt libraries, with and without deb
    ugging turned on.

    * -shared ............ Create and use shared Qt libraries.
    -static ............ Create and use static Qt libraries.

    * -no-fast ........... Configure Qt normally by generating Makefiles for all p
    roject files.
    -fast .............. Configure Qt quickly by generating Makefiles only for l
    ibrary and subdirectory targets. All other Makefiles are created as wrappers wh
    ich will in turn run qmake

    -no-exceptions ..... Disable exceptions on platforms that support it.
    * -exceptions ........ Enable exceptions on platforms that support it.

    -no-accessibility .. Do not compile Windows Active Accessibility support.
    * -accessibility ..... Compile Windows Active Accessibility support.

    -no-stl ............ Do not compile STL support.
    * -stl ............... Compile STL support.

    -no-sql-<driver> ... Disable SQL <driver> entirely, by default none are turn
    ed on.
    -qt-sql-<driver> ... Enable a SQL <driver> in the Qt Library.
    -plugin-sql-<driver> Enable SQL <driver> as a plugin to be linked to at run
    time.
    Available values for <driver>:
    mysql
    psql
    oci
    odbc
    tds
    db2
    + sqlite
    sqlite2
    ibase
    (drivers marked with a '+' have been detected as availa
    ble on this system)

    -system-sqlite ..... Use sqlite from the operating system.

    -no-qt3support ..... Disables the Qt 3 support functionality.

    -no-opengl ......... Disables OpenGL functionality

    -platform <spec> ... The operating system and compiler you are building on.
    (default %QMAKESPEC%)

    -xplatform <spec> .. The operating system and compiler you are cross compili
    ng to.

    See the README file for a list of supported operating s
    ystems and compilers.

    -qtnamespace <namespace> Wraps all Qt library code in 'namespace name {...}

    -D <define> ........ Add an explicit define to the preprocessor.
    -I <includepath> ... Add an explicit include path.
    -L <librarypath> ... Add an explicit library path.
    -l <libraryname> ... Add an explicit library name, residing in a librarypath
    .

    -help, -h, -? ...... Display this information.

    Third Party Libraries:

    -qt-zlib ........... Use the zlib bundled with Qt.
    + -system-zlib ....... Use zlib from the operating system.
    See http://www.gzip.org/zlib

    -no-gif ............ Do not compile the plugin for GIF reading support.
    + -qt-gif ............ Compile the plugin for GIF reading support.
    See also src/plugins/imageformats/gif/qgifhandler.h

    -no-libpng ......... Do not compile in PNG support.
    -qt-libpng ......... Use the libpng bundled with Qt.
    + -system-libpng ..... Use libpng from the operating system.
    See http://www.libpng.org/pub/png

    -no-libmng ......... Do not compile in MNG support.
    -qt-libmng ......... Use the libmng bundled with Qt.
    + -system-libmng ..... Use libmng from the operating system.
    See See http://www.libmng.com

    -no-libtiff ........ Do not compile the plugin for TIFF support.
    -qt-libtiff ........ Use the libtiff bundled with Qt.
    + -system-libtiff .... Use libtiff from the operating system.
    See http://www.libtiff.org

    -no-libjpeg ........ Do not compile the plugin for JPEG support.
    -qt-libjpeg ........ Use the libjpeg bundled with Qt.
    + -system-libjpeg .... Use libjpeg from the operating system.
    See http://www.ijg.org

    Qt/Windows only:

    -no-dsp ............ Do not generate VC++ .dsp files.
    * -dsp ............... Generate VC++ .dsp files, only if spec "win32-msvc".

    -no-vcproj ......... Do not generate VC++ .vcproj files.
    * -vcproj ............ Generate VC++ .vcproj files, only if platform "win32-ms
    vc.net".

    -no-incredibuild-xge Do not add IncrediBuild XGE distribution commands to cu
    stom build steps.
    + -incredibuild-xge .. Add IncrediBuild XGE distribution commands to custom bu
    ild steps. This will distribute MOC and UIC steps, and other custom buildsteps w
    hich are added to the INCREDIBUILD_XGE variable.
    (The IncrediBuild distribution commands are only added
    to Visual Studio projects)

    -no-qmake .......... Do not compile qmake.
    * -qmake ............. Compile qmake.

    -dont-process ...... Do not generate Makefiles/Project files. This will over
    ride -no-fast if specified.
    * -process ........... Generate Makefiles/Project files.

    -no-rtti ........... Do not compile runtime type information.
    * -rtti .............. Compile runtime type information.

    -no-mmx ............ Do not compile with use of MMX instructions
    + -mmx ............... Compile with use of MMX instructions
    -no-3dnow .......... Do not compile with use of 3DNOW instructions
    -no-sse ............ Do not compile with use of SSE instructions
    -no-sse2 ........... Do not compile with use of SSE2 instructions
    + -direct3d .......... Compile in Direct3D support (experimental - see INSTALL
    for more info)
    -no-openssl ........ Do not compile in OpenSSL support
    + -openssl ........... Compile in run-time OpenSSL support
    -openssl-linked .... Compile in linked OpenSSL support
    -no-dbus ........... Do not compile in D-Bus support
    + -dbus .............. Compile in D-Bus support and load libdbus-1 dynamically

    -dbus-linked ....... Compile in D-Bus support and link to libdbus-1
    -no-phonon ......... Do not compile in the Phonon module
    + -phonon ............ Compile in the Phonon module (Phonon is built if a dece
    nt C++ compiler is used.)
    -no-webkit ......... Do not compile in the WebKit module
    + -webkit ............ Compile in the WebKit module (WebKit is built if a dece
    nt C++ compiler is used.)
    -arch <arch> ....... Specify an architecture.
    Available values for <arch>:
    * windows
    windowsce
    generic

    -no-style-<style> .. Disable <style> entirely.
    -qt-style-<style> .. Enable <style> in the Qt Library.
    Available styles:
    * windows
    + windowsxp
    + windowsvista
    * plastique
    * cleanlooks
    * motif
    * cde
    windowsce
    windowsmobile

    -loadconfig <config> Run configure with the parameters from file configure_<
    config>.cache.
    -saveconfig <config> Run configure and save the parameters in file configure
    _<config>.cache.
    -redo .............. Run configure with the same parameters as last time.

    Qt/WinCE only:

    -no-iwmmxt ......... Do not compile with use of IWMMXT instructions
    + -iwmmxt ............ Do compile with use of IWMMXT instructions (Qt/WinCE on
    Arm only)
    * -no-crt ............ Do not add the C runtime to default deployment rules
    -qt-crt ............ Qt identifies C runtime during project generation
    -crt <path> ........ Specify path to C runtime used for project generation.
    -no-cetest ......... Do not compile Windows CE remote test application
    + -cetest ............ Compile Windows CE remote test application
    -signature <file> .. Use file for signing the target project
    -opengl-es-cm ...... Enable support for OpenGL ES Common
    -opengl-es-cl ...... Enable support for OpenGL ES Common Lite

    E:\qt>

  2. #22
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qtgui4.dll error in visual c++ 2005

    I know what configure -help returns I told you to read it and rerun configure with the switches of your choice and then after some time, you'd get a list of features Qt will be compiled with.

  3. #23
    Join Date
    Jun 2008
    Posts
    20
    Thanks
    3

    Default Re: qtgui4.dll error in visual c++ 2005

    Quote Originally Posted by wysota View Post
    I know what configure -help returns I told you to read it and rerun configure with the switches of your choice and then after some time, you'd get a list of features Qt will be compiled with.
    1)why, why am i supposed to make a selection out of that list. I mean why not just "configure " enough on its own? and how do we know the selection i would make have my program work without error? and i am newbie to qt, what kind of choices can i have? any ideas? :S

    2) will i just run configure or nmake -distclean before that as it is stated in manual?

    "Note: If you later need to reconfigure and rebuild Qt from the same location, ensure that all traces of the previous configuration are removed by entering the build directory and typing nmake distclean before running configure again."

  4. #24
    Join Date
    Jun 2008
    Posts
    20
    Thanks
    3

    Default Re: qtgui4.dll error in visual c++ 2005

    Quote Originally Posted by wysota View Post
    I know what configure -help returns I told you to read it and rerun configure with the switches of your choice and then after some time, you'd get a list of features Qt will be compiled with.
    Hi did you mean this list? I run configure and after seeing this list just aborted configuration with CTRL-C

    here you are



    E:\qt>configure

    This is the Qt/Windows Open Source Edition.

    You are licensed to use this software under the terms of
    the GNU General Public License (GPL) version 2 or 3.

    Type '2' to view the GNU General Public License version 2 (GPLv2).
    Type '3' to view the GNU General Public License version 3 (GPLv3).
    Type 'y' to accept this license offer.
    Type 'n' to decline this license offer.

    Do you accept the terms of the license?
    y
    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=
    c:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\INCLUDE
    c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE
    c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include
    c:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\include
    C:\mingw\include\
    LIB=
    c:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB
    c:\Program Files\Microsoft Visual Studio 8\VC\LIB
    c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib
    c:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib
    C:\mingw\lib
    PATH=
    c:\Program Files\Microsoft Visual Studio 8\Common7\IDE
    c:\Program Files\Microsoft Visual Studio 8\VC\BIN
    c:\Program Files\Microsoft Visual Studio 8\Common7\Tools
    c:\Program Files\Microsoft Visual Studio 8\Common7\Tools\bin
    c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\bin
    c:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin
    c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
    c:\Program Files\Microsoft Visual Studio 8\VC\VCPackages
    C:\Perl\bin
    C:\JET5.0-EVAL\BIN
    C:\WINDOWS\SYSTEM32
    C:\WINDOWS
    C:\WINDOWS\SYSTEM32\WBEM
    C:\PROGRA~1\JAVASOFT\JRE\1.3.1\BIN
    C:\WROX
    C:\PROGRAM FILES\MICROSOFT SQL SERVER\90\TOOLS\BINN\
    C:\PROGRAM FILES\MATLAB71\BIN\WIN32

    C:\Program Files\MVTec\HALCON\BIN\x86-win32
    C:\Program Files\MVTec\HALCON\FLEXLM\x86-win32
    C:\PROGRAM FILES\QUICKTIME\QTSYSTEM\
    C:\Program Files\Microsoft Visual Studio 8\VC\
    e:\Qt\bin
    e:\qt\bin
    C:\Program Files\Microsoft Visual Studio 8\VC\bin
    C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
    C:\MinGW\bin
    e:\QT\bin
    C:\Program Files\Common Files\Symbian\tools
    C:\Program Files\CSL Arm Toolchain\bin
    You are licensed to use this software under the terms of the GNU GPL version 2 o
    r 3.
    See E:/qt/LICENSE.GPL2
    or E:/qt/LICENSE.GPL3

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

    QMAKESPEC...................win32-msvc2005 (env)
    Architecture................windows
    Maketool....................nmake
    Debug symbols...............yes
    Accessibility support.......yes
    STL support.................yes
    Exception support...........yes
    RTTI support................yes
    MMX support.................yes
    3DNOW support...............yes
    SSE support.................yes
    SSE2 support................yes
    IWMMXT support..............no
    OpenGL support..............yes
    Direct3D support............no
    OpenSSL support.............no
    QtDBus support..............no
    QtXmlPatterns support.......yes
    Phonon support..............no
    WebKit support..............yes
    Qt3 compatibility...........yes

    Third Party Libraries:
    ZLIB support............qt
    GIF support.............plugin
    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..............E:\qt
    Build is done in............E:\qt
    Install prefix..............E:\qt
    Headers installed to........E:\qt\include
    Libraries installed to......E:\qt\lib
    Plugins installed to........E:\qt\plugins
    Binaries installed to.......E:\qt\bin
    Docs installed to...........E:\qt\doc
    Data installed to...........E:\qt
    Translations installed to...E:\qt\translations
    Examples installed to.......E:\qt\examples
    Demos installed to..........E:\qt\demos

    Creating qmake...

    Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
    Copyright (C) Microsoft Corporation. All rights reserved.

    Creating makefiles in src...
    Generating Visual Studio project files...

    E:\qt>

  5. #25
    Join Date
    Jun 2008
    Posts
    20
    Thanks
    3

    Default Re: qtgui4.dll error in visual c++ 2005

    Quote Originally Posted by wysota View Post
    I know what configure -help returns I told you to read it and rerun configure with the switches of your choice and then after some time, you'd get a list of features Qt will be compiled with.
    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.
    wow i think I don't have some SDK but I have microsoft platform SDK for Windows Server 2003 R2, and I am using windows XZp/sp2. could this be the reason of the error :S and today is sunday and sunny!!!

  6. #26
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qtgui4.dll error in visual c++ 2005

    This is the SDK for DirectX, not some general SDK. It's perfectly fine that you don't have it. The configuration process seems fine, although you might want to use a switch or two - disabling webkit or patternist will reduce compilation time greatly and if you don't need those modules, disabling them would be a good idea.

    Now I suggest you recompile Qt from scratch - unarchive the source bundle again, run configure with the switches of your choice and then call nmake. Watch out for errors and if any occur, paste them here - but the first error only, not the whole compilation log please

  7. #27
    Join Date
    Jun 2008
    Posts
    20
    Thanks
    3

    Default Re: qtgui4.dll error in visual c++ 2005

    Quote Originally Posted by wysota View Post
    This is the SDK for DirectX, not some general SDK. It's perfectly fine that you don't have it. The configuration process seems fine, although you might want to use a switch or two - disabling webkit or patternist will reduce compilation time greatly and if you don't need those modules, disabling them would be a good idea.

    Now I suggest you recompile Qt from scratch - unarchive the source bundle again, run configure with the switches of your choice and then call nmake. Watch out for errors and if any occur, paste them here - but the first error only, not the whole compilation log please
    Hi again, I will do you tell me to do definitely but I installed MinGW as well. does that make any problem for installing source code of MSVC?

    ps: i couldn't make it work in mingw either!

  8. #28
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qtgui4.dll error in visual c++ 2005

    Please do as I said - you'll save the time of us both. Remove everything, unzip the source, run configure <your options go here> and then nmake.

    In doubt please consult our wiki, there is an article there describing how to make things work.

  9. #29
    Join Date
    Jun 2008
    Posts
    20
    Thanks
    3

    Default Re: qtgui4.dll error in visual c++ 2005

    [QUOTE=Comptrol;73318]Hi wysota, as i told you before, i appreciated your help a lot. So I have tried to minimize my posts in order not to keep you busy; you didn't need to emphasize our posts could be burden for you; I am aware of this. And honestly, I really prefer not to ask for help[there are other documentations anyway, such as wiki and forum pages]. however , since I spent a few days of mine installing QT, I thought it was high time to demand a help from a pro. Although I still appreciate your help, warning people as if they were kinda burden to you is really rude of you. So, I would rather not take your precious time anymore. you can keep it for other things as you stated above. Thanks one more time for your great help

    If any other helpful member would like to see the last lines of nmake command of qt.4.3.2 source package, here it is:

    main.cpp
    demoscene.cpp
    mainwindow.cpp
    demoitem.cpp
    score.cpp
    demoitemanimation.cpp
    itemcircleanimation.cpp
    demotextitem.cpp
    headingitem.cpp
    dockitem.cpp
    scanitem.cpp
    letteritem.cpp
    examplecontent.cpp
    menucontent.cpp
    guide.cpp
    guideline.cpp
    guidecircle.cpp
    menumanager.cpp
    colors.cpp
    textbutton.cpp
    Generating Code...
    Compiling...
    imageitem.cpp
    Generating Code...
    cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189
    -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_XML_LIB -DQ
    T_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"
    ..\..\include\QtCore" -I"..\..\include\QtCore" -I"..\..\include\QtNetwork" -I"..
    \..\include\QtNetwork" -I"..\..\include\QtGui" -I"..\..\include\QtGui" -I"..\..\
    include\QtOpenGL" -I"..\..\include\QtOpenGL" -I"..\..\include\QtXml" -I"..\..\in
    clude\QtXml" -I"..\..\include" -I"e:\qt\include\QtAssistantClient" -I"..\..\incl
    ude\QtAssistant" -I"e:\qt\include\ActiveQt" -I".moc" -I"." -I"..\..\mkspecs\win3
    2-msvc2005" -Fo.obj\ @C:\DOCUME~1\Halliday\LOCALS~1\Temp\nm18A3.tmp
    moc_mainwindow.cpp
    moc_demoitemanimation.cpp
    moc_menumanager.cpp
    Generating Code...
    cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189
    -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_XML_LIB -DQ
    T_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"
    ..\..\include\QtCore" -I"..\..\include\QtCore" -I"..\..\include\QtNetwork" -I"..
    \..\include\QtNetwork" -I"..\..\include\QtGui" -I"..\..\include\QtGui" -I"..\..\
    include\QtOpenGL" -I"..\..\include\QtOpenGL" -I"..\..\include\QtXml" -I"..\..\in
    clude\QtXml" -I"..\..\include" -I"e:\qt\include\QtAssistantClient" -I"..\..\incl
    ude\QtAssistant" -I"e:\qt\include\ActiveQt" -I".moc" -I"." -I"..\..\mkspecs\win3
    2-msvc2005" -Fo.obj\ @C:\DOCUME~1\Halliday\LOCALS~1\Temp\nm18A4.tmp
    qrc_qtdemo.cpp
    link /LIBPATH:"e:\qt\lib" /LIBPATH:"e:\qt\lib" /NOLOGO /INCREMENTAL:NO /
    MANIFESTFILE:".obj\qtdemo.intermediate.manifest" /SUBSYSTEM:WINDOWS /OUT:..\..\b
    in\qtdemo.exe @C:\DOCUME~1\Halliday\LOCALS~1\Temp\nm18A5.tmp
    mt.exe -nologo -manifest ".obj\qtdemo.intermediate.manifest" -outputreso
    urce:..\..\bin\qtdemo.exe;1

    E:\qt>
    Thanks in advance

  10. #30
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qtgui4.dll error in visual c++ 2005

    Quote Originally Posted by Comptrol View Post
    Although I still appreciate your help, warning people as if they were kinda burden to you is really rude of you.
    I never meant anything like that. Let me rephrase the statement - "you'll save your time and our diskspace". If I didn't want to use my time by answering such questions, I simply wouldn't answer. Moreover I wouldn't be here and there is a good chance so wouldn't that site, at least in its current form.

    Looks like your compilation was successful. You'll be probably having problems because of white spaces in the installation path ("Documents and Files"), but here it shouldn't be an issue. Please check what resides in the bin and lib directories. You should have all the tools and all the libs there (dll files in bin and lib files in lib). I think you built Qt in debug mode only (because you didn't pass -release or -debug-and-release switches to configure), so all the libraries should have names ending with "d". Is that correct?

  11. #31
    Join Date
    Jun 2008
    Posts
    20
    Thanks
    3

    Default Re: qtgui4.dll error in visual c++ 2005

    Quote Originally Posted by wysota View Post
    Looks like your compilation was successful. You'll be probably having problems because of white spaces in the installation path ("Documents and Files"), but here it shouldn't be an issue. Please check what resides in the bin and lib directories. You should have all the tools and all the libs there (dll files in bin and lib files in lib). I think you built Qt in debug mode only (because you didn't pass -release or -debug-and-release switches to configure), so all the libraries should have names ending with "d". Is that correct?
    [ *.ilk *.pdb] files have only names with -d

    qtsqld4.ilk
    qtguid4.pdb
    etc.

    however, others[*.dll *.prl *.exp *.lib] do have both -d suffix and no suffix. for instance

    qtxml4.dll
    qtxml4d.dll
    qtsvg4.exp
    qtsvg4d.exp
    etc.
    etc.

    what other extensions should I have in order to run in both debug and release modes according to you?

    In my opinion, my programs work both in debug and release modes now. However, when I run in release mode I got a warning "debugging information cannot be found..." and I handle that error by changing

    project->xxx properties->linker->debugging->Generate Debug Info property to yes.
    as for the design tools, since I installed 4.3.2 version[not the 4.4.0 version you advices, because it didn't configure without errors] I have designer, assistant and linguist design tools.

    AFAIK, There are 3 ways to make a project by using MSVC

    1)using designer and run

    qmake -project
    qmake -tp vc nameoftheprohect.pro

    and running vcproj file afterwards in MSVC. this enables me to work on a win32 project so that I can change debugging settings to prevent the warning appearing in the release mode,which I mentioned above.

    2)Hard-coding on makefile project.

    However, in this case I must set some makefile directories from

    project-> xxx project properties->configuration properties->nmake

    to autogenerate make files. such that:

    for RELEASE MODE


    Build Command Line :

    qmake -project
    qmake
    nmake release

    Rebuild All Command Line:

    qmake -project
    qmake
    nmake release-clean
    nmake release

    Clean Command Line:

    nmake release-clean

    Output:
    release\xxx.exe



    for DEBUG MODE


    Build Command Line :

    qmake -project
    qmake
    nmake debug

    Rebuild All Command Line:

    qmake -project
    qmake
    nmake debug-clean
    nmake debug

    Clean Command Line:

    nmake debug-clean

    Output:
    debug\xxx.exe

    However, in this case I cannot handle the warning I mentioned above.frankly, I don't know what to do to prevent it in this case.

    3)Hard coding for vcproj file.

    In this case, after hardcoding I run the commands above again in the command line to produce vcproj file. and I open it from MSVC. However, whenever I add additional header or files I must run those commands again, Unlike MakeFile project.


    I think only think I don't have is that I couldn't integrate the designer tool on MSVC; is this available only for the commercial products?



    Lastly, can I uninstall MinGW version, which I couldn't make work? Can this effect the QT working with MSVC ?

    thanks for your effort again.

  12. #32
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qtgui4.dll error in visual c++ 2005

    Quote Originally Posted by Comptrol View Post
    what other extensions should I have in order to run in both debug and release modes according to you?
    That's enough. I'm surprised Qt built itself in both debug and release modes withouth the -debug-and-release switch. Or did you use it?

    In my opinion, my programs work both in debug and release modes now. However, when I run in release mode I got a warning "debugging information cannot be found..."
    Release mode is not meant for debugging, so I'd say that's normal.

    as for the design tools, since I installed 4.3.2 version[not the 4.4.0 version you advices, because it didn't configure without errors]
    What errors were you getting?

    1)using designer and run
    Out of the three ways you mentioned the above one is best. With others you'll run into problems sooner or later.

    There is a fourth method though - use qmake to generate Makefiles and nmake to execute them and use Visual Studio only for editing and debugging. This is the safest although not the user friendliest way.

    I think only think I don't have is that I couldn't integrate the designer tool on MSVC; is this available only for the commercial products?
    Yes, this is only for commercial licensees.


    Lastly, can I uninstall MinGW version, which I couldn't make work?
    Yes, of course.

    Can this effect the QT working with MSVC ?
    No, I don't think so.

  13. #33
    Join Date
    Jun 2008
    Posts
    20
    Thanks
    3

    Default Re: qtgui4.dll error in visual c++ 2005

    That's enough. I'm surprised Qt built itself in both debug and release modes withouth the -debug-and-release switch. Or did you use it?
    no , I didn't add them. I just wrote configure and nmake afterwards.

    What errors were you getting?
    something related to libraries again , but I don't think I will try installing it one more time, I am really tired of installing them . besides, my 4.3.2 version works fine , thanks to you )


    Out of the three ways you mentioned the above one is best. With others you'll run into problems sooner or later.

    There is a fourth method though - use qmake to generate Makefiles and nmake to execute them and use Visual Studio only for editing and debugging. This is the safest although not the user friendliest way.
    thanks for this advice as well, I will try this one .

    lastly, thanks a lot hundred of times

  14. #34
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qtgui4.dll error in visual c++ 2005

    Quote Originally Posted by wysota View Post
    That's enough. I'm surprised Qt built itself in both debug and release modes withouth the -debug-and-release switch. Or did you use it?
    That's the default on windows so no need to be surprised

Similar Threads

  1. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 07:51
  2. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 09:17
  3. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 14:15
  4. Qt-4.2.2 qmake won't compile under visual studio 2005 on vista
    By moowy in forum Installation and Deployment
    Replies: 7
    Last Post: 13th January 2007, 22:06
  5. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 22:41

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.