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

WORKSPACE new_local_repository system_linux path is wrong on Ubuntu 20.04 (Windows 10 WSL) #13

Closed 0ric1 closed 3 years ago

0ric1 commented 3 years ago

must be path = "/usr/lib", instead of path = "/usr/system_libs",

hjonnala commented 3 years ago

@0ric1 can you please share the error you are getting because of path = "/usr/system_libs"

0ric1 commented 3 years ago

I called: make tests the result was: ... ERROR: /mnt/c/Users/user/libcoral/WORKSPACE:86:21: fetching new_local_repository rule //external:system_linux: java.io.IOException: The repository's path is "/usr/system_libs" (absolute: "/usr/system_libs") but this directory does not exist. ERROR: /mnt/c/Users/user/libcoral/coral/dmabuf/BUILD:7:8: //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. ERROR: /mnt/c/Users/user/libcoral/coral/dmabuf/BUILD:7:8: //coral/dmabuf:dmabuf_devboard_test depends on @system_linux//:gstreamer 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. ERROR: Analysis of target '//coral/dmabuf:dmabuf_devboard_test' failed; build aborted: Analysis failed INFO: Elapsed time: 33.069s INFO: 0 processes. FAILED: Build did NOT complete successfully (28 packages loaded, 110 targets configured)

hjonnala commented 3 years ago

I have tried making that change execute make tests command. It is not successful. Please let us know if you are able to run the command make tests without fail.

0ric1 commented 3 years ago

It still fails, because of the other issue https://github.com/google-coral/libcoral/issues/12 so I think you need to fix both issues to be able to compile.

hjonnala commented 3 years ago

unfortunately, as of now we don't have any official support for WSL installations of libcoral without Docker image. Sorry for inconvenience.