ComputeLibrary icon indicating copy to clipboard operation
ComputeLibrary copied to clipboard

How to build google benchmark?

Open imageje opened this issue 9 years ago • 3 comments

I would like to build google benchmark. ACL need 'libbenchmark.a'. When I build as below, there is no error but I can not find libbenchmakr.a. Can anyone please help me?

~/ComputeLibrary-master/benchmark$ cmake -DCMAKE_BUILD_TYPE=Release \
> -DCMAKE_CXX_COMPILER=armv7-cortex_A7-linux-gnueabihf-g++ \
> -DBENCHMARK_ENABLE_LTO=OFF \
> -DBENCHMARK_ENABLE_TESTING=OFF \
> -DBUILD_STATIC_LIBS=ON \
> -DBUILD_SHARED_LIBS=OFF \
> -DCMAKE_CROSSCOMPILING=1 \
> -DRUN_HAVE_STD_REGEX=0 \
> -DRUN_HAVE_POSIX_REGEX=0 \
> -DRUN_HAVE_GNU_POSIX_REGEX=0 \
> -DRUN_HAVE_STEADY_CLOCK=0 \
> -DBENCHMARK_ENABLE_LTO=false -DBENCHMARK_ENABLE_TESTING=false .. \
> /home/imageje/ComputeLibrary-master/benchmark
-- git Version: v1.2.0-3347a20e-dirty
-- Version: 1.2.0
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- success
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/imageje/ComputeLibrary-master/benchmark

imageje avatar Aug 03 '17 07:08 imageje

As indicated by the last line of your log CMake doesn't build the library, it just generates the Makefiles, you then need to go in your build folder and run make to actually build the library

-- Build files have been written to: /home/imageje/ComputeLibrary-master/benchmark

If it still doesn't work feel free to report it on the google/benchmark page.

AnthonyBarbier avatar Aug 03 '17 08:08 AnthonyBarbier

It works ! Thanks for your answer.

imageje avatar Aug 03 '17 08:08 imageje

Closing. Reopen if needed.

GeorgeARM avatar Sep 12 '17 17:09 GeorgeARM