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

Building project with docker #5

Closed
HankRobot opened this issue Oct 27, 2020 · 3 comments
Closed

Building project with docker #5

HankRobot opened this issue Oct 27, 2020 · 3 comments

Comments

@HankRobot
Copy link

HankRobot commented Oct 27, 2020

I'm trying to install the entire project using a docker container however despite showing positive results at the Dart wrapping section, the build stopped with the error below:

image

This is my dockerfile
FROM ubuntu:16.04

RUN apt-get update && apt-get install -y software-properties-common sudo &&
apt-add-repository ppa:dartsim/ppa

ARG buildtime_variable=$HOME/Hexapod
ENV RESIBOTS_DIR=$buildtime_variable

ARG buildtime_variable1=$LD_LIBRARY_PATH:/lib:/usr/lib:/usr/local/lib
ENV LD_LIBRARY_PATH=$buildtime_variable1

RUN mkdir -p "$RESIBOTS_DIR"
WORKDIR $RESIBOTS_DIR

RUN sudo apt-get update && sudo apt-get install -y
build-essential cmake pkg-config git
libeigen3-dev libassimp-dev libccd-dev libfcl-dev libboost-regex-dev libboost-system-dev libode-dev
libopenscenegraph-dev
libxmu-dev libxi-dev
freeglut3-dev

RUN sudo apt-get update && sudo apt-get install -y
libtinyxml-dev libtinyxml2-dev libdart6-all-dev
liburdfdom-dev liburdfdom-headers-dev

RUN sudo apt-get update && sudo apt-get install -y
libeigen3-dev libboost-serialization-dev libboost-filesystem-dev libboost-test-dev libboost-program-options-dev libboost-thread-dev libboost-regex-dev libboost-graph-dev
libtbb-dev

WORKDIR $RESIBOTS_DIR
RUN git clone git://github.com/dartsim/dart.git
WORKDIR $RESIBOTS_DIR/dart
RUN git checkout v6.3.0

RUN mkdir build
WORKDIR $RESIBOTS_DIR/dart/build
RUN cmake -DDART_ENABLE_SIMD=OFF ..
RUN make -j4
RUN sudo make install

WORKDIR $RESIBOTS_DIR
RUN git clone https://github.com/resibots/hexapod_common.git
WORKDIR $RESIBOTS_DIR/hexapod_common/hexapod_models
RUN ./waf configure --prefix=$RESIBOTS_DIR
RUN ./waf install
WORKDIR $RESIBOTS_DIR/hexapod_common/hexapod_controller
RUN ./waf configure --prefix=$RESIBOTS_DIR &&
./waf &&\
./waf install

WORKDIR $RESIBOTS_DIR
RUN git clone https://github.com/resibots/hexapod_simu.git
WORKDIR $RESIBOTS_DIR/hexapod_simu/hexapod_dart
RUN ./waf configure --prefix=$RESIBOTS_DIR &&
./waf &&\
./waf install

WORKDIR $RESIBOTS_DIR
RUN git clone https://github.com/resibots/limbo.git
WORKDIR $RESIBOTS_DIR/limbo
RUN mkdir exp
WORKDIR $RESIBOTS_DIR/limbo/exp
RUN git clone https://github.com/resibots/ite_v2.git
WORKDIR $RESIBOTS_DIR
RUN ./waf configure --exp ite_v2 &&\
./waf --exp ite_v2
RUN ./build/exp/ite_v2/hexapod_simu path_to_archive [-l 2] [-n 5]

@costashatz
Copy link
Member

Hey,

Thanks for using the code.

libdart6-all-dev

You should not install dart by apt-get. We do it manually later. I think this is confusing the compiler.. Can you remove the installation of this package and leave the installation from source code only?

Let me know if the issue persists..

@HankRobot
Copy link
Author

Hi, thanks for replying, the issue has been solved, I also met a segmentation fault when running the simulation but changing RUN cmake -DDART_ENABLE_SIMD=OFF.. to RUN cmake -DDART_ENABLE_SIMD=ON .. seems to have solved the issue.

@costashatz
Copy link
Member

RUN cmake -DDART_ENABLE_SIMD=OFF.. to RUN cmake -DDART_ENABLE_SIMD=ON .. seems to have solved the issue.

Yes because in ite_v2 we assume that DART has been built with SIMD instructions. Good to know that the issue is solved..

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

2 participants