Building Dillo and plugins on Cygwin (Windows 7)

July 28, 2024152 words1 min read

Building Dillo web browser on Cygwin is pretty straightforward, make sure you have all the prerequisites installed: gcc-core gcc-g++ autoconf automake make zlib-devel mbedtls-devel libfltk-devel libiconv-devel libpng-devel libjpeg-devel xorg-server xinit

$ git clone https://github.com/dillo-browser/dillo.git
$ cd dillo
$ ./configure --prefix=/usr/local
$ make
$ make install

To install the Gemini plugin:

$ git clone https://github.com/dillo-browser/dillo-plugin-gemini.git
$ cd dillo-plugin-gemini
$ make install

To install the Gopher plugin:

$ git clone https://github.com/dillo-browser/dillo-plugin-gopher.git
$ cd dillo-plugin-gopher
$ make install

Now, the problem is that the plugin file extension is wrong, the plugins get installed into ~/.dillo/dpi/{gemini,gopher} and are named gemini.filter.dpi and gopher.filter.dpi, so the files need to be renamed to add the .exe extension.

gemini.filter.dpi -> gemini.filter.dpi.exe
gopher.filter.dpi -> gopher.filter.dpi.exe

Also, change the name of the files inside ~/.dillo/dpirc to reflect the changes.

proto.gemini=gemini/gemini.filter.dpi.exe
proto.gopher=gemini/gopher.filter.dpi.exe

Start the X server first and then run dillo:

$ xorg-server xinit
$ startxwin &
$ export DISPLAY=:0
$ dillo

Done.