Setup mingw

From PLplotWiki
Revision as of 01:27, 29 August 2008 by Smekal (Talk | contribs) (Initial setup)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Setup MinGW command line tools

MinGW A collection of freely available and freely distributable Windows specific header files and import libraries, augmenting the GNU Compiler Collection, (GCC), and its associated tools, (GNU binutils). MinGW provides a complete Open Source programming tool set which is suitable for the development of native Windows programs that do not depend on any 3rd-party C runtime DLLs.

Download and install

  • Download the packages open-watcom-c-win32-1.7a.exe and open-watcom-f77-win32-1.7a.exe from one of the mirrors listed here: http://www.openwatcom.org/index.php/Download. The open-watcom-f77 is only needed if you are interested in Fortran development.
  • Install both packages by double-clicking the exe files. For both packages choose the same directory (without a space in the name), e.g. C:\Development\WATCOM or C:\WATCOM. There is no need to change any other settings, if you want to develop for the Windows platform. At the end of the installations process choose the option, where you set the environment variables yourself. In that way you have more control over the setup and it allows you to have more than one C/C++ compiler installed on your Windows box.

Setup

To configure and compile plplot with MinGW it is best to use the Windows CLI. Please follow the instructions in [setup_cli|Setup CLI] to get the Windows Command Line Interface ready for development. Then open your favorite text editor and enter the following CLI commands

@echo off

rem setup Open Watcom compiler
set WATCOM=C:\DevZone\WATCOM
set PATH=%WATCOM%\BINNT;%WATCOM%\BINW;%PATH%
set INCLUDE=%WATCOM%\H;%WATCOM%\H\NT

rem setup PLplot library
set PLPLOTDIR=%USER_ROOTDIR%\PLDev\plplot\buildwatcom
echo Set PLPLOT working directory to %PLPLOTDIR%.
set PLPLOT_LIB=%PLPLOTDIR%\..\data
set PATH=%PLPLOTDIR%\dll;%PATH%

Links