oo92
June 7, 2022, 2:04am
1
Hi.
I followed the Build with opencv_contrib on this link: OpenCV: Installation in Linux
Now, in my ~/opencv/opencv-4.x/include/opencv2
, all I have is opencv.hpp. Because of this, I can’t use anything like cv::VideoCapture();
I am using Ubuntu 21.10
berak
June 7, 2022, 6:23am
2
that looks like the src folder.
properly installed headers should be in /usr/local/include/opencv4
did you run make install
as final step ?
oo92
June 7, 2022, 6:36am
3
Yes I did and /usr/local/include/opencv4
doesn’t exist.
berak
June 7, 2022, 6:44am
4
did you set CMAKE_INSTALL_PREFIX
to something special ?
(the last lines of your cmake output (if you still have it) should tell, where it will put things)
oo92
June 7, 2022, 6:46am
5
Yes. I followed everything step by step.
berak
June 7, 2022, 6:49am
6
maybe run make install
again, and show output ?
oo92
June 7, 2022, 7:05am
8
-- Install configuration: "Release"
-- Up-to-date: /usr/local/share/licenses/opencv4/ippicv-readme.htm
-- Up-to-date: /usr/local/share/licenses/opencv4/ippicv-EULA.txt
-- Up-to-date: /usr/local/share/licenses/opencv4/ippicv-third-party-programs.txt
-- Up-to-date: /usr/local/share/licenses/opencv4/ippiw-support.txt
-- Up-to-date: /usr/local/share/licenses/opencv4/ippiw-third-party-programs.txt
-- Up-to-date: /usr/local/share/licenses/opencv4/ippiw-EULA.txt
-- Up-to-date: /usr/local/share/licenses/opencv4/opencl-headers-LICENSE.txt
-- Up-to-date: /usr/local/share/licenses/opencv4/ade-LICENSE
-- Up-to-date: /usr/local/include/opencv4/opencv2/cvconfig.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/opencv_modules.hpp
-- Up-to-date: /usr/local/lib/cmake/opencv4/OpenCVModules.cmake
-- Up-to-date: /usr/local/lib/cmake/opencv4/OpenCVModules-release.cmake
-- Up-to-date: /usr/local/lib/cmake/opencv4/OpenCVConfig-version.cmake
-- Up-to-date: /usr/local/lib/cmake/opencv4/OpenCVConfig.cmake
-- Up-to-date: /usr/local/bin/setup_vars_opencv4.sh
-- Up-to-date: /usr/local/share/opencv4/valgrind.supp
-- Up-to-date: /usr/local/share/opencv4/valgrind_3rdparty.supp
-- Up-to-date: /usr/local/share/licenses/opencv4/libopenjp2-README.md
-- Up-to-date: /usr/local/share/licenses/opencv4/libopenjp2-LICENSE
-- Up-to-date: /usr/local/share/licenses/opencv4/protobuf-LICENSE
-- Up-to-date: /usr/local/share/licenses/opencv4/protobuf-README.md
-- Up-to-date: /usr/local/share/licenses/opencv4/quirc-LICENSE
-- Up-to-date: /usr/local/share/licenses/opencv4/ittnotify-LICENSE.BSD
-- Up-to-date: /usr/local/share/licenses/opencv4/ittnotify-LICENSE.GPL
-- Up-to-date: /usr/local/include/opencv4/opencv2/opencv.hpp
-- Up-to-date: /usr/local/lib/libopencv_core.so.4.6.0
-- Up-to-date: /usr/local/lib/libopencv_core.so.406
-- Up-to-date: /usr/local/lib/libopencv_core.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/affine.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/async.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/base.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/bindings_utils.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/bufferpool.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/check.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/core_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda.inl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/block.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/border_interpolate.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/color.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/common.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/datamov_utils.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/detail/color_detail.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/detail/reduce.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/detail/reduce_key_val.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/detail/transform_detail.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/detail/type_traits_detail.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/detail/vec_distance_detail.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/dynamic_smem.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/emulation.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/filters.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/funcattrib.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/functional.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/limits.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/reduce.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/saturate_cast.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/scan.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/simd_functions.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/transform.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/type_traits.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/utility.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/vec_distance.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/vec_math.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/vec_traits.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/warp.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/warp_reduce.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/warp_shuffle.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda_stream_accessor.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda_types.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cv_cpu_dispatch.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cv_cpu_helper.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cvdef.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cvstd.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cvstd.inl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/detail/async_promise.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/detail/dispatch_helper.impl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/detail/exception_ptr.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/directx.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/dualquaternion.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/dualquaternion.inl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/eigen.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/fast_math.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/hal.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/interface.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_avx.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_avx512.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_cpp.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_forward.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_msa.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_neon.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_rvv.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_rvv071.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_sse.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_sse_em.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_vsx.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_wasm.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/msa_macros.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/simd_utils.impl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/mat.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/mat.inl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/matx.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/neon_utils.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/ocl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/ocl_genbase.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/ocl_defs.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/opencl_info.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/opencl_svm.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_clblas.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_clfft.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_core_wrappers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_gl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_gl_wrappers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_clblas.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_clfft.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_core_wrappers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_gl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_gl_wrappers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_svm_20.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_svm_definitions.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opengl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/operations.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/optim.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/ovx.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/parallel/backend/parallel_for.openmp.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/parallel/backend/parallel_for.tbb.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/parallel/parallel_backend.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/persistence.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/quaternion.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/quaternion.inl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/saturate.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/simd_intrinsics.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/softfloat.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/sse_utils.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/traits.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/types.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/types_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utility.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/allocator_stats.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/allocator_stats.impl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/filesystem.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/fp_control_utils.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/instrumentation.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/logger.defines.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/logger.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/logtag.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/tls.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/trace.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/va_intel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/version.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/vsx_utils.hpp
-- Up-to-date: /usr/local/share/licenses/opencv4/SoftFloat-COPYING.txt
-- Up-to-date: /usr/local/lib/libopencv_flann.so.4.6.0
-- Up-to-date: /usr/local/lib/libopencv_flann.so.406
-- Up-to-date: /usr/local/lib/libopencv_flann.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/all_indices.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/allocator.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/any.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/autotuned_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/composite_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/config.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/defines.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/dist.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/dummy.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/dynamic_bitset.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/flann.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/flann_base.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/general.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/ground_truth.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/hdf5.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/heap.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/hierarchical_clustering_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/index_testing.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/kdtree_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/kdtree_single_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/kmeans_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/linear_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/logger.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/lsh_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/lsh_table.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/matrix.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/miniflann.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/nn_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/object_factory.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/params.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/random.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/result_set.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/sampling.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/saving.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/simplex_downhill.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/timer.h
-- Up-to-date: /usr/local/lib/libopencv_imgproc.so.4.6.0
-- Up-to-date: /usr/local/lib/libopencv_imgproc.so.406
-- Up-to-date: /usr/local/lib/libopencv_imgproc.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc/bindings.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc/detail/gcgraph.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc/hal/hal.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc/hal/interface.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc/imgproc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc/imgproc_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc/segmentation.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc/types_c.h
-- Up-to-date: /usr/local/lib/libopencv_ml.so.4.6.0
-- Up-to-date: /usr/local/lib/libopencv_ml.so.406
-- Up-to-date: /usr/local/lib/libopencv_ml.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/ml.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ml/ml.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ml/ml.inl.hpp
-- Up-to-date: /usr/local/lib/libopencv_photo.so.4.6.0
-- Up-to-date: /usr/local/lib/libopencv_photo.so.406
-- Up-to-date: /usr/local/lib/libopencv_photo.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/photo.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/photo/cuda.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/photo/legacy/constants_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/photo/photo.hpp
-- Up-to-date: /usr/local/lib/libopencv_dnn.so.4.6.0
-- Up-to-date: /usr/local/lib/libopencv_dnn.so.406
-- Up-to-date: /usr/local/lib/libopencv_dnn.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/all_layers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/dict.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/dnn.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/dnn.inl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/layer.details.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/layer.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/shape_utils.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/utils/debug_utils.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/utils/inference_engine.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/version.hpp
-- Up-to-date: /usr/local/lib/libopencv_features2d.so.4.6.0
-- Up-to-date: /usr/local/lib/libopencv_features2d.so.406
-- Up-to-date: /usr/local/lib/libopencv_features2d.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/features2d.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/features2d/features2d.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/features2d/hal/interface.h
-- Up-to-date: /usr/local/lib/libopencv_imgcodecs.so.4.6.0
-- Up-to-date: /usr/local/lib/libopencv_imgcodecs.so.406
-- Up-to-date: /usr/local/lib/libopencv_imgcodecs.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgcodecs.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgcodecs/imgcodecs.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgcodecs/imgcodecs_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgcodecs/ios.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgcodecs/legacy/constants_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgcodecs/macosx.h
-- Up-to-date: /usr/local/lib/libopencv_videoio.so.4.6.0
-- Up-to-date: /usr/local/lib/libopencv_videoio.so.406
-- Up-to-date: /usr/local/lib/libopencv_videoio.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/videoio.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videoio/cap_ios.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/videoio/legacy/constants_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/videoio/registry.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videoio/videoio.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videoio/videoio_c.h
-- Up-to-date: /usr/local/lib/libopencv_calib3d.so.4.6.0
-- Up-to-date: /usr/local/lib/libopencv_calib3d.so.406
-- Up-to-date: /usr/local/lib/libopencv_calib3d.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/calib3d.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/calib3d/calib3d.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/calib3d/calib3d_c.h
-- Up-to-date: /usr/local/lib/libopencv_highgui.so.4.6.0
-- Up-to-date: /usr/local/lib/libopencv_highgui.so.406
-- Up-to-date: /usr/local/lib/libopencv_highgui.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/highgui.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/highgui/highgui.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/highgui/highgui_c.h
-- Up-to-date: /usr/local/lib/libopencv_objdetect.so.4.6.0
-- Up-to-date: /usr/local/lib/libopencv_objdetect.so.406
-- Up-to-date: /usr/local/lib/libopencv_objdetect.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/objdetect.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/objdetect/detection_based_tracker.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/objdetect/face.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/objdetect/objdetect.hpp
-- Up-to-date: /usr/local/lib/libopencv_stitching.so.4.6.0
-- Up-to-date: /usr/local/lib/libopencv_stitching.so.406
-- Up-to-date: /usr/local/lib/libopencv_stitching.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/autocalib.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/blenders.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/camera.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/exposure_compensate.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/matchers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/motion_estimators.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/seam_finders.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/timelapsers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/util.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/util_inl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/warpers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/warpers_inl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/warpers.hpp
-- Up-to-date: /usr/local/lib/libopencv_video.so.4.6.0
-- Up-to-date: /usr/local/lib/libopencv_video.so.406
-- Up-to-date: /usr/local/lib/libopencv_video.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/video.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/video/background_segm.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/video/detail/tracking.detail.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/video/legacy/constants_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/video/tracking.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/video/video.hpp
-- Up-to-date: /usr/local/lib/libopencv_gapi.so.4.6.0
-- Up-to-date: /usr/local/lib/libopencv_gapi.so.406
-- Up-to-date: /usr/local/lib/libopencv_gapi.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/cpu/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/cpu/gcpukernel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/cpu/imgproc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/cpu/stereo.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/cpu/video.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/fluid/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/fluid/gfluidbuffer.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/fluid/gfluidkernel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/fluid/imgproc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/garg.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/garray.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gasync_context.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gcall.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gcommon.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gcompiled.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gcompiled_async.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gcompoundkernel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gcomputation.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gcomputation_async.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gframe.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gkernel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gmat.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gmetaarg.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gopaque.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gproto.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gpu/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gpu/ggpukernel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gpu/imgproc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gscalar.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gstreaming.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gtransform.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gtype_traits.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gtyped.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/imgproc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/infer.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/infer/bindings_ie.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/infer/ie.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/infer/onnx.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/infer/parsers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/media.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/oak/infer.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/oak/oak.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/ocl/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/ocl/goclkernel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/ocl/imgproc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/opencv_includes.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/operators.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/assert.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/convert.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/cvdefs.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/exports.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/mat.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/saturate.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/scalar.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/types.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/plaidml/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/plaidml/gplaidmlkernel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/plaidml/plaidml.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/python/python.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/render.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/render/render.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/render/render_types.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/rmat.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/s11n.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/s11n/base.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/stereo.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/cap.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/desync.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/format.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/gstreamer/gstreamerpipeline.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/gstreamer/gstreamersource.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/meta.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/onevpl/accel_types.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/onevpl/cfg_params.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/onevpl/data_provider_interface.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/onevpl/device_selector_interface.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/onevpl/source.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/source.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/sync.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/util/any.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/util/compiler_hints.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/util/copy_through_move.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/util/optional.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/util/throw.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/util/type_traits.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/util/util.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/util/variant.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/video.hpp
-- Up-to-date: /usr/local/lib/python3.9/site-packages/cv2/__init__.py
-- Up-to-date: /usr/local/lib/python3.9/site-packages/cv2/load_config_py2.py
-- Up-to-date: /usr/local/lib/python3.9/site-packages/cv2/load_config_py3.py
-- Up-to-date: /usr/local/lib/python3.9/site-packages/cv2/config.py
-- Up-to-date: /usr/local/lib/python3.9/site-packages/cv2/misc/__init__.py
-- Up-to-date: /usr/local/lib/python3.9/site-packages/cv2/misc/version.py
-- Up-to-date: /usr/local/lib/python3.9/site-packages/cv2/mat_wrapper/__init__.py
-- Up-to-date: /usr/local/lib/python3.9/site-packages/cv2/utils/__init__.py
-- Up-to-date: /usr/local/lib/python3.9/site-packages/cv2/gapi/__init__.py
-- Up-to-date: /usr/local/lib/python3.9/site-packages/cv2/python-3.9/cv2.cpython-39-x86_64-linux-gnu.so
-- Up-to-date: /usr/local/lib/python3.9/site-packages/cv2/config-3.9.py
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_eye.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_eye_tree_eyeglasses.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_frontalcatface.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_frontalcatface_extended.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_frontalface_alt.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_frontalface_alt2.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_frontalface_alt_tree.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_frontalface_default.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_fullbody.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_lefteye_2splits.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_licence_plate_rus_16stages.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_lowerbody.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_profileface.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_righteye_2splits.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_russian_plate_number.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_smile.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_upperbody.xml
-- Up-to-date: /usr/local/share/opencv4/lbpcascades/lbpcascade_frontalcatface.xml
-- Up-to-date: /usr/local/share/opencv4/lbpcascades/lbpcascade_frontalface.xml
-- Up-to-date: /usr/local/share/opencv4/lbpcascades/lbpcascade_frontalface_improved.xml
-- Up-to-date: /usr/local/share/opencv4/lbpcascades/lbpcascade_profileface.xml
-- Up-to-date: /usr/local/share/opencv4/lbpcascades/lbpcascade_silverware.xml
-- Up-to-date: /usr/local/bin/opencv_annotation
-- Up-to-date: /usr/local/bin/opencv_visualisation
-- Up-to-date: /usr/local/bin/opencv_interactive-calibration
-- Up-to-date: /usr/local/bin/opencv_version
-- Up-to-date: /usr/local/bin/opencv_model_diagnostics
1 Like
berak
June 7, 2022, 7:14am
9
that looks all correct, as expected.
any current problems with it, now ?
how do you try to build your “test file” ?
oo92
June 7, 2022, 7:25am
10
Test file? Could you explain that?
berak
June 7, 2022, 7:36am
11
your own program, using e.g. VideoCapture
oo92
June 7, 2022, 7:41am
12
Oh the #include imports still have red underlines so the error is persisting.
berak
June 7, 2022, 7:44am
13
that seems to be some kind of ide.
did you remember to adjust the include path somewhere there to
/usr/local/include/opencv4
??
try on a plain console, using
g++ my.cpp -I/usr/local/include/opencv4 -lopencv_core [more opencv libs] -o myprog
oo92
June 7, 2022, 7:57am
14
When putting the full path, the #include imports no longer have red underlines but my initial problem, where the variable cap in FPS = cap.get()
throws a Use of undeclared identifier 'cap'
.
When I do g++ main.cpp
, I get this error:
In file included from main.cpp:3:
/usr/local/include/opencv4/opencv2/opencv.hpp:48:10: fatal error: opencv2/opencv_modules.hpp: No such file or directory
48 | #include "opencv2/opencv_modules.hpp"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
This is despite that my code now looks like this:
#include <iostream>
#include "src/VideoProcessing.h"
#include </usr/local/include/opencv4/opencv2/opencv.hpp>
#include </usr/local/include/opencv4/opencv2/videoio.hpp>
#include </usr/local/include/opencv4/opencv2/core.hpp>
#include </usr/local/include/opencv4/opencv2/highgui.hpp>
int main() {
int FPS;//Declaring an integer variable to store the number of total frames//
cv::VideoCapture cap("video1.mp4");//Declaring an object to capture stream of frames from default camera//
FPS = cap.get(CAP_PROP_FPS);//Getting the total number of frames//
std::cout << "Total Number of frames are:" << FPS << std::endl;//Showing the number in console window//
system("pause");//Pausing the system to see the result
cap.release();//Releasing the buffer memory//
return 0;
}
Which leads me to believe that opencv needs to be somehow standardized in my system where "opencv2/opencv_modules.hpp"
wouldn’t throw an error.
And yes, I’m using CLion.
berak
June 7, 2022, 8:06am
15
not legit (as those includes wont find dependant ones).
solve the include path problem in your ide instead
oo92
June 7, 2022, 8:08am
16
Yea but I’m running main.cpp in terminal, not IDE. Also, how do I fix it in the IDE if I don’t know the source?
oo92
June 7, 2022, 8:11am
17
This is my CMake file:
cmake_minimum_required(VERSION 3.22)
project(mediafile_device_crossverification)
set(CMAKE_CXX_STANDARD 11)
set(OpenCV FOUND 1)
find_package(OpenCV REQUIRED)
add_executable(mediafile_device_crossverification main.cpp src/VideoProcessing.cpp src/VideoProcessing.h)
I’ve added
set(OpenCV FOUND 1)
find_package(OpenCV REQUIRED)
later on but it didn’t work.