Changeset 651 for trunk/doc/src/deployment/deployment.qdoc
- Timestamp:
- Mar 8, 2010, 12:52:58 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.2 (added) merged: 650 /branches/vendor/nokia/qt/current merged: 649 /branches/vendor/nokia/qt/4.6.1 removed
- Property svn:mergeinfo changed
-
trunk/doc/src/deployment/deployment.qdoc
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 111 111 \o \l {Phonon Module}{Phonon} 112 112 \o \l {Qt3Support} 113 \o 113 114 \endtable 114 115 … … 118 119 however, the Qt run-time is compiled into the executable. 119 120 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. 124 130 125 131 When deploying an application using the shared library approach … … 927 933 928 934 "C:/customPath/plugins " 929 "C:/Qt/4.6. 1/plugins"935 "C:/Qt/4.6.2/plugins" 930 936 "E:/myApplication/directory/" 931 937 … … 958 964 \title Deploying an Application on Mac OS X 959 965 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 document ation will describe how to create a bundle, and how964 to make sure that the application will find the resources it needs965 at run-time. We will demonstrate the procedures in terms of966 deploying the \l {tools/plugandpaint}{Plug & Paint} application967 that is providedin 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. 968 974 969 975 \tableofcontents … … 1375 1381 \section2 Mac OS X Version Dependencies 1376 1382 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. 1385 1390 1386 1391 For more information about cross development issues on Mac OS X, … … 1388 1393 {http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development/index.html}{Apple's Developer Website}. 1389 1394 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: 1393 1399 1394 1400 \snippet doc/src/snippets/code/doc_src_deployment.qdoc 51 1395 1401 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. 1405 1403 1406 1404 For more information about C++ runtime environment, see \l 1407 1405 {http://developer.apple.com/documentation/DeveloperTools/Conceptual/CppRuntimeEnv/index.html}{Apple's Developer Website} 1408 1406 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 X1411 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 Apple1413 (\l {https://connect.apple.com/}{connect.apple.com}). You can use1414 Apple's \c gcc_select(1) command line tool to switch the default1415 complier on your system.1416 1417 1407 \section3 Deploying Phonon Applications on Mac OS X 1418 1408 1419 1409 \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 1434 1415 against Tiger, you can use: 1435 1416 … … 1439 1420 \section2 Architecture Dependencies 1440 1421 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: 1447 1429 1448 1430 \snippet doc/src/snippets/code/doc_src_deployment.qdoc 52 … … 1568 1550 S60 3rd edition FP1, S60 3rd edition FP2 and S60 5th edition devices. 1569 1551 1570 As a last step we will embed the \c qt_installer.sis file to the Wiggly1571 deployment file:1572 1573 \snippet doc/src/snippets/code/doc_src_deployment.qdoc 581574 1575 When \c qt_installer.sis is embedded to the application deployment file, the1576 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 becomes1578 big. To address these problems Forum Nokia is planning to release a smart installer1579 which will take care of downloading and installing the necessary dependencies1580 over-the-air. The expected availability of smart installer is 1Q 2010.1581 1582 1552 Now we are ready to compile the application and create the application 1583 1553 deployment file. Run \c qmake to create Symbian specific makefiles, resources (\.rss) … … 1585 1555 application binaries and resources. 1586 1556 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 1587 1567 \snippet doc/src/snippets/code/doc_src_deployment.qdoc 59 1588 1568 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 1597 1581 \l {The Symbian platform - Introduction to Qt#Installing your own applications}{here}. 1598 1582
Note:
See TracChangeset
for help on using the changeset viewer.