Compiling FileZilla 3 under macOS
From FileZilla Wiki
Jump to navigationJump to search
This documentation explains how to setup a build environment for FileZilla 3 and how to compile it under macOS using Xcode. These directions have been tested under macOS 12 (Monterey) on an Intel Mac. Resulting binaries are for macOS 10.13 or later.
Xcode
Build environment
pkg-config
libidn
GMP
cd ~/src curl -OL https://gmplib.org/download/gmp/gmp-6.2.1.tar.xz tar xvf gmp-6.2.1.tar.xz cd gmp-6.2.1 ./configure --prefix="$HOME/prefix" --enable-shared --disable-static --enable-fat make make install
Nettle
cd ~/src curl -OL https://ftp.gnu.org/gnu/nettle/nettle-3.8.1.tar.gz tar xvf nettle-3.8.1.tar.gz cd nettle-3.8.1 ./configure --prefix="$HOME/prefix" --enable-shared --disable-static --enable-fat make make install
GnuTLS
cd ~/src curl -OL https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/gnutls-3.8.0.tar.xz tar xvf gnutls-3.8.0.tar.xz cd gnutls-3.8.0 ./configure --prefix="$HOME/prefix" --enable-shared --disable-static --with-included-libtasn1 --without-p11-kit --disable-doc --enable-local-libopts --disable-nls --with-included-unistring --disable-guile --disable-cxx --without-brotli make make install
Compile SQLite
cd ~/src curl -OL https://sqlite.org/2018/sqlite-autoconf-3260000.tar.gz tar xvzf sqlite-autoconf-3260000.tar.gz cd sqlite-autoconf-3260000 ./configure --prefix="$HOME/prefix" --enable-shared --disable-static --disable-dynamic-extensions make make install
gettext
cd ~/src curl -OL https://ftp.gnu.org/pub/gnu/gettext/gettext-0.19.8.tar.xz tar xvf gettext-0.19.8.tar.xz cd gettext-0.19.8 ./configure --prefix="$HOME/prefix" --enable-shared --disable-static make make install
Compile wxWidgets
cd ~/src curl -OL https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.1/wxWidgets-3.2.1.tar.bz2 tar xvf wxWidgets-3.2.1.tar.bz2 cd wxWidgets-3.2.1 ./configure --prefix="$HOME/prefix" --enable-shared --without-libcurl --without-libtiff --with-macosx-version-min=10.13 make make install
Compile libfilezilla
cd ~/src curl -OL https://download.filezilla-project.org/libfilezilla/libfilezilla-0.41.1.tar.bz2 tar xf libfilezilla-0.41.1.tar.bz2 cd libfilezilla-0.41.1 ./configure --prefix="$HOME/prefix" --enable-shared --disable-static make make install
Compile FileZilla
cd ~/src curl -OL https://download.filezilla-project.org/client/FileZilla_3.63.2_src.tar.bz2 tar xvjf FileZilla_3.63.2_src.tar.bz2 cd filezilla-3.63.2 ./configure --with-pugixml=builtin make