Skip to content

Instantly share code, notes, and snippets.

@faywong
Created November 15, 2017 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save faywong/40609a0922e1a08dce73256d1e0c3a43 to your computer and use it in GitHub Desktop.
Save faywong/40609a0922e1a08dce73256d1e0c3a43 to your computer and use it in GitHub Desktop.
how_to_build_aria2_on_osx

安装 libxml2 之类的...

mkdir build-release
cd build-release

brew install python
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
pip install virtualenv
virtualenv .
. bin/activate
easy_install sphinx
ln -s ../makerelease-osx.mk Makefile
export NON_RELEASE=1
make

## autopoint not found
export PATH="/usr/local/opt/gettext/bin:$PATH"
## aclocal not found
brew install automake

## error: Libtool library used but 'LIBTOOL' is undefined
brew install libtool
glibtoolize

然后继续 make

@file:OptionHandlerFactory.cc
 441     OptionHandler* op(new NumberOptionHandler(PREF_MAX_CONNECTION_PER_SERVER,
 442                                               TEXT_MAX_CONNECTION_PER_SERVER,
 443                                               // "1", 1, 16, 'x'));
 444                                               "1", 1, 256, 'x')); 

 505         // PREF_MIN_SPLIT_SIZE, TEXT_MIN_SPLIT_SIZE, "20M", 1_m, 1_g, 'k'));
 506         PREF_MIN_SPLIT_SIZE, TEXT_MIN_SPLIT_SIZE, "20M", 256_k, 1_g, 'k'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment