Libgsl. so, libcblas.so, libgsl.so, libcblas.so, libgsl.so, libcblas.so

cannot locate symbol “cblas_sdsdot” referenced by “libgsl.so”

Follow the Android NDK Build tutorial + Workaround.

Here is an example of a successful Mac compilation:

The export PATH = / usr/local/Cellar/GCC / 11.1.0 _1 / bin: $PATH export the NDK = / Users/xushengxing/Library/Android/SDK/the NDK / 22.0.7026061 export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/darwin-x86_64 export PATH=$TOOLCHAIN/bin:$PATH export TARGET=armv7a-linux-androideabi export API=21 export AR=$TOOLCHAIN/bin/llvm-ar export CC=$TOOLCHAIN/bin/$TARGET$API-clang export AS=$CC export CXX=$TOOLCHAIN/bin/$TARGET$API-clang++ export LD=$TOOLCHAIN/bin/ld export RANLIB=$TOOLCHAIN/bin/llvm-ranlib export STRIP=$TOOLCHAIN/bin/llvm-strip ./configure --host $TARGET GSL_LDFLAGS="-Lcblas/.libs/ -lgslcblas" make -j16Copy the code

Note: The tool selected in this example works with NDK R22 and later. Older versions of the NDK may require different tools.

Note: It is generally not possible to build Autoconf projects on Windows

Other:

  • GSL address: Click me
  • Reference address: one