|
|
- Setting up the build environment
|
|
|
The following contents are referenced from FileZilla project. (Thanks for the contributes from the Filezilla developers) |
|
|
MinGW |
|
|
Download the latest MinGW version and install it: http://downloads.sf.net/mingw/MingGW-5.1.4.exe. Choose c:\dev\mingw as installation directory. Select "candidate" package version and check the g++ option on the packages list. |
|
|
MSYS |
|
|
Download latest MSYS and install it: http://prdownloads.sourceforege.net/mingw/MSYS-1.0.11-2004.04.30-1.exe. Chose c:\dev\msys as installation directory.Leave all other options unchanged. During the postinstall script, please carefully answer all questions. Do not skip questions with enter. |
|
|
MSYS Developer Toolkit |
|
|
Download and install MSYS Developer Toolkit: http://downloads.sourceforge.net/mingw/msysDTK-1.0.1.exe Install to c:\dev\msys as well. |
|
|
Compilation flags |
|
|
Start msys. Type in the following commands: |
|
|
echo "export LDFLAGS=-L/local/lib" > ~/.profile
echo "export CPPFLAGS=-I/local/include">> ~/.profile
exit |
|
|
SVN |
|
|
Download and install the TortoiseSVN. |
|
|
Download the latest SVN and install it: http://www.open.collab.net/servlets/OCNDirector?id=CSVN1.5.6WINC. Choose c:\dev\msys\bin as installation directory.
Start msys. Type in the following commands to check if SVN is working: |
|
|
svn --version |
|
|
Autotools |
|
|
Download the following files to c:\dev\download:
http://dewnloads.sourceforge.net/mingw/m4-1.4.7-MSYS.tar.bz2
ftp://tfp.gnu.org/gnu/libtool/libtool-2.2.6a.tar.gz
ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.63.tar.bz2
ftp.gnu.org/gnu/automake/automake-1.10.2.tar.bz2 |
|
|
Start msys again and enter the following commands: |
|
|
mkdir /usr/src |
|
|
M4 |
|
|
Enter the following commands: |
|
|
cd /
tar jvxf /c/dev/download/m4-1.4.7-MSYS.tar.bz2 |
|
|
Libtool |
|
|
Start msys and enter the following commands: |
|
|
cd /usr/src
tar zvxf /c/dev/download/libtool-2.2.6a.tar.gz
cd libtool-2.2.6
./configure --disable-ltdl-install
make
make install |
|
|
Autoconf |
|
|
Enter the following commands: |
|
|
cd /usr/src
tar jvxf /c/dev/download/autoconf-2.63.tar.bz2
cd autoconf-2.63
./configure
make
make install |
|
|
Automake |
|
|
Enter the following commands: |
|
|
cd /usr/src
tar jvxf /c/dev/download/automake-1.10.2.tar.bz2
cd automake-1.10.2
./configure
make
make install |
|
|
Cleanup |
|
|
cd /
rm -rf /usr/src |
|
|
|
|
|
|
|
|
Download latest wxWidgets version from http://www.wxwidgets.org |
|
|
mkdir ~/source
cd ~/source
tar -xvjf /c/dev/download/wxWidgets-2.8.10.tar.bz2
cd wxWidgets-2.8.10
mkdir compile
cd compile
../configure --prefix=/opt/wxWidgets --enable-unicode --disable-shared
make
make install |
|
|
|
|
|
- Check out source from SVN
|
|
|
Checkout source code via TortoiseSVN by the address is https://gobx.svn.sourceforge.net/svnroot/gobx |
|
|
cd ~/source
svn co https://gobx.svn.sourceforge.net/svnroot/gobx/trunk gobx |
|
|
|
|
|
|
|
|
Type the following inside msys: |
|
|
cd ~/source/gobx/build
autoreconf -i -s -f
mkdir compile
cd compile
../configure --prefix=/opt/gobx --with-wxdir=/opt/wxWidgets/bin
make
make install |
|
|
|