Open AlejoDiaz49 opened 3 years ago
Here I leave the Dockerfile to easily have this environment and reproduce the same errors and warnings.
FROM nvidia/cuda:11.0-devel-ubuntu20.04
WORKDIR /home/
# Basic Tools
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes apt-utils=2.0.2ubuntu0.2 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes sudo=1.8.31-1ubuntu1.1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes ca-certificates=20201027ubuntu0.20.04.1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes g++=4:9.3.0-1ubuntu2 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes gcc=4:9.3.0-1ubuntu2 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes git=1:2.25.1-1ubuntu3 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes make=4.2.1-1.2 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes cmake=3.16.3-1ubuntu1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes vim=2:8.1.2269-1ubuntu5 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Libraries & Dependencies
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes libboost-all-dev=1.71.0.0ubuntu2 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN git clone https://gitlab.com/libeigen/eigen.git && \
cd eigen && \
git checkout 3.3.9 && \
mkdir build && \
cd build && \
cmake ../ && \
make && \
make install && \
cd ../../ && \
rm -rf eigen/
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes libflann-dev=1.9.1+dfsg-9build1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV TZ=Europe
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes libvtk7-dev=7.1.1+dfsg2-2ubuntu1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes libtinyxml-dev=2.6.2-4build1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes freeglut3-dev=2.8.1-3 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes libglm-dev=0.9.9.7+ds-1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes libglew-dev=2.1.0-4 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/PointCloudLibrary/pcl.git && \
cd pcl/ && \
git checkout pcl-1.9.1 && \
mkdir build && \
cd build && \
cmake ../ -DBUILD_examples=OFF && \
make -l 2.5 && \
make install && \
cd ../../ && \
rm -rf pcl/
# Create non root user in the sudo group.
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN useradd --create-home --shell /bin/bash --gid sudo gpuvoxels
RUN echo 'gpuvoxels:gpuvoxels' | chpasswd
USER gpuvoxels
WORKDIR /home/gpuvoxels
Thanks a lot, @AlejoDiaz49 !!
Hello everyone,
I am migrating the Framework of my team to Ubuntu 20, there are not really many issues with GPUVoxels, but quite a lot warnings. This my current environment.
Basic Dependencies
Dependencies
Although PCL has newer versions, I have to make many changes in my own code to make it work, I will change it whenever I can this year. So for the moment I will stick with 1.9.1 but the other things I will change them.
Also for CUDA the one that come with nvidia-cuda-toolkit is 10.1 but this one only work with gcc 8 or less, and I don't want to have different version of gcc since the default on Ubuntu 20 is gcc 9 and I already had some issues trying to compile everything
In any case I will try to build a Docker image with this environment and put here the file, so that is easier to reproduce.
Regarding the issues, I only got 2 errors:
CUDA 11
The error is
I tested the merge request #117 and It seems to compile and pass the tests. Will it be merge?
Boost 1.71
The error is
The problem i think is that this only accepts int values now, to test it I put a cast from float to int and it compiled, although is probably not the correct solution. I am not completely sure if the decimals can be ignored
Warnings
There are quite a few warnings, I will put the ones that are repeated the most.
The new version of GCC now shows more warnings and from experience some of them can be real bugs in the code, so is worth looking
Cheers