| 1 | ****************************************************************************** |
| 2 | * Copyright (c) 2000-2016 Ericsson Telecom AB |
| 3 | * All rights reserved. This program and the accompanying materials |
| 4 | * are made available under the terms of the Eclipse Public License v1.0 |
| 5 | * which accompanies this distribution, and is available at |
| 6 | * http://www.eclipse.org/legal/epl-v10.html |
| 7 | * Contributors: |
| 8 | * |
| 9 | * Balasko, Jeno |
| 10 | * Baranyi, Botond |
| 11 | ****************************************************************************** |
| 12 | |
| 13 | MinGW setup |
| 14 | |
| 15 | (A) Download the MinGW installer from the MinGW site: |
| 16 | http://www.mingw.org/ |
| 17 | |
| 18 | (B) Follow the install steps found on the MinGW getting started page: |
| 19 | http://www.mingw.org/wiki/getting_started |
| 20 | Select the mingw-gcc-v3 packages because Titan only compiles |
| 21 | with older gcc. If you select the gcc4 packages, then the make process |
| 22 | stops immediately with some error messages. Select the msys packages too. |
| 23 | |
| 24 | (C) Check the PATH system variable: |
| 25 | System -> Advanced system settings -> Environment Variables -> Path |
| 26 | The MinGW installation path must be present to use the installed |
| 27 | executables and files. For example: |
| 28 | echo %PATH% |
| 29 | C:\MinGW\bin;C:\MinGW\usr\bin... |
| 30 | |
| 31 | (D) Working environment: |
| 32 | Use the <Install folder>\msys\<version>\msys.bat file to start a shell. |
| 33 | Download and extract the Titan source files and folders to a directory, |
| 34 | and create a Makefile.personal in the top directory. Please check the |
| 35 | installation guide and set all the needed variables like TTCN3_DIR. The |
| 36 | MinGW compilation needs a few extra changes in the Makefile.cfg also. Set |
| 37 | the PLATFORM and MINGW values: |
| 38 | PLATFORM := WIN32 |
| 39 | MINGW := -DMINGW -mno-cygwin |
| 40 | |
| 41 | (E) Compile Titan: |
| 42 | cd titan |
| 43 | make -j |
| 44 | make install |
| 45 | The compiled files will be placed into the ./Install directory. |
| 46 | |
| 47 | (F) If the build process stops with a Windows error message saying that some files |
| 48 | are missing, search for the indicated Cygwin package and download it from the Cygwin page. |
| 49 | You can search fast and easily with the Cygwin Package Search tool: |
| 50 | https://cygwin.com/cgi-bin2/package-grep.cgi |
| 51 | Extract the downloaded package into the MinGW installation directory, and |
| 52 | restart the build process. |