ComputeLibrary
ComputeLibrary copied to clipboard
How to build google benchmark?
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
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.
It works ! Thanks for your answer.
Closing. Reopen if needed.