Comments (6)
Hi @Junhyuk you should only get that error if you have set BUILD_CAFFE_PARSER, but you don't have that set in your cmake command. Possibly your cmake cache has got some old variables in it. Try deleting CMakeCache.txt from your build directory and trying again.
from armnn.
Hi,
I have the same issue using cmake with the following string
cmake -DARMCOMPUTE_ROOT=/home/vigilate/A2/third-party-lib/ComputeLibrary -DARMCOMPUTE_BUILD_DIR=/home/vigilate/A2/third-party-lib/ComputeLibrary/build -DBOOST_ROOT=/home/vigilate/A2/third-party-lib/build_boost_1_64 -DCAFFE_GENERATED_SOURCES=/home/vigilate/A2/third-party-lib/CaffeOnACL/build/src -DBUILD_CAFFE_PARSER=1 -DARMCOMPUTENEON=1 ..
I have protobuf already cross-compiled but i don't know how to specify the library path
Thanks
from armnn.
Hi @liviolima80 and @Junhyuk, please could you try adding -DPROTOBUF_LIBRARY_DEBUG="path to libprotobuf.so" and -DPROTOBUF_LIBRARY_RELEASE="path to libprotobuf.so" to your cmake command?
from armnn.
please checkbelow error similar before.
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:
ARMCOMPUTE_CORE_LIBRARY_DEBUG
linked by target "armnn" in directory /home/junhyuk/samba_server/coding/armnn
ARMCOMPUTE_CORE_LIBRARY_RELEASE
linked by target "armnn" in directory /home/junhyuk/samba_server/coding/armnn
ARMCOMPUTE_INCLUDE
used as include directory in directory /home/junhyuk/samba_server/coding/armnn
used as include directory in directory /home/junhyuk/samba_server/coding/armnn
used as include directory in directory /home/junhyuk/samba_server/coding/armnn
used as include directory in directory /home/junhyuk/samba_server/coding/armnn
used as include directory in directory /home/junhyuk/samba_server/coding/armnn
used as include directory in directory /home/junhyuk/samba_server/coding/armnn
used as include directory in directory /home/junhyuk/samba_server/coding/armnn
used as include directory in directory /home/junhyuk/samba_server/coding/armnn
used as include directory in directory /home/junhyuk/samba_server/coding/armnn
used as include directory in directory /home/junhyuk/samba_server/coding/armnn
used as include directory in directory /home/junhyuk/samba_server/coding/armnn
ARMCOMPUTE_LIBRARY_DEBUG
linked by target "armnn" in directory /home/junhyuk/samba_server/coding/armnn
ARMCOMPUTE_LIBRARY_RELEASE
linked by target "armnn" in directory /home/junhyuk/samba_server/coding/armnn
HALF_INCLUDE
from armnn.
In my case adding -DPROTOBUF_LIBRARY_DEBUG and -DPROTOBUF_LIBRARY_RELEASE solved the issue and succesfully compiled libarmnn and libarmnnUtils.
I had another error in compiling libarmnnCaffeParser since the protobuf header was not found. I manually had to modify flags.make in armnn/build/CMakeFiles/armnnCaffeParser.dir in order to add the header path of protobuf to CXX_INCLUDES variable. With this fix I succesfully complied libarmnnCaffeParser and UnitTests
from armnn.
Thanks @liviolima80 this will be included in the cross-compiling documentation which is under development. The existing documentation is all for native compilation on aarch64 linux, where it is assumed that libprotobuf.so is installed on a standard system path.
@Junhyuk I'm sorry to hear that you are still having problems - in this case it looks like you are not setting ARMCOMPUTE_ROOT and ARMCOMPUTE_BUILD_DIR correctly. When running cmake, please replace <the location of your Compute Library source files directory>
with the path on your computer where you cloned the Compute Library, e.g. /home/junhyuk/samba_server/coding/ComputeLibrary
.
I'm going to close this issue as I think the original problem (PROTOBUF_LIBRARY set to NOTFOUND) has been resolved - feel free to open new issues for any other problems.
from armnn.
Related Issues (20)
- opencv failed to call opencl HOT 1
- ScatterND not support HOT 3
- Building ARM NN via Docker approach with specific GLIBC , GLIBCXX versions ... HOT 3
- Gather(ND) dim error HOT 1
- Link error on older Android devices HOT 8
- BUG: using delegate with transformer | AttributeError: 'NoneType' object has no attribute 'c_void_p' HOT 22
- About the configuration setting of externalMemoryManagementEnabled HOT 1
- The mali gpu computation capability is only used no more than 15% when inference resnet50 with ArmNN HOT 1
- onnx deployment fail HOT 7
- Another error on another model and by now it's two out of three :( HOT 22
- Unsupported Operation "Transpose" in armNN::OnnxParser while loading the onnx model file (in the goal to run inference) HOT 8
- Build Issues -Werrors on armbian 24 HOT 1
- nvalid attempt to construct ConstTensor from non-constant TensorInfo HOT 1
- Profiler service warnings seen in ArmNN v24.02 HOT 3
- Does ExecuteNetwork support "GpuAcc" runtime ? HOT 12
- Running YOLOv5 ONNX model with onnx parser of armnn fails with unsupported operation HOT 2
- Crash when support ArmNN AIDL backend based on a shim over the NNAPI Support Library
- Crash when support ArmNN AIDL backend based on a shim over the NNAPI Support Library HOT 2
- Unitests failed HOT 3
- understanding the onnx parser HOT 2
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 armnn.