Setting up a Windows Build Environment: Difference between revisions
Shawn Novak (talk | contribs) Added instructions to build the installer. |
Update instructions to build the Windows build environment. |
||
(17 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
Binary and plugins are running and should be fully functional. If you encounter unexpected behaviour or bugs, please report your problem to [https://bugzilla.gnome.org/enter_bug.cgi?product=bluefish our BTS]. | Binary and plugins are running and should be fully functional. If you encounter unexpected behaviour or bugs, please report your problem to [https://bugzilla.gnome.org/enter_bug.cgi?product=bluefish our BTS]. | ||
=== Current Known Issues === | |||
* Socket code doesn't work so files can't be opened externally in a currently running copy of bluefish. | |||
* Launching of external programs doesn't work. | |||
* Editing of UTF files with a BOM headers is not currently supported. | |||
== | === Recent Build Environment Changes === | ||
If you are maintaining a build environment for Bluefish please check this subsection occasionally for important changes! | |||
;2011-02-07 | |||
:The MingW project has created a new installer, which makes things much easier but also changes the way to create the build environment. | |||
;2009-12-10 | |||
:If you build your own installers we now use a unicode version of NSIS, [http://www.scratchpaper.com/home Unicode NSIS], to support UTF-8 encoded translations. | |||
;2009-09-23: | |||
:The GNOME packages have been updated to reflect those versions which are included with Pidgin's GTK+ installer. This is currently being used as our target runtime environment for the Installer version of Bluefish. If you're first setting up your build environment you can skip this section as the information provided below is always up to date. If you already have a build environment setup you will need to update a few packages to the versions provided below. These include atk (1.26.0->1.24.0), glib (2.20.4->2.18.4), gtk+ (2.16.5->2.14.7), and pango (1.24.5->1.22.4). | |||
:If you don't intend to run your builds of Bluefish outside of your MSYS environment this change is not required. However if you do wish to do so and wish to remain with GTK+ 2.16 you can use the [http://gtk-win.sourceforge.net/ GTK-Win] installer. This version is not officially supported by the windows development team as of yet because while it's fine for Bluefish it does break some features in Pidgin so keep this in mind if you use both programs. | |||
== Setting up your Build Environment == | |||
The first step is of course to install and setup the MingW and MSYS environments. Start with the [http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/mingw-get-inst-20101030/mingw-get-inst-20101030.exe/download automated MinGW installer]. When you are asked for the installation location you have to choose a path without spaces like <tt>C:\MinGW</tt> (but not necessarily this one). From the optional components choose at least the C++ compiler and the MSYS base system. | |||
If you know what you are doing, you might alternatively download and unpack (unzip/untar/...) the packages manually. | If you know what you are doing, you might alternatively download and unpack (unzip/untar/...) the packages manually or via the <tt>mingw-get</tt> tool. | ||
=== Updating the Build Environment === | === Updating the Build Environment === | ||
In a second step all necessary software needs to be updated and/or installed. You can download and extract them manually | In a second step all further necessary software needs to be updated and/or installed. You can download and extract them manually or via the <tt>mingw-get</tt> tool. To unzip things we need at least the <tt>unzip</tt> too: | ||
<pre>mingw-get update | |||
mingw-get install msys-unzip msys-wget</pre> | |||
All MinGW and MSYS packages can be retrieved and installed using this way as long as some internet connection is available. | |||
We further need some software by third parties (GNOME packages and it's dependencies). Extract them to the location, where MSYS has been installed. This place is usually <tt>C:\MinGW\msys\1.0\</tt>. Keep in mind, that this place is equal to the root directory <tt>/</tt> and to <tt>/usr/</tt> (as both are the same) in MSYS. And also <tt>/local</tt> and <tt>/usr/local</tt> are equal too. ''We install all third party software into <tt>/usr/local</tt>!'': | |||
: | |||
;''GNOME Packages'' install into MSYS local directory "<tt>/local</tt>" (<tt>C:\ | ;''GNOME Packages'' install into MSYS local directory "<tt>/local</tt>" (<tt>C:\MinGW\local\</tt> or <tt>C:\Programs\msys\1.0\local\</tt>) | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/atk/1. | :[http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.14/gtk+-bundle_2.14.7-20090119_win32.zip gtk+-bundle_2.14.7-20090119_win32.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/atk/1. | :[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/expat_2.0.1-1_win32.zip expat_2.0.1-1_win32.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/expat-dev_2.0.1-1_win32.zip expat-dev_2.0.1-1_win32.zip] | |||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/intltool/0.40/intltool_0.40.4-1_win32.zip intltool_0.40.4-1_win32.zip] | |||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/intltool/0.40/intltool-dev_0.40.4-1_win32.zip intltool-dev_0.40.4-1_win32.zip] | |||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libgnurx-2.5.zip libgnurx-2.5.zip] | |||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libgnurx-dev-2.5.zip libgnurx-dev-2.5.zip] | |||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libxml2_2.7.7-1_win32.zip libxml2_2.7.7-1_win32.zip] | |||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libxml2-dev_2.7.7-1_win32.zip libxml2-dev_2.7.7-1_win32.zip] | |||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/GConf/2.22/GConf_2.22.0-3_win32.zip GConf_2.22.0-3_win32.zip] | |||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/GConf/2.22/GConf-dev_2.22.0-3_win32.zip GConf-dev_2.22.0-3_win32.zip] | |||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/ORBit2/2.14/ORBit2_2.14.16-1_win32.zip ORBit2_2.14.16-1_win32.zip] | |||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/ORBit2/2.14/ORBit2-dev_2.14.16-1_win32.zip ORBit2-dev_2.14.16-1_win32.zip] | |||
<!--:[http://ftp.gnome.org/pub/gnome/binaries/win32/atk/1.24/atk_1.24.0-1_win32.zip atk_1.24.0-1_win32.zip] | |||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/atk/1.24/atk-dev_1.24.0-1_win32.zip atk-dev_1.24.0-1_win32.zip] | |||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo_1.8.8-1_win32.zip cairo_1.8.8-1_win32.zip] | :[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo_1.8.8-1_win32.zip cairo_1.8.8-1_win32.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo-dev_1.8.8-1_win32.zip cairo-dev_1.8.8-1_win32.zip] | :[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo-dev_1.8.8-1_win32.zip cairo-dev_1.8.8-1_win32.zip] | ||
Line 79: | Line 68: | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime-dev-0.17.zip gettext-runtime-dev-0.17.zip] | :[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime-dev-0.17.zip gettext-runtime-dev-0.17.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-tools-0.17.zip gettext-tools-0.17.zip] | :[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-tools-0.17.zip gettext-tools-0.17.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2. | :[http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.18/glib_2.18.4-1_win32.zip glib_2.18.4-1_win32.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2. | :[http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.18/glib-dev_2.18.4-1_win32.zip glib-dev_2.18.4-1_win32.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/gnome-common/2.11/gnome-common-2.11.0.zip gnome-common-2.11.0.zip] | :[http://ftp.gnome.org/pub/gnome/binaries/win32/gnome-common/2.11/gnome-common-2.11.0.zip gnome-common-2.11.0.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2. | :[http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.14/gtk+_2.14.7-1_win32.zip gtk+_2.14.7-1_win32.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2. | :[http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.14/gtk+-dev_2.14.7-1_win32.zip gtk+-dev_2.14.7-1_win32.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/intltool/0.40/intltool_0.40.4-1_win32.zip intltool_0.40.4-1_win32.zip] | :[http://ftp.gnome.org/pub/gnome/binaries/win32/intltool/0.40/intltool_0.40.4-1_win32.zip intltool_0.40.4-1_win32.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/intltool/0.40/intltool-dev_0.40.4-1_win32.zip intltool-dev_0.40.4-1_win32.zip] | :[http://ftp.gnome.org/pub/gnome/binaries/win32/intltool/0.40/intltool-dev_0.40.4-1_win32.zip intltool-dev_0.40.4-1_win32.zip] | ||
Line 95: | Line 84: | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/ORBit2/2.14/ORBit2-dev_2.14.16-1_win32.zip ORBit2-dev_2.14.16-1_win32.zip] | :[http://ftp.gnome.org/pub/gnome/binaries/win32/ORBit2/2.14/ORBit2-dev_2.14.16-1_win32.zip ORBit2-dev_2.14.16-1_win32.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/ORBit2/2.14/ORBit2_2.14.16-1_win32.zip ORBit2_2.14.16-1_win32.zip] | :[http://ftp.gnome.org/pub/gnome/binaries/win32/ORBit2/2.14/ORBit2_2.14.16-1_win32.zip ORBit2_2.14.16-1_win32.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1. | :[http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.22/pango_1.22.4-1_win32.zip pango_1.22.4-1_win32.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1. | :[http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.22/pango-dev_1.22.4-1_win32.zip pango-dev_1.22.4-1_win32.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config- | :[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.23-3_win32.zip pkg-config_0.23-3_win32.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config-dev_0.23-3_win32.zip pkg-config-dev_0.23-3_win32.zip] | |||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib-1.2.3.zip zlib-1.2.3.zip] | :[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib-1.2.3.zip zlib-1.2.3.zip] | ||
:[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib-dev-1.2.3.zip zlib-dev-1.2.3.zip] | :[http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib-dev-1.2.3.zip zlib-dev-1.2.3.zip]--> | ||
;''External Packages'' install into MSYS local directory "<tt>/local</tt>" (<tt>C:\MinGW\local\</tt> or <tt>C:\Programs\msys\1.0\local\</tt>) | |||
:[http://sourceforge.net/projects/win32svn/files/1.6.15/svn-win32-1.6.15.zip/download svn-win32-1.6.15.zip] | |||
=== The Perl Issue === | === The Perl Issue === | ||
Line 112: | Line 101: | ||
so Perl is mounted to the MSYS environment. | so Perl is mounted to the MSYS environment. | ||
== Configuring your Build Environment == | == Configuring your Build Environment == | ||
Line 126: | Line 114: | ||
Further we need to adjust the macro search path for aclocal: | Further we need to adjust the macro search path for aclocal: | ||
<pre>echo /local/share/aclocal > /share/aclocal/dirlist</pre> | <pre>echo /local/share/aclocal > /mingw/share/aclocal/dirlist</pre> | ||
Because of a linker bug in the <tt>gconftool-2</tt> binary add this symbolic link: | Because of a linker bug in the <tt>gconftool-2</tt> binary add this symbolic link: | ||
Line 141: | Line 129: | ||
Shawn Novak provides pre-compiled tarballs, which you just need to extract to <tt>/local</tt>: | Shawn Novak provides pre-compiled tarballs, which you just need to extract to <tt>/local</tt>: | ||
;''Custom Packages'' install into MSYS local directory "<tt>/local</tt>" (<tt>C:\ | ;''Custom Packages'' install into MSYS local directory "<tt>/local</tt>" (<tt>C:\MinGW\local\</tt> or <tt>C:\Programs\msys\1.0\local\</tt>) | ||
:[ | <!--:[http://www.muleslow.net/files/mingw/pcre-7.9-bin-MinGW-20090902.tbz2 pcre-7.9-bin-MinGW-20090902.tbz2]--> | ||
:[ | :[http://www.muleslow.net/files/mingw/aspell-0.60.6-bin-MinGW-20090901.tbz2 aspell-0.60.6-bin-MinGW-20090901.tbz2] | ||
:[ | :[http://www.muleslow.net/files/mingw/enchant-1.5.0-bin-MinGW-20090901.tbz2 enchant-1.5.0-bin-MinGW-20090901.tbz2] | ||
A full set of dictionaries for Aspell 0.60.6 can be found here: [ | A full set of dictionaries for Aspell 0.60.6 can be found here: [http://www.muleslow.net/files/aspell/lang/ http://www.muleslow.net/files/aspell/lang/] | ||
=== Building and Installing from the Source === | === Building and Installing from the Source === | ||
Line 154: | Line 142: | ||
<pre>#!/bin/sh | <pre>#!/bin/sh | ||
PATH="/opt/perl/bin:$PATH" | PATH="/opt/perl/bin:$PATH" | ||
prefix=/local | prefix=/local | ||
Line 167: | Line 154: | ||
The configure script is then called as follows together with the switches as shown above: | The configure script is then called as follows together with the switches as shown above: | ||
<pre>./configure CONFIG_SITE=msys.site ... | <pre>./configure CONFIG_SITE=msys.site ...configure options see above...</pre> | ||
</ref> | </ref> | ||
;[ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.6.tar.gz Aspell 0.60.6] | ;[ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.6.tar.gz Aspell 0.60.6] | ||
In the aspell source add | |||
#include "asc_ctype.hpp" | |||
to the includes at '''common/file_util.cpp'''. | |||
./configure --prefix=/local --disable-rpath --enable-win32-relocatable | |||
;[http://www.abisource.com/downloads/enchant/1.6.0/enchant-1.6.0.tar.gz Enchant 1.6.0] | |||
./configure --prefix=/local --enable-aspell --disable-ispell --disable-myspell | |||
<!--;[ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.9.tar.bz2 PCRE 7.9] (UTF-8 support is a '''must''') | |||
./configure --prefix=/local --enable-utf8 --enable-unicode-properties | |||
--> | |||
;[http://ftp.gnome.org/pub/GNOME/sources/gucharmap/2.32/gucharmap-2.32.1.tar.bz2 gucharmap 2.32] | |||
Unfortunately gucharmap does not build out-of-the-box. The following instructions were taken from the [http://article.gmane.org/gmane.comp.web.bluefish.devel/2197 mailing list]. First apply the following patch by Daniel Leidert [http://www.muleslow.net/files/mingw/patches/gucharmap26.diff gucharmap26.diff] and then configure with the following commands. | |||
patch -p0 <gucharmap26.diff | |||
intltoolize -f | |||
libtoolize -f | |||
aclocal -I m4/ --force | |||
autoheader -f | |||
automake -f | |||
autoconf -f | |||
./configure --disable-gconf --disable-schemas-install --disable-scrollkeeper | |||
== Building Bluefish == | == Building Bluefish == | ||
Check out the latest | Check out the latest code from trunk: | ||
<pre>svn checkout https://bluefish.svn.sourceforge.net/svnroot/bluefish/trunk/bluefish</pre> | <pre>svn checkout https://bluefish.svn.sourceforge.net/svnroot/bluefish/trunk/bluefish</pre> | ||
Line 209: | Line 198: | ||
<pre>./autogen.sh | <pre>./autogen.sh | ||
./configure CONFIG_SITE=config.site/config.msys | ./configure CONFIG_SITE=config.site/config.msys | ||
make | |||
make</pre> | make install</pre> | ||
== Debugging Bluefish == | == Debugging Bluefish == | ||
For console debugging output, configure bluefish by passing '--enable-debugging-output' to <tt>./configure</tt>. Further CFLAGS should contain '-g' (default, also | For console debugging output, configure bluefish by passing '--enable-debugging-output' to <tt>./configure</tt>. Further CFLAGS should contain '-g' (default, also explicitly set by <tt>config.msys</tt>). | ||
For debugging crashes install the [https://sourceforge.net/projects/mingw/files/GNU%20Source-Level%20Debugger/Current%20Release_%20gdb-5.2.1/gdb-5.2.1-1.exe/download GNU Debugger (GDB)]. | For debugging crashes install the [https://sourceforge.net/projects/mingw/files/GNU%20Source-Level%20Debugger/Current%20Release_%20gdb-5.2.1/gdb-5.2.1-1.exe/download GNU Debugger (GDB)]. | ||
Line 221: | Line 210: | ||
== Create the Installer == | == Create the Installer == | ||
To compile the installer you'll need to have [http://www.scratchpaper.com/home Unicode NSIS] with the [http://nsis.sourceforge.net/UnTGZ_plug-in UnTGZ] plugin installed. You should also have makensis.exe in your path (such as in /opt/nsis). | |||
To build the installer configure and build Bluefish with the following commands. | To build the installer configure and build Bluefish with the following commands. | ||
<pre> | <pre> | ||
./configure | ./configure CONFIG_SITE=win32/config.nsis | ||
make | cd win32 | ||
make -f Makefile.mingw installer | |||
</pre> | </pre> | ||
< | ==Notes and references== | ||
References: <references/> | |||
. | |||
==See also== | |||
[[Installing_Bluefish#Installing_Bluefish_on_Windows_XP.2FVista.2F7_.2832_bit.29|Existing win32 builds]] |
Latest revision as of 17:55, 7 February 2011
Windows Build Status
Binary and plugins are running and should be fully functional. If you encounter unexpected behaviour or bugs, please report your problem to our BTS.
Current Known Issues
- Socket code doesn't work so files can't be opened externally in a currently running copy of bluefish.
- Launching of external programs doesn't work.
- Editing of UTF files with a BOM headers is not currently supported.
Recent Build Environment Changes
If you are maintaining a build environment for Bluefish please check this subsection occasionally for important changes!
- 2011-02-07
- The MingW project has created a new installer, which makes things much easier but also changes the way to create the build environment.
- 2009-12-10
- If you build your own installers we now use a unicode version of NSIS, Unicode NSIS, to support UTF-8 encoded translations.
- 2009-09-23
- The GNOME packages have been updated to reflect those versions which are included with Pidgin's GTK+ installer. This is currently being used as our target runtime environment for the Installer version of Bluefish. If you're first setting up your build environment you can skip this section as the information provided below is always up to date. If you already have a build environment setup you will need to update a few packages to the versions provided below. These include atk (1.26.0->1.24.0), glib (2.20.4->2.18.4), gtk+ (2.16.5->2.14.7), and pango (1.24.5->1.22.4).
- If you don't intend to run your builds of Bluefish outside of your MSYS environment this change is not required. However if you do wish to do so and wish to remain with GTK+ 2.16 you can use the GTK-Win installer. This version is not officially supported by the windows development team as of yet because while it's fine for Bluefish it does break some features in Pidgin so keep this in mind if you use both programs.
Setting up your Build Environment
The first step is of course to install and setup the MingW and MSYS environments. Start with the automated MinGW installer. When you are asked for the installation location you have to choose a path without spaces like C:\MinGW (but not necessarily this one). From the optional components choose at least the C++ compiler and the MSYS base system.
If you know what you are doing, you might alternatively download and unpack (unzip/untar/...) the packages manually or via the mingw-get tool.
Updating the Build Environment
In a second step all further necessary software needs to be updated and/or installed. You can download and extract them manually or via the mingw-get tool. To unzip things we need at least the unzip too:
mingw-get update mingw-get install msys-unzip msys-wget
All MinGW and MSYS packages can be retrieved and installed using this way as long as some internet connection is available.
We further need some software by third parties (GNOME packages and it's dependencies). Extract them to the location, where MSYS has been installed. This place is usually C:\MinGW\msys\1.0\. Keep in mind, that this place is equal to the root directory / and to /usr/ (as both are the same) in MSYS. And also /local and /usr/local are equal too. We install all third party software into /usr/local!:
- GNOME Packages install into MSYS local directory "/local" (C:\MinGW\local\ or C:\Programs\msys\1.0\local\)
- gtk+-bundle_2.14.7-20090119_win32.zip
- expat_2.0.1-1_win32.zip
- expat-dev_2.0.1-1_win32.zip
- intltool_0.40.4-1_win32.zip
- intltool-dev_0.40.4-1_win32.zip
- libgnurx-2.5.zip
- libgnurx-dev-2.5.zip
- libxml2_2.7.7-1_win32.zip
- libxml2-dev_2.7.7-1_win32.zip
- GConf_2.22.0-3_win32.zip
- GConf-dev_2.22.0-3_win32.zip
- ORBit2_2.14.16-1_win32.zip
- ORBit2-dev_2.14.16-1_win32.zip
- External Packages install into MSYS local directory "/local" (C:\MinGW\local\ or C:\Programs\msys\1.0\local\)
- svn-win32-1.6.15.zip
The Perl Issue
The last thing you need is Perl. The MSYS version is 5.6.1 which is not new enough to pass the configure script for a lot of programs including Bluefish. I use the MSYS 5.6.1 version for autoconf/automake/autogen.sh and an external version such as ActiveState's for anything that needs a newer version. Install the ActivePerl Perl version. Then edit /etc/fstab in your MSYS enviroment (usually ) and add the following line:
c:/programs/perl /opt/perl
so Perl is mounted to the MSYS environment.
Configuring your Build Environment
You might set a few environment variables as follows.
PATH="/bin:/local/bin:/opt/perl/bin" C_INCLUDE_PATH="/include:/local/include" LIBRARY_PATH="/lib:/local/lib"
- Alternatively pass our config.site script for MSYS to configure to adjust PATH/CFLAGS/LDFLAGS easily.
Further we need to adjust the macro search path for aclocal:
echo /local/share/aclocal > /mingw/share/aclocal/dirlist
Because of a linker bug in the gconftool-2 binary add this symbolic link:
ln -s /local/bin/libxml2-2.dll /local/bin/libxml2.dll
Building External Packages
To build bluefish we need some libraries not available from the MinGW/MSYS project.
Installing Pre-Compiled Packages
Shawn Novak provides pre-compiled tarballs, which you just need to extract to /local:
- Custom Packages install into MSYS local directory "/local" (C:\MinGW\local\ or C:\Programs\msys\1.0\local\)
- aspell-0.60.6-bin-MinGW-20090901.tbz2
- enchant-1.5.0-bin-MinGW-20090901.tbz2
A full set of dictionaries for Aspell 0.60.6 can be found here: http://www.muleslow.net/files/aspell/lang/
Building and Installing from the Source
If you wish to build your own version of these custom packages, these are the configure parameters used for the ones provided. <ref>Note by Daniel Leidert: I further pass a short msys.site script with the following content to configure:
#!/bin/sh PATH="/opt/perl/bin:$PATH" prefix=/local exec_prefix='${prefix}' enable_shared=yes enable_static=no enable_maintainer_mode=yes LDFLAGS="-L/local/lib -L/lib" CFLAGS="-g -Wall -O2 -I/local/include -I/include -mwindows" CPPFLAGS="-g -Wall -O2 -I/local/include -I/include"
The configure script is then called as follows together with the switches as shown above:
./configure CONFIG_SITE=msys.site ...configure options see above...
</ref>
In the aspell source add
#include "asc_ctype.hpp"
to the includes at common/file_util.cpp.
./configure --prefix=/local --disable-rpath --enable-win32-relocatable
./configure --prefix=/local --enable-aspell --disable-ispell --disable-myspell
Unfortunately gucharmap does not build out-of-the-box. The following instructions were taken from the mailing list. First apply the following patch by Daniel Leidert gucharmap26.diff and then configure with the following commands.
patch -p0 <gucharmap26.diff intltoolize -f libtoolize -f aclocal -I m4/ --force autoheader -f automake -f autoconf -f ./configure --disable-gconf --disable-schemas-install --disable-scrollkeeper
Building Bluefish
Check out the latest code from trunk:
svn checkout https://bluefish.svn.sourceforge.net/svnroot/bluefish/trunk/bluefish
Run autogen.sh (uses perl 5.6.1). Then run configure (make sure, Perl from /opt/perl/bin is used; e.g. adjust PATH) and make:
./autogen.sh ./configure CONFIG_SITE=config.site/config.msys make make install
Debugging Bluefish
For console debugging output, configure bluefish by passing '--enable-debugging-output' to ./configure. Further CFLAGS should contain '-g' (default, also explicitly set by config.msys).
For debugging crashes install the GNU Debugger (GDB).
Create the Installer
To compile the installer you'll need to have Unicode NSIS with the UnTGZ plugin installed. You should also have makensis.exe in your path (such as in /opt/nsis).
To build the installer configure and build Bluefish with the following commands.
./configure CONFIG_SITE=win32/config.nsis cd win32 make -f Makefile.mingw installer
Notes and references
References: <references/>