ComputeLibrary icon indicating copy to clipboard operation
ComputeLibrary copied to clipboard

undefined reference to arm_compute::CLConvolutionLayer::CLConvolutionLayer

Open nevenpiculjan opened this issue 8 years ago • 6 comments

I tried to build the library and use binaries, but in both cases I got the following error on Android:

undefined reference to `arm_compute::CLConvolutionLayer::CLConvolutionLayer(std::__ndk1::shared_ptr<arm_compute::IMemoryManager>)'.

I am using shared .so libraries.

It seems CLConvolutionLayer is missing from the library. I tried to use CLTensor and CLBatchNormalizationLayer and they work fine.

nevenpiculjan avatar Aug 09 '18 19:08 nevenpiculjan

Hi @nevenpiculjan

Could you please share the command you use to build the library as well as other details like toolchain version and host platform?

morgolock avatar Aug 10 '18 07:08 morgolock

Hi @morgolock

This is how I built the toolchain: $NDK/build/tools/make_standalone_toolchain.py --arch arm64 --install-dir $MY_TOOLCHAINS/aarch64-linux-android-ndk --stl gnustl --api 21

I used this command to build the library: CXX=clang++ CC=clang scons Werror=1 -j8 debug=0 asserts=1 neon=0 opencl=1 embed_kernels=1 os=android arch=arm64-v8a

NDK version is: 17.1.4828580

Android version on Samsung Galaxy S7 is 8.0.0.

nevenpiculjan avatar Aug 10 '18 11:08 nevenpiculjan

18.05 has been tested with r16b. (18.08 will work with r17b)

We haven't tried to build 18.05 with r17b, but the first thing you need to change is switch to --stl libc++ instead of gnustl and you might have to fix one or two warnings / missing includes after that.

AnthonyBarbier avatar Aug 10 '18 11:08 AnthonyBarbier

When I use --stl libc++ instead of gnustl, I get SIGABRT. When will 18.08 be released?

nevenpiculjan avatar Aug 10 '18 15:08 nevenpiculjan

Hi @nevenpiculjan

The update will be released soon.

In the meantime could you please try the ndk 16b and let us know if that solves the problem.

morgolock avatar Aug 16 '18 08:08 morgolock

With gnustl and ndk 16b I got the same error as with ndk 17b and gnustl. Combination of --stl libc++ and ndk 16b worked. Thank you.

nevenpiculjan avatar Aug 17 '18 12:08 nevenpiculjan