赞
踩
- [main] 正在生成文件夹: threadSeg_Yolo_RT_vscode clean
- [build] 正在启动生成
- [proc] 执行命令: D:\program\CMake\bin\cmake.EXE --build F:/code/projects/threadSeg_Yolo_RT_vscode/build/x64-debug --parallel 6 --target clean
- [build] -- GLOB mismatch!
- [build] -- GLOB mismatch!
- [build] -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
- [build] -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
- [build] -- Qt6 library is found!
- [build] -- OpenCV library found at D:/program/opencv/build/include
- [build] -- Eigen3 library is found!
- [build] -- CUDA library is found!
- [build] -- Found TensorRT headers at D:/program/TensorRT-8.5.1.7/include
- [build] -- Find TensorRT libs at D:/program/TensorRT-8.5.1.7/lib/nvinfer.lib;D:/program/TensorRT-8.5.1.7/lib/nvinfer_plugin.lib;D:/program/TensorRT-8.5.1.7/lib/nvonnxparser.lib;D:/program/TensorRT-8.5.1.7/lib/nvparsers.lib
- [build] -- Configuring done (5.4s)
- [build] -- Generating done (0.4s)
- [build] -- Build files have been written to: F:/code/projects/threadSeg_Yolo_RT_vscode/build/x64-debug
- [build] [0/2] Re-checking globbed directories...
- [build] [1/2] Re-running CMake...
- [build] [0/2] Re-checking globbed directories...
- [build] [1/2] Cleaning additional files...
- [build] [2/2] Cleaning all built files...
- [build] Cleaning... 9 files.
- [driver] 生成完毕: 00:00:07.009
- [build] 生成已完成,退出代码为 0
- [main] 正在生成文件夹: threadSeg_Yolo_RT_vscode
- [build] 正在启动生成
- [proc] 执行命令: D:\program\CMake\bin\cmake.EXE --build F:/code/projects/threadSeg_Yolo_RT_vscode/build/x64-debug --parallel 6 --target THREAD_YOLO_RT_VSCODE
- [build] -- GLOB mismatch!
- [build] -- GLOB mismatch!
- [build] -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
- [build] -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
- [build] -- Qt6 library is found!
- [build] -- OpenCV library found at D:/program/opencv/build/include
- [build] -- Eigen3 library is found!
- [build] -- CUDA library is found!
- [build] -- Found TensorRT headers at D:/program/TensorRT-8.5.1.7/include
- [build] -- Find TensorRT libs at D:/program/TensorRT-8.5.1.7/lib/nvinfer.lib;D:/program/TensorRT-8.5.1.7/lib/nvinfer_plugin.lib;D:/program/TensorRT-8.5.1.7/lib/nvonnxparser.lib;D:/program/TensorRT-8.5.1.7/lib/nvparsers.lib
- [build] -- Configuring done (5.5s)
- [build] -- Generating done (0.3s)
- [build] -- Build files have been written to: F:/code/projects/threadSeg_Yolo_RT_vscode/build/x64-debug
- [build] [0/2] Re-checking globbed directories...
- [build] [1/2] Re-running CMake...
- [build] [0/2] Re-checking globbed directories...
- [build] [1/10] Running qmlimportscanner for THREAD_YOLO_RT_VSCODE
- [build] [2/10] Automatic MOC and UIC for target THREAD_YOLO_RT_VSCODE
- [build] [3/10] Building CXX object CMakeFiles\THREAD_YOLO_RT_VSCODE.dir\src\util.cpp.obj
- [build] D:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\numeric(35): warning C4244: “=”: 从“_Ty”转换到“_Ty”,可能丢失数据
- [build] with
- [build] [
- [build] _Ty=int64_t
- [build] ]
- [build] and
- [build] [
- [build] _Ty=int
- [build] ]
- [build] D:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\numeric(35): note: 模板实例化上下文(最早的实例化上下文)为
- [build] F:\code\projects\threadSeg_Yolo_RT_vscode\src\util.cpp(34): note: 查看对正在编译的函数 模板 实例化“_Ty std::accumulate<const int32_t*,int,std::multiplies<int64_t>>(const _InIt,const _InIt,_Ty,_Fn)”的引用
- [build] with
- [build] [
- [build] _Ty=int,
- [build] _InIt=const int32_t *,
- [build] _Fn=std::multiplies<int64_t>
- [build] ]
- [build] [4/10] Building CXX object CMakeFiles\THREAD_YOLO_RT_VSCODE.dir\src\process.cpp.obj
- [build] [5/10] Building CXX object CMakeFiles\THREAD_YOLO_RT_VSCODE.dir\src\qswitchbutton.cpp.obj
- [build] [6/10] Building CXX object CMakeFiles\THREAD_YOLO_RT_VSCODE.dir\src\infer.cpp.obj
- [build] [7/10] Building CXX object CMakeFiles\THREAD_YOLO_RT_VSCODE.dir\THREAD_YOLO_RT_VSCODE_autogen\mocs_compilation.cpp.obj
- [build] FAILED: CMakeFiles/THREAD_YOLO_RT_VSCODE.dir/THREAD_YOLO_RT_VSCODE_autogen/mocs_compilation.cpp.obj
- [build] "D:\Program Files\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1440~1.338\bin\Hostx64\x64\cl.exe" /nologo /TP -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_OPENGLWIDGETS_LIB -DQT_OPENGL_LIB -DQT_QMLBUILTINS_LIB -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -ID:\program\TensorRT-8.5.1.7\include -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -ID:\program\Eigen3\include\eigen3 -IF:\code\projects\threadSeg_Yolo_RT_vscode\include -external:ID:\program\opencv\build\include -external:IF:\code\projects\threadSeg_Yolo_RT_vscode\build\x64-debug\THREAD_YOLO_RT_VSCODE_autogen\include -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtCore -external:ID:\program\Qt\6.8.0\msvc2022_64\include -external:ID:\program\Qt\6.8.0\msvc2022_64\mkspecs\win32-msvc -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtWidgets -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtGui -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtOpenGLWidgets -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtOpenGL -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtQml -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtQmlIntegration -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtQmlBuiltins -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtNetwork -external:W0 /DWIN32 /D_WINDOWS /EHsc /Ob0 /Od /RTC1 -std:c++20 -MDd -Zi -Zc:__cplusplus -permissive- -utf-8 /showIncludes /FoCMakeFiles\THREAD_YOLO_RT_VSCODE.dir\THREAD_YOLO_RT_VSCODE_autogen\mocs_compilation.cpp.obj /FdCMakeFiles\THREAD_YOLO_RT_VSCODE.dir\ /FS -c F:\code\projects\threadSeg_Yolo_RT_vscode\build\x64-debug\THREAD_YOLO_RT_VSCODE_autogen\mocs_compilation.cpp
- [build] D:\program\opencv\build\include\opencv2/core/utility.hpp(718): error C2039: "recursive_mutex": 不是 "std" 的成员
- [build] D:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\complex(62): note: 参见“std”的声明
- [build] D:\program\opencv\build\include\opencv2/core/utility.hpp(718): error C2146: 语法错误: 缺少“;”(在标识符“Mutex”的前面)
- [build] D:\program\opencv\build\include\opencv2/core/utility.hpp(719): error C2039: "lock_guard": 不是 "std" 的成员
- [build] D:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\complex(62): note: 参见“std”的声明
- [build] D:\program\opencv\build\include\opencv2/core/utility.hpp(719): error C7568: 假定的函数模板“lock_guard”后面缺少参数列表
- [build] D:\program\opencv\build\include\opencv2/core/utility.hpp(719): error C2062: 意外的类型“unknown-type”
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(192): error C2187: 语法错误: 此处出现意外的“cv”
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(189): note: 此诊断出现在编译器生成的函数“cv::Ptr<cvflann::Heap<T>> cvflann::Heap<T>::getPooledInstance(const HashableT &,const int,int)”中
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(192): note: 模板实例化上下文(最早的实例化上下文)为
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(63): note: 在编译类模板“cvflann::Heap”时
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(192): error C2065: “mutex”: 未声明的标识符
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(189): note: 此诊断出现在编译器生成的函数“cv::Ptr<cvflann::Heap<T>> cvflann::Heap<T>::getPooledInstance(const HashableT &,const int,int)”中
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(193): error C2065: “mutex”: 未声明的标识符
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(189): note: 此诊断出现在编译器生成的函数“cv::Ptr<cvflann::Heap<T>> cvflann::Heap<T>::getPooledInstance(const HashableT &,const int,int)”中
- [build] [8/10] Building CXX object CMakeFiles\THREAD_YOLO_RT_VSCODE.dir\src\yolowindow.cpp.obj
- [build] FAILED: CMakeFiles/THREAD_YOLO_RT_VSCODE.dir/src/yolowindow.cpp.obj
- [build] "D:\Program Files\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1440~1.338\bin\Hostx64\x64\cl.exe" /nologo /TP -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_OPENGLWIDGETS_LIB -DQT_OPENGL_LIB -DQT_QMLBUILTINS_LIB -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -ID:\program\TensorRT-8.5.1.7\include -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -ID:\program\Eigen3\include\eigen3 -IF:\code\projects\threadSeg_Yolo_RT_vscode\include -external:ID:\program\opencv\build\include -external:IF:\code\projects\threadSeg_Yolo_RT_vscode\build\x64-debug\THREAD_YOLO_RT_VSCODE_autogen\include -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtCore -external:ID:\program\Qt\6.8.0\msvc2022_64\include -external:ID:\program\Qt\6.8.0\msvc2022_64\mkspecs\win32-msvc -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtWidgets -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtGui -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtOpenGLWidgets -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtOpenGL -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtQml -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtQmlIntegration -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtQmlBuiltins -external:ID:\program\Qt\6.8.0\msvc2022_64\include\QtNetwork -external:W0 /DWIN32 /D_WINDOWS /EHsc /Ob0 /Od /RTC1 -std:c++20 -MDd -Zi -Zc:__cplusplus -permissive- -utf-8 /showIncludes /FoCMakeFiles\THREAD_YOLO_RT_VSCODE.dir\src\yolowindow.cpp.obj /FdCMakeFiles\THREAD_YOLO_RT_VSCODE.dir\ /FS -c F:\code\projects\threadSeg_Yolo_RT_vscode\src\yolowindow.cpp
- [build] D:\program\opencv\build\include\opencv2/core/utility.hpp(718): error C2039: "recursive_mutex": 不是 "std" 的成员
- [build] D:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\complex(62): note: 参见“std”的声明
- [build] D:\program\opencv\build\include\opencv2/core/utility.hpp(718): error C2146: 语法错误: 缺少“;”(在标识符“Mutex”的前面)
- [build] D:\program\opencv\build\include\opencv2/core/utility.hpp(719): error C2039: "lock_guard": 不是 "std" 的成员
- [build] D:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\complex(62): note: 参见“std”的声明
- [build] D:\program\opencv\build\include\opencv2/core/utility.hpp(719): error C7568: 假定的函数模板“lock_guard”后面缺少参数列表
- [build] D:\program\opencv\build\include\opencv2/core/utility.hpp(719): error C2062: 意外的类型“unknown-type”
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(192): error C2187: 语法错误: 此处出现意外的“cv”
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(189): note: 此诊断出现在编译器生成的函数“cv::Ptr<cvflann::Heap<T>> cvflann::Heap<T>::getPooledInstance(const HashableT &,const int,int)”中
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(192): note: 模板实例化上下文(最早的实例化上下文)为
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(63): note: 在编译类模板“cvflann::Heap”时
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(192): error C2065: “mutex”: 未声明的标识符
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(189): note: 此诊断出现在编译器生成的函数“cv::Ptr<cvflann::Heap<T>> cvflann::Heap<T>::getPooledInstance(const HashableT &,const int,int)”中
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(193): error C2065: “mutex”: 未声明的标识符
- [build] D:\program\opencv\build\include\opencv2\flann\heap.h(189): note: 此诊断出现在编译器生成的函数“cv::Ptr<cvflann::Heap<T>> cvflann::Heap<T>::getPooledInstance(const HashableT &,const int,int)”中
- [build] [9/10] Building CXX object CMakeFiles\THREAD_YOLO_RT_VSCODE.dir\main.cpp.obj
- [build] ninja: build stopped: subcommand failed.
- [proc] 命令“D:\program\CMake\bin\cmake.EXE --build F:/code/projects/threadSeg_Yolo_RT_vscode/build/x64-debug --parallel 6 --target THREAD_YOLO_RT_VSCODE”已退出,代码为 1
- [driver] 生成完毕: 00:00:32.293
- [build] 生成已完成,退出代码为 1
调试过程:
这个报错是我在头文件中添加 #include <QThread> 时出现的。这个报错之前遇到过,没有解决,更改程序规避掉了。但是这次代码不好修改,尝试解决这个报错。
首先,根据 "error C2039: "recursive_mutex": 不是 "std" 的成员"报错,搜索解决方法。
有的解答是说MINGW的编译器可能不支持多线程,需要切换到POSIX版本。但用的MSVC的编译器,并且新建一个工程尝试添加 <QThread>头文件并调试,并无报错。
接着,怀疑是OPENCV框架没有编译好,但是opencv是下的官网最新版的编译好的文件,不太可能存在编译问题。尝试修改OPENCV的源文件和编译配置文件,都无法解决。
于是,尝试编译MINGW版的OPENCV,但出现更多报错,包括CUDA无法查到,FFPEG相关库无法下载等,这些报错一时无法解决。但是本地已经有一个mingw的opencv4.1.1库,这个是别人编译好的在本地测试有效。尝试基于此库新建工程测试,将thread.h,mutex.h等头文件包括在内进行测试,发现多线程能够正常工作,并且mingw的编译器不是posix好像也没关系。
在接着在网上搜索答案,包括在github,opencv论坛上搜索相似保存,所提解决方法,都没解决这个报错。
最后的解决方法,啼笑皆非:
- #ifndef YOLOWINDOW_H
- #define YOLOWINDOW_H
-
- #include <QMainWindow>
- #include <QOpenGLWidget>
-
- #include <QFileDialog>
- #include <QListView>
- #include <QTreeView>
- #include <QDialogButtonBox>
- #include <QMessageBox>
- #include <QImage>
-
- #include "qswitchbutton.h"
- #include "infer.h"
这样的头文件能够正常编译运行,但是我需要用到多线程。于是添加头文件QThread:
- #ifndef YOLOWINDOW_H
- #define YOLOWINDOW_H
-
- #include <QMainWindow>
- #include <QOpenGLWidget>
-
- #include <QFileDialog>
- #include <QListView>
- #include <QTreeView>
- #include <QDialogButtonBox>
- #include <QMessageBox>
- #include <QImage>
- #include <QThread>
-
- #include "qswitchbutton.h"
- #include "infer.h"
这就出现最开始的报错。最后试着调整头文件位置:
- #ifndef YOLOWINDOW_H
- #define YOLOWINDOW_H
-
- #include "qswitchbutton.h"
- #include "infer.h"
-
- #include <QMainWindow>
- #include <QOpenGLWidget>
-
- #include <QFileDialog>
- #include <QListView>
- #include <QTreeView>
- #include <QDialogButtonBox>
- #include <QMessageBox>
- #include <QImage>
- #include <QThread>
这样就能够顺利编译:
- [main] 正在生成文件夹: threadSeg_Yolo_RT_vscode clean
- [build] 正在启动生成
- [proc] 执行命令: D:\program\CMake\bin\cmake.EXE --build F:/code/projects/threadSeg_Yolo_RT_vscode/build/x64-debug --parallel 6 --target clean
- [build] -- GLOB mismatch!
- [build] -- GLOB mismatch!
- [build] -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
- [build] -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
- [build] -- Qt6 library is found!
- [build] -- OpenCV library found at D:/program/opencv/build/include
- [build] -- Eigen3 library is found!
- [build] -- CUDA library is found!
- [build] -- Found TensorRT headers at D:/program/TensorRT-8.5.1.7/include
- [build] -- Find TensorRT libs at D:/program/TensorRT-8.5.1.7/lib/nvinfer.lib;D:/program/TensorRT-8.5.1.7/lib/nvinfer_plugin.lib;D:/program/TensorRT-8.5.1.7/lib/nvonnxparser.lib;D:/program/TensorRT-8.5.1.7/lib/nvparsers.lib
- [build] -- Configuring done (7.4s)
- [build] -- Generating done (0.4s)
- [build] -- Build files have been written to: F:/code/projects/threadSeg_Yolo_RT_vscode/build/x64-debug
- [build] [0/2] Re-checking globbed directories...
- [build] [1/2] Re-running CMake...
- [build] [0/2] Re-checking globbed directories...
- [build] [1/2] Cleaning additional files...
- [build] [2/2] Cleaning all built files...
- [build] Cleaning... 6 files.
- [driver] 生成完毕: 00:00:09.452
- [build] 生成已完成,退出代码为 0
- [main] 正在生成文件夹: threadSeg_Yolo_RT_vscode
- [build] 正在启动生成
- [proc] 执行命令: D:\program\CMake\bin\cmake.EXE --build F:/code/projects/threadSeg_Yolo_RT_vscode/build/x64-debug --parallel 6 --target THREAD_YOLO_RT_VSCODE
- [build] -- GLOB mismatch!
- [build] -- GLOB mismatch!
- [build] -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
- [build] -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
- [build] -- Qt6 library is found!
- [build] -- OpenCV library found at D:/program/opencv/build/include
- [build] -- Eigen3 library is found!
- [build] -- CUDA library is found!
- [build] -- Found TensorRT headers at D:/program/TensorRT-8.5.1.7/include
- [build] -- Find TensorRT libs at D:/program/TensorRT-8.5.1.7/lib/nvinfer.lib;D:/program/TensorRT-8.5.1.7/lib/nvinfer_plugin.lib;D:/program/TensorRT-8.5.1.7/lib/nvonnxparser.lib;D:/program/TensorRT-8.5.1.7/lib/nvparsers.lib
- [build] -- Configuring done (7.5s)
- [build] -- Generating done (0.4s)
- [build] -- Build files have been written to: F:/code/projects/threadSeg_Yolo_RT_vscode/build/x64-debug
- [build] [0/2] Re-checking globbed directories...
- [build] [1/2] Re-running CMake...
- [build] [0/2] Re-checking globbed directories...
- [build] [1/10] Running qmlimportscanner for THREAD_YOLO_RT_VSCODE
- [build] [2/10] Automatic MOC and UIC for target THREAD_YOLO_RT_VSCODE
- [build] [3/10] Building CXX object CMakeFiles\THREAD_YOLO_RT_VSCODE.dir\src\util.cpp.obj
- [build] D:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\numeric(35): warning C4244: “=”: 从“_Ty”转换到“_Ty”,可能丢失数据
- [build] with
- [build] [
- [build] _Ty=int64_t
- [build] ]
- [build] and
- [build] [
- [build] _Ty=int
- [build] ]
- [build] D:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\numeric(35): note: 模板实例化上下文(最早的实例化上下文)为
- [build] F:\code\projects\threadSeg_Yolo_RT_vscode\src\util.cpp(34): note: 查看对正在编译的函数 模板 实例化“_Ty std::accumulate<const int32_t*,int,std::multiplies<int64_t>>(const _InIt,const _InIt,_Ty,_Fn)”的引用
- [build] with
- [build] [
- [build] _Ty=int,
- [build] _InIt=const int32_t *,
- [build] _Fn=std::multiplies<int64_t>
- [build] ]
- [build] [4/10] Building CXX object CMakeFiles\THREAD_YOLO_RT_VSCODE.dir\src\qswitchbutton.cpp.obj
- [build] [5/10] Building CXX object CMakeFiles\THREAD_YOLO_RT_VSCODE.dir\src\process.cpp.obj
- [build] [6/10] Building CXX object CMakeFiles\THREAD_YOLO_RT_VSCODE.dir\src\infer.cpp.obj
- [build] [7/10] Building CXX object CMakeFiles\THREAD_YOLO_RT_VSCODE.dir\THREAD_YOLO_RT_VSCODE_autogen\mocs_compilation.cpp.obj
- [build] [8/10] Building CXX object CMakeFiles\THREAD_YOLO_RT_VSCODE.dir\main.cpp.obj
- [build] [9/10] Building CXX object CMakeFiles\THREAD_YOLO_RT_VSCODE.dir\src\yolowindow.cpp.obj
- [build] [10/10] Linking CXX executable THREAD_YOLO_RT_VSCODE.exe
- [driver] 生成完毕: 00:00:42.618
- [build] 生成已完成,退出代码为 0
具体原因不知道是为什么,可能是QThread放置顺序影响“infer.h”这个文件的程序。这种情况以前好像遇到过,记得不太清,试了一下,这个报错就解决了。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。