Ignore:
Timestamp:
Mar 8, 2010, 12:52:58 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.2 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/doc/src/deployment/deployment.qdoc

    r561 r651  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    111111        \o \l {Phonon Module}{Phonon}
    112112        \o \l {Qt3Support}
     113        \o
    113114    \endtable
    114115
     
    118119    however, the Qt run-time is compiled into the executable.
    119120
    120     In particular, you will need to deploy Qt plugins, such as
    121     JPEG support or SQL drivers. For more information about plugins,
    122     see the \l {plugins-howto.html}{How to Create Qt Plugins}
    123     documentation.
     121    In general, you should deploy all plugins that your build of Qt uses,
     122    excluding only those that you have identified as being unnecessary
     123    for your application and its users.
     124
     125    For instance, you may need to deploy plugins for JPEG support and
     126    SQL drivers, but you should also deploy plugins that your users may
     127    require, including those for accessibility.
     128    For more information about plugins, see the
     129    \l{plugins-howto.html}{How to Create Qt Plugins} documentation.
    124130
    125131    When deploying an application using the shared library approach
     
    927933
    928934    "C:/customPath/plugins "
    929     "C:/Qt/4.6.1/plugins"
     935    "C:/Qt/4.6.2/plugins"
    930936    "E:/myApplication/directory/"
    931937
     
    958964    \title Deploying an Application on Mac OS X
    959965
    960     Starting with version 4.5, Qt now includes a \l {macdeploy}{deployment tool}
    961     that automates the prodecures described in this document.
    962 
    963     This documentation will describe how to create a bundle, and how
    964     to make sure that the application will find the resources it needs
    965     at run-time. We will demonstrate the procedures in terms of
    966     deploying the \l {tools/plugandpaint}{Plug & Paint} application
    967     that is provided in Qt's examples directory.
     966    Beginning with Qt 4.5, a \l {macdeploy}{deployment tool} is
     967    included that automates the prodecures described here.
     968
     969    This document describes how to create a bundle and how to make
     970    sure that the application will find the resources it needs at
     971    run-time. We demonstrate the procedures in terms of deploying the
     972    \l {tools/plugandpaint}{Plug & Paint} application that is provided
     973    in Qt's examples directory.
    968974   
    969975    \tableofcontents
     
    13751381    \section2 Mac OS X Version Dependencies
    13761382
    1377     Qt 4.2 has been designed to be built and deployed on Mac OS X 10.3
    1378     up until the current version as of this writing, Mac OS X 10.4 and
    1379     all their minor releases. Qt achieves this by using "weak
    1380     linking." This means that Qt tests if a function added in newer
    1381     versions of Mac OS X is available on the computer it is running on
    1382     before it uses it. This results in getting access to newer
    1383     features when running on newer versions of OS X while still
    1384     remaining compatible on older versions.
     1383    From Qt 4.6, Mac OS X 10.3 (Panther) is no longer supported.  Qt
     1384    4.6 applications can be built and deployed on Mac OS X 10.4
     1385    (Tiger) and higher. This is achieved using \e{weak linking}. In
     1386    \e{weak linking}, Qt tests whether a function added in a newer
     1387    version of Mac OS X is available on the computer it is running
     1388    on. This allows Qt to use newer features, when it runs on a newer
     1389    version of OS X, while remaining compatible on the older versions.
    13851390
    13861391    For more information about cross development issues on Mac OS X,
     
    13881393    {http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development/index.html}{Apple's Developer Website}.
    13891394
    1390     Since the linker is set to be compatible with all OS X version, you have to
    1391     change the \c MACOSX_DEPLOYMENT_TARGET environment variable to get weak
    1392     linking to work for your application. You can add:
     1395    Since the linker is set to be compatible with all OS X versions,
     1396    you must change the \c MACOSX_DEPLOYMENT_TARGET environment
     1397    variable to get \e{weak linking} to work for your application. You
     1398    can add:
    13931399
    13941400    \snippet doc/src/snippets/code/doc_src_deployment.qdoc 51
    13951401
    1396     to your .pro file and qmake will take care of this for you.
    1397 
    1398     However, there is a bit of a wrinkle to keep in mind when your are
    1399     deploying. Mac OS X 10.4 ("Tiger") ships GCC 4.0 as its default
    1400     compiler. This is also the GCC compiler we use for building the
    1401     binary Qt package. If you use GCC 4.0 to build your application,
    1402     it will link against a dynamic libstdc++ that is only available on
    1403     Mac OS X 10.4 and Mac OS X 10.3.9.  The application will refuse to
    1404     run on older versions of the operating system.
     1402    to your .pro file, and qmake will take care of this for you.
    14051403
    14061404    For more information about C++ runtime environment, see \l
    14071405    {http://developer.apple.com/documentation/DeveloperTools/Conceptual/CppRuntimeEnv/index.html}{Apple's Developer Website}
    14081406
    1409     If you want to deploy to versions of Mac OS X earlier than 10.3.9,
    1410     you must build with GCC 3.3 which is the default on Mac OS X
    1411     10.3. GCC 3.3 is also available on the Mac OS X 10.4 "Xcode Tools"
    1412     CD and as a download for earlier versions of Mac OS X from Apple
    1413     (\l {https://connect.apple.com/}{connect.apple.com}). You can use
    1414     Apple's \c gcc_select(1) command line tool to switch the default
    1415     complier on your system.
    1416 
    14171407    \section3 Deploying Phonon Applications on Mac OS X
    14181408
    14191409    \list
    1420         \o If you build your Phonon application on Tiger, it will work on
    1421            Tiger, Leopard and Panther.
    1422         \o If you build your application on Leopard, it will \bold not work
    1423         on Panther unless you rename the libraries with the following command
    1424         after you have built your application:
    1425 
    1426         \snippet doc/src/snippets/code/doc_src_deployment.qdoc 51a
    1427 
    1428         This command must be invoked in the directory where
    1429         \c{libphonon_qt7.dylib} is located, usually in
    1430         \c{yourapp.app/Contents/plugins/phonon_backend/}.
    1431         \o The \l {macdeploy}{deployment tool} will perform this step for you.
    1432 
    1433         \o If you are using Leopard, but would like to build your application
     1410
     1411        \o If you build your Qt 4.6 Phonon application on OS X 10.4
     1412           (Tiger), it will run on OS X 10.4 and higher.
     1413
     1414        \o If you are using Leopard but would like to build your application
    14341415        against Tiger, you can use:
    14351416
     
    14391420    \section2 Architecture Dependencies
    14401421
    1441     The Qt for Mac OS X libraries, tools, and examples can be built "universal"
    1442     (i.e. they run natively on both Intel and PowerPC machines).  This
    1443     is accomplished by passing \c -universal on the \c configure line
    1444     of the source package, and requires that you use GCC 4.0.x. On
    1445     PowerPC hardware you will need to pass the universal SDK as a
    1446     command line argument to the Qt configure command. For example:
     1422    The Qt for Mac OS X libraries, tools, and examples can be built
     1423    "universal" (i.e. they run natively on both Intel and PowerPC
     1424    machines).  This is accomplished by passing \c -universal on the
     1425    \c configure line of the source package, and requires that you use
     1426    GCC 4.0.x. On PowerPC hardware you will need to pass the universal
     1427    SDK as a command line argument to the Qt configure command. For
     1428    example:
    14471429
    14481430    \snippet doc/src/snippets/code/doc_src_deployment.qdoc 52
     
    15681550    S60 3rd edition FP1, S60 3rd edition FP2 and S60 5th edition devices.
    15691551
    1570     As a last step we will embed the \c qt_installer.sis file to the Wiggly
    1571     deployment file:
    1572 
    1573     \snippet doc/src/snippets/code/doc_src_deployment.qdoc 58
    1574 
    1575     When \c qt_installer.sis is embedded to the application deployment file, the
    1576     end-user does not need to download and install all dependencies separately.
    1577     The drawback of \c .sis embedding is that the application \c .sis file size becomes
    1578     big. To address these problems Forum Nokia is planning to release a smart installer
    1579     which will take care of downloading and installing the necessary dependencies
    1580     over-the-air. The expected availability of smart installer is 1Q 2010.
    1581 
    15821552    Now we are ready to compile the application and create the application
    15831553    deployment file. Run \c qmake to create Symbian specific makefiles, resources (\.rss)
     
    15851555    application binaries and resources.
    15861556
     1557    \snippet doc/src/snippets/code/doc_src_deployment.qdoc 58
     1558
     1559    If everything compiled and linked without any errors, we are now ready to create
     1560    an application installation package (\c wiggly_installer.sis).
     1561
     1562    If you haven't done so already, download the latest release of the Smart Installer
     1563    from \l{http://get.qt.nokia.com/nokiasmartinstaller/}, and install it on top of the Qt package
     1564
     1565    Then use this command to create the installer sis package:
     1566
    15871567    \snippet doc/src/snippets/code/doc_src_deployment.qdoc 59
    15881568
    1589     If everything compiled and linked without any errors, we are now ready to create
    1590     an application installation file:
    1591 
    1592     \snippet doc/src/snippets/code/doc_src_deployment.qdoc 60
    1593 
    1594     If all binaries and dependencies were found, we should now have a self-signed
    1595     \c wiggly_release-gcce.sis ready to be installed on a device. For more information
    1596     about creating a \c .sis file and installing it to device see also
     1569    If all binaries and dependencies were found, you should now have a self signed
     1570    \c wiggly_installer.sis ready to be installed on a device. The smart installer
     1571    contained in the in the installer package will download the necessary dependencies
     1572    such as Qt libraries to the device.
     1573
     1574    \note If you want to have your application properly Symbian Signed for distribution,
     1575    you will have to properly sign both the application and the application installer packages.
     1576    Please see
     1577    \l{http://developer.symbian.org/wiki/index.php/Category:Symbian_Signed}
     1578    {Symbian Signed wiki} for more information about Symbian Signed.
     1579
     1580    For more information about creating a \c .sis file and installing it to device see also
    15971581    \l {The Symbian platform - Introduction to Qt#Installing your own applications}{here}.
    15981582
Note: See TracChangeset for help on using the changeset viewer.