You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @dusty-nv ,
I am building l4t-pytorch container using this link(https://hub.docker.com/r/dustynv/l4t-pytorch/tags specifically the r36.4.0 tag.
I tested with opencv, pytorcvh, torchvisiona dn torchaudio. They all work fine but the opencv support for c++ is absent.
I tried to look at your script that is there in
/tmp/opencv/build.sh
And I found out that there might be a couple of mistakes:
First there might an issue with the branch of opencv-python repository
Here, the opencv_VERISON is wrong. the opencv-python repository does not have numbering according to versions. It just has 3.x,4.x etc. https://github.com/opencv/opencv-python/branches/all
2. the cmake and make command might have been omitted out by mistake
export ENABLE_CONTRIB=1
export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc)
export CMAKE_ARGS="\
-DCPACK_BINARY_DEB=ON \
-DBUILD_EXAMPLES=OFF \
-DBUILD_opencv_python2=OFF \
-DBUILD_opencv_python3=ON \
-DBUILD_opencv_java=OFF \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCUDA_ARCH_BIN=${CUDA_ARCH_BIN} \
-DCUDA_ARCH_PTX= \
-DCUDA_FAST_MATH=ON \
-DCUDNN_INCLUDE_DIR=/usr/include/$(uname -i)-linux-gnu \
-DEIGEN_INCLUDE_PATH=/usr/include/eigen3 \
-DWITH_EIGEN=ON \
-DENABLE_NEON=ON \
-DOPENCV_DNN_CUDA=ON \
-DOPENCV_ENABLE_NONFREE=ON \
-DOPENCV_EXTRA_MODULES_PATH=/opt/opencv-python/opencv_contrib/modules \
-DOPENCV_GENERATE_PKGCONFIG=ON \
-DOpenGL_GL_PREFERENCE=GLVND \
-DWITH_CUBLAS=ON \
-DWITH_CUDA=ON \
-DWITH_CUDNN=ON \
-DWITH_GSTREAMER=ON \
-DWITH_LIBV4L=ON \
-DWITH_GTK=ON \
-DWITH_OPENGL=OFF \
-DWITH_OPENCL=OFF \
-DWITH_IPP=OFF \
-DWITH_TBB=ON \
-DBUILD_TIFF=ON \
-DBUILD_PERF_TESTS=OFF \
-DBUILD_TESTS=OFF"
# I added the following code to build it again:
mkdir -p build && cd build
# Run cmake with the specified arguments
cmake ../opencv ${CMAKE_ARGS}
# Compile and install
make -j$(nproc)
make install
# Return to the root directory and remove the build directory
cd ..
rm -rf build
Please look into it. Thanks!
The text was updated successfully, but these errors were encountered:
Hi @dusty-nv ,
I am building l4t-pytorch container using this link(https://hub.docker.com/r/dustynv/l4t-pytorch/tags specifically the r36.4.0 tag.
I tested with opencv, pytorcvh, torchvisiona dn torchaudio. They all work fine but the opencv support for c++ is absent.
I tried to look at your script that is there in
And I found out that there might be a couple of mistakes:
Here, the opencv_VERISON is wrong. the opencv-python repository does not have numbering according to versions. It just has 3.x,4.x etc. https://github.com/opencv/opencv-python/branches/all
2. the cmake and make command might have been omitted out by mistake
Please look into it. Thanks!
The text was updated successfully, but these errors were encountered: