Ubuntu 16.04 install openCV3.3 failed

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
alexyang_shenzhen
帖子: 1
注册时间: 2017-10-05 0:25
系统: ubuntu 16.04

Ubuntu 16.04 install openCV3.3 failed

#1

帖子 alexyang_shenzhen » 2017-10-05 0:37

install ubuntu 16.04 kylin 版本。
GPU 1080ti
trying to install caffe

Step:
http://blog.csdn.net/yhaolpz/article/details/71375762

wrong things happend in :
mkdir build # 创建编译的文件目录
cd build
[this is where error in ]cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
make -j8 #编译

display is :
-- The CXX compiler identification is GNU 5.4.0
-- The C compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Detected version of GNU GCC: 54 (504)
-- Performing Test HAVE_CXX11 (check file: cmake/checks/cxx11.cpp)
-- Performing Test HAVE_CXX11 - Failed
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.12", minimum required is "2.7")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable exact version "2.7.12")
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.5.2", minimum required is "3.4")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.5m.so (found suitable exact version "3.5.2")
-- Looking for ccache - found (/usr/bin/ccache)
-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Success
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Success
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Success
-- Performing Test HAVE_CXX_WALL
-- Performing Test HAVE_CXX_WALL - Success
-- Performing Test HAVE_C_WALL
-- Performing Test HAVE_C_WALL - Success
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_C_WERROR_RETURN_TYPE
-- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_CXX_WERROR_ADDRESS
-- Performing Test HAVE_CXX_WERROR_ADDRESS - Success
-- Performing Test HAVE_C_WERROR_ADDRESS
-- Performing Test HAVE_C_WERROR_ADDRESS - Success
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success
-- Performing Test HAVE_CXX_WFORMAT
-- Performing Test HAVE_CXX_WFORMAT - Success
-- Performing Test HAVE_C_WFORMAT
-- Performing Test HAVE_C_WFORMAT - Success
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WMISSING_DECLARATIONS
-- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed
-- Performing Test HAVE_C_WMISSING_PROTOTYPES
-- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WUNDEF
-- Performing Test HAVE_CXX_WUNDEF - Success
-- Performing Test HAVE_C_WUNDEF
-- Performing Test HAVE_C_WUNDEF - Success
-- Performing Test HAVE_CXX_WINIT_SELF
-- Performing Test HAVE_CXX_WINIT_SELF - Success
-- Performing Test HAVE_C_WINIT_SELF
-- Performing Test HAVE_C_WINIT_SELF - Success
-- Performing Test HAVE_CXX_WPOINTER_ARITH
-- Performing Test HAVE_CXX_WPOINTER_ARITH - Success
-- Performing Test HAVE_C_WPOINTER_ARITH
-- Performing Test HAVE_C_WPOINTER_ARITH - Success
-- Performing Test HAVE_CXX_WSHADOW
-- Performing Test HAVE_CXX_WSHADOW - Success
-- Performing Test HAVE_C_WSHADOW
-- Performing Test HAVE_C_WSHADOW - Success
-- Performing Test HAVE_CXX_WSIGN_PROMO
-- Performing Test HAVE_CXX_WSIGN_PROMO - Success
-- Performing Test HAVE_C_WSIGN_PROMO
-- Performing Test HAVE_C_WSIGN_PROMO - Failed
-- Performing Test HAVE_CXX_WUNINITIALIZED
-- Performing Test HAVE_CXX_WUNINITIALIZED - Success
-- Performing Test HAVE_C_WUNINITIALIZED
-- Performing Test HAVE_C_WUNINITIALIZED - Success
-- Performing Test HAVE_CXX_WNO_NARROWING
-- Performing Test HAVE_CXX_WNO_NARROWING - Success
-- Performing Test HAVE_C_WNO_NARROWING
-- Performing Test HAVE_C_WNO_NARROWING - Success
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Performing Test HAVE_CXX_WNO_COMMENT
-- Performing Test HAVE_CXX_WNO_COMMENT - Success
-- Performing Test HAVE_C_WNO_COMMENT
-- Performing Test HAVE_C_WNO_COMMENT - Success
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_CXX_WNO_LONG_LONG
-- Performing Test HAVE_CXX_WNO_LONG_LONG - Success
-- Performing Test HAVE_C_WNO_LONG_LONG
-- Performing Test HAVE_C_WNO_LONG_LONG - Success
-- Performing Test HAVE_CXX_PTHREAD
-- Performing Test HAVE_CXX_PTHREAD - Success
-- Performing Test HAVE_C_PTHREAD
-- Performing Test HAVE_C_PTHREAD - Success
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_C_FFUNCTION_SECTIONS
-- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_CXX_MSSE (check file: cmake/checks/cpu_sse.cpp)
-- Performing Test HAVE_CXX_MSSE - Success
-- Performing Test HAVE_CXX_MSSE2 (check file: cmake/checks/cpu_sse2.cpp)
-- Performing Test HAVE_CXX_MSSE2 - Success
-- Performing Test HAVE_CXX_MSSE3 (check file: cmake/checks/cpu_sse3.cpp)
-- Performing Test HAVE_CXX_MSSE3 - Success
-- Performing Test HAVE_CXX_MSSSE3 (check file: cmake/checks/cpu_ssse3.cpp)
-- Performing Test HAVE_CXX_MSSSE3 - Success
-- Performing Test HAVE_CXX_MSSE4_1 (check file: cmake/checks/cpu_sse41.cpp)
-- Performing Test HAVE_CXX_MSSE4_1 - Success
-- Performing Test HAVE_CXX_MPOPCNT (check file: cmake/checks/cpu_popcnt.cpp)
-- Performing Test HAVE_CXX_MPOPCNT - Success
-- Performing Test HAVE_CXX_MSSE4_2 (check file: cmake/checks/cpu_sse42.cpp)
-- Performing Test HAVE_CXX_MSSE4_2 - Success
-- Performing Test HAVE_CXX_MF16C (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CXX_MF16C - Success
-- Performing Test HAVE_CXX_MFMA
-- Performing Test HAVE_CXX_MFMA - Success
-- Performing Test HAVE_CXX_MAVX (check file: cmake/checks/cpu_avx.cpp)
-- Performing Test HAVE_CXX_MAVX - Success
-- Performing Test HAVE_CXX_MAVX2 (check file: cmake/checks/cpu_avx2.cpp)
-- Performing Test HAVE_CXX_MAVX2 - Success
-- Performing Test HAVE_CPU_BASELINE_FLAGS
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 - Success
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for memalign
-- Looking for memalign - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")
-- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.0.6")
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success
-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION
-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success
-- Performing Test HAVE_C_WNO_SHADOW
-- Performing Test HAVE_C_WNO_SHADOW - Success
-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED
-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success
-- Found Jasper: /usr/lib/x86_64-linux-gnu/libjasper.so (found version "1.900.1")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.54")
-- Looking for /usr/include/libpng/png.h
-- Looking for /usr/include/libpng/png.h - found
-- Looking for semaphore.h
-- Looking for semaphore.h - found
-- Performing Test HAVE_CXX_WNO_SHADOW
-- Performing Test HAVE_CXX_WNO_SHADOW - Success
-- Performing Test HAVE_CXX_WNO_UNUSED
-- Performing Test HAVE_CXX_WNO_UNUSED - Success
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_UNDEF
-- Performing Test HAVE_CXX_WNO_UNDEF - Success
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WNO_UNINITIALIZED
-- Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success
-- Performing Test HAVE_CXX_WNO_SWITCH
-- Performing Test HAVE_CXX_WNO_SWITCH - Success
-- Performing Test HAVE_CXX_WNO_PARENTHESES
-- Performing Test HAVE_CXX_WNO_PARENTHESES - Success
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success
-- Performing Test HAVE_CXX_WNO_EXTRA
-- Performing Test HAVE_CXX_WNO_EXTRA - Success
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION
-- Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION - Failed
-- Checking for module 'gtk+-3.0'
-- No package 'gtk+-3.0' found
-- Checking for module 'gtk+-2.0'
-- Found gtk+-2.0, version 2.24.30
-- Checking for module 'gthread-2.0'
-- Found gthread-2.0, version 2.48.2
-- Checking for module 'gstreamer-base-1.0'
-- No package 'gstreamer-base-1.0' found
-- Checking for module 'gstreamer-video-1.0'
-- No package 'gstreamer-video-1.0' found
-- Checking for module 'gstreamer-app-1.0'
-- No package 'gstreamer-app-1.0' found
-- Checking for module 'gstreamer-riff-1.0'
-- No package 'gstreamer-riff-1.0' found
-- Checking for module 'gstreamer-pbutils-1.0'
-- No package 'gstreamer-pbutils-1.0' found
-- Checking for module 'gstreamer-base-0.10'
-- No package 'gstreamer-base-0.10' found
-- Checking for module 'gstreamer-video-0.10'
-- No package 'gstreamer-video-0.10' found
-- Checking for module 'gstreamer-app-0.10'
-- No package 'gstreamer-app-0.10' found
-- Checking for module 'gstreamer-riff-0.10'
-- No package 'gstreamer-riff-0.10' found
-- Checking for module 'gstreamer-pbutils-0.10'
-- No package 'gstreamer-pbutils-0.10' found
-- Checking for module 'libdc1394-2'
-- Found libdc1394-2, version 2.2.4
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
-- Checking for modules 'libavcodec;libavformat;libavutil;libswscale'
-- Found libavcodec, version 56.60.100
-- Found libavformat, version 56.40.101
-- Found libavutil, version 54.31.100
-- Found libswscale, version 3.1.101
-- Checking for module 'libavresample'
-- No package 'libavresample' found
-- Checking for module 'libgphoto2'
-- No package 'libgphoto2' found
-- IPPICV: Download: ippicv_2017u2_lnx_intel64_20170418.tgz
CMake Warning at cmake/OpenCVDownload.cmake:188 (message):
IPPICV: Download failed: 28;"Timeout was reached"

For details please refer to the download log file:

/opt/CV/opencv-3.3.0/build/CMakeDownloadLog.txt

Call Stack (most recent call first):
3rdparty/ippicv/ippicv.cmake:42 (ocv_download)
cmake/OpenCVFindIPP.cmake:243 (download_ippicv)
cmake/OpenCVFindLibsPerf.cmake:12 (include)
CMakeLists.txt:606 (include)


-- CUDA detected: 9.0
-- CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-D_FORCE_INLINES
-- Found OpenBLAS libraries: /opt/OpenBLAS/lib/libopenblas.so
-- Found OpenBLAS include: /opt/OpenBLAS/include
-- LAPACK(OpenBLAS): LAPACK_LIBRARIES: /opt/OpenBLAS/lib/libopenblas.so
CMake Warning at cmake/OpenCVFindLAPACK.cmake:29 (message):
LAPACK(OpenBLAS): CBLAS/LAPACK headers are not found in
'/opt/OpenBLAS/include'
Call Stack (most recent call first):
cmake/OpenCVFindLAPACK.cmake:89 (ocv_lapack_check)
CMakeLists.txt:607 (include)


-- Could NOT find Atlas (missing: Atlas_CBLAS_INCLUDE_DIR Atlas_CLAPACK_INCLUDE_DIR Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY Atlas_LAPACK_LIBRARY)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- A library with BLAS API not found. Please specify library location.
-- LAPACK requires BLAS
-- A library with LAPACK API not found. Please specify library location.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
-- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- Looking for dlerror in dl
-- Looking for dlerror in dl - found
-- Performing Test HAVE_C_WNO_UNDEF
-- Performing Test HAVE_C_WNO_UNDEF - Success
-- Performing Test HAVE_C_WNO_SIGN_COMPARE
-- Performing Test HAVE_C_WNO_SIGN_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_VARIABLE - Success
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE - Success
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Performing Test HAVE_CXX_WNO_DEPRECATED
-- Performing Test HAVE_CXX_WNO_DEPRECATED - Success
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Failed
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Failed
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Failed
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Failed
-- Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE - Success
-- Excluding from source files list: /opt/CV/opencv-3.3.0/build/modules/imgproc/accum.neon.cpp
-- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED
-- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED - Success
-- Torch importer has been enabled. To run the tests you have to install Torch ('th' executable should be available) and generate testdata using opencv_extra/testdata/dnn/generate_torch_models.py script.
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD
-- Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD - Failed
--
-- General configuration for OpenCV 3.3.0 =====================================
-- Version control: unknown
--
-- Platform:
-- Timestamp: 2017-10-04T16:22:26Z
-- Host: Linux 4.4.0-96-generic x86_64
-- CMake: 3.5.1
-- 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
-- requested: SSE4_1 SSE4_2 AVX FP16 AVX2
-- SSE4_1 (2 files): + SSSE3 SSE4_1
-- SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2
-- FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
-- AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
-- AVX2 (7 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
--
-- C/C++:
-- Built as dynamic libs?: YES
-- C++ Compiler: /usr/bin/c++ (ver 5.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 -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-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 -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-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 -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-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 -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
-- Linker flags (Release):
-- Linker flags (Debug):
-- ccache: YES
-- Precompiled headers: NO
-- Extra dependencies: gtk-x11-2.0 gdk-x11-2.0 pangocairo-1.0 atk-1.0 cairo gdk_pixbuf-2.0 gio-2.0 pangoft2-1.0 pango-1.0 gobject-2.0 glib-2.0 fontconfig freetype gthread-2.0 /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libjasper.so /usr/lib/x86_64-linux-gnu/libjpeg.so dc1394 avcodec-ffmpeg avformat-ffmpeg avutil-ffmpeg swscale-ffmpeg dl m pthread rt cudart nppc CUDA_nppi_LIBRARY-NOTFOUND npps cufft -L/usr/local/cuda-9.0/lib64
-- 3rdparty dependencies:
--
-- OpenCV modules:
-- To be built: cudev core cudaarithm flann imgproc ml objdetect video cudabgsegm cudafilters cudaimgproc cudawarping dnn imgcodecs photo shape videoio cudacodec highgui ts features2d calib3d cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo stitching superres videostab python2 python3
-- Disabled: world
-- Disabled by dependency: -
-- Unavailable: java viz
--
-- GUI:
-- QT: NO
-- GTK+ 2.x: YES (ver 2.24.30)
-- GThread : YES (ver 2.48.2)
-- GtkGlExt: NO
-- OpenGL support: NO
-- VTK support: NO
--
-- Media I/O:
-- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8)
-- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver )
-- WEBP: build (ver encoder: 0x020e)
-- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.54)
-- TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 - 4.0.6)
-- JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)
-- OpenEXR: build (ver 1.7.1)
-- GDAL: NO
-- GDCM: NO
--
-- Video I/O:
-- DC1394 1.x: NO
-- DC1394 2.x: YES (ver 2.2.4)
-- FFMPEG: YES
-- avcodec: YES (ver 56.60.100)
-- avformat: YES (ver 56.40.101)
-- avutil: YES (ver 54.31.100)
-- swscale: YES (ver 3.1.101)
-- avresample: NO
-- GStreamer: NO
-- OpenNI: NO
-- OpenNI PrimeSensor Modules: NO
-- OpenNI2: NO
-- PvAPI: NO
-- GigEVisionSDK: NO
-- Aravis SDK: NO
-- UniCap: NO
-- UniCap ucil: NO
-- V4L/V4L2: NO/YES
-- XIMEA: NO
-- Xine: NO
-- Intel Media SDK: NO
-- gPhoto2: NO
--
-- Parallel framework: pthreads
--
-- Trace: YES (with Intel ITT)
--
-- Other third-party libraries:
-- Use Intel IPP: IPP not found or implicitly disabled
-- Use Intel IPP IW: NO
-- Use Intel IPP Async: NO
-- Use VA: NO
-- Use Intel VA-API/OpenCL: NO
-- Use Lapack: NO
-- Use Eigen: NO
-- Use Cuda: YES (ver 9.0)
-- Use OpenCL: YES
-- Use OpenVX: NO
-- Use custom HAL: NO
--
-- NVIDIA CUDA
-- Use CUFFT: YES
-- Use CUBLAS: NO
-- USE NVCUVID: NO
-- NVIDIA GPU arch: 20 30 35 37 50 52 60 61
-- NVIDIA PTX archs:
-- Use fast math: NO
--
-- OpenCL: <Dynamic loading of OpenCL library>
-- Include path: /opt/CV/opencv-3.3.0/3rdparty/include/opencl/1.2
-- Use AMDFFT: NO
-- Use AMDBLAS: NO
--
-- Python 2:
-- Interpreter: /usr/bin/python2.7 (ver 2.7.12)
-- Libraries: /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.12)
-- numpy: /home/alex/.local/lib/python2.7/site-packages/numpy/core/include (ver 1.13.3)
-- packages path: lib/python2.7/dist-packages
--
-- Python 3:
-- Interpreter: /usr/bin/python3 (ver 3.5.2)
-- Libraries: /usr/lib/x86_64-linux-gnu/libpython3.5m.so (ver 3.5.2)
-- numpy: /home/alex/.local/lib/python3.5/site-packages/numpy/core/include (ver 1.13.3)
-- packages path: lib/python3.5/dist-packages
--
-- Python (for build): /usr/bin/python2.7
--
-- Java:
-- ant: NO
-- JNI: NO
-- Java wrappers: NO
-- Java tests: NO
--
-- Matlab: Matlab not found or implicitly disabled
--
-- Documentation:
-- Doxygen: NO
--
-- Tests and samples:
-- Tests: YES
-- Performance tests: YES
-- C/C++ Examples: NO
--
-- Install path: /usr/local
--
-- cvconfig.h is in: /opt/CV/opencv-3.3.0/build
-- -----------------------------------------------------------------
--
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_nppi_LIBRARY (ADVANCED)
linked by target "opencv_cudev" in directory /opt/CV/opencv-3.3.0/modules/cudev
linked by target "opencv_cudev" in directory /opt/CV/opencv-3.3.0/modules/cudev
linked by target "opencv_test_cudev" in directory /opt/CV/opencv-3.3.0/modules/cudev/test
linked by target "opencv_core" in directory /opt/CV/opencv-3.3.0/modules/core
linked by target "opencv_core" in directory /opt/CV/opencv-3.3.0/modules/core
linked by target "opencv_test_core" in directory /opt/CV/opencv-3.3.0/modules/core
linked by target "opencv_perf_core" in directory /opt/CV/opencv-3.3.0/modules/core
linked by target "opencv_perf_cudaarithm" in directory /opt/CV/opencv-3.3.0/modules/cudaarithm
linked by target "opencv_test_cudaarithm" in directory /opt/CV/opencv-3.3.0/modules/cudaarithm
linked by target "opencv_cudaarithm" in directory /opt/CV/opencv-3.3.0/modules/cudaarithm
linked by target "opencv_cudaarithm" in directory /opt/CV/opencv-3.3.0/modules/cudaarithm
linked by target "opencv_test_flann" in directory /opt/CV/opencv-3.3.0/modules/flann
linked by target "opencv_flann" in directory /opt/CV/opencv-3.3.0/modules/flann
linked by target "opencv_flann" in directory /opt/CV/opencv-3.3.0/modules/flann
linked by target "opencv_perf_imgproc" in directory /opt/CV/opencv-3.3.0/modules/imgproc
linked by target "opencv_test_imgproc" in directory /opt/CV/opencv-3.3.0/modules/imgproc
linked by target "opencv_imgproc" in directory /opt/CV/opencv-3.3.0/modules/imgproc
linked by target "opencv_imgproc" in directory /opt/CV/opencv-3.3.0/modules/imgproc
linked by target "opencv_test_ml" in directory /opt/CV/opencv-3.3.0/modules/ml
linked by target "opencv_ml" in directory /opt/CV/opencv-3.3.0/modules/ml
linked by target "opencv_ml" in directory /opt/CV/opencv-3.3.0/modules/ml
linked by target "opencv_perf_objdetect" in directory /opt/CV/opencv-3.3.0/modules/objdetect
linked by target "opencv_test_objdetect" in directory /opt/CV/opencv-3.3.0/modules/objdetect
linked by target "opencv_objdetect" in directory /opt/CV/opencv-3.3.0/modules/objdetect
linked by target "opencv_objdetect" in directory /opt/CV/opencv-3.3.0/modules/objdetect
linked by target "opencv_test_video" in directory /opt/CV/opencv-3.3.0/modules/video
linked by target "opencv_video" in directory /opt/CV/opencv-3.3.0/modules/video
linked by target "opencv_video" in directory /opt/CV/opencv-3.3.0/modules/video
linked by target "opencv_perf_video" in directory /opt/CV/opencv-3.3.0/modules/video
linked by target "opencv_perf_cudabgsegm" in directory /opt/CV/opencv-3.3.0/modules/cudabgsegm
linked by target "opencv_test_cudabgsegm" in directory /opt/CV/opencv-3.3.0/modules/cudabgsegm
linked by target "opencv_cudabgsegm" in directory /opt/CV/opencv-3.3.0/modules/cudabgsegm
linked by target "opencv_cudabgsegm" in directory /opt/CV/opencv-3.3.0/modules/cudabgsegm
linked by target "opencv_perf_cudafilters" in directory /opt/CV/opencv-3.3.0/modules/cudafilters
linked by target "opencv_test_cudafilters" in directory /opt/CV/opencv-3.3.0/modules/cudafilters
linked by target "opencv_cudafilters" in directory /opt/CV/opencv-3.3.0/modules/cudafilters
linked by target "opencv_cudafilters" in directory /opt/CV/opencv-3.3.0/modules/cudafilters
linked by target "opencv_test_cudaimgproc" in directory /opt/CV/opencv-3.3.0/modules/cudaimgproc
linked by target "opencv_cudaimgproc" in directory /opt/CV/opencv-3.3.0/modules/cudaimgproc
linked by target "opencv_cudaimgproc" in directory /opt/CV/opencv-3.3.0/modules/cudaimgproc
linked by target "opencv_perf_cudaimgproc" in directory /opt/CV/opencv-3.3.0/modules/cudaimgproc
linked by target "opencv_perf_cudawarping" in directory /opt/CV/opencv-3.3.0/modules/cudawarping
linked by target "opencv_test_cudawarping" in directory /opt/CV/opencv-3.3.0/modules/cudawarping
linked by target "opencv_cudawarping" in directory /opt/CV/opencv-3.3.0/modules/cudawarping
linked by target "opencv_cudawarping" in directory /opt/CV/opencv-3.3.0/modules/cudawarping
linked by target "opencv_perf_dnn" in directory /opt/CV/opencv-3.3.0/modules/dnn
linked by target "opencv_test_dnn" in directory /opt/CV/opencv-3.3.0/modules/dnn
linked by target "opencv_dnn" in directory /opt/CV/opencv-3.3.0/modules/dnn
linked by target "opencv_dnn" in directory /opt/CV/opencv-3.3.0/modules/dnn
linked by target "opencv_test_imgcodecs" in directory /opt/CV/opencv-3.3.0/modules/imgcodecs
linked by target "opencv_perf_imgcodecs" in directory /opt/CV/opencv-3.3.0/modules/imgcodecs
linked by target "opencv_imgcodecs" in directory /opt/CV/opencv-3.3.0/modules/imgcodecs
linked by target "opencv_imgcodecs" in directory /opt/CV/opencv-3.3.0/modules/imgcodecs
linked by target "opencv_perf_photo" in directory /opt/CV/opencv-3.3.0/modules/photo
linked by target "opencv_test_photo" in directory /opt/CV/opencv-3.3.0/modules/photo
linked by target "opencv_photo" in directory /opt/CV/opencv-3.3.0/modules/photo
linked by target "opencv_photo" in directory /opt/CV/opencv-3.3.0/modules/photo
linked by target "opencv_test_shape" in directory /opt/CV/opencv-3.3.0/modules/shape
linked by target "opencv_shape" in directory /opt/CV/opencv-3.3.0/modules/shape
linked by target "opencv_shape" in directory /opt/CV/opencv-3.3.0/modules/shape
linked by target "opencv_perf_videoio" in directory /opt/CV/opencv-3.3.0/modules/videoio
linked by target "opencv_test_videoio" in directory /opt/CV/opencv-3.3.0/modules/videoio
linked by target "opencv_videoio" in directory /opt/CV/opencv-3.3.0/modules/videoio
linked by target "opencv_videoio" in directory /opt/CV/opencv-3.3.0/modules/videoio
linked by target "opencv_test_cudacodec" in directory /opt/CV/opencv-3.3.0/modules/cudacodec
linked by target "opencv_perf_cudacodec" in directory /opt/CV/opencv-3.3.0/modules/cudacodec
linked by target "opencv_cudacodec" in directory /opt/CV/opencv-3.3.0/modules/cudacodec
linked by target "opencv_cudacodec" in directory /opt/CV/opencv-3.3.0/modules/cudacodec
linked by target "opencv_test_highgui" in directory /opt/CV/opencv-3.3.0/modules/highgui
linked by target "opencv_highgui" in directory /opt/CV/opencv-3.3.0/modules/highgui
linked by target "opencv_highgui" in directory /opt/CV/opencv-3.3.0/modules/highgui
linked by target "opencv_ts" in directory /opt/CV/opencv-3.3.0/modules/ts
linked by target "opencv_ts" in directory /opt/CV/opencv-3.3.0/modules/ts
linked by target "opencv_perf_features2d" in directory /opt/CV/opencv-3.3.0/modules/features2d
linked by target "opencv_test_features2d" in directory /opt/CV/opencv-3.3.0/modules/features2d
linked by target "opencv_features2d" in directory /opt/CV/opencv-3.3.0/modules/features2d
linked by target "opencv_features2d" in directory /opt/CV/opencv-3.3.0/modules/features2d
linked by target "opencv_calib3d" in directory /opt/CV/opencv-3.3.0/modules/calib3d
linked by target "opencv_calib3d" in directory /opt/CV/opencv-3.3.0/modules/calib3d
linked by target "opencv_perf_calib3d" in directory /opt/CV/opencv-3.3.0/modules/calib3d
linked by target "opencv_test_calib3d" in directory /opt/CV/opencv-3.3.0/modules/calib3d
linked by target "opencv_test_cudafeatures2d" in directory /opt/CV/opencv-3.3.0/modules/cudafeatures2d
linked by target "opencv_cudafeatures2d" in directory /opt/CV/opencv-3.3.0/modules/cudafeatures2d
linked by target "opencv_cudafeatures2d" in directory /opt/CV/opencv-3.3.0/modules/cudafeatures2d
linked by target "opencv_perf_cudafeatures2d" in directory /opt/CV/opencv-3.3.0/modules/cudafeatures2d
linked by target "opencv_test_cudalegacy" in directory /opt/CV/opencv-3.3.0/modules/cudalegacy
linked by target "opencv_cudalegacy" in directory /opt/CV/opencv-3.3.0/modules/cudalegacy
linked by target "opencv_cudalegacy" in directory /opt/CV/opencv-3.3.0/modules/cudalegacy
linked by target "opencv_perf_cudalegacy" in directory /opt/CV/opencv-3.3.0/modules/cudalegacy
linked by target "opencv_perf_cudaobjdetect" in directory /opt/CV/opencv-3.3.0/modules/cudaobjdetect
linked by target "opencv_test_cudaobjdetect" in directory /opt/CV/opencv-3.3.0/modules/cudaobjdetect
linked by target "opencv_cudaobjdetect" in directory /opt/CV/opencv-3.3.0/modules/cudaobjdetect
linked by target "opencv_cudaobjdetect" in directory /opt/CV/opencv-3.3.0/modules/cudaobjdetect
linked by target "opencv_perf_cudaoptflow" in directory /opt/CV/opencv-3.3.0/modules/cudaoptflow
linked by target "opencv_test_cudaoptflow" in directory /opt/CV/opencv-3.3.0/modules/cudaoptflow
linked by target "opencv_cudaoptflow" in directory /opt/CV/opencv-3.3.0/modules/cudaoptflow
linked by target "opencv_cudaoptflow" in directory /opt/CV/opencv-3.3.0/modules/cudaoptflow
linked by target "opencv_perf_cudastereo" in directory /opt/CV/opencv-3.3.0/modules/cudastereo
linked by target "opencv_test_cudastereo" in directory /opt/CV/opencv-3.3.0/modules/cudastereo
linked by target "opencv_cudastereo" in directory /opt/CV/opencv-3.3.0/modules/cudastereo
linked by target "opencv_cudastereo" in directory /opt/CV/opencv-3.3.0/modules/cudastereo
linked by target "opencv_perf_stitching" in directory /opt/CV/opencv-3.3.0/modules/stitching
linked by target "opencv_test_stitching" in directory /opt/CV/opencv-3.3.0/modules/stitching
linked by target "opencv_stitching" in directory /opt/CV/opencv-3.3.0/modules/stitching
linked by target "opencv_stitching" in directory /opt/CV/opencv-3.3.0/modules/stitching
linked by target "opencv_perf_superres" in directory /opt/CV/opencv-3.3.0/modules/superres
linked by target "opencv_superres" in directory /opt/CV/opencv-3.3.0/modules/superres
linked by target "opencv_superres" in directory /opt/CV/opencv-3.3.0/modules/superres
linked by target "opencv_test_superres" in directory /opt/CV/opencv-3.3.0/modules/superres
linked by target "opencv_test_videostab" in directory /opt/CV/opencv-3.3.0/modules/videostab
linked by target "opencv_videostab" in directory /opt/CV/opencv-3.3.0/modules/videostab
linked by target "opencv_videostab" in directory /opt/CV/opencv-3.3.0/modules/videostab
linked by target "opencv_traincascade" in directory /opt/CV/opencv-3.3.0/apps/traincascade
linked by target "opencv_createsamples" in directory /opt/CV/opencv-3.3.0/apps/createsamples
linked by target "opencv_annotation" in directory /opt/CV/opencv-3.3.0/apps/annotation
linked by target "opencv_visualisation" in directory /opt/CV/opencv-3.3.0/apps/visualisation
linked by target "opencv_interactive-calibration" in directory /opt/CV/opencv-3.3.0/apps/interactive-calibration
linked by target "opencv_version" in directory /opt/CV/opencv-3.3.0/apps/version

