-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Installing Groot and BehaviorTree.CPP in docker #156
Comments
Which error did you have? |
What worked for me was: Dockerfile:FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y -q git build-essential cmake python3 libzmq3-dev qt5-default libqt5svg5-dev
RUN git clone https://github.com/BehaviorTree/Groot.git &&\
cd Groot &&\
git submodule update --init --recursive &&\
cd depend/BehaviorTree.CPP &&\
mkdir build ; cd build &&\
cmake .. &&\
make &&\
make install &&\
cd /Groot &&\
mkdir build; cd build &&\
cmake .. &&\
make &&\
# add alias for Groot GUI (simply type "Groot" in terminal)
echo 'alias Groot="cd /Groot/build && ./Groot"' >> ~/.bashrc
# fixes: "error while loading shared libraries: libbehaviortree_cpp_v3.so: cannot open shared object"
RUN ldconfig
CMD cd /Groot/build && ./Groot
ComposeOf course requires mounting x11 as a volume: groot:
container_name: groot
build:
context: ./path_to_folder_with_dockerfile
environment:
- DISPLAY
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw |
Thank you. It works! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I had a problem building Groot with BehaviorTree.CPP inside docker.
To solve it, I had to follow the specific instructions for building BehaviorTree.CPP.
So if anyone might benefit from this... Here is the part from my Dockerfile to install both Groot and BehaviorTree.CPP
The text was updated successfully, but these errors were encountered: