-
Notifications
You must be signed in to change notification settings - Fork 312
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
Comments
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. |
Hi, 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 |
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? |
please checkbelow error similar before. CMake Error: The following variables are used in this project, but they are set to NOTFOUND. |
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 |
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 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. |
…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
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
The text was updated successfully, but these errors were encountered: