Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libcoral C++ on WSL2 Debian Bullseye #29

Open
ArchitB22976 opened this issue Mar 19, 2023 · 2 comments
Open

Libcoral C++ on WSL2 Debian Bullseye #29

ArchitB22976 opened this issue Mar 19, 2023 · 2 comments
Assignees
Labels
Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues

Comments

@ArchitB22976
Copy link

ArchitB22976 commented Mar 19, 2023

Description

image
I've recently made an attempt to run the libcoral examples on C++ with no success. This is the error message I get. Am I supposed to use an older version of Bazel? I'm using Bazelisk, if that matters.

Click to expand!

Issue Type

No response

Operating System

Linux

Coral Device

USB Accelerator

Other Devices

No response

Programming Language

C++

Relevant Log Output

No response

@google-coral-bot google-coral-bot bot added Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues labels Mar 19, 2023
@hjonnala
Copy link

@ArchitB22976 Yes, please try with bazel version 4.0.0 : https://github.com/google-coral/libcoral/blob/master/docker/Dockerfile#L81

@ArchitB22976
Copy link
Author

ArchitB22976 commented Mar 31, 2023

Hi, I've tried using the 4.0 version. While it does solve the error messages I was getting in this issue, newer problems have cropped up, which looks like it's a problem with trying to run the inference program on WSL2. I'm linking back to issue #13
because from what I can tell, my current set of error messages are the same as the OP in that issue. As noted there, there is no support for WSL.

In case someone stumbles across this issue, there you go. I may have misled @hjonnala here with my tags (certainly not intentionally), because I was trying to get the closest possible tags related to my issue, but otherwise this issue is unresolved for the time being. In case anyone is wondering, I've made an attempt to run this program on a Debian 11.4 VM on VMWare player, and I get the same set of error messages as with WSL. I'm assuming that there isn't any support for virtual instances of Linux distros. I was trying to run these virtual instances because I initially was trying to run this program on Windows, but quickly came to realise that it was going to be too much effort trying to make that possible, and my work PC doesn't have dual boot, so Linux was not an option there. I do have intentions to run dual boot on my home PC (for a completely different reason), so I guess this just makes it easier for me to prioritise that and make another attempt.

All that said, the current solution, outside of trying to run the program on a Linux distro directly (not virtually), is to run an instance on Docker, since the provided Dockerfile abstracts a lot of the dependency management required to run the program. While I appreciate that, I'm trying to avoid using Docker, since my line of work requires working as closely with the hardware related to the program as possible. I know, using the VMWare for this was very counter-intuitive, but I was getting fairly desperate and was just trying to get a working instance running the program, but otherwise WSL was what I figured would've been a better option to run Linux virtually.

I'm really only writing all this to make sure that anyone else in a similar situation can either avoid using this repo entirely (if they can get away with using the Python version of this library and are stuck with Windows) or brace themselves to using Docker or a Linux machine (if they're working closely with the hardware). Outside of that, there is (in my experience) no support for any other options when it comes to running this library. Not sure why it's this restrictive, considering that the USB accelerator should be targetting hobbyists, but it seems that the general assumption is that the kind of people going for the device would be using Linux if they want to run the C++ version. I'm fairly new to all this in general, so if I've missed anything out, it's largely because most of what I've experienced here is based on the materials I could find online to try and get this thing running. If there's anyone who's managed to run instances of this repo on a Windows machine (WSL, VMWare or otherwise) sucessfully, I'd like to welcome them to share how they've done it here. Obviously, if you've used Docker, my understanding is that the docker build provided here emulates the hardware the program is to run on for compilation and execution, and that's not exactly what I'm looking for. If my understanding is incorrect, I'll appreciate any corrections on that front.

Leaving this issue open so that @hjonnala has an opportunity to add on to this if possible. Please feel free to close this if you think it's better to close it, but I'd like it if you could elaborate further (or correct me if I misunderstood something) on the usage and such.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues
Projects
None yet
Development

No branches or pull requests

2 participants