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 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. | ||
− | We strongly recommend to use [http://debian.org Debian ''' | + | We strongly recommend to use [http://debian.org Debian '''11''' (Bullseye)] or later ('''recommended''') |
== Setting up the build environment == | == Setting up the build environment == | ||
Line 12: | Line 12: | ||
dpkg --add-architecture i386 | dpkg --add-architecture i386 | ||
apt update | apt update | ||
− | apt install automake autoconf libtool make gettext lzip | + | apt install automake autoconf libtool make gettext lzip |
apt install mingw-w64 pkg-config wx-common wine wine64 wine32 wine-binfmt subversion git | apt install mingw-w64 pkg-config wx-common wine wine64 wine32 wine-binfmt subversion git | ||
Line 19: | Line 19: | ||
mkdir ~/src | mkdir ~/src | ||
export PATH="$HOME/prefix/bin:$PATH" | export PATH="$HOME/prefix/bin:$PATH" | ||
− | |||
export LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_PATH" | export LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_PATH" | ||
export PKG_CONFIG_PATH="$HOME/prefix/lib/pkgconfig:$PKG_CONFIG_PATH" | export PKG_CONFIG_PATH="$HOME/prefix/lib/pkgconfig:$PKG_CONFIG_PATH" | ||
Line 40: | Line 39: | ||
cd ~/src | cd ~/src | ||
− | wget https://gmplib.org/download/gmp/gmp-6. | + | wget https://gmplib.org/download/gmp/gmp-6.2.1.tar.lz |
− | tar xf gmp-6. | + | tar xf gmp-6.2.1.tar.lz |
− | cd gmp-6. | + | cd gmp-6.2.1 |
CC_FOR_BUILD=gcc ./configure --host=$TARGET_HOST --prefix="$HOME/prefix" --disable-static --enable-shared --enable-fat | CC_FOR_BUILD=gcc ./configure --host=$TARGET_HOST --prefix="$HOME/prefix" --disable-static --enable-shared --enable-fat | ||
make | make | ||
Line 50: | Line 49: | ||
cd ~/src | cd ~/src | ||
− | wget https://ftp.gnu.org/gnu/nettle/nettle-3. | + | wget https://ftp.gnu.org/gnu/nettle/nettle-3.7.3.tar.gz |
− | tar xf nettle-3. | + | tar xf nettle-3.7.3.tar.gz |
− | cd nettle-3. | + | cd nettle-3.7.3 |
− | ./configure --host=$TARGET_HOST --prefix="$HOME/prefix" --enable-shared --disable-static --enable-fat | + | ./configure --host=$TARGET_HOST --prefix="$HOME/prefix" --enable-shared --disable-static --enable-fat LDFLAGS="-L$HOME/prefix/lib" CPPFLAGS="-I$HOME/prefix/include" |
make | make | ||
make install | make install | ||
Line 60: | Line 59: | ||
cd ~/src | cd ~/src | ||
− | wget https://www.gnupg.org/ftp/gcrypt/gnutls/v3. | + | wget https://www.gnupg.org/ftp/gcrypt/gnutls/v3.7/gnutls-3.7.2.tar.xz |
− | tar xvf gnutls-3. | + | tar xvf gnutls-3.7.2.tar.xz |
− | cd gnutls-3. | + | cd gnutls-3.7.2 |
− | ./configure --host=$TARGET_HOST | + | ./configure --host=$TARGET_HOST --enable-shared --disable-static --without-p11-kit --with-included-libtasn1 --with-included-unistring --enable-local-libopts --disable-srp-authentication --disable-dtls-srtp-support --disable-heartbeat-support --disable-psk-authentication --disable-anon-authentication --disable-openssl-compatibility --without-tpm --disable-cxx |
make | make | ||
make install | make install | ||
Line 80: | Line 79: | ||
cd ~/src | cd ~/src | ||
− | wget https://prdownloads.sourceforge.net/nsis/nsis-3. | + | wget https://prdownloads.sourceforge.net/nsis/nsis-3.04-setup.exe |
− | wine nsis-3. | + | wine nsis-3.04-setup.exe /S |
The above may print a lot of errors and warnings. Ignore them, check for success this way: | The above may print a lot of errors and warnings. Ignore them, check for success this way: | ||
Line 94: | Line 93: | ||
make | make | ||
make install | make install | ||
− | |||
== Compile libfilezilla == | == Compile libfilezilla == | ||
Line 105: | Line 103: | ||
make | make | ||
make install | make install | ||
− | + | cp $HOME/prefix/lib/wx*.dll $HOME/prefix/bin | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Compile FileZilla == | == Compile FileZilla == |