Giter Club home page Giter Club logo

Comments (22)

MirrorYuAI avatar MirrorYuAI commented on August 24, 2024

https://learn.microsoft.com/zh-cn/visualstudio/msbuild/errors/msb8013?view=vs-2022

from ncnn_example.

MirrorYuAI avatar MirrorYuAI commented on August 24, 2024

这个你看一下操作是不是有问题,是用我这边提供的脚本直接编译的吗?

from ncnn_example.

MirrorYuAI avatar MirrorYuAI commented on August 24, 2024

visual studio 2019 要把下面的命令:
cmake -G "Visual Studio 15 2017" -A x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES="Release" -DProtobuf_INCLUDE_DIR=D:/library/protobuf-3.4.0/vs2017/install/include -DProtobuf_LIBRARIES=D:/library/protobuf-3.4.0/vs2017/install/lib/libprotobuf.lib -DProtobuf_PROTOC_EXECUTABLE=D:/library/protobuf-3.4.0/vs2017/install/bin/protoc.exe ..

改成:
cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES="Release" -DProtobuf_INCLUDE_DIR=D:/library/protobuf-3.4.0/vs2017/install/include -DProtobuf_LIBRARIES=D:/library/protobuf-3.4.0/vs2017/install/lib/libprotobuf.lib -DProtobuf_PROTOC_EXECUTABLE=D:/library/protobuf-3.4.0/vs2017/install/bin/protoc.exe ..

from ncnn_example.

duoduo888999 avatar duoduo888999 commented on August 24, 2024

你好,我是按照你提供的脚本做了相应的修改之后编译的。

cd ../../
mkdir vs2019
cd vs2019
cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES="Release" -DProtobuf_INCLUDE_DIR=D:/ProgramData/protobuf-3.4.0/build-vs2019/install/include -DProtobuf_LIBRARIES=D:/ProgramData/protobuf-3.4.0/build-vs2019/install/lib/libprotobuf.lib -DProtobuf_PROTOC_EXECUTABLE=D:/ProgramData/protobuf-3.4.0/build-vs2019/install/bin/protoc.exe ..

pause

然后报了如上的错误

from ncnn_example.

MirrorYuAI avatar MirrorYuAI commented on August 24, 2024

你把x86改成x64:
image
opencv好像是64位库

from ncnn_example.

MirrorYuAI avatar MirrorYuAI commented on August 24, 2024

你系统是32位的?
image

from ncnn_example.

duoduo888999 avatar duoduo888999 commented on August 24, 2024

你好,我电脑时64位的。
64
一直用的也是Release 64:
64r

关于Target arch:x86;ncnn的TARGET_ARCH指向的一直时x86
arch

from ncnn_example.

MirrorYuAI avatar MirrorYuAI commented on August 24, 2024

你那边能确认一下protobuf库是不是release x64的吗?我这边刚测试了一下没有复现你的问题

from ncnn_example.

duoduo888999 avatar duoduo888999 commented on August 24, 2024

我的protobuf库是release x64的,安装https://blog.csdn.net/qq_36890370/article/details/104966786这篇文章配置的。
我上午又试了一种方案:
把你项目中自带的ncnn-20210525-full-source删了。
新建包重新运行你的项目,使用自己的ncnn(直接下载git上最新的ncnn)
我的cmakelist.txt内容:
cmake_minimum_required(VERSION 3.1)
project(VisionEngine)

Option(MIRROR_OPENMP "openmp support" ON)
Option(MIRROR_VULKAN "vulkan compute used" OFF)
Option(MIRROR_INSTALL_SDK "install mirror library and headers" ON)
Option(MIRROR_BUILD_FACE "build face test" ON)
Option(MIRROR_BUILD_OBJECT "build object test" ON)
Option(MIRROR_BUILD_CLASSIFIER "build classifier test" ON)

set(CMAKE_PREFIX_PATH
${CMAKE_PREFIX_PATH}
D:/ProgramData/protobuf-3.4.0/build-vs2019/install
)
find_package(Protobuf REQUIRED)

#add_subdirectory(ncnn-20210525-full-source)
#头文件
include_directories("D:/ProgramData/ncnn/build-vs2019/install/include/ncnn")
include_directories("D:/ProgramData/opencv460/build/include")
#库文件
link_libraries(D:/ProgramData/opencv460/build/x64/vc15/lib/opencv_world460.lib)
link_libraries(D:/ProgramData/ncnn/build-vs2019/install/lib/ncnn.lib)

add_subdirectory(src)

运行结果:上面报的错误没有出现!

from ncnn_example.

duoduo888999 avatar duoduo888999 commented on August 24, 2024

但是又报了新的问题:

