Required packages
sudo apt-get install -y mingw-w64 make gcc++ pkg-config libtool bzip2 automake gettext wx-common
Setting up environment variables
#i686-w32
export CFGPRE=/usr/i686-w64-mingw32
export CFGOPT="--prefix=$CFGPRE --host=i686-w64-mingw32 --disable-shared --enable-static"
iconv
tar zxvf libiconv-1.14.tar.gz
cd libiconv-1.14
./configure $CFGOPT
make install clean
cd ..
libexpat
tar -zxvf expat-2.1.0.tar.gz
cd expat-2.1.0
./configure $CFGOPT
make install clean
cd ..
libidn
tar zxvf libidn-1.30.tar.gz
cd libidn-1.30
./configure $CFGOPT
make install clean
cd ..
gmp
tar jxvf gmp-6.0.0.tar.bz2
cd gmp-6.0.0
./configure $CFGOPT
make install clean
cd ..
libnettle
PKG_CONFIG_PATH=/usr/i686-w64-mingw32/lib/pkgconfig ./configure $CFGOPT --with-include-path=$CFGPRE/include --with-lib-path=$CFGPRE/lib
make install clean
cd ..
GnuTLS
tar Jxvf gnutls-3.4.3.tar.xz
cd gnutls-3.4.3
PKG_CONFIG_PATH=/usr/i686-w64-mingw32/lib/pkgconfig ./configure $CFGOPT --disable-nls --disable-cxx --disable-guile --without-p11-kit --with-included-libtasn1
make install clean
cd ..
#wxWidgets
tar jxvf wxWidgets-3.0.2.tar.bz2
cd wxWidgets-3.0.2
mkdir compile && cd compile
PKG_CONFIG_PATH=/usr/i686-w64-mingw32/lib/pkgconfig ../configure --prefix=/usr/i686-w64-mingw32/wx --host=i686-w64-mingw32 --disable-shared --enable-static --enable-unicode --disable-compat28
make install clean
cd ../..
#sqlite3
tar -zxvf sqlite-autoconf-3081002.tar.gz
cd sqlite-autoconf-3081002
./configure $CFGOPT
make install clean
cd ..
FileZilla 3
cd filezilla-3.12.0
mkdir compile_32 && cd compile_32
PKG_CONFIG_PATH=/usr/i686-w64-mingw32/lib/pkgconfig ../configure --prefix=/usr/i686-w64-mingw32 --host=i686-w64-mingw32 --disable-shared --enable-static --with-wx-prefix=/usr/i686-w64-mingw32/wx --with-idn-lib=/usr/i686-w64-mingw32/lib/libidn.a --with-tinyxml=builtin --disable-autoupdatecheck CXX="i686-w64-mingw32-g++ -Wl,-static -static-libgcc"
make
If the problem occurs '_imp_gnutls_free'
/usr/i686-w64-mingw32/include/gnutls/gnutls.h
+extern gnutls_free_function gnutls_free;
strip src/interface/filezilla.exe
strip src/fzshellext/32/.libs/libfzshellext-0.dll
strip src/putty/fzputtygen.exe
strip src/putty/fzsftp.exe
Compiling FileZilla 3 under Ubuntu 15.05 for win
Moderator: Project members
Re: Compiling FileZilla 3 under Ubuntu 15.05 for win
This is just copy&paste from the wiki.