My favorites | Sign in
Project Logo
                
Search
for
Updated Oct 16, 2009 by trexinc
Labels: Featured, Phase-Deploy
HowToBuild  
How to build plugins

Using Mingw GCC

The following files are needed:

From http://sourceforge.net/projects/mingw/

  • msysCORE-1.0.11-bin.tar.gz
  • bison-2.3-MSYS-1.0.11-1.tar.bz2
  • binutils-2.19.1-mingw32-bin.tar.gz
  • mingwrt-3.16-mingw32-dev.tar.gz
  • mingwrt-3.16-mingw32-dll.tar.gz
  • mingw-utils-0.3.tar.gz
  • w32api-3.13-mingw32-dev.tar.gz
  • mingw32-make-3.81-20080326-3.tar.gz

From http://www.tdragon.net/recentgcc/

  • gcc-4.4.1-tdm-2-core.zip
  • gcc-4.4.1-tdm-2-g++.zip

From http://sourceforge.net/projects/re2c

  • re2c-0.13.5-bin.zip

Extract to msys folder:

  • bison-2.3-MSYS-1.0.11-1.tar.bz2
  • msysCORE-1.0.11-bin.tar.gz

Extract to msys/bin folder:

  • re2c-0.13.5-bin.zip

Extract to mingw folder:

  • binutils-2.19.1-mingw32-bin.tar.gz
  • mingw32-make-3.81-20080326-3.tar.gz
  • mingwrt-3.16-mingw32-dev.tar.gz
  • mingwrt-3.16-mingw32-dll.tar.gz
  • mingw-utils-0.3.tar.gz
  • w32api-3.13-mingw32-dev.tar.gz
  • gcc-4.4.1-tdm-2-core.zip
  • gcc-4.4.1-tdm-2-g++.zip

Add mingw/bin and msys/bin to PATH.

Create a file called fstab under msys/etc with the following contents: Drive:/path_to/mingw /mingw

Now, to compile the plugins you need to use the following command: mingw32-make -f makefile WIDE=1 COMMON=../path_to_common/from_far_svn

Some plugins might require the CRT (common/CRT) lib from Far repository, it can be built as follows: mingw32-make -f makefile_lib_gcc

Hosted by Google Code