This file is indexed.

/usr/share/bibledit-gtk/site/gtk/installation/windows/build-instructions-for-mingw.html is in bibledit-gtk-data 4.9-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link href="../../../bibledit.css" rel="stylesheet" type="text/css" /><!-- 

Copyright (©) 2003-2011 Teus Benschop and Contributors to the Wiki.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
Texts.  A copy of the license is included in the section entitled "GNU
Free Documentation License" in the file FDL.

-->
    <title></title>
  </head>
  <body>
    <div id="menu">
      <ul>
        <li>
          <a href="../../../home.html">1 Bibledit</a>
        </li>
        <li>
          <a href="../windows.html">Windows</a>
        </li>
        <li style="list-style: none; display: inline">
          <hr />
        </li>
        <li>Build Instructions for MinGW
        </li>
      </ul>
    </div>
    <div id="content">
      <h1>
        Build Instructions for MinGW
      </h1>
      <p>
        My approach uses Debian's MinGW cross-compiler. If you use a different MinGW&nbsp;build environment, you should still be able to grok this. Some Linux distributions such as Fedora and OpenSUSE even have MinGW package repositories.
      </p>
      <p>
        &nbsp;
      </p>
      <p>
        An example, <a href="https://thedennisons.org/%7Edand/bibledit-3.7.48-release.zip" rel="nofollow">beta-quality release of Bibledit 3.7.48 using this technique can be found here</a>.
      </p>
      <p>
        &nbsp;
      </p>
      <p>
        <a href="https://thedennisons.org/%7Ebchampeon/bibleditwin-3.7.48.zip" rel="nofollow">Click here to download Windows Installer MSI&nbsp;package for Bibledit 3.7.48.</a>
      </p>
      <p>
        &nbsp;
      </p>
      <p>
        Release Notes:
      </p>
      <ul>
        <li>Requires Windows XP&nbsp;or later. Might work on 2000, but some functionality might not.
        </li>
        <li>
          <strong>You must install <a href="http://code.google.com/p/msysgit">msysgit</a> and place the Git tools in the system path. Git, a version control system, is required for proper function of Bibledit.</strong>
        </li>
        <li>You must install Bibledit to a NTFS partition. FAT type partitions are experimental. You must use PortableGit if you use FAT. This means that <strong>installing to a typical (FAT) USB stick is probably not going to work.</strong>
        </li>
        <li>Windows Outpost is required for printing, web browsing, and BibleWorks integration.
        </li>
        <li>BibleWorks integration requires version 7 or greater
        </li>
        <li>Printing requires a PDF&nbsp;reader (Acrobat 9 tested).
        </li>
        <li>SIL/Graphite (NRSI) fonts are supported using the Graphite backend to Pango (pango-graphite). If there is demand, future builds will include this by default.
        </li>
      </ul>
      <p>
        Known Issues:
      </p>
      <ul>
        <li>Context-sensitive help buttons are broken in this build. It might even crash Bibledit.
        </li>
        <li>The startup script has a bug that prevents proper startup sometimes when you restart the app.
        </li>
      </ul>
      <p>
        &nbsp;
      </p>
      <p>
        <strong>This beta release is quite a bit more stable than previous. Give it a try!</strong> Backup early and often. Please use this on production projects, now that the git integration and USB/remote repositories is functional. As with all Free Software, it comes with no warranty for suitably for any purpose.
      </p>
      <p>
        &nbsp;
      </p>
      <p>
        Without fuirther ado, here's how to build this using Debian or Ubuntu:&nbsp;
      </p>
      <ol>
        <li>apt-get install mingw32
        </li>
        <li>Get mingw-configure to make the configuration for cross-compiling much easier, however, for some reason, the Makefiles sometimes call pkg-config themselves, so they end up getting the build system's config and not the cross-config. You might need to temporarily make your pkg-config point to your win32 build root. (<a href="http://live.gnome.org/Cross%20compiling%20GTK%2B%20for%20Win32" rel="nofollow">http://live.gnome.org/Cross%20compiling%20GTK%2B%20for%20Win32</a>)
        </li>
        <li>Create a cross-compile root directory and unpack all of the binaries listed below into it. Set the ROOT environment variable to it.
        </li>
        <li>SQLite needs a pkg-config file. Copied mine and inserted into $ROOT/lib/pkgconfig
        </li>
        <li>MinGW seems to have a broken realloc in their cstdlib. Based on some possibly bad advice, I commented it out ;)
        </li>
        <li>OpenSUSE/MinGW WebKit comes with RPM files that are designed for the OpenSUSE MinGW build system. Either use OpenSUSE, or use the alien command to convert the RPMs to tar.gz, using the '-t' flag of alien. Once done, extract the relevant subtree into your ROOT. You will need to modify the OpenSUSE&nbsp;pkg-config files to work correctly.
        </li>
        <li>You need to have a native pkg-config, but /usr/bin/pkg-config needs to report the cross-compiled pkg-config state. Suggestion:&nbsp;Point /usr/bin/pkg-config at the custom pkg-config script created by mingw-configure, and point that custom pkg-config script to /usr/bin/pkg-config.dist
        </li>
        <li>The prebuilt MinGW libxml2 doesn't have a xml2-config. Took my system's copy and changed its prefix, placed it in the $ROOT/bin directory. Ran configure like so:
          <ul>
            <li>XML2_CONFIG=$ROOT/bin/xml2-config ../mingw-configure --prefix=$ROOT
            </li>
            <li>Unfortunately, /usr/bin/xml2-config is still hardcoded in places, so I did a hack similar to the pkg-config one, where /usr/bin/xml2-config points to $ROOT/bin/xml2-config&nbsp; ... In light of these 2 issues, it might make sense to add $ROOT/bin as a prefix in your $PATH.
            </li>
          </ul>
        </li>
        <li>Unless you want to cross-compile practically the entire known Gtk+ GNOME universe, grab the following binaries from <a href="http://ftp.gnome.org/pub/gnome/binaries/win32" rel="nofollow">http://ftp.gnome.org/pub/gnome/binaries/win32</a> (some of them are under the dependencies directory):
          <p>
            enchant-1.4.2-tml.zip
          </p>
          <p>
            enchant-dev-1.4.2-tml.zip
          </p>
          <p>
            fontconfig-2.4.2-tml-20071015.zip
          </p>
          <p>
            fontconfig-dev-2.4.2-tml-20071015.zip
          </p>
          <p>
            freetype-2.3.6.zip
          </p>
          <p>
            freetype-dev-2.3.6.zip
          </p>
          <p>
            GConf_2.22.0-2_win32.zip
          </p>
          <p>
            GConf-dev_2.22.0-2_win32.zip
          </p>
          <p>
            gettext-runtime-0.17-1.zip
          </p>
          <p>
            gettext-runtime-dev-0.17-1.zip
          </p>
          <p>
            gnome-vfs_2.24.0-1_win32.zip
          </p>
          <p>
            gnome-vfs-dev_2.24.0-1_win32.zip
          </p>
          <p>
            gtk+-bundle_2.14.7-20090110_win32.zip
          </p>
          <p>
            gtkhtml-3.18.2.zip
          </p>
          <p>
            gtkhtml-dev-3.18.2.zip
          </p>
          <p>
            gtksourceview-2.4.1.zip
          </p>
          <p>
            gtksourceview-dev-2.4.1.zip
          </p>
          <p>
            libart_lgpl-2.3.20.zip
          </p>
          <p>
            libart_lgpl-dev-2.3.20.zip
          </p>
          <p>
            libbonobo_2.24.0-1_win32.zip
          </p>
          <p>
            libbonobo-dev_2.24.0-1_win32.zip
          </p>
          <p>
            libbonoboui_2.24.0-1_win32.zip
          </p>
          <p>
            libbonoboui-dev_2.24.0-1_win32.zip
          </p>
          <p>
            expat_2.0.1-1_win32.zip
          </p>libglade_2.6.3-1_win32.zip
          <p>
            libglade-dev_2.6.3-1_win32.zip
          </p>
          <p>
            libgnome_2.24.1-1_win32.zip
          </p>
          <p>
            libgnomecanvas-2.20.1.zip
          </p>
          <p>
            libgnomecanvas-dev-2.20.1.zip
          </p>
          <p>
            libgnome-dev_2.24.1-1_win32.zip
          </p>
          <p>
            libgnomeui-2.22.1.zip
          </p>
          <p>
            libgnomeui-dev-2.22.1.zip
          </p>
          <p>
            libgnurx-2.5.zip
          </p>
          <p>
            libiconv-1.9.1.bin.woe32.zip
          </p>
          <p>
            libIDL_0.8.11-1_win32.zip
          </p>
          <p>
            libxml2-2.6.27.zip
          </p>
          <p>
            libxml2-dev-2.6.27.zip
          </p>
          <p>
            ORBit2_2.14.16-1_win32.zip
          </p>
          <p>
            ORBit2-dev_2.14.16-1_win32.zip
          </p>
          <p>
            popt-1.10.2-tml-20050828.zip
          </p>
          <p>
            popt-dev-1.10.2-tml-20050828.zip
          </p>
        </li>
        <li>
          <p>
            WebKit is required also, and our friends at OpenSUSE have built it for us:
          </p>
          <p>
            <a href="http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Factory/noarch/" rel="nofollow">http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Factory/noarch/</a>
          </p>
          <p>
            From there, grab:
          </p>
          <p>
            mingw32-libwebkit-1.1.7.noarch.rpm
          </p>
          <p>
            mingw32-libwebkit-devel-1.1.7.noarch.rpm
          </p>
          <p>
            mingw32-gnutls-2.6.6.noarch.rpm
          </p>mingw32-libgnutls-2.6.6.noarch.rpm
          <p>
            mingw32-libgnutls-devel-2.6.6.noarch.rpm
          </p>
          <p>
            mingw32-libsoup-2.26.2.noarch.rpm
          </p>
          <p>
            mingw32-libsoup-devel-2.26.2.noarch.rpm
          </p>
        </li>
        <li>Since GNOME and OpenSUSE together aren't quite the entire universe, grab these too from their respective locations, or have even more fun compiling:
          <p>
            sqlite-amalgamation-3_6_10.zip (just the headers) - from <a href="http://www.sqlite.org/download.html" rel="nofollow">http://www.sqlite.org/download.html</a>
          </p>
          <p>
            sqlitedll-3_6_10.zip - from <a href="http://www.sqlite.org/download.html" rel="nofollow">http://www.sqlite.org/download.html</a>
          </p>
          <p>
            aspell-w32-0.50.3.zip - from <a href="http://ftp.gnu.org/gnu/aspell/w32" rel="nofollow">http://ftp.gnu.org/gnu/aspell/w32</a>
          </p>Git-1.6.3.2-preview20090608.exe - from <a href="http://code.google.com/p/msysgit/">http://code.google.com/p/msysgit/</a>
          <p>
            zip232xN.zip (zip.exe) - from <a href="http://www.info-zip.org/" rel="nofollow">http://www.info-zip.org/</a>
          </p>
          <p>
            <a href="ftp://ftp.dante.de/tex-archive/tools/zip/info-zip/WIN32/unz552xN.exe">unz552xN.exe</a> (unzip.exe) - from <a href="http://www.info-zip.org/" rel="nofollow">http://www.info-zip.org/</a>
          </p>diffutils-2.8.7-1-bin.zip - from <a href="http://gnuwin32.sourceforge.net/" rel="nofollow">http://gnuwin32.sourceforge.net</a>
          <p>
            patch-2.5.9-7-bin.zip - from <a href="http://gnuwin32.sourceforge.net/" rel="nofollow">http://gnuwin32.sourceforge.net</a>
          </p>
        </li>
        <li>Some debugging tools are included:
          <p>
            GDB&nbsp;for MinGW - gdb-6.8-mingw-3.tar.bz2 - <a href="http://mingw.org/" rel="nofollow">http://mingw.org</a>
          </p>
          <p>
            Dependency Walker - depends22_x86.zip - <a href="http://dependencywalker.com/" rel="nofollow">http://dependencywalker.com/</a>
          </p>
          <p>
            Development builds include a copy of gprof from MinGW binutils.
          </p>
        </li>
        <li>Finally, it goes without saying that anything that isn't Bibledit is copyright its respective holder. Please check the README and COPYING files in the above packages for redistribution and licensing details.
        </li>
      </ol>
    </div>
  </body>
</html>