------ 生成 已启动: 项目: CMakeLists,配置: RelWithDebInfo ------
[1/21] Building CXX object src\CMakeFiles\VisionEngine.dir\face\face_engine.cpp.obj
FAILED: src/CMakeFiles/VisionEngine.dir/face/face_engine.cpp.obj
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe /nologo /TP -ID:\ProgramData\ncnn\build-vs2019\install\include\ncnn -ID:\ProgramData\opencv460\build\include -I......\include\win -I......\src..\include -I......\src\common -I......\src\face -I......\src\face\align -I......\src\face\common -I......\src\face\database -I......\src\face\detecter -I......\src\face\detecter\centerface -I......\src\face\detecter\mtcnn -I......\src\face\detecter\anticonv -I......\src\face\landmarker -I......\src\face\landmarker\zqlandmarker -I......\src\face\landmarker\insightface -I......\src\face\recognizer -I......\src\face\recognizer\mobilefacenet -I......\src\face\tracker -I......\src\object -I......\src\object\object -I......\src\object\common -I......\src\object\object\mobilenetssd -I......\src\classifier -I......\src\classifier\classifier -I......\src\classifier\classifier\mobilenet /DWIN32 /D_WINDOWS /W3 /GR /EHsc -g -O2 -fPIC -std=c++11 -fopenmp /MD /Zi /O2 /Ob1 /DNDEBUG -openmp /showIncludes /Fosrc\CMakeFiles\VisionEngine.dir\face\face_engine.cpp.obj /Fdsrc\CMakeFiles\VisionEngine.dir\VisionEngine.pdb /FS -c ......\src\face\face_engine.cpp
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-g”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fPIC”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-std=c++11”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fopenmp”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(9): error C2059: 语法错误:“public”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C2588: “::~Detecter”: 非法的全局 析构函数
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C2575: “Detecter”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): warning C4508: “mirror::Detecter”: 函数应返回一个值;假定“void”返回类型
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(11): error C2575: “LoadModel”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(11): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(12): error C2575: “DetectFace”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(12): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2433: “DetecterFactory::Detecter”: 不允许在数据声明中使用“virtual”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(53): error C2059: 语法错误:“}”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(53): error C2143: 语法错误: 缺少“;”(在“}”的前面)
D:\c_work\ncnn_example1\src\face\tracker\tracker.h(8): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\c_work\ncnn_example1\src\face\tracker\tracker.h(8): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(8): error C2059: 语法错误:“public”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): error C2588: “::~Landmarker”: 非法的全局 析构函数
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): error C2575: “Landmarker”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): warning C4508: “mirror::Landmarker”: 函数应返回一个值;假定“void”返回类型
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(10): error C2575: “LoadModel”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(10): error C2084: 函数“int mirror::LoadModel(const char )”已有主体
D:\c_work\ncnn_example1\src\face\detecter/detecter.h(11): note: 参见“LoadModel”的前一个定义
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(10): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(11): error C2575: “ExtractKeypoints”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(12): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C2433: “LandmarkerFactory::Landmarker”: 不允许在数据声明中使用“virtual”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(26): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(26): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(26): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(33): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(33): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(33): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(37): error C2059: 语法错误:“}”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(37): error C2143: 语法错误: 缺少“;”(在“}”的前面)
D:\c_work\ncnn_example1\src\face\aligner\aligner.h(6): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\c_work\ncnn_example1\src\face\aligner\aligner.h(6): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
D:\c_work\ncnn_example1\src\face\face_engine.cpp(135): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\face_engine.cpp(135): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\face_engine.cpp(135): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\face_engine.cpp(136): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\face_engine.cpp(136): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\face_engine.cpp(136): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\face_engine.cpp(137): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\face_engine.cpp(137): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\face_engine.cpp(137): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\face_engine.cpp(138): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\face_engine.cpp(138): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\face_engine.cpp(138): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\face_engine.cpp(21): error C2065: “detecter_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(21): error C2039: "CreateDetecter": 不是 "DetecterFactory" 的成员
D:\c_work\ncnn_example1\src\face\detecter/detecter.h(17): note: 参见“DetecterFactory”的声明
D:\c_work\ncnn_example1\src\face\face_engine.cpp(22): error C2065: “landmarker_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(22): error C2039: "CreateLandmarker": 不是 "LandmarkerFactory" 的成员
D:\c_work\ncnn_example1\src\face\landmarker/landmarker.h(16): note: 参见“LandmarkerFactory”的声明
D:\c_work\ncnn_example1\src\face\face_engine.cpp(25): error C2065: “tracker_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(25): error C2061: 语法错误: 标识符“Tracker”
D:\c_work\ncnn_example1\src\face\face_engine.cpp(26): error C2065: “aligner_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(26): error C2061: 语法错误: 标识符“Aligner”
D:\c_work\ncnn_example1\src\face\face_engine.cpp(32): error C2065: “detecter_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(33): error C2065: “detecter_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(33): error C2541: “delete”: 不能删除不是指针的对象
D:\c_work\ncnn_example1\src\face\face_engine.cpp(34): error C2065: “detecter_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(37): error C2065: “tracker_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(38): error C2065: “tracker_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(38): error C2541: “delete”: 不能删除不是指针的对象
D:\c_work\ncnn_example1\src\face\face_engine.cpp(39): error C2065: “tracker_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(42): error C2065: “landmarker_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(43): error C2065: “landmarker_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(43): error C2541: “delete”: 不能删除不是指针的对象
D:\c_work\ncnn_example1\src\face\face_engine.cpp(44): error C2065: “landmarker_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(74): error C2065: “detecter_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(79): error C2065: “landmarker_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(95): error C2065: “tracker_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(98): error C2065: “detecter_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(102): error C2065: “landmarker_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(105): error C2065: “aligner_”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\face_engine.cpp(112): warning C4244: “return”: 从“int64_t”转换到“int”,可能丢失数据
D:\c_work\ncnn_example1\src\face\face_engine.cpp(143): warning C4273: “mirror::FaceEngine::FaceEngine”: dll 链接不一致
D:\c_work\ncnn_example1\src\face\face_engine.h(18): note: 参见“{ctor}”的前一个定义
D:\c_work\ncnn_example1\src\face\face_engine.cpp(147): warning C4273: “mirror::FaceEngine::~FaceEngine”: dll 链接不一致
D:\c_work\ncnn_example1\src\face\face_engine.h(19): note: 参见“{dtor}”的前一个定义
D:\c_work\ncnn_example1\src\face\face_engine.cpp(154): warning C4273: “mirror::FaceEngine::LoadModel”: dll 链接不一致
D:\c_work\ncnn_example1\src\face\face_engine.h(20): note: 参见“LoadModel”的前一个定义
D:\c_work\ncnn_example1\src\face\face_engine.cpp(159): warning C4273: “mirror::FaceEngine::Track”: dll 链接不一致
D:\c_work\ncnn_example1\src\face\face_engine.h(22): note: 参见“Track”的前一个定义
D:\c_work\ncnn_example1\src\face\face_engine.cpp(163): warning C4273: “mirror::FaceEngine::DetectFace”: dll 链接不一致
D:\c_work\ncnn_example1\src\face\face_engine.h(21): note: 参见“DetectFace”的前一个定义
D:\c_work\ncnn_example1\src\face\face_engine.cpp(168): warning C4273: “mirror::FaceEngine::ExtractKeypoints”: dll 链接不一致
D:\c_work\ncnn_example1\src\face\face_engine.h(24): note: 参见“ExtractKeypoints”的前一个定义
D:\c_work\ncnn_example1\src\face\face_engine.cpp(172): warning C4273: “mirror::FaceEngine::AlignFace”: dll 链接不一致
D:\c_work\ncnn_example1\src\face\face_engine.h(27): note: 参见“AlignFace”的前一个定义
D:\c_work\ncnn_example1\src\face\face_engine.cpp(176): warning C4273: “mirror::FaceEngine::ExtractFeature”: dll 链接不一致
D:\c_work\ncnn_example1\src\face\face_engine.h(26): note: 参见“ExtractFeature”的前一个定义
D:\c_work\ncnn_example1\src\face\face_engine.cpp(180): warning C4273: “mirror::FaceEngine::Insert”: dll 链接不一致
D:\c_work\ncnn_example1\src\face\face_engine.h(30): note: 参见“Insert”的前一个定义
D:\c_work\ncnn_example1\src\face\face_engine.cpp(184): warning C4273: “mirror::FaceEngine::Delete”: dll 链接不一致
D:\c_work\ncnn_example1\src\face\face_engine.h(31): note: 参见“Delete”的前一个定义
D:\c_work\ncnn_example1\src\face\face_engine.cpp(189): warning C4273: “mirror::FaceEngine::QueryTop”: dll 链接不一致
D:\c_work\ncnn_example1\src\face\face_engine.h(32): note: 参见“QueryTop”的前一个定义
D:\c_work\ncnn_example1\src\face\face_engine.cpp(193): warning C4273: “mirror::FaceEngine::Save”: dll 链接不一致
D:\c_work\ncnn_example1\src\face\face_engine.h(33): note: 参见“Save”的前一个定义
D:\c_work\ncnn_example1\src\face\face_engine.cpp(197): warning C4273: “mirror::FaceEngine::Load”: dll 链接不一致
D:\c_work\ncnn_example1\src\face\face_engine.h(34): note: 参见“Load”的前一个定义
[2/21] Building CXX object src\CMakeFiles\VisionEngine.dir\face\landmarker\zqlandmarker\zqlandmarker.cpp.obj
FAILED: src/CMakeFiles/VisionEngine.dir/face/landmarker/zqlandmarker/zqlandmarker.cpp.obj
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe /nologo /TP -ID:\ProgramData\ncnn\build-vs2019\install\include\ncnn -ID:\ProgramData\opencv460\build\include -I......\include\win -I......\src..\include -I......\src\common -I......\src\face -I......\src\face\align -I......\src\face\common -I......\src\face\database -I......\src\face\detecter -I......\src\face\detecter\centerface -I......\src\face\detecter\mtcnn -I......\src\face\detecter\anticonv -I......\src\face\landmarker -I......\src\face\landmarker\zqlandmarker -I......\src\face\landmarker\insightface -I......\src\face\recognizer -I......\src\face\recognizer\mobilefacenet -I......\src\face\tracker -I......\src\object -I......\src\object\object -I......\src\object\common -I......\src\object\object\mobilenetssd -I......\src\classifier -I......\src\classifier\classifier -I......\src\classifier\classifier\mobilenet /DWIN32 /D_WINDOWS /W3 /GR /EHsc -g -O2 -fPIC -std=c++11 -fopenmp /MD /Zi /O2 /Ob1 /DNDEBUG -openmp /showIncludes /Fosrc\CMakeFiles\VisionEngine.dir\face\landmarker\zqlandmarker\zqlandmarker.cpp.obj /Fdsrc\CMakeFiles\VisionEngine.dir\VisionEngine.pdb /FS -c ......\src\face\landmarker\zqlandmarker\zqlandmarker.cpp
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-g”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fPIC”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-std=c++11”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fopenmp”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(8): error C2059: 语法错误:“public”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): error C2588: “::~Landmarker”: 非法的全局 析构函数
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): error C2575: “Landmarker”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): warning C4508: “mirror::Landmarker”: 函数应返回一个值;假定“void”返回类型
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(10): error C2575: “LoadModel”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(10): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(11): error C2575: “ExtractKeypoints”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(12): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C2433: “LandmarkerFactory::Landmarker”: 不允许在数据声明中使用“virtual”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(26): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(26): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(26): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(33): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(33): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(33): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(37): error C2059: 语法错误:“}”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(37): error C2143: 语法错误: 缺少“;”(在“}”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1414): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2143: 语法错误: 缺少“;”(在“”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2365: “EXCEPTION_ROUTINE”: 重定义;以前的定义是“函数”
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1410): note: 参见“EXCEPTION_ROUTINE”的声明
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C3646: “LanguageHandler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C3646: “Handler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19488): error C2040: “PEXCEPTION_ROUTINE”:“int”与“int ”的间接寻址级别不同
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19498): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\zqlandmarker\zqlandmarker.h(8): error C2516: “mirror::Landmarker”: 是非法基类
D:\c_work\ncnn_example1\src\face\landmarker\zqlandmarker../landmarker.h(9): note: 参见“mirror::Landmarker”的声明
[3/21] Building CXX object src\CMakeFiles\VisionEngine.dir\face\detecter\retinaface\retinaface.cpp.obj
FAILED: src/CMakeFiles/VisionEngine.dir/face/detecter/retinaface/retinaface.cpp.obj
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe /nologo /TP -ID:\ProgramData\ncnn\build-vs2019\install\include\ncnn -ID:\ProgramData\opencv460\build\include -I......\include\win -I......\src..\include -I......\src\common -I......\src\face -I......\src\face\align -I......\src\face\common -I......\src\face\database -I......\src\face\detecter -I......\src\face\detecter\centerface -I......\src\face\detecter\mtcnn -I......\src\face\detecter\anticonv -I......\src\face\landmarker -I......\src\face\landmarker\zqlandmarker -I......\src\face\landmarker\insightface -I......\src\face\recognizer -I......\src\face\recognizer\mobilefacenet -I......\src\face\tracker -I......\src\object -I......\src\object\object -I......\src\object\common -I......\src\object\object\mobilenetssd -I......\src\classifier -I......\src\classifier\classifier -I......\src\classifier\classifier\mobilenet /DWIN32 /D_WINDOWS /W3 /GR /EHsc -g -O2 -fPIC -std=c++11 -fopenmp /MD /Zi /O2 /Ob1 /DNDEBUG -openmp /showIncludes /Fosrc\CMakeFiles\VisionEngine.dir\face\detecter\retinaface\retinaface.cpp.obj /Fdsrc\CMakeFiles\VisionEngine.dir\VisionEngine.pdb /FS -c ......\src\face\detecter\retinaface\retinaface.cpp
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-g”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fPIC”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-std=c++11”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fopenmp”
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(9): error C2059: 语法错误:“public”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C2588: “::~Detecter”: 非法的全局 析构函数
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C2575: “Detecter”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): warning C4508: “mirror::Detecter”: 函数应返回一个值;假定“void”返回类型
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(11): error C2575: “LoadModel”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(11): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(12): error C2575: “DetectFace”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(12): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2433: “DetecterFactory::Detecter”: 不允许在数据声明中使用“virtual”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(53): error C2059: 语法错误:“}”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(53): error C2143: 语法错误: 缺少“;”(在“}”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1414): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2143: 语法错误: 缺少“;”(在“
”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2365: “EXCEPTION_ROUTINE”: 重定义;以前的定义是“函数”
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1410): note: 参见“EXCEPTION_ROUTINE”的声明
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C3646: “LanguageHandler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C3646: “Handler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19488): error C2040: “PEXCEPTION_ROUTINE”:“int”与“int ”的间接寻址级别不同
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19498): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.h(9): error C2516: “mirror::Detecter”: 是非法基类
D:\c_work\ncnn_example1\src\face\detecter\retinaface../detecter.h(10): note: 参见“mirror::Detecter”的声明
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(114): error C2059: 语法错误:“)”
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(114): warning C4552: ”+“: 未使用表达式结果
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(117): error C2065: “center”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(117): error C2065: “center”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(118): error C2065: “center”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(118): error C2065: “center”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(124): error C2065: “center”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(124): error C2065: “curr_width”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(124): error C2059: 语法错误:“)”
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(125): error C2065: “curr_box”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(125): error C2065: “curr_box”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(126): error C2065: “curr_box”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(126): error C2065: “curr_box”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(127): error C2065: “curr_box”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(127): error C2065: “curr_box”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(128): error C2065: “curr_box”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(128): error C2065: “curr_box”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(135): error C2065: “center”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(136): error C2065: “center”: 未声明的标识符
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.cpp(142): error C2065: “curr_box”: 未声明的标识符
[4/21] Building CXX object src\CMakeFiles\VisionEngine.dir\face\landmarker\landmarker.cpp.obj
FAILED: src/CMakeFiles/VisionEngine.dir/face/landmarker/landmarker.cpp.obj
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe /nologo /TP -ID:\ProgramData\ncnn\build-vs2019\install\include\ncnn -ID:\ProgramData\opencv460\build\include -I......\include\win -I......\src..\include -I......\src\common -I......\src\face -I......\src\face\align -I......\src\face\common -I......\src\face\database -I......\src\face\detecter -I......\src\face\detecter\centerface -I......\src\face\detecter\mtcnn -I......\src\face\detecter\anticonv -I......\src\face\landmarker -I......\src\face\landmarker\zqlandmarker -I......\src\face\landmarker\insightface -I......\src\face\recognizer -I......\src\face\recognizer\mobilefacenet -I......\src\face\tracker -I......\src\object -I......\src\object\object -I......\src\object\common -I......\src\object\object\mobilenetssd -I......\src\classifier -I......\src\classifier\classifier -I......\src\classifier\classifier\mobilenet /DWIN32 /D_WINDOWS /W3 /GR /EHsc -g -O2 -fPIC -std=c++11 -fopenmp /MD /Zi /O2 /Ob1 /DNDEBUG -openmp /showIncludes /Fosrc\CMakeFiles\VisionEngine.dir\face\landmarker\landmarker.cpp.obj /Fdsrc\CMakeFiles\VisionEngine.dir\VisionEngine.pdb /FS -c ......\src\face\landmarker\landmarker.cpp
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-g”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fPIC”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-std=c++11”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fopenmp”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(8): error C2059: 语法错误:“public”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): error C2588: “::~Landmarker”: 非法的全局 析构函数
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): error C2575: “Landmarker”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): warning C4508: “mirror::Landmarker”: 函数应返回一个值;假定“void”返回类型
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(10): error C2575: “LoadModel”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(10): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(11): error C2575: “ExtractKeypoints”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(12): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C2433: “LandmarkerFactory::Landmarker”: 不允许在数据声明中使用“virtual”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(26): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(26): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(26): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(33): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(33): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(33): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(37): error C2059: 语法错误:“}”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(37): error C2143: 语法错误: 缺少“;”(在“}”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1414): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2143: 语法错误: 缺少“;”(在“”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2365: “EXCEPTION_ROUTINE”: 重定义;以前的定义是“函数”
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1410): note: 参见“EXCEPTION_ROUTINE”的声明
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C3646: “LanguageHandler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C3646: “Handler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19488): error C2040: “PEXCEPTION_ROUTINE”:“int”与“int ”的间接寻址级别不同
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19498): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\zqlandmarker\zqlandmarker.h(8): error C2516: “mirror::Landmarker”: 是非法基类
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): note: 参见“mirror::Landmarker”的声明
D:\c_work\ncnn_example1\src\face\landmarker\insightface\insightface.h(8): error C2516: “mirror::Landmarker”: 是非法基类
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): note: 参见“mirror::Landmarker”的声明
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(6): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(6): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(6): error C2365: “mirror::Landmarker”: 重定义;以前的定义是“函数”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): note: 参见“mirror::Landmarker”的声明
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(6): error C2039: "CreateLandmarker": 不是 "ZQLandmarkerFactory" 的成员
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(23): note: 参见“ZQLandmarkerFactory”的声明
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(6): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(6): error C2059: 语法错误:“{”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(6): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(6): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(10): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(10): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(10): error C2365: “mirror::Landmarker”: 重定义;以前的定义是“函数”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): note: 参见“mirror::Landmarker”的声明
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(10): error C2039: "CreateLandmarker": 不是 "InsightfaceLandmarkerFactory" 的成员
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(30): note: 参见“InsightfaceLandmarkerFactory”的声明
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(10): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(10): error C2059: 语法错误:“{”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(10): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.cpp(10): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
[5/21] Building CXX object src\CMakeFiles\VisionEngine.dir\face\detecter\anticonv\anticonv.cpp.obj
FAILED: src/CMakeFiles/VisionEngine.dir/face/detecter/anticonv/anticonv.cpp.obj
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe /nologo /TP -ID:\ProgramData\ncnn\build-vs2019\install\include\ncnn -ID:\ProgramData\opencv460\build\include -I......\include\win -I......\src..\include -I......\src\common -I......\src\face -I......\src\face\align -I......\src\face\common -I......\src\face\database -I......\src\face\detecter -I......\src\face\detecter\centerface -I......\src\face\detecter\mtcnn -I......\src\face\detecter\anticonv -I......\src\face\landmarker -I......\src\face\landmarker\zqlandmarker -I......\src\face\landmarker\insightface -I......\src\face\recognizer -I......\src\face\recognizer\mobilefacenet -I......\src\face\tracker -I......\src\object -I......\src\object\object -I......\src\object\common -I......\src\object\object\mobilenetssd -I......\src\classifier -I......\src\classifier\classifier -I......\src\classifier\classifier\mobilenet /DWIN32 /D_WINDOWS /W3 /GR /EHsc -g -O2 -fPIC -std=c++11 -fopenmp /MD /Zi /O2 /Ob1 /DNDEBUG -openmp /showIncludes /Fosrc\CMakeFiles\VisionEngine.dir\face\detecter\anticonv\anticonv.cpp.obj /Fdsrc\CMakeFiles\VisionEngine.dir\VisionEngine.pdb /FS -c ......\src\face\detecter\anticonv\anticonv.cpp
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-g”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fPIC”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-std=c++11”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fopenmp”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(9): error C2059: 语法错误:“public”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C2588: “::~Detecter”: 非法的全局 析构函数
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C2575: “Detecter”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): warning C4508: “mirror::Detecter”: 函数应返回一个值;假定“void”返回类型
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(11): error C2575: “LoadModel”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(11): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(12): error C2575: “DetectFace”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(12): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2433: “DetecterFactory::Detecter”: 不允许在数据声明中使用“virtual”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(53): error C2059: 语法错误:“}”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(53): error C2143: 语法错误: 缺少“;”(在“}”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1414): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2143: 语法错误: 缺少“;”(在“
”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2365: “EXCEPTION_ROUTINE”: 重定义;以前的定义是“函数”
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1410): note: 参见“EXCEPTION_ROUTINE”的声明
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C3646: “LanguageHandler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C3646: “Handler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19488): error C2040: “PEXCEPTION_ROUTINE”:“int”与“int ”的间接寻址级别不同
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19498): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\anticonv\anticonv.h(9): error C2516: “mirror::Detecter”: 是非法基类
D:\c_work\ncnn_example1\src\face\detecter\anticonv../detecter.h(10): note: 参见“mirror::Detecter”的声明
D:\c_work\ncnn_example1\src\face\detecter\anticonv\anticonv.cpp(120): warning C4244: “参数”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\anticonv\anticonv.cpp(120): warning C4244: “参数”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\anticonv\anticonv.cpp(120): warning C4244: “参数”: 从“_Tp”转换到“_Tp”,可能丢失数据
with
[
_Tp=float
]
and
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\anticonv\anticonv.cpp(119): warning C4244: “参数”: 从“_Tp”转换到“_Tp”,可能丢失数据
with
[
_Tp=float
]
and
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\anticonv\anticonv.cpp(121): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\anticonv\anticonv.cpp(122): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\anticonv\anticonv.cpp(123): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\anticonv\anticonv.cpp(124): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
[6/21] Building CXX object src\CMakeFiles\VisionEngine.dir\face\detecter\mtcnn\mtcnn.cpp.obj
FAILED: src/CMakeFiles/VisionEngine.dir/face/detecter/mtcnn/mtcnn.cpp.obj
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe /nologo /TP -ID:\ProgramData\ncnn\build-vs2019\install\include\ncnn -ID:\ProgramData\opencv460\build\include -I......\include\win -I......\src..\include -I......\src\common -I......\src\face -I......\src\face\align -I......\src\face\common -I......\src\face\database -I......\src\face\detecter -I......\src\face\detecter\centerface -I......\src\face\detecter\mtcnn -I......\src\face\detecter\anticonv -I......\src\face\landmarker -I......\src\face\landmarker\zqlandmarker -I......\src\face\landmarker\insightface -I......\src\face\recognizer -I......\src\face\recognizer\mobilefacenet -I......\src\face\tracker -I......\src\object -I......\src\object\object -I......\src\object\common -I......\src\object\object\mobilenetssd -I......\src\classifier -I......\src\classifier\classifier -I......\src\classifier\classifier\mobilenet /DWIN32 /D_WINDOWS /W3 /GR /EHsc -g -O2 -fPIC -std=c++11 -fopenmp /MD /Zi /O2 /Ob1 /DNDEBUG -openmp /showIncludes /Fosrc\CMakeFiles\VisionEngine.dir\face\detecter\mtcnn\mtcnn.cpp.obj /Fdsrc\CMakeFiles\VisionEngine.dir\VisionEngine.pdb /FS -c ......\src\face\detecter\mtcnn\mtcnn.cpp
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-g”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fPIC”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-std=c++11”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fopenmp”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(9): error C2059: 语法错误:“public”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C2588: “::~Detecter”: 非法的全局 析构函数
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C2575: “Detecter”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): warning C4508: “mirror::Detecter”: 函数应返回一个值;假定“void”返回类型
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(11): error C2575: “LoadModel”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(11): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(12): error C2575: “DetectFace”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(12): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2433: “DetecterFactory::Detecter”: 不允许在数据声明中使用“virtual”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(53): error C2059: 语法错误:“}”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(53): error C2143: 语法错误: 缺少“;”(在“}”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1414): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2143: 语法错误: 缺少“;”(在“”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2365: “EXCEPTION_ROUTINE”: 重定义;以前的定义是“函数”
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1410): note: 参见“EXCEPTION_ROUTINE”的声明
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C3646: “LanguageHandler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C3646: “Handler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19488): error C2040: “PEXCEPTION_ROUTINE”:“int”与“int ”的间接寻址级别不同
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19498): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.h(10): error C2516: “mirror::Detecter”: 是非法基类
D:\c_work\ncnn_example1\src\face\detecter\mtcnn../detecter.h(10): note: 参见“mirror::Detecter”的声明
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2144: 语法错误:“unknown-type”的前面应有“)”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2660: “cv::LineIterator::init”: 函数不接受 2 个参数
D:\ProgramData\opencv460\build\include\opencv2/imgproc.hpp(4912): note: 参见“cv::LineIterator::init”的声明
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2144: 语法错误:“unknown-type”的前面应有“;”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2143: 语法错误: 缺少“)”(在“.”的前面)
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C3928: "->": 带圆括号的声明符后不允许尾随返回类型
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C3484: 语法错误: 返回类型前应为“->”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C3613: “->”后缺少返回类型(假定为“int”)
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2082: 形参“pt1”的重定义
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2146: 语法错误: 缺少“;”(在标识符“x”的前面)
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2059: 语法错误:“)”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2065: “x”: 未声明的标识符
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4893): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4893): error C2062: 意外的类型“unknown-type”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4893): error C2059: 语法错误:“)”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4894): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4894): error C2059: 语法错误:“)”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4894): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4895): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4895): error C2059: 语法错误:“)”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4895): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4896): error C2059: 语法错误:“)”
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(112): warning C4244: “初始化”: 从“int”转换到“float”,可能丢失数据
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(146): warning C4244: “初始化”: 从“float”转换到“int”,可能丢失数据
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(147): warning C4244: “初始化”: 从“float”转换到“int”,可能丢失数据
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(148): warning C4244: “初始化”: 从“float”转换到“int”,可能丢失数据
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(149): warning C4244: “初始化”: 从“float”转换到“int”,可能丢失数据
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(162): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(163): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(164): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(165): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(199): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(200): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(202): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(204): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(237): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(238): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(240): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(242): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(260): warning C4244: “初始化”: 从“int”转换到“float”,可能丢失数据
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(262): warning C4244: “=”: 从“double”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(263): warning C4244: “=”: 从“double”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(264): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.cpp(265): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
[7/21] Building CXX object src\CMakeFiles\VisionEngine.dir\face\landmarker\insightface\insightface.cpp.obj
FAILED: src/CMakeFiles/VisionEngine.dir/face/landmarker/insightface/insightface.cpp.obj
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe /nologo /TP -ID:\ProgramData\ncnn\build-vs2019\install\include\ncnn -ID:\ProgramData\opencv460\build\include -I......\include\win -I......\src..\include -I......\src\common -I......\src\face -I......\src\face\align -I......\src\face\common -I......\src\face\database -I......\src\face\detecter -I......\src\face\detecter\centerface -I......\src\face\detecter\mtcnn -I......\src\face\detecter\anticonv -I......\src\face\landmarker -I......\src\face\landmarker\zqlandmarker -I......\src\face\landmarker\insightface -I......\src\face\recognizer -I......\src\face\recognizer\mobilefacenet -I......\src\face\tracker -I......\src\object -I......\src\object\object -I......\src\object\common -I......\src\object\object\mobilenetssd -I......\src\classifier -I......\src\classifier\classifier -I......\src\classifier\classifier\mobilenet /DWIN32 /D_WINDOWS /W3 /GR /EHsc -g -O2 -fPIC -std=c++11 -fopenmp /MD /Zi /O2 /Ob1 /DNDEBUG -openmp /showIncludes /Fosrc\CMakeFiles\VisionEngine.dir\face\landmarker\insightface\insightface.cpp.obj /Fdsrc\CMakeFiles\VisionEngine.dir\VisionEngine.pdb /FS -c ......\src\face\landmarker\insightface\insightface.cpp
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-g”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fPIC”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-std=c++11”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fopenmp”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(8): error C2059: 语法错误:“public”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): error C2588: “::~Landmarker”: 非法的全局 析构函数
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): error C2575: “Landmarker”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(9): warning C4508: “mirror::Landmarker”: 函数应返回一个值;假定“void”返回类型
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(10): error C2575: “LoadModel”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(10): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(11): error C2575: “ExtractKeypoints”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(12): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C2433: “LandmarkerFactory::Landmarker”: 不允许在数据声明中使用“virtual”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(18): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(26): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(26): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(26): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(33): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(33): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(33): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(37): error C2059: 语法错误:“}”
D:\c_work\ncnn_example1\src\face\landmarker\landmarker.h(37): error C2143: 语法错误: 缺少“;”(在“}”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1414): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2143: 语法错误: 缺少“;”(在“
”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2365: “EXCEPTION_ROUTINE”: 重定义;以前的定义是“函数”
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1410): note: 参见“EXCEPTION_ROUTINE”的声明
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C3646: “LanguageHandler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C3646: “Handler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19488): error C2040: “PEXCEPTION_ROUTINE”:“int”与“int ”的间接寻址级别不同
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19498): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\landmarker\insightface\insightface.h(8): error C2516: “mirror::Landmarker”: 是非法基类
D:\c_work\ncnn_example1\src\face\landmarker\insightface../landmarker.h(9): note: 参见“mirror::Landmarker”的声明
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2144: 语法错误:“unknown-type”的前面应有“)”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2660: “cv::LineIterator::init”: 函数不接受 2 个参数
D:\ProgramData\opencv460\build\include\opencv2/imgproc.hpp(4912): note: 参见“cv::LineIterator::init”的声明
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2144: 语法错误:“unknown-type”的前面应有“;”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2143: 语法错误: 缺少“)”(在“.”的前面)
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C3928: "->": 带圆括号的声明符后不允许尾随返回类型
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C3484: 语法错误: 返回类型前应为“->”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C3613: “->”后缺少返回类型(假定为“int”)
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2082: 形参“pt1”的重定义
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2146: 语法错误: 缺少“;”(在标识符“x”的前面)
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2059: 语法错误:“)”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2065: “x”: 未声明的标识符
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4893): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4893): error C2062: 意外的类型“unknown-type”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4893): error C2059: 语法错误:“)”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4894): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4894): error C2059: 语法错误:“)”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4894): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4895): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4895): error C2059: 语法错误:“)”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4895): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4896): error C2059: 语法错误:“)”
[8/21] Building CXX object src\CMakeFiles\VisionEngine.dir\face\detecter\detecter.cpp.obj
FAILED: src/CMakeFiles/VisionEngine.dir/face/detecter/detecter.cpp.obj
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe /nologo /TP -ID:\ProgramData\ncnn\build-vs2019\install\include\ncnn -ID:\ProgramData\opencv460\build\include -I......\include\win -I......\src..\include -I......\src\common -I......\src\face -I......\src\face\align -I......\src\face\common -I......\src\face\database -I......\src\face\detecter -I......\src\face\detecter\centerface -I......\src\face\detecter\mtcnn -I......\src\face\detecter\anticonv -I......\src\face\landmarker -I......\src\face\landmarker\zqlandmarker -I......\src\face\landmarker\insightface -I......\src\face\recognizer -I......\src\face\recognizer\mobilefacenet -I......\src\face\tracker -I......\src\object -I......\src\object\object -I......\src\object\common -I......\src\object\object\mobilenetssd -I......\src\classifier -I......\src\classifier\classifier -I......\src\classifier\classifier\mobilenet /DWIN32 /D_WINDOWS /W3 /GR /EHsc -g -O2 -fPIC -std=c++11 -fopenmp /MD /Zi /O2 /Ob1 /DNDEBUG -openmp /showIncludes /Fosrc\CMakeFiles\VisionEngine.dir\face\detecter\detecter.cpp.obj /Fdsrc\CMakeFiles\VisionEngine.dir\VisionEngine.pdb /FS -c ......\src\face\detecter\detecter.cpp
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-g”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fPIC”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-std=c++11”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fopenmp”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(9): error C2059: 语法错误:“public”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C2588: “::~Detecter”: 非法的全局 析构函数
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C2575: “Detecter”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): warning C4508: “mirror::Detecter”: 函数应返回一个值;假定“void”返回类型
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(11): error C2575: “LoadModel”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(11): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(12): error C2575: “DetectFace”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(12): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2433: “DetecterFactory::Detecter”: 不允许在数据声明中使用“virtual”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(53): error C2059: 语法错误:“}”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(53): error C2143: 语法错误: 缺少“;”(在“}”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1414): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2143: 语法错误: 缺少“;”(在“”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2365: “EXCEPTION_ROUTINE”: 重定义;以前的定义是“函数”
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1410): note: 参见“EXCEPTION_ROUTINE”的声明
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C3646: “LanguageHandler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C3646: “Handler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19488): error C2040: “PEXCEPTION_ROUTINE”:“int”与“int ”的间接寻址级别不同
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19498): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\centerface\centerface.h(10): error C2516: “mirror::Detecter”: 是非法基类
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): note: 参见“mirror::Detecter”的声明
D:\c_work\ncnn_example1\src\face\detecter\mtcnn\mtcnn.h(10): error C2516: “mirror::Detecter”: 是非法基类
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): note: 参见“mirror::Detecter”的声明
D:\c_work\ncnn_example1\src\face\detecter\retinaface\retinaface.h(9): error C2516: “mirror::Detecter”: 是非法基类
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): note: 参见“mirror::Detecter”的声明
D:\c_work\ncnn_example1\src\face\detecter\anticonv\anticonv.h(9): error C2516: “mirror::Detecter”: 是非法基类
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): note: 参见“mirror::Detecter”的声明
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(8): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(8): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(8): error C2365: “mirror::Detecter”: 重定义;以前的定义是“函数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): note: 参见“mirror::Detecter”的声明
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(8): error C2039: "CreateDetecter": 不是 "CenterfaceFactory" 的成员
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(24): note: 参见“CenterfaceFactory”的声明
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(8): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(8): error C2059: 语法错误:“{”
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(8): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(8): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(12): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(12): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(12): error C2365: “mirror::Detecter”: 重定义;以前的定义是“函数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): note: 参见“mirror::Detecter”的声明
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(12): error C2039: "CreateDetecter": 不是 "MtcnnFactory" 的成员
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(31): note: 参见“MtcnnFactory”的声明
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(12): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(12): error C2059: 语法错误:“{”
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(12): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(12): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(16): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(16): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(16): error C2365: “mirror::Detecter”: 重定义;以前的定义是“函数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): note: 参见“mirror::Detecter”的声明
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(16): error C2039: "CreateDetecter": 不是 "RetinafaceFactory" 的成员
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(39): note: 参见“RetinafaceFactory”的声明
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(16): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(16): error C2059: 语法错误:“{”
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(16): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(16): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(20): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(20): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(20): error C2365: “mirror::Detecter”: 重定义;以前的定义是“函数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): note: 参见“mirror::Detecter”的声明
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(20): error C2039: "CreateDetecter": 不是 "AnticonvFactory" 的成员
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(46): note: 参见“AnticonvFactory”的声明
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(20): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(20): error C2059: 语法错误:“{”
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(20): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.cpp(20): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
[9/21] Building CXX object src\CMakeFiles\VisionEngine.dir\face\detecter\centerface\centerface.cpp.obj
FAILED: src/CMakeFiles/VisionEngine.dir/face/detecter/centerface/centerface.cpp.obj
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe /nologo /TP -ID:\ProgramData\ncnn\build-vs2019\install\include\ncnn -ID:\ProgramData\opencv460\build\include -I......\include\win -I......\src..\include -I......\src\common -I......\src\face -I......\src\face\align -I......\src\face\common -I......\src\face\database -I......\src\face\detecter -I......\src\face\detecter\centerface -I......\src\face\detecter\mtcnn -I......\src\face\detecter\anticonv -I......\src\face\landmarker -I......\src\face\landmarker\zqlandmarker -I......\src\face\landmarker\insightface -I......\src\face\recognizer -I......\src\face\recognizer\mobilefacenet -I......\src\face\tracker -I......\src\object -I......\src\object\object -I......\src\object\common -I......\src\object\object\mobilenetssd -I......\src\classifier -I......\src\classifier\classifier -I......\src\classifier\classifier\mobilenet /DWIN32 /D_WINDOWS /W3 /GR /EHsc -g -O2 -fPIC -std=c++11 -fopenmp /MD /Zi /O2 /Ob1 /DNDEBUG -openmp /showIncludes /Fosrc\CMakeFiles\VisionEngine.dir\face\detecter\centerface\centerface.cpp.obj /Fdsrc\CMakeFiles\VisionEngine.dir\VisionEngine.pdb /FS -c ......\src\face\detecter\centerface\centerface.cpp
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-g”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fPIC”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-std=c++11”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fopenmp”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(9): error C2059: 语法错误:“public”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C2588: “::~Detecter”: 非法的全局 析构函数
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C2575: “Detecter”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(10): warning C4508: “mirror::Detecter”: 函数应返回一个值;假定“void”返回类型
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(11): error C2575: “LoadModel”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(11): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(12): error C2575: “DetectFace”: 只有成员函数和基可以是虚拟的
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(12): error C2059: 语法错误:“常数”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2433: “DetecterFactory::Detecter”: 不允许在数据声明中使用“virtual”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(19): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(28): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(35): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C2143: 语法错误: 缺少“;”(在“
”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(43): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C2143: 语法错误: 缺少“;”(在“”的前面)
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(50): error C2238: 意外的标记位于“;”之前
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(53): error C2059: 语法错误:“}”
D:\c_work\ncnn_example1\src\face\detecter\detecter.h(53): error C2143: 语法错误: 缺少“;”(在“}”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2143: 语法错误: 缺少“;”(在“{”的前面)
D:\ProgramData\Microsoft\VisualStudio\2019\Community\VC\Tools\MSVC\14.29.30133\include\excpt.h(17): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1409): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1414): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2143: 语法错误: 缺少“;”(在“
”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C2365: “EXCEPTION_ROUTINE”: 重定义;以前的定义是“函数”
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1410): note: 参见“EXCEPTION_ROUTINE”的声明
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(1417): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C3646: “LanguageHandler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(4103): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C3646: “Handler”: 未知重写说明符
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(11479): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C2143: 语法错误: 缺少“;”(在“__cdecl”的前面)
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19489): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19488): error C2040: “PEXCEPTION_ROUTINE”:“int”与“int *”的间接寻址级别不同
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(19498): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\c_work\ncnn_example1\src\face\detecter\centerface\centerface.h(10): error C2516: “mirror::Detecter”: 是非法基类
D:\c_work\ncnn_example1\src\face\detecter\centerface../detecter.h(10): note: 参见“mirror::Detecter”的声明
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2144: 语法错误:“unknown-type”的前面应有“)”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2660: “cv::LineIterator::init”: 函数不接受 2 个参数
D:\ProgramData\opencv460\build\include\opencv2/imgproc.hpp(4912): note: 参见“cv::LineIterator::init”的声明
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2144: 语法错误:“unknown-type”的前面应有“;”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2143: 语法错误: 缺少“)”(在“.”的前面)
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C3928: "->": 带圆括号的声明符后不允许尾随返回类型
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C3484: 语法错误: 返回类型前应为“->”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C3613: “->”后缺少返回类型(假定为“int”)
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2082: 形参“pt1”的重定义
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2146: 语法错误: 缺少“;”(在标识符“x”的前面)
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2059: 语法错误:“)”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2065: “x”: 未声明的标识符
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4893): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4893): error C2062: 意外的类型“unknown-type”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4893): error C2059: 语法错误:“)”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4894): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4894): error C2059: 语法错误:“)”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4894): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4895): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4895): error C2059: 语法错误:“)”
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4895): error C2589: “(”:“::”右边的非法标记
D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4896): error C2059: 语法错误:“)”
D:\c_work\ncnn_example1\src\face\detecter\centerface\centerface.cpp(88): warning C4244: “初始化”: 从“double”转换到“float”,可能丢失数据
D:\c_work\ncnn_example1\src\face\detecter\centerface\centerface.cpp(89): warning C4244: “初始化”: 从“double”转换到“float”,可能丢失数据
D:\c_work\ncnn_example1\src\face\detecter\centerface\centerface.cpp(95): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\centerface\centerface.cpp(96): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\centerface\centerface.cpp(97): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
D:\c_work\ncnn_example1\src\face\detecter\centerface\centerface.cpp(98): warning C4244: “=”: 从“float”转换到“_Tp”,可能丢失数据
with
[
_Tp=int
]
[10/21] Building CXX object src\CMakeFiles\VisionEngine.dir\face\recognizer\recognizer.cpp.obj
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-g”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fPIC”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-std=c++11”
D:\c_work\ncnn_example1\out\build\x64-Release\cl : 命令行 warning D9002: 忽略未知选项“-fopenmp”
ninja: build stopped: subcommand failed.

