CMAKE compiler OpenCV source code error
Cmake compile opencv source code error: 1.
error prompt QtGui_DIR QtOpengl_DIR QtCore_DIR errors, such as said not set QT environment error
2. F ‘fmpeg download failed (timeout)
Qtgui_dir Qtopengl_dir Qtcore_gui, etc
Solution: in opencv source code file CMakeLists. TXT file to add the following code (can be added in the file header)
according to your own error set the appropriate path, such as:
set (Qt5Core_DIR “C:/Qt/Qt5.9.6/5.9.6/mingw53_32/lib/cmake/Qt5Core”)
set (Qt5Gui_DIR “C:/Qt/Qt5.9.6/5.9.6/mingw53_32/lib/cmake/Qt5Gui”)
set (Qt5Widgets_DIR “C:/Qt/Qt5.9.6/5.9.6/mingw53_32/lib/cmake/Qt5Widgets”)
set (Qt5Test_DIR “C:/Qt/Qt5.9.6/5.9.6/mingw53_32/lib/cmake/Qt5Test”)
…
FFMPEG library file download failed (timeout)
Source/. Cache /ffmpeg> Build/3rdparty/ffmpeg> so> /ffmpeg> Build/3rdparty/ffmpeg> Source/ ffmpeg> Build/3rdparty/ffmpeg> Copy the three files to Source/. Cache /ffmpeg, but change the file name to the md5-file name of the file.
>
>
# do_copy “opencv_ffmpeg_64. DLL” “2 cc08fc4fef8199fe80e0f126684834f” “https://raw.githubusercontent.com/opencv/opencv_3rdparty/8041bd6f5ad37045c258904ba3030bb3442e3911/ffmpeg/opencv_ffmpeg_64.dll” “D:/workspace/opencv_contrib_3. 4.3/opencv – rule 3.4.3 – Build/3 rdparty/ffmpeg”
# missing “D:/workspace/opencv_contrib_3. 4.3/opencv – rule 3.4.3 – Build/3 rdparty/ffmpeg/opencv_ffmpeg_64. DLL”
# check_md5 “D:/workspace/opencv_contrib_3. 4.3/opencv. – rule 3.4.3 – Source/cache/ffmpeg/2 cc08fc4fef8199fe80e0f126684834f – opencv_ffmpeg_64. DLL”
The meaning of the above said from the download link https://raw.githubusercontent.com/opencv/opencv_3rdparty/8041bd6f5ad37045c258904ba3030bb3442e3911/ffmpeg/opencv_ffmpeg_64.dll copy dynamic library to D:/workspace/opencv_contrib_3. 4.3/opencv – rule 3.4.3 – Build/3 rd Party /ffmpeg folder, and give the MD5 value
opencv_ffmpeg_64.dll
opencv_ffmpeg_64.dll https://raw.githubusercontent.com/opencv/opencv_3rdparty/8041bd6f5ad37045c258904ba3030bb3442e3911/ffmpeg/opencv_ffmpeg_64.dll
opencv_ffmpeg_64. DLL md5 value is 2 cc08fc4fef8199fe80e0f126684834f
Download to Build/3 rdparty/ffmpeg/folder
after the download is
the Build/3 rdparty/ffmpeg/opencv_ffmpeg_64. DLL
manually copy files to the Source folder and name: Md5 + name of the file, like this
the Source/cache/ffmpeg/2 cc08fc4fef8199fe80e0f126684834f – opencv_ffmpeg_64. DLL.
the other opencv_ffmpeg DLL and ffmpeg_version cmake method is the same.
note that carriage return after cmake file copy link to the browser, then right click on the select save as TXT file, to Build/3 rdparty/ffmpeg/folder, and then to the folder rename file suffix. TXT, thus cmake file with respect to OK, and then copied to the Source/cache/ffmpeg/file, rename, front ➕ md5.
click Configure again with respect to OK
supported
Read More:
- dfs.namenode.name . dir and dfs.datanode.data .dir dfs.name.dir And dfs.data.dir What do you mean
- brew install node Error: No such file or directory @ dir_chdir Bottle installation failed
- Failed cleaning build dir for SciPy
- [XMR] Could NOT find HWLOC (missing: HWLOC_LIBRARY HWLOC_INCLUDE_DIR)
- Project files may be invalid appears when cmake compiles opencv3.1, and the debug additional dependency of the compiled opencv3.1 is at the end
- Error resolution-“Error in configuration process, project files may be invalid” appears when Cmake compiles openCV
- Report ippicv error during opencv3 compilation
- Opencv2.4.9 + ffmpeg1.2.12 installation configuration and problem solution under Ubuntu 14.04
- ERROR: While executing gem … (Errno::EACCES) Permission denied @ dir_s_mkdir – /var/lib/gems
- CMake Error: The source directory “opencv_install_catalog“ does not appear to contain CMakeLists.txt.
- [opencv + openvino] opencv-vino4.5.1 + opencv contrib installation
- CMake Error at CMakeLists.txt:5 (PROJECT): The CMAKE_C_COMPILER: cl is not a full path
- Opencv problem: opencv error: assertion failed (! Empty()) in detectmultiscale
- Visual slam Lesson 6: curve fitting with g2o, error: cmake error at CMakeList.txt (find_ package) By not providing“FindG2O.cmake“
- Installing opencv and Linux Makefile:160 : recipe for target ‘all’ failed problem resolution
- Clion configuration MingGW report error test cmake run with errors solution
- [Solved] Failed to compile with 1 error. Syntax Error: Error: Loading PostCSS Plugin failed: Cannot find modul
- Opencv perfect configuration strategy 2015 (win7 + opencv 2.4.9 + vs 2013)
- Vs2013 compiling ffmpeg
- “Error in configuration process project files may be invalid” appears during cmake compilation