Compiling FileZilla 3 under Mac OS X 10.10

Moderator: Project members

Locked
Message
Author
class3
500 Command not understood
Posts: 2
Joined: 2015-07-22 07:10
First name: yu
Last name: hua

Compiling FileZilla 3 under Mac OS X 10.10

#1 Post by class3 » 2015-07-22 07:24

export CFGPRE=$HOME/filezilla
export CFGOPT="--prefix=$CFGPRE --disable-shared --enable-static"
export PATH="$HOME/filezilla/bin:$PATH"

Building the Dependencies[edit]
pkg-config
./configure $CFGOPT --with-internal-glib

GNU gettext[edit]
tar xzf ~/Downloads/gettext-0.19.4.tar.gz
cd gettext-0.19.4
PKG_CONFIG_PATH=$HOME/filezilla/lib/pkgconfig ./configure $CFGOPT && nice make && make install

xz-utils[edit]
tar xjf ~/Downloads/xz-5.2.1.tar.bz2
cd xz-5.2.1
./configure $CFGOPT && nice make && make install

wxWidgets[edit]
Download wxWidgets. The current version for Mac is wxWidgets-3.0.2.tar.gz.
Start Terminal from the Applications/Utilities folder and enter the following commands:

tar xzf ~/Downloads/wxWidgets-3.0.2.tar.gz
cd wxWidgets-3.0.2
mkdir build-wx && cd build-wx

PKG_CONFIG_PATH=$HOME/filezilla/lib/pkgconfig ../configure --enable-unicode --prefix=$HOME/filezilla/wx3 --enable-printfposparam --with-zlib=builtin --with-expat=builtin --with-zlib=builtin --disable-shared --enable-static CXXFLAGS="-stdlib=libc++" --without-liblzma --with-macosx-version-min=10.9 && nice make && make install

GNU libidn[edit]
tar xzf ~/Downloads/libidn-1.30.tar.gz
cd libidn-1.30
PKG_CONFIG_PATH=$HOME/filezilla/lib/pkgconfig ./configure $CFGOPT && nice make && make install

GNU mp[edit]
tar xjf ~/Downloads/gmp-6.0.0.tar.bz2
cd gmp-6.0.0
./configure $CFGOPT && nice make && make install

libnettle[edit]
export PATH="$HOME/filezilla/bin:$PATH"
export CPPFLAGS="${CPPFLAGS} -I$HOME/filezilla/include"
export CFLAGS="${CFLAGS}"
export CXXFLAGS="${CXXFLAGS} ${CFLAGS} "
export OBJCXXFLAGS="${OBJCXXFLAGS} ${CFLAGS}"
export LDFLAGS="${LDFLAGS} -L$HOME/filezilla/lib"

cd nettle-3.1.1
PKG_CONFIG_PATH=$HOME/filezilla/lib/pkgconfig ./configure $CFGOPT && nice make && make install

GNU TLS[edit]
tar -Jxvf ~/Downloads/gnutls-3.4.3.tar.xz
cd gnutls-3.4.3
PKG_CONFIG_PATH=$HOME/filezilla/lib/pkgconfig ./configure $CFGOPT --with-included-libtasn1 --disable-nls --without-p11-kit --with-included-libtasn1 && nice make && make install

SQLite[edit]
cd sqlite-autoconf-3081002
PKG_CONFIG_PATH=$HOME/filezilla/lib/pkgconfig ./configure $CFGOPT && nice make && make install

Building FileZilla 3[edit]
Start Terminal from the Applications/Utilities folder and enter the following commands:
export PATH="$HOME/filezilla/bin:$HOME/filezilla/wx3/bin:$PATH"
export CPPFLAGS="${CPPFLAGS} -I$HOME/filezilla/wx3/include/wx-3.0 -I$HOME/filezilla/include"
export CFLAGS="${CFLAGS}"
export CXXFLAGS="${CXXFLAGS} ${CFLAGS} "
export OBJCXXFLAGS="${OBJCXXFLAGS} ${CFLAGS}"
export LDFLAGS="${LDFLAGS} -L$HOME/filezilla/wx3/lib -L$HOME/filezilla/lib"


cd filezilla-3.12
mkdir build-f && cd build-f
PKG_CONFIG_PATH=$HOME/filezilla/lib/pkgconfig ../configure --with-tinyxml=builtin --enable-shared=no --disable-autoupdatecheck --with-wx-prefix=$CFGPRE/wx3

nice make

cd FileZilla.app/Contents/MacOS
strip filezilla fzputtygen fzsftp
cd - && mv FileZilla.app ~/Desktop


strip filezilla fzputtygen fzsftp
cd - && mv FileZilla.app ~/Desktop

User avatar
botg
Site Admin
Posts: 32593
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Compiling FileZilla 3 under Mac OS X 10.10

#2 Post by botg » 2015-07-22 07:57

This is just copy&paste from the wiki.

Locked