Boost-for-Android icon indicating copy to clipboard operation
Boost-for-Android copied to clipboard

Could not find a suitable toolset.

Open wangwenfeng0 opened this issue 2 years ago • 1 comments

When I compile it with NDK23, it shows follow messages:

Building boost version: 1.76.0 Detected Android NDK version 23.0 Building with TOOLSET=clang CONFIG_VARIANT=ndk23 CXXPATH=/mnt/d/Android/Linux/android-ndk-r23-beta6/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ CFLAGS= CXXFLAGS=

Performing boost bootstrap

Could not find a suitable toolset.

You can specify the toolset as the argument, i.e.: ./build.sh [options] gcc

Toolsets supported by this script are: acc, clang, como, gcc, intel-darwin, intel-linux, kcc, kylix, mipspro, pathscale, pgi, qcc, sun, sunpro, tru64cxx, vacpp

For any toolset you can override the path to the compiler with the '--cxx' option. You can also use additional flags for the compiler with the '--cxxflags' option.

A special toolset; cxx, is available which is used as a fallback when a more specific toolset is not found and the cxx command is detected. The 'cxx' toolset will use the '--cxx' and '--cxxflags' options, if present.

Options: --help Show this help message. --verbose Show messages about what this script is doing. --debug Build b2 with debug information, and no optimizations. --guess-toolset Print the toolset we can detect for building. --cxx=CXX The compiler exec to use instead of the detected compiler exec. --cxxflags=CXXFLAGS The compiler flags to use in addition to the flags for the detected compiler.

Building B2 engine..

How could I resolve it?

wangwenfeng0 avatar Aug 07 '21 10:08 wangwenfeng0

You need a C++ compiler to compile the b2 engine. If you're on Debian, installing build-essential should do the trick.

hardcore-sushi avatar Jun 24 '22 12:06 hardcore-sushi