hello,sir,i’m a studnet,and my project have something wrong,the log is here:
opencv verison 4.6.0
cmake verison 3.20.1
gcc version 8.10
in cmake
log:CMake Warning in samples/cpp/CMakeLists.txt:
The object file directory
D:/Software_EE/ProgramSupport_Package/Opencv_bin/opencv/build/x64/mingw_opecv/samples/cpp/CMakeFiles/example_tutorial_porting_anisotropic_image_segmentation_gapi_fluid.dir/
has 172 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
tutorial_code/gapi/porting_anisotropic_image_segmentation/porting_anisotropic_image_segmentation_gapi_fluid.cpp.obj
cannot be safely placed under this directory. The build may not work
correctly.
in cmd
log:
D:\Software_EE\ProgramSupport_Package\Opencv_bin\opencv\sources\samples\cpp\tutorial_code\gapi\porting_anisotropic_image_segmentation\porting_anisotropic_image_segmentation_gapi_fluid.cpp:116:1: fatal error: opening dependency file CMakeFiles\example_tutorial_porting_anisotropic_image_segmentation_gapi_fluid.dir\tutorial_code\gapi\porting_anisotropic_image_segmentation\porting_anisotropic_image_segmentation_gapi_fluid.cpp.obj.d: No such file or directory
}
^
compilation terminated.
minGW32-make[2]: *** [samples\cpp\CMakeFiles\example_tutorial_porting_anisotropic_image_segmentation_gapi_fluid.dir\build.make:76: samples/cpp/CMakeFiles/example_tutorial_porting_anisotropic_image_segmentation_gapi_fluid.dir/tutorial_code/gapi/porting_anisotropic_image_segmentation/porting_anisotropic_image_segmentation_gapi_fluid.cpp.obj] Error 1
minGW32-make[1]: *** [CMakeFiles\Makefile2:8534: samples/cpp/CMakeFiles/example_tutorial_porting_anisotropic_image_segmentation_gapi_fluid.dir/all] Error 2
minGW32-make[1]: *** Waiting for unfinished jobs…
[ 80%] Linking CXX executable …..\bin\example_snippet_imgproc_HoughLinesP.exe
[ 80%] Linking CXX executable …..\bin\example_snippet_imgproc_applyColorMap.exe
[ 80%] Linking CXX executable …..\bin\example_snippet_imgproc_calcHist.exe
[ 80%] Built target example_snippet_imgproc_HoughLinesP
[ 80%] Built target example_snippet_imgproc_applyColorMap
[ 80%] Built target example_snippet_imgproc_calcHist
minGW32-make: *** [Makefile:165: all] Error 2
how to deal with that ,if i don’t build that ,can it work as well?and how to do that?
i need help,and thank for help