| 1 |
Instructions to build from scratch (from the repository sources). |
| 2 |
|
| 3 |
If you downloaded a release you can skip the "Bootstrap" instructions |
| 4 |
and go to "Dependencies" directly. |
| 5 |
|
| 6 |
These instructions may sound redundant with the packaging specs (.deb, |
| 7 |
.rpm, .ebuild, etc.) but they are necessary for people who want to |
| 8 |
compile the latest, not-yet-packaged sources :) |
| 9 |
|
| 10 |
|
| 11 |
Quick version |
| 12 |
============= |
| 13 |
|
| 14 |
Requires wxWidgets and bzip2 to compile... Just type |
| 15 |
|
| 16 |
./configure && make && make install |
| 17 |
|
| 18 |
to get it working. |
| 19 |
|
| 20 |
|
| 21 |
Issues with wxGlade |
| 22 |
================== |
| 23 |
|
| 24 |
If you're recompiling from Git or modifying the .wxg files, there's an |
| 25 |
issue with wxGlade [0.6.6, 0.6.9[. |
| 26 |
See https://sourceforge.net/p/wxglade/bugs/161/ for details and a fix. |
| 27 |
|
| 28 |
There is also an issue with IDs generation in .cpp files with 0.7.2. |
| 29 |
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=853009 |
| 30 |
Upgrading to 2017-01-28's default branch worked for me... |
| 31 |
https://bitbucket.org/wxglade/wxglade/get/f172c83ff51d.zip |
| 32 |
Then: |
| 33 |
WXGLADE=/usr/src/wxglade/wxglade ./configure ... |
| 34 |
|
| 35 |
Last, earlier versions of wxGlade are not officially compatible with |
| 36 |
wxWidgets 3. |
| 37 |
https://bitbucket.org/wxglade/wxglade/commits/acbfabfba67bc795a6ccecaabda933ecb0d0f63d#chg-wxglade.py |
| 38 |
There's a work-around in 'src/Makefile.am', we can remove it when recent wxglade is ubiquitous. |
| 39 |
|
| 40 |
|
| 41 |
On a minimal Debian system |
| 42 |
========================== |
| 43 |
|
| 44 |
## Bootstrap |
| 45 |
# Source code: |
| 46 |
apt-get install git-core |
| 47 |
git clone git://git.sv.gnu.org/freedink/dfarc |
| 48 |
cd dfarc |
| 49 |
|
| 50 |
# autotools |
| 51 |
apt-get install autoconf automake |
| 52 |
|
| 53 |
apt-get install wx-common # for wxwin.m4 |
| 54 |
apt-get install intltool # for intltool.m4 |
| 55 |
sh bootstrap |
| 56 |
apt-get install python-wxglade |
| 57 |
|
| 58 |
|
| 59 |
## Dependencies |
| 60 |
# Base: GCC, make & al. |
| 61 |
apt-get install build-essential |
| 62 |
# DFArc uses bzip2, wxwidgets |
| 63 |
apt-get install libbz2-dev libwxgtk3.0-dev intltool |
| 64 |
# Optional: |
| 65 |
# - upx compresses binary |
| 66 |
# - xdg-utils to detect file browser |
| 67 |
apt-get install upx-ucl xdg-utils |
| 68 |
|
| 69 |
## Compilation |
| 70 |
./configure |
| 71 |
make |
| 72 |
make install |
| 73 |
|
| 74 |
## Release tests |
| 75 |
make dist |
| 76 |
make distcheck |
| 77 |
|
| 78 |
# :) |
| 79 |
|
| 80 |
|
| 81 |
On a minimal Fedora system |
| 82 |
========================== |
| 83 |
|
| 84 |
## Bootstrap |
| 85 |
# Source code: |
| 86 |
yum install git-core |
| 87 |
git clone git://git.sv.gnu.org/freedink/dfarc |
| 88 |
cd dfarc |
| 89 |
|
| 90 |
# autotools |
| 91 |
yum install autoconf automake |
| 92 |
|
| 93 |
yum install wxGTK3-devel # for wxwin.m4 |
| 94 |
yum install intltool # for intltool.m4 |
| 95 |
# beware: you need intltool >= 0.40 to bootstrap a proper |
| 96 |
# configure.ac, otherwise you'll get old-style included intltool tools |
| 97 |
# in your archive (instead of depending on the user system one), and |
| 98 |
# which don't work well with AC_CONFIG_AUX_DIR |
| 99 |
sh bootstrap |
| 100 |
|
| 101 |
|
| 102 |
## Dependencies |
| 103 |
# Base: GCC, make & al. |
| 104 |
# Note: 'groupinstall' not working with pkcon yet |
| 105 |
yum groupinstall 'Development Tools' |
| 106 |
# or just: |
| 107 |
#yum install make gcc-c++ |
| 108 |
# DFArc uses bzip2, wxwidgets |
| 109 |
yum install wxGTK3-devel bzip2-devel intltool |
| 110 |
# Optional: |
| 111 |
# - upx compresses binary |
| 112 |
# - xdg-utils to detect file browser |
| 113 |
yum install upx xdg-utils |
| 114 |
|
| 115 |
## Compilation |
| 116 |
./configure --with-wx-config=/usr/libexec/wxGTK3/wx-config |
| 117 |
make |
| 118 |
make install |
| 119 |
|
| 120 |
## Release tests |
| 121 |
make dist |
| 122 |
make distcheck |
| 123 |
|
| 124 |
# :) |
| 125 |
|
| 126 |
|
| 127 |
On a minimal Gentoo system |
| 128 |
========================== |
| 129 |
|
| 130 |
## Bootstrap |
| 131 |
# Source code: |
| 132 |
emerge dev-util/git |
| 133 |
git clone git://git.sv.gnu.org/freedink/dfarc |
| 134 |
cd dfarc |
| 135 |
|
| 136 |
# I assume you already have autoconf & al. ;) |
| 137 |
|
| 138 |
# Make sure you have the 'X' USE in /etc/make.conf or |
| 139 |
# echo "x11-libs/wxGTK X" >> /etc/portage/package.use |
| 140 |
# echo "x11-libs/cairo X" >> /etc/portage/package.use |
| 141 |
emerge wxGTK # for wxwin.m4 |
| 142 |
emerge intltool # for intltool.m4 |
| 143 |
# beware: you need intltool >= 0.40 to bootstrap a proper |
| 144 |
# configure.ac, otherwise you'll get old-style included intltool tools |
| 145 |
# in your archive (instead of depending on the user system one), and |
| 146 |
# which don't work well with AC_CONFIG_AUX_DIR |
| 147 |
sh bootstrap |
| 148 |
|
| 149 |
|
| 150 |
## Dependencies |
| 151 |
# I also assume you already have GCC, Make and gettext ;) |
| 152 |
# DFArc uses bzip2, wxwidgets and intltool |
| 153 |
emerge wxGTK |
| 154 |
eselect wxwidgets list |
| 155 |
eselect wxwidgets set 1 # or any option from the list above |
| 156 |
emerge bzip2 intltool |
| 157 |
# Optional: |
| 158 |
# - upx compresses binary |
| 159 |
# - xdg-utils to detect file browser |
| 160 |
emerge upx xdg-utils |
| 161 |
|
| 162 |
|
| 163 |
## Compilation |
| 164 |
./configure |
| 165 |
make |
| 166 |
make install |
| 167 |
|
| 168 |
## Release tests |
| 169 |
make dist |
| 170 |
make distcheck |
| 171 |
|
| 172 |
# :) |
| 173 |
|
| 174 |
|
| 175 |
On a minimal FreeBSD 6.3 system |
| 176 |
=============================== |
| 177 |
|
| 178 |
## Bootstrap |
| 179 |
# Source code: |
| 180 |
pkg_add -r git |
| 181 |
git clone git://git.sv.gnu.org/freedink |
| 182 |
cd freedink |
| 183 |
|
| 184 |
# autotools |
| 185 |
# Note: you need to specify explicit versions |
| 186 |
pkg_add -r autoconf261 automake19 |
| 187 |
|
| 188 |
pkg_add -r wxgtk2-common # for wxwin.m4 |
| 189 |
#pkg_add -r intltool # for intltool.m4 |
| 190 |
# beware: you need intltool >= 0.40 to bootstrap a proper |
| 191 |
# configure.ac, otherwise you'll get old-style included intltool tools |
| 192 |
# in your archive (instead of depending on the user system one), and |
| 193 |
# which don't work well with AC_CONFIG_AUX_DIR |
| 194 |
set VERSION=0.40.0 |
| 195 |
wget http://ftp.acc.umu.se/pub/GNOME/sources/intltool/0.40/intltool-$VERSION.tar.bz2 |
| 196 |
tar xjf intltool-$VERSION.tar.bz2 |
| 197 |
pkg_add -r gmake |
| 198 |
./configure && gmake && gmake install |
| 199 |
cd intltool-$VERSION |
| 200 |
|
| 201 |
sh bootstrap |
| 202 |
|
| 203 |
|
| 204 |
## Dependencies |
| 205 |
# I assume you already have GCC and Make ;) |
| 206 |
# Required: wxWidgets, libbz2 |
| 207 |
pkg_add -r wxgtk2-unicode |
| 208 |
pkg_add -r bzip2 # also installs libbz2 |
| 209 |
pkg_add -r intltool |
| 210 |
./configure && make && make install |
| 211 |
# Optional: |
| 212 |
# - upx compresses binary |
| 213 |
# - xdg-utils to detect file browser |
| 214 |
pkg_add -r upx xdg-utils |
| 215 |
|
| 216 |
# gmake is necessary for Makefile.in.in from intltool |
| 217 |
pkg_add -r gmake |
| 218 |
|
| 219 |
## Compilation |
| 220 |
./configure --with-wx-config=wxgtk2u-2.8-config |
| 221 |
gmake |
| 222 |
gmake install |
| 223 |
|
| 224 |
## Bug: intltool installs .mo files in $prefix/lib, check: |
| 225 |
# http://bugzilla.gnome.org/show_bug.cgi?id=563034 |
| 226 |
|
| 227 |
## Release tests |
| 228 |
make dist |
| 229 |
make distcheck |
| 230 |
|
| 231 |
# :) |
| 232 |
|
| 233 |
|
| 234 |
On a minimal Woe system |
| 235 |
======================= |
| 236 |
|
| 237 |
Check doc/cross.txt (for cross compiling from GNU/Linux + MinGW32). |