- Timestamp:
- Apr 8, 2003, 2:46:26 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/GCCBuildInstructions.txt
r9727 r9991 1 GCC compiler how-to instructions (Revision 2)1 GCC compiler how-to instructions (Revision 3) 2 2 =============================================================================== 3 Odin libraries now use Gnu Compiler Suite to built some DLL's itrequire.3 Odin libraries now use Gnu Compiler Suite to built some DLL's they require. 4 4 5 Currently you need Gnu C/C++ 3.0.3 and later compilers to build it. 6 Due to some bugs in 3.0.3 we expect 3.2.x to be a requirement after testing. 7 For now code compiles and works only on 3.0.3. 5 You will need GNU C/C++ 3.2.1 or later version compilers to build it. 6 For current open GCC Compiler Bugs please visit http://xtracker.netlabs.org 8 7 9 8 10 9 To set up EMX for Odin build: 11 10 12 First get EMX runtime http://hobbes.nmsu.edu/pub/os2/dev/emx/v0.9d/emxrt.zip Add EMX\DLL to your LibPath.13 Be sure to add to PATH emx\bin directory. To check that you have all you need 14 type 'emxrev' at your command prompt.11 First get EMX runtime http://hobbes.nmsu.edu/pub/os2/dev/emx/v0.9d/emxrt.zip 12 Add EMX\DLL to your LIBPATH. Be sure to add to PATH emx\bin directory. 13 To check that you have all you need type 'emxrev' at your command prompt. 15 14 16 15 o GNU Make: … … 38 37 Add three variables to config.sys and reboot: 39 38 39 set EMX=x:\emx 40 40 set C_INCLUDE_PATH=x:/emx/include; 41 41 set CPLUS_INCLUDE_PATH=x:/emx/include; … … 43 43 44 44 If you do not want to add them to config.sys add them to newgcc.cmd 45 during GCC 3. 0.3installation phase like this:45 during GCC 3.2.1 installation phase like this: 46 46 47 set EMX=x:\emx 47 48 set C_INCLUDE_PATH=%EMX_PATH%include; 48 49 set CPLUS_INCLUDE_PATH=%EMX_PATH%include; … … 50 51 51 52 after SET PATH line. Be warned however that all EMX will function correctly 52 only in a window where you've launched newgcc.cmd 53 only in a window where you've launched newgcc.cmd. 54 55 !! NEW !! 56 57 Note that new Odin build system requires you to setup 'EMX' variable that 58 points to EMX path. Note OS/2 slashes used there. 53 59 54 60 o GNU Utils … … 61 67 so OS/2 can find and launch utils from anywhere. 62 68 63 o GCC 3. 0.369 o GCC 3.2.1 64 70 65 71 Get: 66 72 * binutils-os2-2.11.2-bin.zip 67 73 * emx-strt-fix-0.0.2.zip 68 * gcc-os2-3. 0.3-beta-gcc.zip69 * gcc-os2-3. 0.3-beta-gpp.zip74 * gcc-os2-3.2.1-beta-gcc.zip 75 * gcc-os2-3.2.1-beta-gpp.zip 70 76 * gettext-os2-0.10.40-bin.zip 71 77 72 from ftp://ftp.netlabs.org/pub/gcc. 78 from ftp://ftp.netlabs.org/incoming/gcc-3.2.1-r2 or later from 79 ftp://ftp.netlabs.org/pub/gcc. 73 80 74 81 Unzip each of these packages in the directory above EMX. All the extracted … … 89 96 Launch it afterwards. 90 97 91 Launch gcc -v and check it is 3. 0.398 Launch gcc -v and check it is 3.2.1 92 99 93 100 Do NOT leave window where you've launched newgcc.cmd 94 101 95 102 1. Go to X:\EMX\LIB\ and type 'make'. 96 2. Go to X:\EMX\LIB\GCC-LIB\I386-PC-OS2 _EMX\3.0.3\and type 'make'.103 2. Go to X:\EMX\LIB\GCC-LIB\I386-PC-OS2-EMX\3.2.1\and type 'make'. 97 104 98 105 Go to Odin directory and start ConfigureGCC.cmd - this should produce no errors. 99 106 Note that script assumes gcc.exe, g++.exe, as.exe to be in the PATH. 100 107 108 o Updating from 3.0.3 109 110 Before using 3.2.1 please remove 3.0.3 compiler from your system. To do so 111 follow this steps: 112 113 * Delete x:\emx\lib\gcc-lib\i386-pc-os2_emx 114 * Delete x:\emx\include\g++-v3 115 * Install 3.2.1 normally and run ConfigureGCC.cmd to check your installation 116 117 118
Note:
See TracChangeset
for help on using the changeset viewer.