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

Issues with installation on a docker and best fix. #8

Open
femder-bdai opened this issue Apr 10, 2024 · 0 comments
Open

Issues with installation on a docker and best fix. #8

femder-bdai opened this issue Apr 10, 2024 · 0 comments

Comments

@femder-bdai
Copy link
Contributor

Hello Team,

I've been working on enhancing the compilation process and its utilization within a Docker environment.

Prior to compiling, I need to install certain dependencies on my host computer. I initially assumed this would be handled automatically with Bazel, but for some reason, it's not occurring as expected. Do any of you have insights into why this might be happening?

Here's the installation process I've been following within the Docker container:

sudo apt update && sudo apt install -y python3-dev python3-pip libglib2.0-dev

# Install Bazel
sudo apt install apt-transport-https curl gnupg -y
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg
sudo mv bazel-archive-keyring.gpg /usr/share/keyrings
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list

sudo apt update && sudo apt install -y libjpeg-dev libtbb-dev libtiff5-dev libpng-dev libboost-all-dev

git clone https://github.com/RobotLocomotion/realsense2-lcm-driver.git

cd realsense2-lcm-driver
bazel build //...

One consideration is to create a bash script that handles the entire installation process, but I'm uncertain if this aligns well with Bazel's best practices.

Thank you in advance for your assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant