Skip to content

Commit

Permalink
devcontainer: Fix opencv compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
marcojob committed Nov 7, 2024
1 parent c98c1b8 commit bfffda7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86

# CUDA: Add PATH and LD_LIBRARY_PATH to .bash_aliases
RUN echo 'export PATH=$PATH:/usr/local/cuda-11.8/bin' >> /home/asl/.bash_aliases && \
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.8/lib64:/usr/lib/x86_64-linux-gnu/' >> /home/asl/.bash_aliases
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.8/lib64' >> /home/asl/.bash_aliases

# TensorRT: Install from .deb file: Seems we run 8.5.2.2 (which is bundled with 8.5.3)
COPY .devcontainer/nv-tensorrt-local-repo-ubuntu2004-8.5.3-cuda-11.8_1.0-1_amd64.deb /tmp/tensorrt.deb
Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/build_opencv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ configure() {
-D BUILD_opencv_python3=OFF
-D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=${PREFIX}
-D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-11.8
-D CUDA_ARCH_BIN=${CUDA_ARCH_BIN}
-D CUDA_FAST_MATH=ON
-D CUDNN_VERSION='${CUDNN_VERSION}'
Expand All @@ -170,8 +171,7 @@ configure() {
-D WITH_OPENGL=ON"

if [[ "$1" != "test" ]] ; then
CMAKEFLAGS="
${CMAKEFLAGS}
CMAKEFLAGS="${CMAKEFLAGS}
-D BUILD_PERF_TESTS=OFF
-D BUILD_TESTS=OFF"
fi
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ docs/xml
site/

.devcontainer/*.deb
*.out
resources/*
build/*
test/resources/*.plan

0 comments on commit bfffda7

Please sign in to comment.