-- Configuring incomplete, errors occurred!
See also "/opt/CV/opencv-3.3.0/build/CMakeFiles/CMakeOutput.log".
See also "/opt/CV/opencv-3.3.0/build/CMakeFiles/CMakeError.log".

在CMakeError.log中如下:

===== END =====

Build output check failed:
Regex: 'unrecognized .*option'
Output line: 'cc1plus: warning: unrecognized command line option ‘-Wno-unused-private-field’'
Compilation failed:
source file: '/opt/CV/opencv-3.3.0/build/CMakeFiles/CMakeTmp/src.cxx'
check option: ' -Wno-unused-private-field'
===== BUILD LOG =====
Change Dir: /opt/CV/opencv-3.3.0/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_42585/fast"
/usr/bin/make -f CMakeFiles/cmTC_42585.dir/build.make CMakeFiles/cmTC_42585.dir/build
make[1]: Entering directory '/opt/CV/opencv-3.3.0/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_42585.dir/src.cxx.o
/usr/bin/c++ -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 -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-function -Wno-overloaded-virtual -O3 -DNDEBUG -Wno-unused-private-field -o CMakeFiles/cmTC_42585.dir/src.cxx.o -c /opt/CV/opencv-3.3.0/build/CMakeFiles/CMakeTmp/src.cxx
/opt/CV/opencv-3.3.0/build/CMakeFiles/CMakeTmp/src.cxx:1:0: warning: ignoring #pragma [-Wunknown-pragmas]
#pragma
^
cc1plus: warning: unrecognized command line option ‘-Wno-unused-private-field’
Linking CXX executable cmTC_42585
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_42585.dir/link.txt --verbose=1
/usr/bin/c++ -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 -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-function -Wno-overloaded-virtual -O3 -DNDEBUG CMakeFiles/cmTC_42585.dir/src.cxx.o -o cmTC_42585 -rdynamic
make[1]: Leaving directory '/opt/CV/opencv-3.3.0/build/CMakeFiles/CMakeTmp'

===== END =====
附件
CMakeOutput (复件).log.txt
(66.35 KiB) 已下载 34 次
CMakeError (复件).log.txt
(34.39 KiB) 已下载 42 次
上次由 alexyang_shenzhen 在 2017-10-07 1:34,总共编辑 1 次。
头像
astolia
论坛版主
帖子: 6436
注册时间: 2008-09-18 13:11

Re: 安装openCV3.3 失败.

#2

帖子 astolia » 2017-10-05 13:37

你确定执行了那篇文章里的第一步?而且感觉你的编译环境已经被弄乱了

按你那篇文章的步骤,OpenBLAS和Atlas的安装是sudo apt-get install libopenblas-dev liblapack-dev libatlas-base-dev这句执行的
这样安装的库和头文件都会放在/usr下面

但从你的执行结果来看,找不到Atlas,OpenBLAS虽能找到但却是在/opt下面。
回复