GithubHelp home page GithubHelp logo

cmake build error about armnn HOT 6 CLOSED

arm-software avatar arm-software commented on June 21, 2024
cmake build error

from armnn.

Comments (6)

MatthewARM avatar MatthewARM commented on June 21, 2024

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.

liviolima80 avatar liviolima80 commented on June 21, 2024

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.

MatthewARM avatar MatthewARM commented on June 21, 2024

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.

Junhyuk avatar Junhyuk commented on June 21, 2024

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.

liviolima80 avatar liviolima80 commented on June 21, 2024

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.

MatthewARM avatar MatthewARM commented on June 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.