Editing Compiling FileZilla 3 under Windows
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 11: | Line 11: | ||
=Installing the MSYS2 environment= | =Installing the MSYS2 environment= | ||
− | Download the 64bit MSYS2 installer and install it in a convenient location: [ | + | Download the 64bit MSYS2 installer and install it in a convenient location: [http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20180531.exe msys2-x86_64-20180531.exe] |
=Installing the compiler toolchain= | =Installing the compiler toolchain= | ||
Line 40: | Line 40: | ||
Execute the following commands: | Execute the following commands: | ||
mkdir ~/prefix | mkdir ~/prefix | ||
− | echo 'export PATH="$HOME/prefix/bin | + | echo 'export PATH="$HOME/prefix/bin:/mingw64/bin:/mingw32/bin:$PATH"' >> ~/.profile |
echo 'export PKG_CONFIG_PATH="$HOME/prefix/lib/pkgconfig"' >> ~/.profile | echo 'export PKG_CONFIG_PATH="$HOME/prefix/lib/pkgconfig"' >> ~/.profile | ||
− | echo 'export | + | echo 'export LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_PATH"' >> ~/.profile |
+ | echo 'export PATH="$HOME/prefix/bin:/mingw64/bin:/mingw32/bin:$PATH"' >> ~/.bash_profile | ||
echo 'export PKG_CONFIG_PATH="$HOME/prefix/lib/pkgconfig"' >> ~/.bash_profile | echo 'export PKG_CONFIG_PATH="$HOME/prefix/lib/pkgconfig"' >> ~/.bash_profile | ||
− | echo 'export | + | echo 'export LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_PATH"' >> ~/.bash_profile |
Restart the MSYS2 MINGW64 shell. | Restart the MSYS2 MINGW64 shell. | ||
Line 53: | Line 54: | ||
cd ~ | cd ~ | ||
− | curl -O https://gmplib.org/download/gmp/gmp-6.2 | + | curl -O https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz |
− | tar xf gmp-6.2 | + | tar xf gmp-6.1.2.tar.xz |
− | cd gmp-6.2 | + | cd gmp-6.1.2 |
./configure --build=x86_64-w64-mingw32 --prefix="$HOME/prefix" --enable-shared --disable-static --enable-fat | ./configure --build=x86_64-w64-mingw32 --prefix="$HOME/prefix" --enable-shared --disable-static --enable-fat | ||
make && make install | make && make install | ||
Line 62: | Line 63: | ||
cd ~ | cd ~ | ||
− | wget https://ftp.gnu.org/gnu/nettle/nettle-3. | + | wget https://ftp.gnu.org/gnu/nettle/nettle-3.4.tar.gz |
− | tar xf nettle-3. | + | tar xf nettle-3.4.tar.gz |
− | cd nettle-3. | + | cd nettle-3.4 |
./configure --build=x86_64-w64-mingw32 --prefix="$HOME/prefix" --enable-shared --disable-static --enable-fat | ./configure --build=x86_64-w64-mingw32 --prefix="$HOME/prefix" --enable-shared --disable-static --enable-fat | ||
make && make install | make && make install | ||
Line 71: | Line 72: | ||
cd ~ | cd ~ | ||
− | wget https://zlib.net | + | wget https://zlib.net/zlib-1.2.11.tar.gz |
− | tar xf zlib-1.2. | + | tar xf zlib-1.2.11.tar.gz |
− | cd zlib-1.2. | + | cd zlib-1.2.11 |
LDSHAREDLIBC='' ./configure --prefix="$HOME/prefix" -u=GNU | LDSHAREDLIBC='' ./configure --prefix="$HOME/prefix" -u=GNU | ||
make && make install | make && make install | ||
Line 80: | Line 81: | ||
cd ~ | cd ~ | ||
− | wget ftp://ftp.gnutls.org/gcrypt/gnutls/v3. | + | wget ftp://ftp.gnutls.org/gcrypt/gnutls/v3.5/gnutls-3.5.19.tar.xz |
− | tar xf gnutls-3. | + | tar xf gnutls-3.5.19.tar.xz |
− | cd gnutls-3. | + | cd gnutls-3.5.19 |
− | ./configure --prefix="$HOME/prefix" --enable-shared --disable-static --build=x86_64-w64-mingw32 --with-included-libtasn1 --disable-doc --disable-guile --without-p11-kit --enable-local-libopts --disable-nls --with-included-unistring | + | ./configure --prefix="$HOME/prefix" --enable-shared --disable-static --build=x86_64-w64-mingw32 --with-included-libtasn1 --disable-doc --disable-guile --without-p11-kit --enable-local-libopts --disable-nls --with-included-unistring |
make && make install | make && make install | ||
Line 100: | Line 101: | ||
git clone --branch WX_3_0_BRANCH --single-branch https://github.com/wxWidgets/wxWidgets.git wx3 | git clone --branch WX_3_0_BRANCH --single-branch https://github.com/wxWidgets/wxWidgets.git wx3 | ||
cd wx3 | cd wx3 | ||
− | ./configure | + | ./configure --prefix="$HOME/prefix" --enable-shared --disable-static --build=x86_64-w64-mingw32 --enable-unicode --without-libtiff --without-libjpeg --with-expat=builtin --with-libpng=builtin |
make && make install | make && make install | ||
Line 133: | Line 134: | ||
strip src/fzshellext/64/.libs/libfzshellext-0.dll | strip src/fzshellext/64/.libs/libfzshellext-0.dll | ||
strip src/fzshellext/32/.libs/libfzshellext-0.dll | strip src/fzshellext/32/.libs/libfzshellext-0.dll | ||
− | |||
==Building the installer== | ==Building the installer== |