-
-
Notifications
You must be signed in to change notification settings - Fork 55.6k
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
OpenCv Cmake fail Error 2, Makefile:162: recipe for target 'all' failed, opencv_cudafilters #15398
Comments
@mshabunin @Esraa94 I also hit this error. Wondering why issue was marked invalid ? Can you throw some lights on it? |
Fixed here: #15653 |
@fti-aagrawal latest throws same error |
Why is this issue closed if it's not resolved yet? |
This day, I encounter the same issue.
|
I have the same Error as well. System Information-
Detailed Description Steps to reproduce
cmake -D CMAKE_BUILD_TYPE=RELEASE Output of Step-1 -
make -j8 Output from the terminal => |
Just use my container, it works great:
https://github.com/joehoeller/NVIDIA-GPU-Tensor-Core-Accelerator-PyTorch-OpenCV
…On Sun, Mar 8, 2020 at 10:43 AM automotiveexperimental < ***@***.***> wrote:
I have the same Error as well.
*System Information-*
- Operating System - 18.04.4 LTS
-OpenCv - 3.4.5
-GPU - 1660 TI
*Detailed Description*
[ 58%] Linking CXX shared library ../../lib/libopencv_cudafilters.so
[ 58%] Built target opencv_cudafilters
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
*Steps to reproduce*
1. Step - 1
cmake -D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr/local
-D WITH_CUDA=ON
-D CUDA_GENERATION=Auto
-D WITH_CUBLAS=ON
-D WITH_TBB=ON
-D WITH_V4L=ON
-D WITH_QT=ON
-D WITH_OPENGL=ON
-D BUILD_PERF_TESTS=OFF
-D BUILD_TESTS=OFF
-D BUILD_TIFF=ON
-D ENABLE_CXX11=ON
-D WITH_PROTOBUF=OFF
-D BUILD_opencv_legacy=OFF
-D ENABLE_PRECOMPILED_HEADERS=OFF
-D INSTALL_PYTHON_EXAMPLES=ON
-D INSTALL_C_EXAMPLES=OFF
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules
-D PYTHON_EXECUTABLE=/usr/bin/python3
-D CUDA_NVCC_FLAGS="-D_FORCE_INLINES" ..
Output of Step-1 -
Looking for ccache - not found
Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version
"1.2.11", minimum required is "1.2.3")
Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
Looking for linux/videodev.h
Looking for linux/videodev.h - found
Looking for linux/videodev2.h
Looking for linux/videodev2.h - found
Looking for sys/videoio.h
Looking for sys/videoio.h - not found
Found TBB (env): /usr/lib/x86_64-linux-gnu/libtbb.so
found Intel IPP (ICV version): 2019.0.0 [2019.0.0 Gold]
at: /home/amx/opencv/build/3rdparty/ippicv/ippicv_lnx/icv
found Intel IPP Integration Wrappers sources: 2019.0.0
at: /home/amx/opencv/build/3rdparty/ippicv/ippicv_lnx/iw
CUDA detected: 10.2
CUDA NVCC target flags:
-D_FORCE_INLINES;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_61,code=sm_61;-D_FORCE_INLINES
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR)
A library with BLAS API found.
A library with LAPACK API found.
Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2
JAVA_AWT_INCLUDE_PATH)
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or
to VTK install subdirectory with VTKConfig.cmake file
OpenCV Python: during development append to PYTHONPATH:
/home/amx/opencv/build/python_loader
Caffe: NO
Could NOT find Protobuf (missing: Protobuf_INCLUDE_DIR)
Protobuf: NO
Glog: NO
freetype2: YES
harfbuzz: YES
Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS) (found
version "")
Module opencv_ovis disabled because OGRE3D was not found
No preference for use of exported gflags CMake configuration set, and no
hints for include/library directories provided. Defaulting to preferring an
installed/exported gflags CMake configuration if available.
Failed to find installed gflags CMake configuration, searching for gflags
build directories exported with CMake.
Failed to find gflags - Failed to find an installed/exported CMake
configuration for gflags, will perform search for installed gflags
components.
Failed to find gflags - Could not find gflags include directory, set
GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
Failed to find glog - Could not find glog include directory, set
GLOG_INCLUDE_DIR to directory containing glog/logging.h
Module opencv_sfm disabled because the following dependencies are not
found: Eigen Glog/Gflags
Module opencv_dnn_objdetect disabled because opencv_dnn dependency can't
be resolved!
Module opencv_text disabled because opencv_dnn dependency can't be
resolved!
freetype2: YES
harfbuzz: YES
General configuration for OpenCV 3.4.5
=====================================
Version control: unknown
Extra modules:
Location (extra): /home/amx/opencv_contrib/modules
Version control (extra): unknown
Platform:
Timestamp: 2020-03-06T14:54:03Z
Host: Linux 5.3.0-40-generic x86_64
CMake: 3.10.2
CMake generator: Unix Makefiles
CMake build tool: /usr/bin/make
Configuration: RELEASE
CPU/HW features:
Baseline: SSE SSE2 SSE3
requested: SSE3
Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
SSE4_1 (4 files): + SSSE3 SSE4_1
SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2
FP16 (0 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
AVX (4 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
AVX2 (9 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
AVX512_SKX (0 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
AVX_512F AVX512_SKX
C/C++:
Built as dynamic libs?: YES
C++11: YES
C++ Compiler: /usr/bin/c++ (ver 7.4.0)
C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type
-Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat
-Werror=format-security -Wmissing-declarations -Wundef -Winit-self
-Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self
-Wsuggest-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment
-Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option
-Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections
-fdata-sections -msse -msse2 -msse3 -fvisibility=hidden
-fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type
-Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat
-Werror=format-security -Wmissing-declarations -Wundef -Winit-self
-Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self
-Wsuggest-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment
-Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option
-Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections
-fdata-sections -msse -msse2 -msse3 -fvisibility=hidden
-fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
C Compiler: /usr/bin/cc
C flags (Release): -fsigned-char -W -Wall -Werror=return-type
-Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat
-Werror=format-security -Wmissing-declarations -Wmissing-prototypes
-Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow
-Wuninitialized -Winit-self -Wno-narrowing -Wno-comment
-Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option
-Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections
-fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG
-DNDEBUG
C flags (Debug): -fsigned-char -W -Wall -Werror=return-type
-Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat
-Werror=format-security -Wmissing-declarations -Wmissing-prototypes
-Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow
-Wuninitialized -Winit-self -Wno-narrowing -Wno-comment
-Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option
-Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections
-fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG
-D_DEBUG
Linker flags (Release):
Linker flags (Debug):
ccache: NO
Precompiled headers: NO
Extra dependencies: m pthread /usr/lib/x86_64-linux-gnu/libGL.so
/usr/lib/x86_64-linux-gnu/libGLU.so cudart_static -lpthread dl rt nppc
nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps
cublas cufft -L/usr/local/cuda-10.2/lib64 -L/usr/lib/x86_64-linux-gnu
3rdparty dependencies:
OpenCV modules:
To be built: aruco bgsegm bioinspired calib3d ccalib core cudaarithm
cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy
cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv datasets dpm
face features2d flann freetype fuzzy hfs highgui img_hash imgcodecs imgproc
java_bindings_generator line_descriptor ml objdetect optflow
phase_unwrapping photo plot python3 python_bindings_generator reg rgbd
saliency shape stereo stitching structured_light superres surface_matching
tracking video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
Disabled: world
Disabled by dependency: dnn_objdetect text
Unavailable: cnn_3dobj dnn hdf java js matlab ovis python2 sfm ts viz
Applications: apps
Documentation: NO
Non-free algorithms: NO
GUI:
QT: YES (ver 5.9.5)
QT OpenGL support: YES (Qt5::OpenGL 5.9.5)
GTK+: NO
OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libGL.so
/usr/lib/x86_64-linux-gnu/libGLU.so)
VTK support: NO
Media I/O:
ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.11)
JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver 80)
WEBP: build (ver encoder: 0x020e)
PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.6.34)
TIFF: build (ver 42 - 4.0.9)
JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)
OpenEXR: build (ver 1.7.1)
HDR: YES
SUNRASTER: YES
PXM: YES
Video I/O:
DC1394: YES (ver 2.2.5)
FFMPEG: YES
avcodec: YES (ver 57.107.100)
avformat: YES (ver 57.83.100)
avutil: YES (ver 55.78.100)
swscale: YES (ver 4.8.100)
avresample: YES (ver 3.7.0)
GStreamer:
base: YES (ver 1.14.5)
video: YES (ver 1.14.5)
app: YES (ver 1.14.5)
riff: YES (ver 1.14.5)
pbutils: YES (ver 1.14.5)
libv4l/libv4l2: NO
v4l/v4l2: linux/videodev.h linux/videodev2.h
Parallel framework: TBB (ver 2017.0 interface 9107)
Trace: YES (with Intel ITT)
Other third-party libraries:
Intel IPP: 2019.0.0 Gold [2019.0.0]
at: /home/amx/opencv/build/3rdparty/ippicv/ippicv_lnx/icv
Intel IPP IW: sources (2019.0.0)
at: /home/amx/opencv/build/3rdparty/ippicv/ippicv_lnx/iw
Lapack: NO
Eigen: NO
Custom HAL: NO
NVIDIA CUDA: YES (ver 10.2, CUFFT CUBLAS NVCUVID)
NVIDIA GPU arch: 75 61
NVIDIA PTX archs:
OpenCL: YES (no extra features)
Include path: /home/amx/opencv/3rdparty/include/opencl/1.2
Link libraries: Dynamic load
Python 3:
Interpreter: /usr/bin/python3 (ver 3.6.9)
Libraries: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (ver 3.6.9)
numpy: /home/amx/.local/lib/python3.6/site-packages/numpy/core/include
(ver 1.18.1)
install path: lib/python3.6/dist-packages/cv2/python-3.6
Python (for build): /usr/bin/python3
Java:
ant: NO
JNI: NO
Java wrappers: NO
Java tests: NO
Install to: /usr/local
--------------------------------------------------
Configuring done
Generating done
Build files have been written to: /home/amx/opencv/build
1. Step -2 ->
make -j8
Output from the terminal =>
cmake_output.txt
<https://github.com/opencv/opencv/files/4303446/cmake_output.txt>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#15398?email_source=notifications&email_token=ABHVQHBL6OYCOIYMLIK52ILRGO4LPA5CNFSM4IQAIST2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOEZJ2I#issuecomment-596219113>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHVQHA5VDBNSBXOSDPPFW3RGO4LPANCNFSM4IQAISTQ>
.
|
Hey! thanks for the Quick Reply. I will try the docker container and post the update. |
Enjoy 😉
…On Sun, Mar 8, 2020 at 10:58 AM automotiveexperimental < ***@***.***> wrote:
Hey! thanks for the Quick Reply. I will try the docker container and post
the update.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#15398?email_source=notifications&email_token=ABHVQHC55VHZHVZM2K2OQGLRGO6BBA5CNFSM4IQAIST2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOEZVJQ#issuecomment-596220582>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHVQHDE6Z45R6Q6NZWBKUTRGO6BBANCNFSM4IQAISTQ>
.
|
@automotiveexperimental did it work? |
@joehoeller Actually the first command ran, it shows,
but i don't know what to do next. Can you tell me your email, so that i can send you the output of the terminal ? if i run sudo docker run openmv:latest |
Follow the instructions on the README file of the repo:
- Did you install nvidia-docker2?
- Docker works by running the build and run commands (they are separate). The command you listed is not the correct command. See the README file instead.
- What is your Operating System?
- The README states only CUDA 10 is supported — does your GPU support CUDA 10?
…On Tue, Mar 10, 2020 at 8:39 PM automotiveexperimental < ***@***.***> wrote:
@joehoeller <https://github.com/joehoeller> Actually the first command
ran, but i don't know what to do next. Can you tell me your email, so that
i can send you the output of the terminal ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15398?email_source=notifications&email_token=ABHVQHDLNV57B3OZHSXTNNTRG3TUXA5CNFSM4IQAIST2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEONZV2Y#issuecomment-597400299>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHVQHBCYGCWBCNBSHIC2MTRG3TUXANCNFSM4IQAISTQ>
.
|
See Steps 1-3:
https://github.com/joehoeller/NVIDIA-GPU-Tensor-Core-Accelerator-PyTorch-OpenCV/blob/master/README.md
…On Tue, Mar 10, 2020 at 8:39 PM automotiveexperimental < ***@***.***> wrote:
@joehoeller <https://github.com/joehoeller> Actually the first command
ran, but i don't know what to do next. Can you tell me your email, so that
i can send you the output of the terminal ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15398?email_source=notifications&email_token=ABHVQHDLNV57B3OZHSXTNNTRG3TUXA5CNFSM4IQAIST2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEONZV2Y#issuecomment-597400299>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHVQHBCYGCWBCNBSHIC2MTRG3TUXANCNFSM4IQAISTQ>
.
|
use compatible OpenCV, Cuda toolkit and cuDNN OpenCV 4.4.0 for Cuda toolkit 11.1 and cuDNN 8.0 OpenCV 4.2.0 for Cuda toolkit 10.0 and cuDNN 7.x |
What’s the CUDA path in the flags? Currently I have:
…-D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-11.1
On Mon, Dec 7, 2020 at 1:29 AM Nuwan Madhusanka ***@***.***> wrote:
use compatible OpenCV, Cuda toolkit and cuDNN
OpenCV 4.4.0 for Cuda toolkit 11.1 and cuDNN 8.0
OpenCV 4.2.0 for Cuda toolkit 10.0 and cuDNN 7.x
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15398 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHVQHHCN3XDX2NQDY4UBGLSTR77FANCNFSM4IQAISTQ>
.
|
System information (version)
Detailed description
[ 80%] Built target opencv_cudafilters
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
Steps to reproduce
step 1:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUDA=ON -D INSTALL_C_EXAMPLES=ON -D ENABLE_FAST_MATH=1 -D WITH_TBB=OFF -D CUDA_FAST_MATH=1 -D WITH_V4L=ON -D WITH_CUBLAS=1 -D WITH_QT=ON -D WITH_OPENGL=ON -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules -D BUILD_EXAMPLES=ON .
step 2:
sudo make install -j32
sudo make install -j32 output:
The text was updated successfully, but these errors were encountered: