Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake build error #3

Closed
Junhyuk opened this issue Mar 26, 2018 · 6 comments
Closed

cmake build error #3

Junhyuk opened this issue Mar 26, 2018 · 6 comments
Labels
Build issue This problem was about building ArmNN or one of its dependencies. Documentation issue Question Further information is requested

Comments

@Junhyuk
Copy link

Junhyuk commented Mar 26, 2018

cmake build error occured whilng buiding arm nn .
Any of you guys who release on this topic, please share the solution to find out this problem.

cmake -DARMCOMPUTE_ROOT= -DARMCOMPUTE_BUILD_DIR=/build -- Boost version: 1.64.0
-- Found the following Boost libraries:
-- unit_test_framework
-- system
-- filesystem
-- log
-- program_options
-- date_time
-- log_setup
-- thread
-- regex
-- chrono
-- atomic
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_LIBRARY
linked by target "armnnCaffeParser" in directory

@MatthewARM
Copy link
Collaborator

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.

@liviolima80
Copy link

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

@MatthewARM
Copy link
Collaborator

MatthewARM commented Apr 5, 2018

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?

@Junhyuk
Copy link
Author

Junhyuk commented Apr 6, 2018

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

@liviolima80
Copy link

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

@MatthewARM
Copy link
Collaborator

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.

@Junhyuk Junhyuk closed this as completed Apr 13, 2018
@FinnWilliamsArm FinnWilliamsArm added Build issue This problem was about building ArmNN or one of its dependencies. Documentation issue Question Further information is requested labels Sep 28, 2020
MatthewARM pushed a commit that referenced this issue Oct 7, 2021
…tegy

 * Add validator wrapper
 * Add validation logic:
    Condition #1: All Memblocks have been assigned to a MemBin

    Condition #2: No Memblock is assigned to multiple MemBins

    Condition #3: No two Memblocks overlap in both the X and Y axis
                  Memblocks can overlap on the X axis for
                  SingleAxisPacking
                  Memblocks can overlap on the Y axis or
                  the X for MultiAxisPacking but not both

 * Add test strategies and tests for overlap, duplicates
   and unassigned blocks

Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
Change-Id: I7a779b35538ecf18a33b62b84512eba69eda1f86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build issue This problem was about building ArmNN or one of its dependencies. Documentation issue Question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants