Editing Cross Compiling FileZilla 3 for Windows under Ubuntu or Debian GNU/Linux
From FileZilla Wiki
Jump to navigationJump to searchWarning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | This documentation explains how to setup a build environment for [[FileZilla 3]] '''for Windows''' and how to compile it under [ | + | This documentation explains how to setup a build environment for [[FileZilla 3]] '''for Windows''' and how to compile it under [http://ubuntu.com Ubuntu] or [http://debian.org Debian] using [http://mingw-w64.sourceforge.net/ Mingw-w64]. It will take less time and is more simple than [[Compiling FileZilla 3 under Windows]]. |
== OS version == | == OS version == | ||
Line 5: | Line 5: | ||
Any recent Linux should do the trick. For the sake of simplicity, this guide focuses on Debian(-based) distributions. | Any recent Linux should do the trick. For the sake of simplicity, this guide focuses on Debian(-based) distributions. | ||
− | + | Known-good Debian(-based) distributions: | |
+ | |||
+ | * [http://debian.org Debian 8 (Jessie)] or later ('''recommended''') | ||
+ | * [http://ubuntu.com Ubuntu] 14.04 LTR or later | ||
== Setting up the build environment == | == Setting up the build environment == | ||
As root, execute: | As root, execute: | ||
− | + | apt-get install bzip2 mingw-w64 | |
− | apt | ||
− | |||
− | |||
Back as normal user, execute: | Back as normal user, execute: | ||
− | + | export PATH="$HOME/prefix-win32/bin:$PATH" | |
− | |||
− | export PATH="$HOME/prefix/bin:$PATH" | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== GMP == | == GMP == | ||
cd ~/src | cd ~/src | ||
− | wget https://gmplib.org/download/gmp/gmp-6 | + | wget https://gmplib.org/download/gmp/gmp-6.0.0a.tar.lz |
− | + | TODO | |
− | |||
− | |||
− | |||
− | |||
− | == | + | == NETTLE == |
cd ~/src | cd ~/src | ||
− | wget https://ftp.gnu.org/gnu/nettle/nettle- | + | wget https://ftp.gnu.org/gnu/nettle/nettle-2.7.1.tar.gz |
− | tar | + | tar xvzf nettle-2.7.1.tar.gz |
− | cd nettle- | + | cd nettle-2.7.1 |
− | ./configure --host= | + | ./configure --host=i686-w64-mingw32 --prefix="$HOME/prefix-win32" --disable-shared |
make | make | ||
make install | make install | ||
− | == | + | == GNUTLS == |
cd ~/src | cd ~/src | ||
− | wget | + | wget ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/gnutls-3.2.17.tar.lz |
− | tar | + | tar xvJf gnutls-3.2.17.tar.lz |
− | cd gnutls-3. | + | cd gnutls-3.2.17 |
− | ./configure --host= | + | ./configure --host=i686-w64-mingw32 --prefix="$HOME/prefix-win32" --disable-shared |
make | make | ||
make install | make install | ||
Line 70: | Line 47: | ||
cd ~/src | cd ~/src | ||
− | wget | + | wget http://sqlite.org/2014/sqlite-autoconf-3080600.tar.gz |
− | tar xvzf sqlite-autoconf- | + | tar xvzf sqlite-autoconf-3080600.tar.gz |
− | cd sqlite-autoconf- | + | cd sqlite-autoconf-3080600 |
− | ./configure --host= | + | ./configure --host=i686-w64-mingw32 --prefix="$HOME/prefix-win32" --disable-shared |
make | make | ||
make install | make install | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Compile wxWidgets == | == Compile wxWidgets == | ||
cd ~/src | cd ~/src | ||
− | + | wget http://sourceforge.net/projects/wxwindows/files/3.0.1/wxWidgets-3.0.1.tar.bz2 | |
− | + | tar xvjf wxWidgets-3.0.1.tar.bz2 | |
− | + | cd wxWidgets-3.0.1 | |
− | + | ./configure --host=i686-w64-mingw32 --prefix="$HOME/prefix-win32" --disable-shared | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | cd | ||
− | |||
− | ./configure --host= | ||
make | make | ||
make install | make install | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Compile FileZilla == | == Compile FileZilla == | ||
cd ~/src | cd ~/src | ||
− | + | wget http://download.filezilla-project.org/client/FileZilla_3.9.0.5_src.tar.bz2 | |
− | + | tar xvjf FileZilla_3.9.0.5_src.tar.bz2 | |
− | + | cd FileZilla_3.9.0.5_src.tar.bz2 | |
− | ./configure --host= | + | ./configure --host=i686-w64-mingw32 --with-tinyxml=builtin |
make | make | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |