Commit c58547cd4e1c0da2dad632510bfa82f4032b6d32

Authored by Hu Chunming
1 parent 69ee81f3

提交编译文件和运行配置

.vscode/c_cpp_properties.json 0 → 100644
  1 +{
  2 + "configurations": [
  3 + {
  4 + "name": "linux-gcc-arm64",
  5 + "includePath": [
  6 + "${workspaceFolder}/**"
  7 + ],
  8 + "compilerPath": "/usr/bin/gcc",
  9 + "cStandard": "${default}",
  10 + "cppStandard": "${default}",
  11 + "intelliSenseMode": "linux-gcc-arm64",
  12 + "compilerArgs": [
  13 + ""
  14 + ]
  15 + }
  16 + ],
  17 + "version": 4
  18 +}
0 \ No newline at end of file 19 \ No newline at end of file
.vscode/launch.json
@@ -76,24 +76,6 @@ @@ -76,24 +76,6 @@
76 "ignoreFailures": true 76 "ignoreFailures": true
77 } 77 }
78 ] 78 ]
79 - },{  
80 - "name": "gb28181",  
81 - "type": "cppdbg",  
82 - "request": "launch",  
83 - "program": "${workspaceFolder}/bin/test_sip",  
84 - "args": ["34020000001310000001"],  
85 - "stopAtEntry": false,  
86 - "cwd": "${workspaceFolder}/bin",  
87 - "environment": [],  
88 - "externalConsole": false,  
89 - "MIMode": "gdb",  
90 - "setupCommands": [  
91 - {  
92 - "description": "Enable pretty-printing for gdb",  
93 - "text": "-enable-pretty-printing",  
94 - "ignoreFailures": true  
95 - }  
96 - ]  
97 } 79 }
98 ] 80 ]
99 } 81 }
100 \ No newline at end of file 82 \ No newline at end of file
.vscode/settings.json
1 { 1 {
2 - "files.associations": {  
3 - "thread": "cpp",  
4 - "chrono": "cpp",  
5 - "array": "cpp",  
6 - "atomic": "cpp",  
7 - "bit": "cpp",  
8 - "*.tcc": "cpp",  
9 - "bitset": "cpp",  
10 - "cctype": "cpp",  
11 - "clocale": "cpp",  
12 - "cmath": "cpp",  
13 - "complex": "cpp",  
14 - "condition_variable": "cpp",  
15 - "cstdarg": "cpp",  
16 - "cstddef": "cpp",  
17 - "cstdint": "cpp",  
18 - "cstdio": "cpp",  
19 - "cstdlib": "cpp",  
20 - "cstring": "cpp",  
21 - "ctime": "cpp",  
22 - "cwchar": "cpp",  
23 - "cwctype": "cpp",  
24 - "deque": "cpp",  
25 - "list": "cpp",  
26 - "map": "cpp",  
27 - "set": "cpp",  
28 - "unordered_map": "cpp",  
29 - "vector": "cpp",  
30 - "exception": "cpp",  
31 - "algorithm": "cpp",  
32 - "functional": "cpp",  
33 - "iterator": "cpp",  
34 - "memory": "cpp",  
35 - "memory_resource": "cpp",  
36 - "numeric": "cpp",  
37 - "optional": "cpp",  
38 - "random": "cpp",  
39 - "ratio": "cpp",  
40 - "regex": "cpp",  
41 - "string": "cpp",  
42 - "string_view": "cpp",  
43 - "system_error": "cpp",  
44 - "tuple": "cpp",  
45 - "type_traits": "cpp",  
46 - "utility": "cpp",  
47 - "fstream": "cpp",  
48 - "future": "cpp",  
49 - "initializer_list": "cpp",  
50 - "iomanip": "cpp",  
51 - "iosfwd": "cpp",  
52 - "iostream": "cpp",  
53 - "istream": "cpp",  
54 - "limits": "cpp",  
55 - "mutex": "cpp",  
56 - "new": "cpp",  
57 - "ostream": "cpp",  
58 - "shared_mutex": "cpp",  
59 - "sstream": "cpp",  
60 - "stdexcept": "cpp",  
61 - "streambuf": "cpp",  
62 - "cfenv": "cpp",  
63 - "cinttypes": "cpp",  
64 - "typeinfo": "cpp",  
65 - "variant": "cpp",  
66 - "bsf_internal.h": "c",  
67 - "any": "cpp"  
68 - } 2 + "files.associations": {
  3 + "thread": "cpp",
  4 + "chrono": "cpp",
  5 + "array": "cpp",
  6 + "atomic": "cpp",
  7 + "bit": "cpp",
  8 + "*.tcc": "cpp",
  9 + "bitset": "cpp",
  10 + "cctype": "cpp",
  11 + "clocale": "cpp",
  12 + "cmath": "cpp",
  13 + "complex": "cpp",
  14 + "condition_variable": "cpp",
  15 + "cstdarg": "cpp",
  16 + "cstddef": "cpp",
  17 + "cstdint": "cpp",
  18 + "cstdio": "cpp",
  19 + "cstdlib": "cpp",
  20 + "cstring": "cpp",
  21 + "ctime": "cpp",
  22 + "cwchar": "cpp",
  23 + "cwctype": "cpp",
  24 + "deque": "cpp",
  25 + "list": "cpp",
  26 + "map": "cpp",
  27 + "set": "cpp",
  28 + "unordered_map": "cpp",
  29 + "vector": "cpp",
  30 + "exception": "cpp",
  31 + "algorithm": "cpp",
  32 + "functional": "cpp",
  33 + "iterator": "cpp",
  34 + "memory": "cpp",
  35 + "memory_resource": "cpp",
  36 + "numeric": "cpp",
  37 + "optional": "cpp",
  38 + "random": "cpp",
  39 + "ratio": "cpp",
  40 + "regex": "cpp",
  41 + "string": "cpp",
  42 + "string_view": "cpp",
  43 + "system_error": "cpp",
  44 + "tuple": "cpp",
  45 + "type_traits": "cpp",
  46 + "utility": "cpp",
  47 + "fstream": "cpp",
  48 + "future": "cpp",
  49 + "initializer_list": "cpp",
  50 + "iomanip": "cpp",
  51 + "iosfwd": "cpp",
  52 + "iostream": "cpp",
  53 + "istream": "cpp",
  54 + "limits": "cpp",
  55 + "mutex": "cpp",
  56 + "new": "cpp",
  57 + "ostream": "cpp",
  58 + "shared_mutex": "cpp",
  59 + "sstream": "cpp",
  60 + "stdexcept": "cpp",
  61 + "streambuf": "cpp",
  62 + "cfenv": "cpp",
  63 + "cinttypes": "cpp",
  64 + "typeinfo": "cpp",
  65 + "variant": "cpp",
  66 + "bsf_internal.h": "c",
  67 + "any": "cpp",
  68 + "strstream": "cpp",
  69 + "codecvt": "cpp",
  70 + "unordered_set": "cpp",
  71 + "rope": "cpp",
  72 + "scoped_allocator": "cpp",
  73 + "typeindex": "cpp",
  74 + "*.cpp0": "c",
  75 + "*.ipp": "cpp",
  76 + "csetjmp": "cpp",
  77 + "csignal": "cpp",
  78 + "charconv": "cpp",
  79 + "forward_list": "cpp",
  80 + "source_location": "cpp",
  81 + "slist": "cpp",
  82 + "valarray": "cpp"
  83 + },
  84 + "C_Cpp_Runner.cCompilerPath": "gcc",
  85 + "C_Cpp_Runner.cppCompilerPath": "g++",
  86 + "C_Cpp_Runner.debuggerPath": "gdb",
  87 + "C_Cpp_Runner.cStandard": "",
  88 + "C_Cpp_Runner.cppStandard": "",
  89 + "C_Cpp_Runner.msvcBatchPath": "",
  90 + "C_Cpp_Runner.useMsvc": false,
  91 + "C_Cpp_Runner.warnings": [
  92 + "-Wall",
  93 + "-Wextra",
  94 + "-Wpedantic",
  95 + "-Wshadow",
  96 + "-Wformat=2",
  97 + "-Wcast-align",
  98 + "-Wconversion",
  99 + "-Wsign-conversion",
  100 + "-Wnull-dereference"
  101 + ],
  102 + "C_Cpp_Runner.msvcWarnings": [
  103 + "/W4",
  104 + "/permissive-",
  105 + "/w14242",
  106 + "/w14287",
  107 + "/w14296",
  108 + "/w14311",
  109 + "/w14826",
  110 + "/w44062",
  111 + "/w44242",
  112 + "/w14905",
  113 + "/w14906",
  114 + "/w14263",
  115 + "/w44265",
  116 + "/w14928"
  117 + ],
  118 + "C_Cpp_Runner.enableWarnings": true,
  119 + "C_Cpp_Runner.warningsAsError": false,
  120 + "C_Cpp_Runner.compilerArgs": [],
  121 + "C_Cpp_Runner.linkerArgs": [],
  122 + "C_Cpp_Runner.includePaths": [],
  123 + "C_Cpp_Runner.includeSearch": [
  124 + "*",
  125 + "**/*"
  126 + ],
  127 + "C_Cpp_Runner.excludeSearch": [
  128 + "**/build",
  129 + "**/build/**",
  130 + "**/.*",
  131 + "**/.*/**",
  132 + "**/.vscode",
  133 + "**/.vscode/**"
  134 + ],
  135 + "C_Cpp_Runner.useAddressSanitizer": false,
  136 + "C_Cpp_Runner.useUndefinedSanitizer": false,
  137 + "C_Cpp_Runner.useLeakSanitizer": false,
  138 + "C_Cpp_Runner.showCompilationTime": false,
  139 + "C_Cpp_Runner.useLinkTimeOptimization": false,
  140 + "C_Cpp_Runner.msvcSecureNoWarnings": false
69 } 141 }
70 \ No newline at end of file 142 \ No newline at end of file
build/demo/Makefile
@@ -24,20 +24,13 @@ include_dir=-I/usr/local/Ascend/ascend-toolkit/6.3.RC1/aarch64-linux/include \ @@ -24,20 +24,13 @@ include_dir=-I/usr/local/Ascend/ascend-toolkit/6.3.RC1/aarch64-linux/include \
24 -I $(JSON_ROOT)/include \ 24 -I $(JSON_ROOT)/include \
25 -I $(FFMPEG_ROOT)/include \ 25 -I $(FFMPEG_ROOT)/include \
26 26
27 -lib_dir=-L/usr/local/Ascend/ascend-toolkit/6.3.RC1/runtime/lib64 \  
28 - -L/usr/local/Ascend/ascend-toolkit/latest/lib64 \  
29 - -L/usr/local/Ascend/ascend-toolkit/latest/runtime/lib64 \  
30 - -L/usr/local/Ascend/ascend-toolkit/latest/acllib/lib64 \  
31 - -L/usr/local/Ascend/ascend-toolkit/6.3.RC1/runtime/lib64/stub \  
32 -  
33 -lib=-lacl_dvpp -lascendcl -lacl_dvpp_mpi -lruntime -lascendalog -lc_sec -lmsprofiler -lgert -lmmpa -lascend_hal -lexe_graph -lge_executor -lgraph -lprofapi -lascend_protobuf -lerror_manager -lhybrid_executor -lregister -ldavinci_executor -lge_common -lge_common_base \  
34 - -lplatform -lgraph_base -lqos_manager  
35 27
36 LIBS= -L $(DEPEND_DIR) -lvpt_det_vdec -lsycheck -lface_det_vdec -lhs_tri_process -lhs_truck_process -lhs_motor_process -lphone_motor_det -lhcp_vdec -lmotor_rainshed_vdec -ltraffic_light_vdec -lvehicle_pose_vdec -lroad_seg_vdec -lroad_3clsseg_vdec -latlaslic -lvpt_ascend\ 28 LIBS= -L $(DEPEND_DIR) -lvpt_det_vdec -lsycheck -lface_det_vdec -lhs_tri_process -lhs_truck_process -lhs_motor_process -lphone_motor_det -lhcp_vdec -lmotor_rainshed_vdec -ltraffic_light_vdec -lvehicle_pose_vdec -lroad_seg_vdec -lroad_3clsseg_vdec -latlaslic -lvpt_ascend\
37 -L $(OPENCV_ROOT)/lib -lopencv_world\ 29 -L $(OPENCV_ROOT)/lib -lopencv_world\
38 -L $(JSON_ROOT)/lib -ljsoncpp \ 30 -L $(JSON_ROOT)/lib -ljsoncpp \
39 - -L $(FFMPEG_ROOT)/lib -lavformat -lavcodec -lswscale -lavutil -lavfilter -lswresample -lavdevice \ 31 + -L $(FFMPEG_ROOT)/lib -lavformat -lavcodec -lswscale -lavutil -lavfilter -lswresample -lavdevice -lx264\
40 -L $(RABBITMQ_CLIENT_ROOT)/lib/aarch64-linux-gnu -lrabbitmq \ 32 -L $(RABBITMQ_CLIENT_ROOT)/lib/aarch64-linux-gnu -lrabbitmq \
  33 + -L/usr/local/Ascend/ascend-toolkit/6.3.RC1/runtime/lib64 -lacl_dvpp -lascendcl \
