google-coral / libcoral

C++ API for ML inferencing and transfer-learning on Coral devices
https://coral.ai
Apache License 2.0
84 stars 44 forks source link

build error about bazel #5

Closed jk78346 closed 3 years ago

jk78346 commented 3 years ago

Hi, I'm trying to install and make this repository. I following the instructions by simply git clone and do make with bazel involved internally. However, I got this error message:

ERROR: ~/libcoral/coral/dmabuf/BUILD:7:1: //coral/dmabuf:dmabuf_devboard_test depends on
@system_linux//:gstallocators in repository @system_linux which failed to fetch. no such package
'@system_linux//': The repository's path is "/usr/system_libs" (absolute: "/usr/system_libs") but this directory does
not exist.

I'm using linux x86 CPU. How can I address this issue? I'm not sure if minimum bazel version is required, my bazel version is 2.0.0.

Namburger commented 3 years ago

@jk78346 please build using the docker image, building this target natively isn't going to work since our dma buffer feature is platform specific

jk78346 commented 3 years ago

Is there any specific platform version I can try on for native build?

manoj7410 commented 3 years ago

@jk78346 Have you tried building using Docker ?

manoj7410 commented 3 years ago

Closing this due to lack of activity.

nibeh commented 3 years ago

I successfully built on Ubuntu 18.04. You would only need to change the system_libs path in WORKSPACE:86 (https://github.com/google-coral/libcoral/blob/master/WORKSPACE#L86) to

new_local_repository(
    name = "system_linux",
    build_file = "third_party/system_linux/BUILD",
    path = "/usr/lib",
)

I also had to add glib-2.0 header for dmabuf tests and upgrade google benchmark repo dependency.

anuragkarwa001 commented 3 years ago

I successfully built on Ubuntu 18.04. You would only need to change the system_libs path in WORKSPACE:86 (https://github.com/google-coral/libcoral/blob/master/WORKSPACE#L86) to

new_local_repository(
    name = "system_linux",
    build_file = "third_party/system_linux/BUILD",
    path = "/usr/lib",
)

I also had to add glib-2.0 header for dmabuf tests and upgrade google benchmark repo dependency.

what do you mean by " upgrade google benchmark repo dependency" can you please tell me