Compiling FileZilla 3 and Getting Dependencies on Linux

From FileZilla Wiki
Revision as of 02:23, 1 September 2024 by 51.148.163.160 (talk) (More logical common dir name than 'prefix')
Jump to navigationJump to search

This documentation explains how to setup a build environment for FileZilla 3 and how to compile it under Debian based distributions. This guide assumes you are using Debian stable, but should work as well on other recent Debian-based distributions.

Setting up build environment

Download and install Boost C++ libraries (note down install path for CPPFLAGS var below): https://www.boost.org/

As root, execute:

apt build-dep filezilla libwxgtk3.0-dev
apt install libtool git subversion xdg-utils

Back as normal user, execute:

mkdir ~/common
export PATH="$HOME/common/bin:$PATH"
export LD_LIBRARY_PATH="$HOME/common/lib:$LD_LIBRARY_PATH"
export PKG_CONFIG_PATH="$HOME/common/lib/pkgconfig:$PKG_CONFIG_PATH"
export CPPFLAGS="-I/[full/path/to]/boost_1_86_0"

Getting dependencies

Note: This guide is for setting up a development environment. To build the latest officially released versions, download and extract the respective source tarballs instead and skip the autoreconf step.

wxWidgets

 cd ~
 git clone --recurse-submodules --branch 3.2 --single-branch https://github.com/wxWidgets/wxWidgets.git wx3
 cd wx3
 ./configure --prefix="$HOME/common" --enable-shared --enable-unicode
 make && make install

libfilezilla

 cd ~
 svn co https://svn.filezilla-project.org/svn/libfilezilla/trunk lfz
 cd lfz
 autoreconf -i
 ./configure --prefix="$HOME/common" --enable-shared --disable-static 
 make && make install

Compiling FileZilla

 cd ~
 svn co https://svn.filezilla-project.org/svn/FileZilla3/trunk fz
 cd fz
 autoreconf -i
 ./configure --prefix="$HOME/common" --enable-shared --disable-static 
 make && make install

And you're done. Type filezilla to start FileZilla (binary should be under common/bin).