Comments (3)
Please add complete install.sh log.
We compile third party library protobuf at the begining of install.sh, and save libprotobuf.so to third_party/android-aarch64/protobuf/lib directory. you can check your files.
from bolt.
Here is the complete build log.
[INFO] use 6 threads to parallel build third party library on linux-x86_64 for target android-aarch64 in directory /home/ubuntu/workspace/bolt-master/third_party/android-aarch64...
[INFO] use c language compiler /home/ubuntu/bin/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
[INFO] use c++ language compiler /home/ubuntu/bin/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
[INFO] generate environment file to /home/ubuntu/workspace/bolt-master/third_party/android-aarch64.sh...
[INFO] build protoc in /home/ubuntu/workspace/bolt-master/third_party/android-aarch64/protoc...
/home/ubuntu/workspace/bolt-master/third_party/sources/protoc-3.14.0-linux-x86_64.zip
...
[INFO] build protobuf in /home/ubuntu/workspace/bolt-master/third_party/android-aarch64/protobuf...
[INFO] build flatbuffers in /home/ubuntu/workspace/bolt-master/third_party/android-aarch64/flatbuffers...
[INFO] build TFLite in /home/ubuntu/workspace/bolt-master/third_party/android-aarch64/tflite...
[INFO] build OpenCL in /home/ubuntu/workspace/bolt-master/third_party/android-aarch64/opencl...
[INFO] build jsoncpp in /home/ubuntu/workspace/bolt-master/third_party/android-aarch64/jsoncpp...
[INFO] please source /home/ubuntu/workspace/bolt-master/third_party/android-aarch64.sh to use...
[INFO] use /home/ubuntu/workspace/bolt-master/third_party/android-aarch64.sh to set environment variable...
[INFO] generate bolt gcl code in /home/ubuntu/workspace/bolt-master/common/gcl/tools/kernel_source_compile...
[INFO] use 6 threads to parallel build bolt on linux-x86_64 for target android-aarch64 in directory /home/ubuntu/workspace/bolt-master...
[INFO] use cmake options -DCMAKE_SYSTEM_NAME=Linux -DANDROID=ON -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DCMAKE_STRIP=/home/ubuntu/bin/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip -DCMAKE_RANLIB=/home/ubuntu/bin/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ranlib -DUSE_GENERAL=ON -DUSE_FP32=ON -DUSE_MALI=ON -DUSE_CAFFE=ON -DUSE_ONNX=ON -DUSE_TFLITE=ON -DUSE_TENSORFLOW=ON -DUSE_NEON=ON -DUSE_FP16=ON -DUSE_INT8=ON -DUSE_JNI=ON -DUSE_ANDROID_LOG=ON -DCMAKE_INSTALL_PREFIX=/home/ubuntu/workspace/bolt-master/install_android-aarch64 -DProtobuf_ROOT=/home/ubuntu/workspace/bolt-master/third_party/android-aarch64/protobuf -DFlatBuffers_ROOT=/home/ubuntu/workspace/bolt-master/third_party/android-aarch64/flatbuffers -DTFLite_ROOT=/home/ubuntu/workspace/bolt-master/third_party/android-aarch64/tflite -DJSONCPP_ROOT=/home/ubuntu/workspace/bolt-master/third_party/android-aarch64/jsoncpp
-- The C compiler identification is Clang 8.0.7
-- The CXX compiler identification is Clang 8.0.7
-- Check for working C compiler: /home/ubuntu/bin/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
-- Check for working C compiler: /home/ubuntu/bin/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/ubuntu/bin/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
-- Check for working CXX compiler: /home/ubuntu/bin/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Protobuf: /home/ubuntu/workspace/bolt-master/third_party/android-aarch64/protobuf/lib/libprotobuf.a
-- Found flatbuffers/flatbuffers.h: /home/ubuntu/workspace/bolt-master/third_party/android-aarch64/flatbuffers/include
-- Found tensorflow/lite/schema/schema_generated.h: /home/ubuntu/workspace/bolt-master/third_party/android-aarch64/tflite/include
-- Found jsoncpplib.h: /home/ubuntu/workspace/bolt-master/third_party/android-aarch64/jsoncpp/include
-- Found jsoncpp: /home/ubuntu/workspace/bolt-master/third_party/android-aarch64/jsoncpp/lib/libjsoncpp_static.a
-- Found gcl.h: /home/ubuntu/workspace/bolt-master/common/gcl/include
-- Found CL/cl.h: /home/ubuntu/workspace/bolt-master/third_party/android-aarch64/opencl/include
-- Found libOpenCL.so: /home/ubuntu/workspace/bolt-master/third_party/android-aarch64/opencl/lib/libOpenCL.so
-- Found libkernelsource.h: /home/ubuntu/workspace/bolt-master/common/gcl/tools/kernel_source_compile/include
-- Found kernelsource: /home/ubuntu/workspace/bolt-master/common/gcl/tools/kernel_source_compile/lib/libkernelsource.a
-- CFLAGS: --target=aarch64-linux-android21 -W -Wall -Wextra -O3 -fPIC -fstack-protector-all -Wno-unused-command-line-argument -Wno-unused-parameter -Wno-unused-result -Wno-deprecated-declarations -Wno-unused-variable -pthread -D_USE_JNI -D_USE_ANDROID_LOG -llog -D_USE_GENERAL -D_USE_MALI -D_USE_FP32 -D_USE_NEON -D_USE_FP16 -D_USE_F16_MIX_PRECISION -D_USE_INT8 -march=armv8-a+fp16+dotprod -D_USE_CAFFE -D_USE_ONNX -D_USE_TFLITE -D_USE_TENSORFLOW -std=gnu99 -W -Wall -Wextra -O3 -fPIC -fstack-protector-all -Wno-unused-command-line-argument -Wno-unused-parameter -Wno-unused-result -Wno-deprecated-declarations -Wno-unused-variable -pthread -D_USE_JNI -D_USE_ANDROID_LOG -llog -D_USE_GENERAL -D_USE_MALI -D_USE_FP32 -D_USE_NEON -D_USE_FP16 -D_USE_F16_MIX_PRECISION -D_USE_INT8 -march=armv8-a+fp16+dotprod -D_USE_CAFFE -D_USE_ONNX -D_USE_TFLITE -D_USE_TENSORFLOW -Wl,-allow-shlib-undefined -static-libstdc++
-- CXXFLAGS: --target=aarch64-linux-android21 -W -Wall -Wextra -O3 -fPIC -fstack-protector-all -Wno-unused-command-line-argument -Wno-unused-parameter -Wno-unused-result -Wno-deprecated-declarations -Wno-unused-variable -pthread -D_USE_JNI -D_USE_ANDROID_LOG -llog -D_USE_GENERAL -D_USE_MALI -D_USE_FP32 -D_USE_NEON -D_USE_FP16 -D_USE_F16_MIX_PRECISION -D_USE_INT8 -march=armv8-a+fp16+dotprod -D_USE_CAFFE -D_USE_ONNX -D_USE_TFLITE -D_USE_TENSORFLOW -std=c++11 -W -Wall -Wextra -O3 -fPIC -fstack-protector-all -Wno-unused-command-line-argument -Wno-unused-parameter -Wno-unused-result -Wno-deprecated-declarations -Wno-unused-variable -pthread -D_USE_JNI -D_USE_ANDROID_LOG -llog -D_USE_GENERAL -D_USE_MALI -D_USE_FP32 -D_USE_NEON -D_USE_FP16 -D_USE_F16_MIX_PRECISION -D_USE_INT8 -march=armv8-a+fp16+dotprod -D_USE_CAFFE -D_USE_ONNX -D_USE_TFLITE -D_USE_TENSORFLOW -Wl,-allow-shlib-undefined -static-libstdc++
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Protobuf_SHARED_LIBRARY
linked by target "model_tools_caffe" in directory /home/ubuntu/workspace/bolt-master/model_tools/src/caffe
linked by target "model_tools_onnx" in directory /home/ubuntu/workspace/bolt-master/model_tools/src/onnx
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/workspace/bolt-master/build_android-aarch64/CMakeFiles/CMakeOutput.log".
I think there is a typo in the L12 of "common/cmakes/FindProtobuf.cmake":
find_library(Protobuf_SHARED_LIBRARY NAMES protobuf SHARED_HINTS $ENV{Protobuf_ROOT}/lib ${Protobuf_ROOT}/lib)
It works after I make a small change:
find_library(Protobuf_SHARED_LIBRARY NAMES protobuf SHARED HINTS $ENV{Protobuf_ROOT}/lib ${Protobuf_ROOT}/lib)
from bolt.
There is no need to add SHARED_ prefix, maybe this is is usage error. Surprisingly, no error has been reported in other systems.
from bolt.
Related Issues (20)
- Elewise算子耗时较大 HOT 2
- android平台编译失败 HOT 6
- 如何设置运行时浮点精度为fp16 HOT 4
- 展开OCL kernel中的标量dot操作可以获得更高的GFLOPs HOT 2
- arm cpu dilated conv遇到nchw类型的输入会出错
- 是否支持BGEMM? HOT 3
- TinyBert模型经过post_training_quantization进行INT8量化后,在Linux_X86-64平台推理报错 HOT 4
- version 1.2.1 and 1.3.0 issues HOT 7
- x86_64编译报错 HOT 5
- I have a problem. Does bolt quantization support x86? HOT 2
- x2bolt转化工具报错 HOT 3
- 请问bolt有1.3.1的发布计划吗? HOT 2
- BNN 只支持conv算子么? HOT 1
- binary conv arm中input bit-packing像素顺序问题 HOT 6
- Kotlin MultiPlatform Library HOT 1
- 声音克隆的demo可以参考一下吗? HOT 1
- Unable to compile jpeg on Windows HOT 1
- 请问支持mips架构的板子吗 HOT 1
- Can't convert model to int8 precision with post_training_quantization HOT 3
- C API ducument don't exsit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bolt.