How to compile gretl on Windows

From Gretl
Jump to: navigation, search

1. Install MinGW: http://www.mingw.org/, go to their download area, and get the current installer. Default path is C:/mingw (try to use the same)

2. Install msys: http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/msys-1.0.11/MSYS-1.0.11.exe/download. Default path C:/msys

3. Install GTK+: http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+-bundle_2.16.6-20100207_win32.zip. Extract it into C:/mingw

4. Install auxiliary files: http://ricardo.ecn.wfu.edu/pub/gretl/winbuild/ . Follow the instruction given in web directory “Note”. Also install Rinclude.tar.gz and extract it into C:/mingw (its not mentioned in Note file)

5. Install GnuWin32: http://sourceforge.net/projects/gnuwin32/files/gettext/0.14.4/gettext-0.14.4.exe/download. (I installed into C:/GnuWin32)

6. Install Inno setup program: http://www.innosetup.com/isinfo.php

7. Get current gretl source: http://sourceforge.net/projects/gretl/files/gretl/

In “win32” subdirectory of gretl source edit config.mk to specify BUILDTYPE=native and line 21 to WIN32_MSGFMT = C:/GnuWin32/bin/msgfmt.exe (in my case this is the path)

Now open msys go into gretl/win32 and type make to build gretl for win32/64 and make dist to build installer executable for gretl.

Also can find these instructions in gretl:/win32/README & README.Native

Personal tools