我按照 “win10编译报了很多错误,有人遇到过吗? #20” 试了试,还是报一样的错误。
不知道这个错误是不是由于ncnn版本是最新的原因?
我打算下午再换一台新的电脑试一试运行你的项目

from ncnn_example.

MirrorYuAI avatar MirrorYuAI commented on August 24, 2024

把里面报错文件中的中文注释删一下,有可能是文件编码问题引起的

from ncnn_example.

duoduo888999 avatar duoduo888999 commented on August 24, 2024

你好,“把里面报错文件中的中文注释删一下”---- 按照你说的把里面的中文都删了
结果:你的项目中的文件不再报错!

但是以下错误依然有:
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892,27): error C2589: “(”:“::”右边的非法标记
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2144: 语法错误:“unknown-type”的前面应有“)”
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892,1): error C2660: “cv::LineIterator::init”: 函数不接受 2 个参数
2>D:\ProgramData\opencv460\build\include\opencv2/imgproc.hpp(4912,10): message : 参见“cv::LineIterator::init”的声明
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892): error C2144: 语法错误:“unknown-type”的前面应有“;”
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892,27): error C2143: 语法错误: 缺少“)”(在“.”的前面)
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892,1): error C3928: "->": 带圆括号的声明符后不允许尾随返回类型
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892,27): error C3484: 语法错误: 返回类型前应为“->”
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892,27): error C3613: “->”后缺少返回类型(假定为“int”)
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892,1): error C2082: 形参“pt1”的重定义
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892,27): error C2146: 语法错误: 缺少“;”(在标识符“x”的前面)
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892,1): error C2059: 语法错误:“)”
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4892,27): error C2065: “x”: 未声明的标识符
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4893,27): error C2589: “(”:“::”右边的非法标记
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4893): error C2062: 意外的类型“unknown-type”
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4893,1): error C2059: 语法错误:“)”
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4894,27): error C2589: “(”:“::”右边的非法标记
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4894,1): error C2059: 语法错误:“)”
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4894,52): error C2589: “(”:“::”右边的非法标记
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4895,27): error C2589: “(”:“::”右边的非法标记
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4895,1): error C2059: 语法错误:“)”
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4895,52): error C2589: “(”:“::”右边的非法标记
2>D:\ProgramData\opencv460\build\include\opencv2\imgproc.hpp(4896,1): error C2059: 语法错误:“)”

