Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

libcudart issue if using docker #1

Open
AndreV84 opened this issue Sep 7, 2020 · 1 comment
Open

libcudart issue if using docker #1

AndreV84 opened this issue Sep 7, 2020 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on

Comments

@AndreV84
Copy link

AndreV84 commented Sep 7, 2020

 Unable to find cudart library.
-- Could NOT find CUDAToolkit (missing: CUDA_CUDART) (found version "10.2.89")
ERRORUnable to find third-party library CUDAToolkit
-- Building library 3rdparty_poisson from source
-- Unable to find cudart library.
CMake Error at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find CUDAToolkit (missing: CUDA_CUDART) (found version "10.2.89")
Call Stack (most recent call first):
  /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/share/cmake-3.18/Modules/FindCUDAToolkit.cmake:731 (find_package_handle_standard_args)
  src/Cuda/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!

Steps to reproduce:
on Jetson create Dockerfile with the content below, then execute
docker build . -t open3d
Dockerfile:

FROM nvcr.io/nvidia/l4t-base:r32.4.3
RUN apt-get update -y
RUN apt upgrade -y
ENV TZ America/Los_Angeles
RUN DEBIAN_FRONTEND="noninteractive" apt install -y libssl-dev wget sudo  tzdata  software-properties-common apt-utils  curl git && apt-get install -y build-essential
RUN DEBIAN_FRONTEND="noninteractive" apt-get purge cmake && wget https://github.com/Kitware/CMake/releases/download/v3.18.2/cmake-3.18.2.tar.gz && tar -zxvf cmake-3.18.2.tar.gz && cd cmake-3.18.2 &&  ./bootstrap && make && make install

RUN apt-get install -y libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev
RUN apt-get install -y libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev

RUN  apt remove --purge libeigen3-dev -y && wget https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.gz && tar -xvf eigen-3.3.7.tar.gz && cd eigen-3.3.7  && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr/loca .. && make && make install

#RUN  git clone --recursive https://github.com/devshank3/Open3D-for-Jetson.git && cd Open3D-for-Jetson/ && cd util/scripts/ && ./install-deps-ubuntu.sh
RUN mkdir -p git_src/Open3D/theNded && cd git_src/Open3D/theNded && git clone --recursive https://github.com/theNded/Open3D.git && cd Open3D &&  git checkout 0ca8fd19d355d80e5998efec31858fe19791ccf5  && wget https://raw.githubusercontent.com/nanotuxi/jetsonNanoPatches/master/Open3DJetsonCudaRealSense.patch && git apply Open3DJetsonCudaRealSense.patch
# git checkout 0ca8fd19d355d80e5998efec31858fe19791ccf5 && cd Open3d && wget https://raw.githubusercontent.com/nanotuxi/jetsonNanoPatches/master/Open3DJetsonCudaRealSense.patch && git apply Open3DJetsonCudaRealSense.patch &&  cd util/scripts/ && ./install-deps-ubuntu.sh && sudo apt autoremove && make clean && cmake .. && make -j6 && make install-pip-package
RUN  apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran -y
RUN ldconfig
RUN apt-get install python3-pip -y
RUN pip3 install -U pip testresources setuptools
RUN pip3 install -U numpy==1.16.1 future==0.17.1 mock==3.0.5 h5py==2.9.0 keras_preprocessing==1.0.5 keras_applications==1.0.8 gast==0.2.2 futures protobuf pybind11
RUN pip3 install Cython
RUN apt update -y && apt upgrade -y
RUN apt install -y  python3-matplotlib libopencv-dev python3-opencv python3-joblib
#RUN export CUDA_curand_LIBRARY:FILEPATH=/usr/local/cuda-10.2/targets/aarch64-linux/lib/libcurand.so
#RUN apt-get install -y libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev
#RUN apt-get install -y libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev
#RUN cd Open3D-for-Jetson/ && mkdir build && cd build && rm -rf * && cmake -DBUILD_EIGEN3=OFF .. && sudo make -j8
#RUN wget https://github.com/IntelRealSense/librealsense/archive/2.38.1.2169.tar.gz && tar -xvf 2.38.1.2169.tar.gz && cd librealsense-2.38.1.2169/ && mkdir build && cd b$
ENV CPATH=/usr/local/cuda-10.2/targets/aarch64-linux/include:$CPATH
ENV LD_LIBRARY_PATH=/usr/local/cuda-10.2/targets/aarch64-linux/lib:$LD_LIBRARY_PATH
ENV PATH=/usr/local/cuda-10.2/bin:$PATH
RUN ln -s /usr/local/cuda-10.2 /usr/local/cuda
RUN export CPATH=/usr/local/cuda-10.2/targets/aarch64-linux/include:$CPATH && export LD_LIBRARY_PATH=/usr/local/cuda-10.2/targets/aarch64-linux/lib:$LD_LIBRARY_PATH &&  export PATH=/usr/local/cuda-10.2/bin:$PATH && ldconfig && cd git_src/Open3D/theNded/Open3D && mkdir build && cd build && rm -rf * && cmake -DBUILD_EIGEN3=OFF .. && sudo make -j8 
@nanotuxi nanotuxi added bug Something isn't working wontfix This will not be worked on help wanted Extra attention is needed labels Oct 2, 2020
@nanotuxi
Copy link
Owner

nanotuxi commented Oct 2, 2020

@AndreV84 This bug will not be fixed by me as building a docker image was not my goal. Maybe it will be fixed by someone who has more experience with building docker images. My experience doing that ist = 0. Sorry. Maybe someone can be found to fix this issue. Sorry for this late response. For some reason I haven' t been notified.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants