Mac OS X

Install QT 5.6.2:

Install Macports

Setup macports environment

  1. Install xcode

  2. Install macports

visit https://www.macports.org/ for more

  1. Install following libraries and tools using port

    1. sudo port install autoconf automake pkgconfig libtool glib2 \
    2. libevent vala openssl git jansson cmake
  2. Install python

    1. sudo port install python27
    2. sudo port select --set python python27
    3. sudo port install py27-pip
    4. sudo port select --set pip pip27
  3. Set pkg config environment

    1. export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/usr/local/lib/pkgconfig
    2. export LIBTOOL=glibtool
    3. export LIBTOOLIZE=glibtoolize
    4. export CPPFLAGS="-I/opt/local/include"
    5. export LDFLAGS="-L/opt/local/lib -L/usr/local/lib -Wl,-headerpad_max_install_names"
    6. QT_BASE=$HOME/Qt5.6.2/5.6/clang_64
    7. export PATH=$QT_BASE/bin:$PATH
    8. export PKG_CONFIG_PATH=$QT_BASE/lib/pkgconfig:$PKG_CONFIG_PATH

Compiling libsearpc

Download libsearpc, then:

  1. ./autogen.sh
  2. ./configure
  3. make
  4. sudo make install

Compiling ccnet

Download ccnet, then:

  1. ./autogen.sh
  2. ./configure
  3. make
  4. sudo make install

Compiling seafile

  1. Download seafile
  2. Compile

    1. ./autogen.sh
    2. ./configure --disable-fuse
    3. make
    4. sudo make install

Compiling seafile-client and packaging it

  1. execute the building script:

    1. ./scripts/build.py
  2. Go to Release directory and see if seafile-applet.app can run correctly.

Problem you may encounter

  1. If install_name_tool reports “malformed object” “unknown load command”, It may be the version of xcode command line tools incompatible with install_name_tool.
  2. If xcode can’t find glib, Corrects xcode’s “build settings/search paths/header search”.