3>D:\c_work\ncnn_example1\vs2019\src\LINK : fatal error LNK1181: 无法打开输入文件“ncnn.lib”

我的opencv是4.6.0的,是不是opencv版本不匹配的原因?

from ncnn_example.

MirrorYuAI avatar MirrorYuAI commented on August 24, 2024

项目中有opencv,可以不用设置opencv。

from ncnn_example.

MirrorYuAI avatar MirrorYuAI commented on August 24, 2024

ncnn源码中例子用的opencv3写法,你把opencv换成3的版本应该也行。

from ncnn_example.

duoduo888999 avatar duoduo888999 commented on August 24, 2024

ncnn中会直接用到opencv,所以cmakelist中不必设置opencv。

①我把opencv4.6.0换成了opencv3.4.6
②重新编译了我的ncnn;
③重新编译了你的项目;
④把cmakelist.txt中opencv的设置去掉,ncnn换成
`#头文件
include_directories("D:/ProgramData/ncnn/build-vs2019/install/include/ncnn")
#库文件
link_directories("D:/ProgramData/ncnn/build-vs2019/install/lib")
link_libraries(ncnn.lib)

关于opecv及无法打开输入文件“ncnn.lib”的错误不再出现

from ncnn_example.

duoduo888999 avatar duoduo888999 commented on August 24, 2024

但是报错:
Image

因为我把之前没把opencv3.4.6的.dll文件复制到C:\Windows\System32中,按道理说应该报"找不到opencv_world346.dll文件"的错误。
也可能是需要opencv3.4.4版本,我下午再试试

from ncnn_example.

MirrorYuAI avatar MirrorYuAI commented on August 24, 2024

忘记传344的dll了,你自己下一个,把dll拷贝到生成的.exe路径应该就可以了

from ncnn_example.

MirrorYuAI avatar MirrorYuAI commented on August 24, 2024

你配置的opencv是ncnn依赖的,项目本身也依赖opencv

from ncnn_example.

MirrorYuAI avatar MirrorYuAI commented on August 24, 2024

image

from ncnn_example.

duoduo888999 avatar duoduo888999 commented on August 24, 2024

谢谢你的耐心解答,已经运行成功了!

1668677406698

from ncnn_example.

duoduo888999 avatar duoduo888999 commented on August 24, 2024

总结:
win10, Visual Studio 2019,protobuf-3.4.0,opencv4.6.0 会报错 Debug|x64错误,opencv相关的错误
解决方法:
1、换新的ncnn,换opencv3,重新编译ncnn,重新编译作者的项目,cmakelist.txt需要指向自己的ncnn
2、项目本身也依赖opencv,需要把下载opencv_world344.dll复制到ncnn_example\out\build\x64-Release\src中

from ncnn_example.

MirrorYuChen avatar MirrorYuChen commented on August 24, 2024

不用谢哈,总结的很到位,搞定了我就关掉这个issue了哈

from ncnn_example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.