Hello @chentyjpm I am using android studio 3.3 cmake version 3.10.2.4988404 because of GCC is no longer supported - C++17 - Android Studio I force fully have to change build.gradle file arguments "-DANDROID_TOOLCHAIN=gcc" toarguments "-DANDROID_TOOLCHAIN=clang" even tried arguments "" but getting this down error any help would be great
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:externalNativeBuildDebug'.
> Build command failed.
Error while executing process /media/mustafa/ubuntu_backup/android_sdk/cmake/3.10.2.4988404/bin/cmake with arguments {--build /media/mustafa/ubuntu_backup/android_projects/DarknetDemoInAndroid/app/.externalNativeBuild/cmake/debug/x86_64 --target darknetlib}
[1/1] Linking C shared library ../../../../build/intermediates/cmake/debug/obj/x86_64/libdarknetlib.so
FAILED: : && /media/mustafa/ubuntu_backup/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=x86_64-none-linux-android24 --gcc-toolchain=/media/mustafa/ubuntu_backup/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/media/mustafa/ubuntu_backup/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -std=c99 -fopenmp -DOMP_NUM_THREADS=8 -Wall -Wno-unknown-pragmas -Wfatal-errors -fPIC -O3 -fstrict-aliasing -fprefetch-loop-arrays -fopenmp -fexceptions -Dlinux -fsigned-char -O2 -DNDEBUG -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libdarknetlib.so -o ../../../../build/intermediates/cmake/debug/obj/x86_64/libdarknetlib.so CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/activation_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/activations.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/avgpool_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/batchnorm_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/blas.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/box.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/col2im.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/connected_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/convolutional_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/cost_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/crnn_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/crop_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/cuda.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/data.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/deconvolutional_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/demo.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/detection_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/dropout_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/gemm.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/gru_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/im2col.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/image.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/iseg_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/l2norm_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/list.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/local_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/logistic_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/lstm_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/matrix.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/maxpool_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/network.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/normalization_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/option_list.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/parser.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/region_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/reorg_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/rnn_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/route_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/shortcut_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/softmax_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/tree.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/upsample_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/utils.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknet/src/yolo_layer.c.o CMakeFiles/darknetlib.dir/src/main/cpp/darknetlib.c.o -ljnigraphics -lgomp /media/mustafa/ubuntu_backup/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/x86_64-linux-android/24/liblog.so -latomic -lm && :
/media/mustafa/ubuntu_backup/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld: error: cannot find -lgomp
clang: fatal error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
17 actionable tasks: 1 executed, 16 up-to-date
Hello @chentyjpm I am using android studio 3.3 cmake version 3.10.2.4988404
because of GCC is no longer supported - C++17 - Android Studio
I force fully have to change build.gradle filearguments "-DANDROID_TOOLCHAIN=gcc"
toarguments "-DANDROID_TOOLCHAIN=clang"
even triedarguments ""
but getting this down error any help would be great