Closed djmv closed 5 years ago
You have to build and run it using Bazel.
At this repository root folder, do :
bazel run:parallelize
I tried to run but got errors. I followed this step.
bazel run:parallelize
and got this. bazel run:parallelize Starting local Bazel server and connecting to it... Command 'run:parallelize' not found. Try 'bazel help'.
bazel run
bazel run parallelize
bazel run parallelizeI'm inside root folder of project when run above commands.
Thanks,
My mistake ; type :
bazel run main:parallelize
My mistake ; type :
bazel run main:parallelize
I got this error:
INFO: Invocation ID: 682dd709-0d94-4f4c-8dd4-e2596fa37e2e
DEBUG: Rule 'rwqueue' modified arguments {"shallow_since": "1519150107 -0500"}
INFO: Analysed target //main:parallelize (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: opencv-parallelize-example/main/BUILD:17:1: C++ compilation of rule '//main:parallelize' failed (Exit 1) gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -MD -MF ... (remaining 49 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
main/main.cc:25:31: fatal error: systemd/sd-daemon.h: No such file or directory
compilation terminated.
Target //main:parallelize failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.585s, Critical Path: 0.35s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
main/main.cc:25:31: fatal error: systemd/sd-daemon.h: No such file or directory
Install systemd headers package.
Thanks, I solved this installing sudo apt install libsystemd-dev
and project run well :+1:
Could you please provide me an example, how can I test this with opencv? I'm using opencv with cuda and c++