magritte
magritte copied to clipboard
bazel run in the docker container
when i run bazel run //magritte/examples/desktop --cxxopt='-std=c++17' --experimental_repo_remote_exec --sandbox_debug -- --resource_root_dir=$(bazel info bazel-bin --experimental_repo_remote_exec)/magritte/examples/desktop/desktop_resource_folder --graph_type=FacePixelizationOfflineCpu --input_video=/home/dell/resources/magritteTest.mp4 --output_video=/home/dell/resources
in the container it gives this error
ERROR: /root/.cache/bazel/bazel_root/d5c47a48ad9e38cc04f2d26463381703/external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/BUILD:239:11: Compiling tensorflow/lite/delegates/gpu/gl/gl_errors.cc failed: (Exit 1): process-wrapper failed: error executing command
(cd /root/.cache/bazel/bazel_root/d5c47a48ad9e38cc04f2d26463381703/sandbox/processwrapper-sandbox/978/execroot/magritte &&
exec env -
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/proc/self/cwd
TMPDIR=/tmp
/root/.cache/bazel/bazel_root/install/41b71f1bb3ce13f20cfeeb31a9357113/process-wrapper '--timeout=0' '--kill_delay=15' /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 bazel-out/k8-fastbuild/bin/external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/objs/gl_errors/gl_errors.pic.d '-frandom-seed=bazel-out/k8-fastbuild/bin/external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/objs/gl_errors/gl_errors.pic.o' -fPIC -iquote external/org_tensorflow -iquote bazel-out/k8-fastbuild/bin/external/org_tensorflow -iquote external/com_google_absl -iquote bazel-out/k8-fastbuild/bin/external/com_google_absl '-std=c++17' -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE="redacted"' '-D__TIMESTAMP="redacted"' '-D__TIME_="redacted"' -c external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/gl_errors.cc -o bazel-out/k8-fastbuild/bin/external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/_objs/gl_errors/gl_errors.pic.o)
In file included from /usr/include/EGL/eglplatform.h:134,
from /usr/include/EGL/egl.h:39,
from external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/portable_egl.h:19,
from external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/gl_errors.cc:23:
external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/gl_errors.cc:61:7: error: expected unqualified-id before 'int'
61 | absl::Status GetOpenGlErrors() {
| ^~~~~~
external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/gl_errors.cc:83:7: error: expected unqualified-id before 'int'
83 | absl::Status GetEglError() {
| ^~~~~~
Target //magritte/examples/desktop:desktop failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 74.995s, Critical Path: 40.61s
INFO: 442 processes: 18 internal, 424 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
maybe because of TensorFlow Lite GPU version ?
Does your container have a GPU? Otherwise you need to include the flag --define MEDIAPIPE_DISABLE_GPU=1
, see Build and run desktop example.