- Timestamp:
- Aug 15, 2011, 2:57:00 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/README.OS2
r957 r983 56 56 script (discussed in section "COMPILING QT" below) will automatically disable 57 57 the corresponding feature: 58 59 60 61 62 63 64 58 65 59 66 - MAPSYM 4.00.000 (Oct 4 2001) to enable generation of symbol (.SYM) files for … … 232 239 libraries) and proceed directly to the next section. 233 240 234 When the environment is set up, go to the directory where you unpacked the 235 Qt4 source tree and type: 236 237 configure.cmd 238 239 This will set up the Qt library (by creating necessary configuration and include 240 files and a bunch of Makefiles for variuos components) and build the qmake tool. 241 242 The next step is to type: 243 244 make 245 246 This will compile and link the Qt library. Note that by default both the release 247 and the debug version of the library are built (please be patient, it may take 248 quite some time depending on your hardware). The release and debug libraries can 249 co-exist in the same source tree and may be used in parallel: all the debug DLLs 250 get a 'd' letter in their name preceeding the Qt major version number and use 251 separate directories for object files. 252 253 To save time, you may build the release and the debug versions of the Qt library 254 separately by typing 'make release' or 'make debug' accordingly instead of just 255 'make'. 241 When the environment is set up as described above, you may build the Qt library. 242 There are two distinct ways of doing this: in the source tree or in a separate 243 directory of your choice. In the first case, all results of the build process 244 (intermediate object files as well as final executables and DLLs) will be placed 245 right in the source tree. In the second case, they will be placed in the 246 separate directory -- this is called a shadow build. 247 248 Shadow builds are the recommended way to go because they keep the source 249 directories clean and also allow to use the same source tree for creating any 250 number of builds, each with its own build options. 251 252 To perform a shadow build, do the following steps: 253 254 1. Create a directory outside the Qt4 source tree. 255 256 2. Go to that directory. 257 258 3. Type: 259 260 <source_tree>\configure.cmd 261 262 where <source_tree> is the directory containing the Qt4 source tree. This 263 will create all necessary configuration files, headers, Makefiles and will 264 also build the qmake tool which is necessary to control the rest of the 265 build process (note that building qmake will take some time). 266 267 4. Once the configure process is finished, type: 268 269 make 270 271 Note that by the default the shadow build will produce the release version of 272 the Qt library. This may be changed by passing command line options to 273 configure.cmd at step 3. 274 275 To perform a normal build, you execute 'configure.cmd' followed by 'make' right 276 in the directory containing the Qt4 source tree. The default in this case is to 277 build both the debug and release versions of the Qt library. 278 279 Please keep in mind that in case of the dual debug and release build (where both 280 flavors are stored in the same build directory), only DLL and LIB files will be 281 separated (because the debug versions of them will have the 'd' suffix in the 282 file name). Executable files are normally taken from the release build but, 283 since the file names are identical, sometimes they may be overwritten by the 284 debug versions (e.g. when you rebuild parts of the library later). For this 285 reason, performing dual builds is not recommended. 286 287 The Qt library is huge so the build process will take several hours (or even 288 several dozen of hours) depending on your hardware and configure options. 256 289 257 290 Once the library is successfully built, you may try to compile the demos and 258 291 examples by visiting the individual example subdirectories in the source tree 259 and typing 'qmake' followed by one of 'make', 'make release' or 'make debug' 260 in that subdirectory. 292 and typing 'qmake' followed by 'make'. 261 293 262 294 NOTE: -
trunk/configure.cmd
r975 r983 513 513 end 514 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 515 545 /* skip this if the user just needs help... */ 516 546 if (G.OPT_HELP \== "yes") then do … … 522 552 G.CFG_DEBUG = "no" 523 553 end 554 555 556 557 558 559 560 561 524 562 else do 525 563 G.CFG_DEBUG_RELEASE = "yes" … … 527 565 end 528 566 end 567 529 568 if (G.CFG_DEBUG_RELEASE == "yes") then 530 569 G.QMAKE_CONFIG = Join(G.QMAKE_CONFIG, "build_all") … … 533 572 G.QMAKE_CONFIG = Join(G.QMAKE_CONFIG, "silent") 534 573 535 if (G.OPT_FAST == "auto") then 574 /* if the source tree is different from the build tree, 575 * symlink or copy part of the sources */ 576 if (G.OPT_SHADOW == "yes") then do 577 call SaySay "Preparing build tree..." 578 579 if (G.PERL == "") then do 580 call SayErr "You need perl in your PATH to make a shadow build." 581 call SayErr "Cannot proceed." 582 call Done 1 583 end 584 585 if (\DirExists(G.OutPath"\bin")) then 586 call MakeDir G.OutPath"\bin" 587 588 /* make a syncqt script that can be used in the shadow */ 589 call DeleteFile G.OutPath"\bin\syncqt.cmd" 590 call MakeDir G.OutPath"\bin" 591 call charout G.OutPath"\bin\syncqt.cmd",, 592 "/**/"G.EOL||, 593 "parse arg aArgs"G.EOL||, 594 "'@set QTDIR="G.RelPath"'"G.EOL||, 595 "'@call perl -S """G.RelPath"""\bin\syncqt", 596 "-outdir """G.OutPath"""' aArgs"G.EOL 597 call charout G.OutPath"\bin\syncqt.cmd" 598 599 /* copy includes */ 600 cmd = "" 601 G.SYNCQT_OPTS = "" 602 if (G.CFG_DEV == "yes") then 603 G.SYNCQT_OPTS = Join(G.SYNCQT_OPTS, "-check-includes") 604 if (G.OPT_SHADOW == "yes") then 605 cmd = 'call' G.OutPath'\bin\syncqt.cmd' G.SYNCQT_OPTS 606 else if (G.CFG_DEV == "yes" | \DirExists(G.RelPath"\include") |, 607 DirExists(G.RelPath"\.git")) then 608 cmd = 'call' G.RelPath'\bin\syncqt.cmd' G.SYNCQT_OPTS 609 if (cmd \== '') then do 610 cmd 611 if (rc \= 0) then do 612 call SayErr cmd "failed with exit code "rc"." 613 call SayErr "Cannot proceed." 614 call Done 1 615 end 616 end 617 618 /* copy parts of the mkspecs directory */ 619 call DeleteDir G.OutPath"\mkspecs" 620 call SysFileTree G.RelPath"\mkspecs\os2-*", 'found', 'DO' 621 do i = 1 to found.0 622 call CopyDir found.i, G.OutPath"\mkspecs\"filespec('N', found.i) 623 end 624 call CopyDir G.RelPath"\mkspecs\features", G.OutPath"\mkspecs\features" 625 call CopyDir G.RelPath"\mkspecs\modules", G.OutPath"\mkspecs\modules" 626 call DeleteDir G.OutPath"\mkspecs\default" 627 628 /*@todo 629 # symlink the doc directory 630 rm -rf "$outpath/doc" 631 ln -s "$relpath/doc" "$outpath/doc" 632 633 # make sure q3porting.xml can be found 634 mkdir -p "$outpath/tools/porting/src" 635 rm -f "$outpath/tools/porting/src/q3porting.xml" 636 ln -s "$relpath/tools/porting/src/q3porting.xml" "$outpath/tools/porting/src" 637 */ 638 end 639 640 if (G.OPT_FAST == "auto") then do 536 641 if (G.CFG_DEV == "yes") then G.OPT_FAST = "yes" 537 642 else G.OPT_FAST = "no" 538 539 /* find a make command */ 643 end 644 645 /* find the make command */ 540 646 G.MAKE = GetEnv("MAKE") 541 647 if (G.MAKE == "") then do … … 898 1004 call SayLog "Creating qmake. Please wait..." 899 1005 1006 1007 900 1008 /* take the correct Makefile and fix it */ 901 1009 MakefilePlatform = G.RelPath"\qmake\Makefile."G.PLATFORM … … 961 1069 call PutToAtExitSlot exs, 'call MoveFile "'qconfig_h'", "'qmake_qconfig_h'"' 962 1070 963 list.1 = G.OutPath"\include\QtCore\qconfig.h"964 list.2 = G.OutPath"\include\Qt\qconfig.h"965 list.0 = 2966 do i = 1 to list.0967 if (\FileExists(list.i)) then do968 call charout list.i, '#include "..\..\src\corelib\global\qconfig.h"'G.EOL969 call charout list.i970 end971 end972 973 1071 curdir = directory() 974 call directory G. RelPath"\qmake"1072 call directory G.Path"\qmake" 975 1073 976 1074 address "cmd" G.MAKE G.MAKE_JOBS … … 2344 2442 MakeDir: procedure expose (Globals) 2345 2443 parse arg aDir 2346 aDir = translate(aDir, '\', '/')2444 aDir = ) 2347 2445 curdir = directory() 2348 2446 base = aDir -
trunk/qmake/Makefile.os2-g++
r847 r983 14 14 CXX = g++ 15 15 CFLAGS = -O -s -Zomf \ 16 -I. -Igenerators -Igenerators/unix \ 17 -Igenerators/win32 -Igenerators/mac \ 18 -Igenerators/symbian -Igenerators/os2 \ 16 -I$(SOURCE_PATH)/qmake \ 17 -I$(SOURCE_PATH)/qmake/generators \ 18 -I$(SOURCE_PATH)/qmake/generators/unix \ 19 -I$(SOURCE_PATH)/qmake/generators/win32 \ 20 -I$(SOURCE_PATH)/qmake/generators/mac \ 21 -I$(SOURCE_PATH)/qmake/generators/symbian \ 22 -I$(SOURCE_PATH)/qmake/generators/os2 \ 19 23 -I$(BUILD_PATH)/include -I$(BUILD_PATH)/include/QtCore \ 20 -I$(SOURCE_PATH)/include -I$(SOURCE_PATH)/include/QtCore \21 24 -I$(BUILD_PATH)/src/corelib/global \ 22 25 -I$(BUILD_PATH)/src/corelib/xml \ … … 47 50 48 51 SOURCES = \ 49 project.cpp \50 property.cpp \51 main.cpp \52 generators/makefile.cpp \53 generators/unix/unixmake2.cpp \54 generators/unix/unixmake.cpp \55 meta.cpp \56 option.cpp \57 generators/win32/winmakefile.cpp \58 generators/win32/mingw_make.cpp \59 generators/makefiledeps.cpp \60 generators/metamakefile.cpp \61 generators/mac/pbuilder_pbx.cpp \62 generators/xmloutput.cpp \63 generators/win32/borland_bmake.cpp \64 generators/win32/msvc_nmake.cpp \65 generators/projectgenerator.cpp \66 generators/win32/msvc_vcproj.cpp \67 generators/win32/msvc_vcxproj.cpp \68 generators/win32/msvc_objectmodel.cpp \69 generators/win32/msbuild_objectmodel.cpp \70 generators/symbian/symmake.cpp \71 generators/symbian/symmake_abld.cpp \72 generators/symbian/symmake_sbsv2.cpp \73 generators/symbian/initprojectdeploy_symbian.cpp \74 generators/symbian/symbiancommon.cpp \75 generators/os2/gnumake.cpp52 project.cpp \ 53 property.cpp \ 54 main.cpp \ 55 generators/makefile.cpp \ 56 generators/unix/unixmake2.cpp \ 57 generators/unix/unixmake.cpp \ 58 meta.cpp \ 59 option.cpp \ 60 generators/win32/winmakefile.cpp \ 61 generators/win32/mingw_make.cpp \ 62 generators/makefiledeps.cpp \ 63 generators/metamakefile.cpp \ 64 generators/mac/pbuilder_pbx.cpp \ 65 generators/xmloutput.cpp \ 66 generators/win32/borland_bmake.cpp \ 67 generators/win32/msvc_nmake.cpp \ 68 generators/projectgenerator.cpp \ 69 generators/win32/msvc_vcproj.cpp \ 70 generators/win32/msvc_vcxproj.cpp \ 71 generators/win32/msvc_objectmodel.cpp \ 72 generators/win32/msbuild_objectmodel.cpp \ 73 generators/symbian/symmake.cpp \ 74 generators/symbian/symmake_abld.cpp \ 75 generators/symbian/symmake_sbsv2.cpp \ 76 generators/symbian/initprojectdeploy_symbian.cpp \ 77 generators/symbian/symbiancommon.cpp \ 78 generators/os2/gnumake.cpp 76 79 77 80 # Qt code (taken from qmake.pri) … … 139 142 @mkdir $(OBJECTS_DIR) 140 143 141 Makefile: Makefile.os2-g++144 Makefile: Makefile.os2-g++ 142 145 @echo "Out of date, please rerun configure" 143 146 -
trunk/qmake/qmake.pro
r846 r983 29 29 generators/symbian \ 30 30 generators/os2 \ 31 $$QT_ SOURCE_TREE/include \32 $$QT_ SOURCE_TREE/include/QtCore \33 $$QT_ SOURCE_TREE/qmake31 $$QT__TREE/include \ 32 $$QT__TREE/include/QtCore \ 33 $$QT_ 34 34 35 35 VPATH += $$QT_SOURCE_TREE/tools/shared
Note:
See TracChangeset
for help on using the changeset viewer.