php-opencv icon indicating copy to clipboard operation
php-opencv copied to clipboard

32位可以用吗

Open dirtyluke opened this issue 5 years ago • 4 comments

32位ubuntu按照doc顺序安装,到最后检测的时候检测不出来(16.04).另外64位上用docker安装成功后可以显示图片吗

dirtyluke avatar Dec 09 '18 02:12 dirtyluke

使用docker的话估计GUI部分可能无法使用,32位的安装和64位的ubuntu安装时一样的

hihozhou avatar Dec 09 '18 13:12 hihozhou

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules .. -- Looking for ccache - not found -- Found ZLIB: /usr/lib/i386-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3") -- Found ZLIB: /usr/lib/i386-linux-gnu/libz.so (found version "1.2.8") -- 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 -- 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 module 'libavresample' -- No package 'libavresample' found -- Found TBB (env): /usr/lib/i386-linux-gnu/libtbb.so -- On 32-bit Linux Intel IPP can not currently be used with dynamic libs because of linker errors. Set BUILD_SHARED_LIBS=OFF -- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off -- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off -- Could NOT find Atlas (missing: Atlas_CBLAS_INCLUDE_DIR Atlas_CLAPACK_INCLUDE_DIR Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY Atlas_LAPACK_LIBRARY) -- 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 JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) -- Could NOT find Pylint (missing: PYLINT_EXECUTABLE) -- Could NOT find Flake8 (missing: FLAKE8_EXECUTABLE) -- 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/caotang/opencv/build/python_loader -- Module opencv_ovis disabled because OGRE3D was not found -- Caffe: NO -- Protobuf: NO -- Glog: NO -- 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 -- freetype2: YES -- harfbuzz: YES -- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS) -- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx2.cpp -- Excluding from source files list: <BUILD>/modules/core/test/test_intrin256.avx2.cpp -- Excluding from source files list: modules/imgproc/src/resize.avx2.cpp -- Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp -- Excluding from source files list: modules/imgproc/src/filter.avx2.cpp -- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx2.cpp -- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp -- freetype2: YES -- harfbuzz: YES -- Excluding from source files list: modules/features2d/src/fast.avx2.cpp -- Checking for modules 'tesseract;lept' -- No package 'tesseract' found -- No package 'lept' found -- Tesseract: NO -- Excluding from source files list: modules/calib3d/src/undistort.avx2.cpp -- data: Download: face_landmark_model.dat CMake Warning at /home/caotang/opencv/cmake/OpenCVDownload.cmake:193 (message): data: Download failed: 28;"Timeout was reached"

For details please refer to the download log file:

/home/caotang/opencv/build/CMakeDownloadLog.txt

Call Stack (most recent call first): /home/caotang/opencv_contrib/modules/face/CMakeLists.txt:13 (ocv_download)

CMake Warning at /home/caotang/opencv_contrib/modules/face/CMakeLists.txt:26 (message): Face: Can't get model file for face alignment.

-- OpenCL samples are skipped: OpenCL SDK is required

-- General configuration for OpenCV 4.0.0-dev ===================================== -- Version control: 4.0.0-135-gcab15f6

-- Extra modules: -- Location (extra): /home/caotang/opencv_contrib/modules -- Version control (extra): 4.0.0-16-g7670ff2

-- Platform: -- Timestamp: 2018-12-09T00:53:59Z -- Host: Linux 4.15.0-29-generic i686 -- CMake: 3.5.1 -- CMake generator: Unix Makefiles -- CMake build tool: /usr/bin/make -- Configuration: RELEASE

-- CPU/HW features: -- Baseline: SSE SSE2 -- requested: SSE2 -- Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX -- requested: SSE4_1 SSE4_2 AVX FP16 -- SSE4_1 (8 files): + SSE3 SSSE3 SSE4_1 -- SSE4_2 (2 files): + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 -- FP16 (1 files): + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX -- AVX (5 files): + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 AVX

-- 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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -mfpmath=sse -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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -mfpmath=sse -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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -mfpmath=sse -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 -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -mfpmath=sse -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG -- Linker flags (Release):
-- Linker flags (Debug):
-- ccache: NO -- Precompiled headers: YES -- Extra dependencies: dl m pthread rt /usr/lib/i386-linux-gnu/libGLU.so /usr/lib/i386-linux-gnu/libGL.so -- 3rdparty dependencies:

-- OpenCV modules: -- To be built: aruco bgsegm bioinspired calib3d ccalib core cvv datasets dnn dnn_objdetect dpm face features2d flann freetype fuzzy gapi hfs highgui img_hash imgcodecs imgproc java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot python_bindings_generator reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto -- Disabled: world -- Disabled by dependency: - -- Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev hdf java js matlab ovis python2 python3 sfm viz -- Applications: tests perf_tests examples apps -- Documentation: NO -- Non-free algorithms: NO

-- GUI: -- QT: YES (ver 5.5.1) -- QT OpenGL support: YES (Qt5::OpenGL 5.5.1) -- GTK+: NO -- OpenGL support: YES (/usr/lib/i386-linux-gnu/libGLU.so /usr/lib/i386-linux-gnu/libGL.so) -- VTK support: NO

-- Media I/O: -- ZLib: /usr/lib/i386-linux-gnu/libz.so (ver 1.2.8) -- JPEG: /usr/lib/i386-linux-gnu/libjpeg.so (ver 80) -- WEBP: build (ver encoder: 0x020e) -- PNG: /usr/lib/i386-linux-gnu/libpng.so (ver 1.2.54) -- TIFF: /usr/lib/i386-linux-gnu/libtiff.so (ver 42 / 4.0.6) -- JPEG 2000: /usr/lib/i386-linux-gnu/libjasper.so (ver 1.900.1) -- OpenEXR: build (ver 1.7.1) -- HDR: YES -- SUNRASTER: YES -- PXM: YES -- PFM: YES

-- Video I/O: -- DC1394: 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 -- v4l/v4l2: linux/videodev2.h

-- Parallel framework: TBB (ver 4.4 interface 9002)

-- Trace: YES (with Intel ITT)

-- Other third-party libraries: -- Lapack: NO -- Eigen: NO -- Custom HAL: NO -- Protobuf: build (3.5.1)

-- OpenCL: YES (no extra features) -- Include path: /home/caotang/opencv/3rdparty/include/opencl/1.2 -- Link libraries: Dynamic load

-- Python (for build): /usr/bin/python2.7

-- 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/caotang/opencv/build

dirtyluke avatar Jan 23 '19 07:01 dirtyluke

pkg-config --libs opencv4 Package opencv4 was not found in the pkg-config search path. Perhaps you should add the directory containing `opencv4.pc' to the PKG_CONFIG_PATH environment variable No package 'opencv4' found

dirtyluke avatar Jan 23 '19 07:01 dirtyluke

@hihozhou 试了一下,需要在CMAKE的时候加上 -D OPENCV_GENERATE_PKGCONFIG=YES 参数 https://github.com/opencv/opencv/issues/13154 貌似不是每个人的电脑都会出现这种问题,顺便问一下原来的 https://doc.phpopencv.org/这个关掉了么

dirtyluke avatar Jun 12 '19 05:06 dirtyluke