-- Downloading v3.1.0/protobuf-cpp-3.1.0.tar.gz...
CMake Error at /home/yangbyeonghun/slam/opencv/opencv-3.2.0/cmake/OpenCVUtils.cmake:1043 (file):
file DOWNLOAD HASH mismatch
for file: [/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/.download/bd5e3eed635a8d32e2b99658633815ef/v3.1.0/protobuf-cpp-3.1.0.tar.gz]
expected hash: [bd5e3eed635a8d32e2b99658633815ef]
actual hash: [d41d8cd98f00b204e9800998ecf8427e]
status: [1;"Unsupported protocol"]
Call Stack (most recent call first):
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/cmake/download_protobuf.cmake:23 (ocv_download)
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/cmake/download_protobuf.cmake:51 (ocv_protobuf_download)
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:30 (include)
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/CMakeLists.txt:35 (include)
CMake Error at /home/yangbyeonghun/slam/opencv/opencv-3.2.0/cmake/OpenCVUtils.cmake:1047 (message):
Failed to download v3.1.0/protobuf-cpp-3.1.0.tar.gz. Status=1;"Unsupported
protocol"
Call Stack (most recent call first):
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/cmake/download_protobuf.cmake:23 (ocv_download)
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/cmake/download_protobuf.cmake:51 (ocv_protobuf_download)
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:30 (include)
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/CMakeLists.txt:35 (include)
-- Configuring incomplete, errors occurred!
See also "/home/yangbyeonghun/slam/opencv/opencv-3.2.0/build/CMakeFiles/CMakeOutput.log".
See also "/home/yangbyeonghun/slam/opencv/opencv-3.2.0/build/CMakeFiles/CMakeError.log".
I encountered this error during opencv installation. It's not solved by the various solutions on the Internet. What is the problem and how do we solve it?
I tried changing the Wi-Fi connection and changing it to a hotspot, but the same error appears.
I installed Dartsim C++ for my Ubuntu. When I enter command cmake .. to the terminal, this errors occur. What can be the possible solution?
CMake Warning at cmake/DARTFindfmt.cmake:9 (find_package):
By not providing "Findfmt.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "fmt", but
CMake did not find one.
Could not find a package configuration file provided by "fmt" with any of
the following names:
fmtConfig.cmake
fmt-config.cmake
Add the installation prefix of "fmt" to CMAKE_PREFIX_PATH or set "fmt_DIR"
to a directory containing one of the above files. If "fmt" provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
cmake/DARTMacros.cmake:81 (include)
cmake/DARTFindDependencies.cmake:13 (dart_find_package)
CMakeLists.txt:186 (include)
CMake Warning at cmake/DARTMacros.cmake:145 (message):
Looking for doxygen - NOT found, to use generating API documentation,
please install doxygen
Call Stack (most recent call first):
cmake/DARTFindDependencies.cmake:127 (dart_check_optional_package)
CMakeLists.txt:186 (include)
CMake Warning at cmake/DARTMacros.cmake:145 (message):
Looking for pagmo - NOT found, to use dart-optimizer-pagmo, please install
pagmo
Call Stack (most recent call first):
dart/optimizer/pagmo/CMakeLists.txt:3 (dart_check_optional_package)
CMake Warning at cmake/DARTMacros.cmake:145 (message):
Looking for flann - NOT found, to use dart-planning, please install flann
Call Stack (most recent call first):
dart/planning/CMakeLists.txt:3 (dart_check_optional_package)
Checking for module 'glut'
No package 'glut' found
Adding 12 components including the default component 'dart'
CMake Error at dart/CMakeLists.txt:141 (message):
Failed to find fmt targets
I installed Dartsim C++ for my Ubuntu. When I enter command 'cmake ..' to the terminal, this errors occur. What can be the possible solution?
when i build my package in ROS this error show me, how can fix this?
i should fix this
CMake Error at /opt/ros/noetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/home/beny/catkin_ws/build/catkin_generated/env_cached.sh
"/usr/bin/python3" "/usr/lib/python3/dist-packages/em.py" "--raw-errors"
"-F"
"/home/beny/catkin_ws/build/qrcode_detection/cmake/amrl_qrcode_detection-genmsg-context.py"
"-o"
"/home/beny/catkin_ws/build/qrcode_detection/cmake/amrl_qrcode_detection-genmsg.cmake"
"/opt/ros/noetic/share/genmsg/cmake/pkg-genmsg.cmake.em") returned error
code 1
Call Stack (most recent call first):
/opt/ros/noetic/share/catkin/cmake/em_expand.cmake:25 (safe_execute_process)
/opt/ros/noetic/share/genmsg/cmake/genmsg-extras.cmake:303 (em_expand)
qrcode_detection/CMakeLists.txt:28 (generate_messages)
-- Configuring incomplete, errors occurred!
See also "/home/beny/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/beny/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
I am trying to build opencv.js by following the steps mentioned in the Open CV [official document][1].
Note: I am trying to make a custom build instead of using the existing [opencv.js][2] library because I want to add some contrib modules as well.
Open CV source version: 4.5.1
Cmake: 3.20.0
Python: 3.7
Emscriptem: [latest][3]
operating system: windows 64 bit
The below is the stack trace of the issue I get when I try to execute the below command in the windows power shell..
emcmake python ./opencv/platforms/js/build_js.py build_js
Stack Trace
emcmake python ./opencv/platforms/js/build_js.py build_js
configure: python ./opencv/platforms/js/build_js.py build_js
Args: Namespace(build_dir='build_js', build_doc=False, build_flags=None, build_loader=False, build_perf=False, build_test=False, build_wasm=False, build_wasm_intrin_test=False, clean_build_dir=False, cmake_option=None, config='D:\\business\\Drapezy\\codetrials\\opencvjs\\opencv\\platforms\\js\\opencv_js.config.py', config_only=False, disable_wasm=False, emscripten_dir='D:\\business\\Drapezy\\codetrials\\opencvjs\\emsdk\\upstream\\emscripten', enable_exception=False, opencv_dir='D:\\business\\Drapezy\\codetrials\\opencvjs\\opencv', simd=False, skip_config=False, threads=False)
Check dir D:\business\Drapezy\codetrials\opencvjs\build_js (create: True, clean: False)
Check dir D:\business\Drapezy\codetrials\opencvjs\opencv (create: False, clean: False)
Check dir D:\business\Drapezy\codetrials\opencvjs\emsdk\upstream\emscripten (create: False, clean: False)
=====
===== Config OpenCV.js build for default target
=====
Executing: ['cmake', '-DPYTHON_DEFAULT_EXECUTABLE=C:\\Users\\girir\\AppData\\Local\\Programs\\Python\\Python37\\python.exe', '-DENABLE_PIC=FALSE', '-DCMAKE_BUILD_TYPE=Release', "-DCMAKE_TOOLCHAIN_FILE='D:\\business\\Drapezy\\codetrials\\opencvjs\\emsdk\\upstream\\emscripten\\cmake\\Modules\\Platform\\Emscripten.cmake'", "-DCPU_BASELINE=''", "-DCPU_DISPATCH=''", '-DCV_TRACE=OFF', '-DBUILD_SHARED_LIBS=OFF', '-DWITH_1394=OFF', '-DWITH_ADE=OFF', '-DWITH_VTK=OFF', '-DWITH_EIGEN=OFF', '-DWITH_FFMPEG=OFF', '-DWITH_GSTREAMER=OFF', '-DWITH_GTK=OFF', '-DWITH_GTK_2_X=OFF', '-DWITH_IPP=OFF', '-DWITH_JASPER=OFF', '-DWITH_JPEG=OFF', '-DWITH_WEBP=OFF', '-DWITH_OPENEXR=OFF', '-DWITH_OPENGL=OFF', '-DWITH_OPENVX=OFF', '-DWITH_OPENNI=OFF', '-DWITH_OPENNI2=OFF', '-DWITH_PNG=OFF', '-DWITH_TBB=OFF', '-DWITH_TIFF=OFF', '-DWITH_V4L=OFF', '-DWITH_OPENCL=OFF', '-DWITH_OPENCL_SVM=OFF', '-DWITH_OPENCLAMDFFT=OFF', '-DWITH_OPENCLAMDBLAS=OFF', '-DWITH_GPHOTO2=OFF', '-DWITH_LAPACK=OFF', '-DWITH_ITT=OFF', '-DWITH_QUIRC=ON', '-DBUILD_ZLIB=ON', '-DBUILD_opencv_apps=OFF', '-DBUILD_opencv_calib3d=ON', '-DBUILD_opencv_dnn=ON', '-DBUILD_opencv_features2d=ON', '-DBUILD_opencv_flann=ON', '-DBUILD_opencv_gapi=OFF', '-DBUILD_opencv_ml=OFF', '-DBUILD_opencv_photo=ON', '-DBUILD_opencv_imgcodecs=OFF', '-DBUILD_opencv_shape_transformer=ON', '-DBUILD_opencv_videoio=OFF', '-DBUILD_opencv_videostab=OFF', '-DBUILD_opencv_highgui=OFF', '-DBUILD_opencv_superres=OFF', '-DBUILD_opencv_stitching=OFF', '-DBUILD_opencv_java=OFF', '-DBUILD_opencv_js=ON', '-DBUILD_opencv_python2=OFF', '-DBUILD_opencv_python3=OFF', '-DBUILD_EXAMPLES=OFF', '-DBUILD_PACKAGE=OFF', '-DBUILD_TESTS=OFF', '-DBUILD_PERF_TESTS=OFF', '-DBUILD_DOCS=OFF', '-DWITH_PTHREADS_PF=OFF', '-DCV_ENABLE_INTRINSICS=OFF', '-DBUILD_WASM_INTRIN_TESTS=OFF', "-DCMAKE_C_FLAGS='-s USE_PTHREADS=0 '", "-DCMAKE_CXX_FLAGS='-s USE_PTHREADS=0 '", 'D:\\business\\Drapezy\\codetrials\\opencvjs\\opencv']
Re-run cmake no build system arguments
-- Detected processor: x86
-- Looking for ccache - not found
CMake Error at cmake/OpenCVCompilerOptimizations.cmake:593 (message):
Compiler doesn't support baseline optimization flags:
Call Stack (most recent call first):
cmake/OpenCVCompilerOptions.cmake:311 (ocv_compiler_optimization_options)
CMakeLists.txt:617 (include)
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "./opencv/platforms/js/build_js.py", line 279, in <module>
File "./opencv/platforms/js/build_js.py", line 192, in config
File "./opencv/platforms/js/build_js.py", line 23, in execute
__main__.Fail: Child returned: 1
[1]: https://docs.opencv.org/master/d4/da1/tutorial_js_setup.html
[2]: https://docs.opencv.org/master/opencv.js
[3]: https://emscripten.org/docs/getting_started/downloads.html
Any ideas to resolve this issue is appreciated.
Building opencv.js on Windows will NOT work, at least according to this open issue. An alternative is to install WSL and use it to build.
I am trying to build a project from git.Getting following error:
CMake Warning at cmake/OpenCVDetectCXXCompiler.cmake:95 (message):
GCC version not detected!
Call Stack (most recent call first):
CMakeLists.txt:116 (include)
-- Detected version of GNU GCC: 00 (0)
-- Check if the system is big endian
-- Searching 16 bit integer
CMake Error at /usr/share/cmake-3.2/Modules/TestBigEndian.cmake:51 (message):
no suitable type found
Call Stack (most recent call first):
CMakeLists.txt:529 (test_big_endian)
-- Configuring incomplete, errors occurred!
Not able to understand the error. Any help appreciated
In the project 3. Build Android OpenCV SDK with extra modules for Android when I am trying to sh ./scripts/cmake_android_arm.sh I am getting the above error.
I was getting the same error: TestBigEndian: no suitable type found.
However, deleting the CMakeCache.txt file under build_android_arm directory resolved this issue.