41 34
42 CXXFLAGS= -g -O0 -fPIC $(include_dir) $(lib_dir) $(lib) $(LIBS) $(DEFS) -lpthread -lrt -lz -fexceptions -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -fvisibility=hidden -Wall -Wno-deprecated -Wdeprecated-declarations -Wl,-Bsymbolic -ldl 35 CXXFLAGS= -g -O0 -fPIC $(include_dir) $(lib_dir) $(lib) $(LIBS) $(DEFS) -lpthread -lrt -lz -fexceptions -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -fvisibility=hidden -Wall -Wno-deprecated -Wdeprecated-declarations -Wl,-Bsymbolic -ldl
43 36
build/src/Makefile
@@ -15,9 +15,10 @@ JSON_ROOT = $(THIRDPARTY_ROOT)/jsoncpp-1.9.5/release @@ -15,9 +15,10 @@ JSON_ROOT = $(THIRDPARTY_ROOT)/jsoncpp-1.9.5/release
15 FFMPEG_ROOT = $(THIRDPARTY_ROOT)/ffmpeg-4.4.4/release 15 FFMPEG_ROOT = $(THIRDPARTY_ROOT)/ffmpeg-4.4.4/release
16 RABBITMQ_CLIENT_ROOT = $(THIRDPARTY_ROOT)/rabbitmq-c-0.11.0/release 16 RABBITMQ_CLIENT_ROOT = $(THIRDPARTY_ROOT)/rabbitmq-c-0.11.0/release
17 AUTHORITY_DIR = $(THIRDPARTY_ROOT)/atlas_lic-aarch64-20220112/atlas_lic 17 AUTHORITY_DIR = $(THIRDPARTY_ROOT)/atlas_lic-aarch64-20220112/atlas_lic
  18 +BOOST_ROOT = $(THIRDPARTY_ROOT)/boost_1_81_0/release
  19 +WEBSOCKETPP_ROOT = $(THIRDPARTY_ROOT)/websocketpp-0.8.2/release/include \
18 20
19 JRTP_ROOT = $(THIRDPARTY_ROOT)/gb28181_3rd/jrtp_export 21 JRTP_ROOT = $(THIRDPARTY_ROOT)/gb28181_3rd/jrtp_export
20 -SIP_SDK = $(THIRDPARTY_ROOT)/gb28181_3rd/release  
21 22
22 DEFS = -DENABLE_DVPP_INTERFACE -DWITH_FACE_DET_SS -DPOST_USE_RABBITMQ -DUSE_VILLAGE 23 DEFS = -DENABLE_DVPP_INTERFACE -DWITH_FACE_DET_SS -DPOST_USE_RABBITMQ -DUSE_VILLAGE
23 # DEFS = -DENABLE_DVPP_INTERFACE -DUSE_VILLAGE 24 # DEFS = -DENABLE_DVPP_INTERFACE -DUSE_VILLAGE
@@ -31,22 +32,22 @@ include_dir=-I/usr/local/Ascend/ascend-toolkit/6.3.RC1/aarch64-linux/include \ @@ -31,22 +32,22 @@ include_dir=-I/usr/local/Ascend/ascend-toolkit/6.3.RC1/aarch64-linux/include \
31 -I $(RABBITMQ_CLIENT_ROOT)/include \ 32 -I $(RABBITMQ_CLIENT_ROOT)/include \
32 -I $(AUTHORITY_DIR)/include \ 33 -I $(AUTHORITY_DIR)/include \
33 -I $(JRTP_ROOT)/jrtplib/include/jrtplib3 \ 34 -I $(JRTP_ROOT)/jrtplib/include/jrtplib3 \
34 - -I $(SIP_SDK)/include \  
35 -I $(SRC_ROOT)/decoder/gb28181/rtp \ 35 -I $(SRC_ROOT)/decoder/gb28181/rtp \
36 - -I $(SRC_ROOT)/decoder/gb28181/sip \  
37 -I $(SRC_ROOT)/decoder/gb28181 \ 36 -I $(SRC_ROOT)/decoder/gb28181 \
  37 + -I $(WEBSOCKETPP_ROOT) \
  38 + -I $(BOOST_ROOT)/include \
