Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script to build boost under proot #190

Closed
realazthat opened this issue Mar 30, 2016 · 0 comments
Closed

script to build boost under proot #190

realazthat opened this issue Mar 30, 2016 · 0 comments
Labels
information Informational post.

Comments

@realazthat
Copy link

  • Compiles under proot
  • Uses clang
  • Produces static libraries
  • Installs the library to $PREFIX
  • Assumes boost_1_60_0.tar.gz exists in the CWD
  • Has lots of --without-*
    • Probably want to remove these
  • define=BOOST_MATH_DISABLE_FLOAT128 was copied from somewhere on the internet, might work without this
  • boost's build system gives a TON of errors while building, mostly about "no such process", prolly has something to do with proot, but it doesn't hinder the build AFAICT
  • When complete, the /usr/include directory should contain boost directory, and there should be lots of libboost_*.a files in the /usr/lib directory
#dunno if it needs all of these packages, it might also need some more that i had already installed
#apt install clang clang-dev ndk-stl

#be verbose, fail on error
set -exv



#use clang
export CXX=clang++
export CC=clang

#remove the directory so we can start with a clean project directory
rm -rf boost_1_60_0/

#extract boost
tar xf boost_1_60_0.tar.gz

cd boost_1_60_0

PROJECT_PATH=$PWD

cd $PROJECT_PATH

#build boost's build system, smh
bash ./bootstrap.sh --with-toolset=clang

#build and install boost
./b2 install --prefix=$PREFIX link=static threading=multi threadapi=pthread target-os=android \
    toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++"\
    --without-context --without-coroutine \
    --without-test --without-atomic  \
    --without-graph --without-graph_parallel --without-math --without-python --without-random \
    --without-signals --without-wave --without-timer --without-mpi \
    --without-container --without-iostreams --without-locale \
    define=BOOST_MATH_DISABLE_FLOAT128

# --without-filesystem  --without-thread --without-log  --without-chrono --without-program_options 
@Neo-Oli Neo-Oli added the information Informational post. label Jul 29, 2016
@termux termux locked and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
information Informational post.
Projects
None yet
Development

No branches or pull requests

3 participants