Changeset 561 for trunk/INSTALL
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/INSTALL
r2 r561 1 INSTALLING Qt/All Source Version 4.5.1.1 .1. 2 2 3 1. If you have the commercial edition of Qt, install your license 4 file as $HOME/.qt-license if you are on Unix. If you are on 5 Windows, copy the license file into your home directory 6 (this may be known as the userprofile environment variable) and 7 rename it to .qt-license. For example on Windows 2000, 8 %USERPROFILE% should be something like C:\Documents and 9 Settings\username. 3 For full installation instructions for each supported platform, please 4 see http://qt.nokia.com/doc/4.6/installation.html, the file 5 doc/html/installation.html in this package, or follow one of the following 6 links: 10 7 11 For the open source version you do not need a license file. 8 Embedded Linux: http://qt.nokia.com/doc/4.6/qt-embedded-install.html 9 Mac OS X: http://qt.nokia.com/doc/4.6/install-mac.html 10 Windows: http://qt.nokia.com/doc/4.6/install-win.html 11 Windows CE: http://qt.nokia.com/doc/4.6/install-wince.html 12 X11 Platforms: http://qt.nokia.com/doc/4.6/install-x11.html 13 Symbian Platform: http://qt.nokia.com/doc/4.6/install-symbian.html 12 14 13 2. Unpack the archive if you have not done so already:14 15 On Unix (X11 and Mac):16 cd /tmp17 gunzip %DISTNAME%.tar.gz # uncompress the archive18 tar xvf %DISTNAME%.tar # unpack it19 20 This creates the directory /tmp/%DISTNAME% containing the files21 from the archive. We only support the GNU version of the tar22 archiving utility. Note that on some systems it is called gtar.23 24 On Windows, uncompress the files into the directory you want Qt25 installed, e.g. C:\Qt\4.5.1.26 27 NOTE: The install path must not contain any spaces.28 29 4. Environment variables30 31 In order to build and use Qt, the PATH environment variable needs32 to be extended:33 34 PATH - to locate qmake, moc and other Qt tools35 36 On Windows, this is done by adding c:\Qt\4.5.1\bin37 to the PATH variable. On Unix, this is done by adding38 /tmp/%DISTNAME%.39 40 For newer versions of Windows, PATH can be extended through41 "Control Panel->System->Advanced->Environment variables" and for42 older versions by editing c:\autoexec.bat.43 44 In .profile (if your Unix shell is bash), add the following lines:45 46 PATH=/usr/local/Trolltech/Qt-4.5.1/bin:$PATH47 export PATH48 49 In .login (in case your Unix shell is csh or tcsh), add the following line:50 51 setenv PATH /usr/local/Trolltech/Qt-4.5.1/bin:$PATH52 53 If you use a different Unix shell, please modify your environment54 variables accordingly.55 56 For some X11 compilers that do not support rpath you must also57 extended the LD_LIBRARY_PATH environment variable to include58 /usr/local/Trolltech/Qt-4.5.1/lib. On Linux or Mac with GCC59 this step is not needed.60 61 4. Building62 63 4.1 Building on Unix64 65 To configure the Qt library for your machine type, run the66 ./configure script in the package directory.67 68 By default, Qt is configured for installation in the69 /usr/local/Trolltech/Qt-4.5.1 directory, but this can be70 changed by using the -prefix option. Alternatively, the71 -prefix-install option can be used to specify a "local"72 installation within the source directory.73 74 cd /tmp/%DISTNAME%75 ./configure76 77 Type "./configure -help" to get a list of all available options.78 79 To create the library and compile all the demos, examples, tools,80 and tutorials, type:81 82 make83 84 If you did not configure Qt using the -prefix-install option,85 you need to install the library, demos, examples, tools, and86 tutorials in the appropriate place. To do this, type:87 88 su -c "make install"89 90 and enter the root password. On some systems, you have to use the91 sudo command as follows:92 93 sudo make install94 95 and enter your password, this requires that you have administrator access96 to your machine.97 98 Note that on some systems the make utility is named differently,99 e.g. gmake. The configure script tells you which make utility to100 use.101 102 If you need to reconfigure and rebuild Qt from the same location,103 ensure that all traces of the previous configuration are removed104 by entering the build directory and typing105 106 make confclean107 108 before running the configure script again.109 110 4.2 Building on Windows111 112 To configure the Qt library for your machine type:113 114 C:115 cd \Qt\4.5.1116 configure117 118 Type "configure -help" to get a list of all available options.119 120 If you are using the "-direct3d" option, make sure that you have121 the Direct3D SDK installed, and that you have run the122 %DXSDK_DIR%\Utilities\Bin\dx_setenv.cmd command, before attempting123 to run configure.124 125 The actual commands needed to build Qt depends on your development126 system. For Microsoft Visual Studio to create the library and127 compile all the demos, examples, tools and tutorials type:128 129 nmake130 131 If you need to reconfigure and rebuild Qt from the same location,132 ensure that all traces of the previous configuration are removed133 by entering the build directory and typing134 135 nmake confclean136 137 before running the configure script again.138 139 5. That's all. Qt is now installed.140 141 If you are new to Qt, we suggest that you take a look at the demos142 and examples to see Qt in action. Run the Qt Examples and Demos143 either by typing 'qtdemo' on the command line or through the144 desktop's Start menu.145 146 You might also want to try the following links:147 148 http://doc.trolltech.com/4.5.1/how-to-learn-qt.html149 http://doc.trolltech.com/4.5.1/tutorial.html150 http://qtsoftware.com/developer151 152 We hope you will enjoy using Qt. Good luck!
Note:
See TracChangeset
for help on using the changeset viewer.