38 39
39 40
40 LIBS= -L $(SPDLOG_ROOT)/lib -l:libspdlog.a \ 41 LIBS= -L $(SPDLOG_ROOT)/lib -l:libspdlog.a \
41 -L $(DEPEND_DIR) -lvpt_det_vdec -lsycheck -lface_det_vdec -lhs_tri_process -lhs_truck_process -lphone_motor_det -lhcp_vdec -lmotor_rainshed_vdec -ltraffic_light_vdec -lvehicle_pose_vdec -lroad_seg_vdec -lroad_3clsseg_vdec -lhs_motor_process\ 42 -L $(DEPEND_DIR) -lvpt_det_vdec -lsycheck -lface_det_vdec -lhs_tri_process -lhs_truck_process -lphone_motor_det -lhcp_vdec -lmotor_rainshed_vdec -ltraffic_light_vdec -lvehicle_pose_vdec -lroad_seg_vdec -lroad_3clsseg_vdec -lhs_motor_process\
42 -L $(OPENCV_ROOT)/lib -lopencv_world\ 43 -L $(OPENCV_ROOT)/lib -lopencv_world\
43 - -L $(JSON_ROOT)/lib -ljsoncpp \ 44 + -L $(JSON_ROOT)/lib -l:libjsoncpp.a \
44 -L $(FFMPEG_ROOT)/lib -lavformat -lavcodec -lswscale -lavutil -lavfilter -lswresample -lavdevice -lx264\ 45 -L $(FFMPEG_ROOT)/lib -lavformat -lavcodec -lswscale -lavutil -lavfilter -lswresample -lavdevice -lx264\
45 - -L $(RABBITMQ_CLIENT_ROOT)/lib/aarch64-linux-gnu -lrabbitmq \ 46 + -L $(RABBITMQ_CLIENT_ROOT)/lib/aarch64-linux-gnu -l:librabbitmq.a \
46 -L $(AUTHORITY_DIR)/lib -latlaslic \ 47 -L $(AUTHORITY_DIR)/lib -latlaslic \
47 -L $(JRTP_ROOT)/jrtplib/lib -l:libjrtp.a \ 48 -L $(JRTP_ROOT)/jrtplib/lib -l:libjrtp.a \
48 - -L $(SIP_SDK)/lib -l:libeXosip2.a -l:libosipparser2.a -l:libosip2.a -lcares\  
49 -L/usr/local/Ascend/ascend-toolkit/6.3.RC1/runtime/lib64 -lacl_dvpp -lascendcl \ 49 -L/usr/local/Ascend/ascend-toolkit/6.3.RC1/runtime/lib64 -lacl_dvpp -lascendcl \
  50 + -L $(BOOST_ROOT)/lib -lboost_system \
