windows mingw32-make "no such file" 安装opencv时出错
windows mingw32-make "no such file" error when installing opencv
我一直在尝试使用 CMake 3.22.0-rc1 从源代码构建 OpenCV-4.5.1。当执行“mingw32-make”时,出现以下问题。我猜 CMakeList 出了点问题,但我不确定。我发现没有名为“thread.c.obj”的文件,所以我尝试用gcc编译thread.c,但出现了一些引用错误(我将post截图或copy/paste如有错误可在评论区指出)
这是错误的描述:
D:\Code\opencv\sources\build>mingw32-make
[ 0%] Built target opencv_highgui_plugins
[ 0%] Building C object 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/thread.c.obj
process_begin: CreateProcess(C:\Users271\AppData\Local\Temp\make6172-1.bat, C:\Users271\AppData\Local\Temp\make6172-1.bat, ...) failed.
make (e=2): 系统找不到指定的文件。//which means there's no such file
mingw32-make[2]: *** [3rdparty\openjpeg\openjp2\CMakeFiles\libopenjp2.dir\build.make:76: 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/thread.c.obj] Error 2
mingw32-make[1]: *** [CMakeFiles\Makefile2:1650: 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/all] Error 2
mingw32-make: *** [Makefile:165: all] Error 2
第一次在本论坛提问,对提问的格式不熟悉,如有不妥之处请指出。谢谢!
我一直在尝试使用 CMake 3.22.0-rc1 从源代码构建 OpenCV-4.5.1。当执行“mingw32-make”时,出现以下问题。我猜 CMakeList 出了点问题,但我不确定。我发现没有名为“thread.c.obj”的文件,所以我尝试用gcc编译thread.c,但出现了一些引用错误(我将post截图或copy/paste如有错误可在评论区指出)
这是错误的描述:
D:\Code\opencv\sources\build>mingw32-make
[ 0%] Built target opencv_highgui_plugins
[ 0%] Building C object 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/thread.c.obj
process_begin: CreateProcess(C:\Users271\AppData\Local\Temp\make6172-1.bat, C:\Users271\AppData\Local\Temp\make6172-1.bat, ...) failed.
make (e=2): 系统找不到指定的文件。//which means there's no such file
mingw32-make[2]: *** [3rdparty\openjpeg\openjp2\CMakeFiles\libopenjp2.dir\build.make:76: 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/thread.c.obj] Error 2
mingw32-make[1]: *** [CMakeFiles\Makefile2:1650: 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/all] Error 2
mingw32-make: *** [Makefile:165: all] Error 2
第一次在本论坛提问,对提问的格式不熟悉,如有不妥之处请指出。谢谢!