Brand new to QT--Can't deploy



  • I'm new to QT and can't figure out how to deploy my application for installation. How do I do this? I noticed there is a large difference in coding compared to the ANSI standard. Is there a guide or some site I can review on building files and proper coding?

    The file is just a test file I'm creating to see how things work.:)

    Edit: Forgot to mention This is on Windows Vista Home Premium. :)


  • Moderators

    What are you trying to do? It should be no problem to run a test application inside Qt Creator. If you want to deploy that application you will need to pack it together with the required Qt libraries (and Qt plugins for image formats needed, etc.!). That's it.

    Which difference do you see to coding in the ANSI standard? There is some documentation on the style we use when working on Qt and related projects: "here":http://qt.gitorious.org/qt/pages/QtCodingStyle and "here":http://qt.gitorious.org/qt/pages/CodingConventions. Does that help?



  • Regarding deployment, there is a "Deploying an Application on Windows":http://doc.trolltech.com/4.7/deployment-windows.html page in the Qt docs that gives you a good start. If you need an installer have a look at "InnoSetup":http://www.jrsoftware.org/isinfo.php or "NSIS (Nullsoft Scriptable Install System)":http://nsis.sourceforge.net/Main_Page



  • I'm trying to package the application so I can install it. I can debug it, but cannot package it.

    A lot of these are refereed to as Q. Like QApplications. Unless this is how QT recognizes ui files like buttons, toolbars etc.



  • I got errors. The guide doesn't work.

    Setting up a MinGW/Qt only environment...
    -- QTDIR set to C:\Qt\2010.05\qt
    -- PATH set to C:\Qt\2010.05\qt\bin
    -- Adding C:\Qt\2010.05\bin to PATH
    -- Adding C:\Windows\System32 to PATH
    -- QMAKESPEC set to win32-g++

    C:\Qt\2010.05\qt>cd C:
    C:\Qt\2010.05\qt

    C:\Qt\2010.05\qt>path\to\QT

    C:\Qt\2010.05\qt>configure -static
    Which edition of Qt do you want to use ?
    Type 'c' if you want to use the Commercial Edition.
    Type 'o' if you want to use the Open Source Edition.
    o

    This is the Qt for Windows Open Source Edition.

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

    Type '3' to view the GNU General Public License version 3 (GPLv3).
    Type 'L' to view the Lesser GNU General Public License version 2.1 (LGPLv2.1).
    Type 'y' to accept this license offer.
    Type 'n' to decline this license offer.

    Do you accept the terms of the license?
    y
    All the required DirectShow/Direct3D files couldn't be found.
    Make sure you have either the platform SDK AND the DirectShow SDK or the Windows
    SDK installed.
    If you have the DirectShow SDK installed, please make sure that you have run the
    <path to SDK>\SetEnv.Cmd script.
    vmr9.h not found
    dshow.h not found
    strmiids.lib not found
    dmoguids.lib not found
    msdmo.lib not found
    d3d9.h not found

    WARNING: Using static linking will disable the WebKit module.

    Environment:
    INCLUDE=
    Unset
    LIB=
    Unset
    PATH=
    \to\QT
    You are licensed to use this software under the terms of the GNU GPL version 3.Y
    ou are licensed to use this software under the terms of the Lesser GNU LGPL vers
    ion 2.1.
    See C:/Qt/2010.05/qt3

    or C:/Qt/2010.05/qtL

    Configuration:
    minimal-config
    small-config
    medium-config
    large-config
    full-config
    build_all
    debug
    Qt Configuration:
    release
    debug
    zlib
    gif
    tiff
    jpeg
    png
    mng
    accessibility
    qt3support
    opengl
    s60
    ipv6
    script
    scripttools
    xmlpatterns
    multimedia
    audio-backend
    declarative
    native-gestures
    svg
    minimal-config
    small-config
    medium-config
    large-config
    full-config

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

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

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

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

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

    WARNING: Using static linking will disable the use of plugins.
    Make sure you compile ALL needed modules into the library.
    Creating qmake...
    execute: File or path is not found (mingw32-make)
    execute: File or path is not found (mingw32-make)
    Cleaning qmake failed, return code -1

    C:\Qt\2010.05\qt>nmake sub-src
    'nmake' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Qt\2010.05\qt>nmake sub-src
    'nmake' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Qt\2010.05\qt>nmake sub-src
    'nmake' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Qt\2010.05\qt>


  • Moderators

    Looks like your mingw and nmake is not found. Set up your PATH properly and you should be fine.

    PS: You are aware of the license implications of static linking?



  • Why do you recompile Qt if you want to deploy your application?

    Using static linking is not recommended, better go with the dynamic libs. You must package your program executable (.exe) together with the needed DLLs (e.g. QtCore4.dll, QtGui4.dll, and whatever your program needs) and the misc files you need for your program to work.

    Regarding the error itself:
    Seems that mingw32-make is not in your path. nmake is the make tool of visual studio, which is pretty useless in the MinGW environment.



  • @Tobias I'm not familiar with the license. Other then the gpl. Had a hard time figuring out the license as they weren't clear.

    I'm a beginner with C++ and haven't a clue on most things. Mostly just trying out the features and seeing how things are. I've used Visual Basic Express/Studio in the past and found they were easier to navigate and do things. QT is rather confusing and probably go to Visual C++ Express.



  • Qt is the libs, Qt creator an IDE like Visual Studio.

    Deploying an app is equally complicated with both IDEs :-)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.