50 51
51 52
52 53
@@ -64,10 +65,9 @@ SRCS:=$(wildcard $(SRC_ROOT)/ai_platform/*.cpp) \ @@ -64,10 +65,9 @@ SRCS:=$(wildcard $(SRC_ROOT)/ai_platform/*.cpp) \
64 $(wildcard $(SRC_ROOT)/reprocessing_module/rbmq/*.cpp) \ 65 $(wildcard $(SRC_ROOT)/reprocessing_module/rbmq/*.cpp) \
65 $(wildcard $(SRC_ROOT)/decoder/gb28181/*.cpp) \ 66 $(wildcard $(SRC_ROOT)/decoder/gb28181/*.cpp) \
66 $(wildcard $(SRC_ROOT)/decoder/gb28181/rtp/*.cpp) \ 67 $(wildcard $(SRC_ROOT)/decoder/gb28181/rtp/*.cpp) \
67 - $(wildcard $(SRC_ROOT)/decoder/gb28181/sip/*.cpp) \  
68 - $(wildcard $(SRC_ROOT)/decoder/gb28181/sip/Message/*.cpp) \  
69 - $(wildcard $(SRC_ROOT)/decoder/gb28181/sip/tinyxml2/*.cpp) \  
70 - $(wildcard $(SRC_ROOT)/decoder/gb28181/sip/Utils/*.cpp) \ 68 + $(wildcard $(SRC_ROOT)/decoder/gb28181/Message/*.cpp) \
  69 + $(wildcard $(SRC_ROOT)/decoder/gb28181/tinyxml2/*.cpp) \
  70 + $(wildcard $(SRC_ROOT)/decoder/gb28181/websocket/*.cpp) \
71 71
72 OBJS = $(patsubst %.cpp, %.o, $(notdir $(SRCS))) 72 OBJS = $(patsubst %.cpp, %.o, $(notdir $(SRCS)))
73 73
@@ -107,16 +107,13 @@ $(TARGET):$(OBJS) @@ -107,16 +107,13 @@ $(TARGET):$(OBJS)
107 %.o:$(SRC_ROOT)/decoder/gb28181/rtp/%.cpp 107 %.o:$(SRC_ROOT)/decoder/gb28181/rtp/%.cpp
108 $(XX) $(CXXFLAGS) -c $< 108 $(XX) $(CXXFLAGS) -c $<
109 109
110 -%.o:$(SRC_ROOT)/decoder/gb28181/sip/%.cpp 110 +%.o:$(SRC_ROOT)/decoder/gb28181/websocket/%.cpp
111 $(XX) $(CXXFLAGS) -c $< 111 $(XX) $(CXXFLAGS) -c $<
112 112
113 -%.o:$(SRC_ROOT)/decoder/gb28181/sip/Message/%.cpp 113 +%.o:$(SRC_ROOT)/decoder/gb28181/Message/%.cpp
114 $(XX) $(CXXFLAGS) -c $< 114 $(XX) $(CXXFLAGS) -c $<
115 115
116 -%.o:$(SRC_ROOT)/decoder/gb28181/sip/tinyxml2/%.cpp  
117 - $(XX) $(CXXFLAGS) -c $<  
118 -  
119 -%.o:$(SRC_ROOT)/decoder/gb28181/sip/Utils/%.cpp 116 +%.o:$(SRC_ROOT)/decoder/gb28181/tinyxml2/%.cpp
120 $(XX) $(CXXFLAGS) -c $< 117 $(XX) $(CXXFLAGS) -c $<
121 118
122 119
readme.md
1 -人车物检测_x86_310p_v0.0.1.20230316_without_timelimit  
2 -  
3 -支持系统:  
4 - arm  
5 -文件清单:  
6 - vpt.h: 接口文件  
7 - libvpt_det.so: 依赖库文件  
8 - models/vpt0715_310p.om: 模型文件  
9 - test/: 测试文件  
10 - test.cpp: 调用示例  
11 - 0_38863.jpg,datacasia_20160821_003198.jpg:测试数据  
12 - list.txt: 测试图片列表  
13 - Atlas人车物检测SDK说明_v0.0.0.pdf: SDK说明文档  
14 -  
15 -更新内容:  
16 - -2023.03.16 编译ascend310p arm版本  
17 -  
18 -注意事项说明:  
19 - - 当前版本跟踪前三帧无结果输出  
20 - 1 +# 注意
  2 + 由于子库和opencv原因,三方库都要添加 _GLIBCXX_USE_CXX11_ABI=0 编译
21 3
22 ### ffmpeg编译 4 ### ffmpeg编译
23 ~~~ 5 ~~~