Commit eddac6448a7150278d780660afbc39edab8dc1f9
1 parent
23907c44
提交makefile
Showing
3 changed files
with
43 additions
and
13 deletions
build/decoder/Makefile
@@ -33,13 +33,8 @@ include_dir=-I/usr/local/Ascend/ascend-toolkit/6.3.RC1/aarch64-linux/include \ | @@ -33,13 +33,8 @@ include_dir=-I/usr/local/Ascend/ascend-toolkit/6.3.RC1/aarch64-linux/include \ | ||
33 | -I $(SRC_ROOT)/decoder/gb28181 \ | 33 | -I $(SRC_ROOT)/decoder/gb28181 \ |
34 | 34 | ||
35 | lib_dir=-L/usr/local/Ascend/ascend-toolkit/6.3.RC1/runtime/lib64 \ | 35 | lib_dir=-L/usr/local/Ascend/ascend-toolkit/6.3.RC1/runtime/lib64 \ |
36 | - -L/usr/local/Ascend/ascend-toolkit/latest/lib64 \ | ||
37 | - -L/usr/local/Ascend/ascend-toolkit/latest/runtime/lib64 \ | ||
38 | - -L/usr/local/Ascend/ascend-toolkit/latest/acllib/lib64 \ | ||
39 | - -L/usr/local/Ascend/ascend-toolkit/6.3.RC1/runtime/lib64/stub \ | ||
40 | 36 | ||
41 | -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 -lregister -lge_common \ | ||
42 | - -lplatform -lqos_manager | 37 | +lib=-lacl_dvpp -lascendcl |
43 | 38 | ||
44 | LIBS= -L $(FFMPEG_ROOT)/lib -lavformat -lavcodec -lswscale -lavutil -lavfilter -lswresample -lavdevice \ | 39 | LIBS= -L $(FFMPEG_ROOT)/lib -lavformat -lavcodec -lswscale -lavutil -lavfilter -lswresample -lavdevice \ |
45 | -L $(JRTP_ROOT)/jrtplib/lib -l:libjrtp.a \ | 40 | -L $(JRTP_ROOT)/jrtplib/lib -l:libjrtp.a \ |
build/src/Makefile
@@ -16,6 +16,9 @@ FFMPEG_ROOT = $(THIRDPARTY_ROOT)/ffmpeg-4.4.4/release | @@ -16,6 +16,9 @@ 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 | 18 | ||
19 | +JRTP_ROOT = $(THIRDPARTY_ROOT)/gb28181_3rd/jrtp_export | ||
20 | +SIP_SDK = $(THIRDPARTY_ROOT)/gb28181_3rd/release | ||
21 | + | ||
19 | # DEFS = -DENABLE_DVPP_INTERFACE -DWITH_FACE_DET_SS -DPOST_USE_RABBITMQ -DUSE_VILLAGE | 22 | # DEFS = -DENABLE_DVPP_INTERFACE -DWITH_FACE_DET_SS -DPOST_USE_RABBITMQ -DUSE_VILLAGE |
20 | DEFS = -DENABLE_DVPP_INTERFACE | 23 | DEFS = -DENABLE_DVPP_INTERFACE |
21 | 24 | ||
@@ -27,15 +30,15 @@ include_dir=-I/usr/local/Ascend/ascend-toolkit/6.3.RC1/aarch64-linux/include \ | @@ -27,15 +30,15 @@ include_dir=-I/usr/local/Ascend/ascend-toolkit/6.3.RC1/aarch64-linux/include \ | ||
27 | -I $(FFMPEG_ROOT)/include \ | 30 | -I $(FFMPEG_ROOT)/include \ |
28 | -I $(RABBITMQ_CLIENT_ROOT)/include \ | 31 | -I $(RABBITMQ_CLIENT_ROOT)/include \ |
29 | -I $(AUTHORITY_DIR)/include \ | 32 | -I $(AUTHORITY_DIR)/include \ |
33 | + -I $(JRTP_ROOT)/jrtplib/include/jrtplib3 \ | ||
34 | + -I $(SIP_SDK)/include \ | ||
35 | + -I $(SRC_ROOT)/decoder/gb28181/rtp \ | ||
36 | + -I $(SRC_ROOT)/decoder/gb28181/sip \ | ||
37 | + -I $(SRC_ROOT)/decoder/gb28181 \ | ||
30 | 38 | ||
31 | lib_dir=-L/usr/local/Ascend/ascend-toolkit/6.3.RC1/runtime/lib64 \ | 39 | lib_dir=-L/usr/local/Ascend/ascend-toolkit/6.3.RC1/runtime/lib64 \ |
32 | - -L/usr/local/Ascend/ascend-toolkit/latest/lib64 \ | ||
33 | - -L/usr/local/Ascend/ascend-toolkit/latest/runtime/lib64 \ | ||
34 | - -L/usr/local/Ascend/ascend-toolkit/latest/acllib/lib64 \ | ||
35 | - -L/usr/local/Ascend/ascend-toolkit/6.3.RC1/runtime/lib64/stub \ | ||
36 | 40 | ||
37 | -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 \ | ||
38 | - -lplatform -lgraph_base -lqos_manager | 41 | +lib=-lacl_dvpp -lascendcl |
39 | 42 | ||
40 | LIBS= -L $(SPDLOG_ROOT)/lib -l:libspdlog.a \ | 43 | 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\ | 44 | -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\ |
@@ -44,6 +47,11 @@ LIBS= -L $(SPDLOG_ROOT)/lib -l:libspdlog.a \ | @@ -44,6 +47,11 @@ LIBS= -L $(SPDLOG_ROOT)/lib -l:libspdlog.a \ | ||
44 | -L $(FFMPEG_ROOT)/lib -lavformat -lavcodec -lswscale -lavutil -lavfilter -lswresample -lavdevice \ | 47 | -L $(FFMPEG_ROOT)/lib -lavformat -lavcodec -lswscale -lavutil -lavfilter -lswresample -lavdevice \ |
45 | -L $(RABBITMQ_CLIENT_ROOT)/lib/aarch64-linux-gnu -lrabbitmq \ | 48 | -L $(RABBITMQ_CLIENT_ROOT)/lib/aarch64-linux-gnu -lrabbitmq \ |
46 | -L $(AUTHORITY_DIR)/lib -latlaslic \ | 49 | -L $(AUTHORITY_DIR)/lib -latlaslic \ |
50 | + -L $(JRTP_ROOT)/jrtplib/lib -l:libjrtp.a \ | ||
51 | + -L $(SIP_SDK)/lib -l:libeXosip2.a -l:libosipparser2.a -l:libosip2.a -lcares\ | ||
52 | + -L/usr/local/Ascend/ascend-toolkit/6.3.RC1/runtime/lib64 -lacl_dvpp -lascendcl \ | ||
53 | + | ||
54 | + | ||
47 | 55 | ||
48 | 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 | 56 | 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 |
49 | 57 | ||
@@ -57,6 +65,12 @@ SRCS:=$(wildcard $(SRC_ROOT)/ai_platform/*.cpp) \ | @@ -57,6 +65,12 @@ SRCS:=$(wildcard $(SRC_ROOT)/ai_platform/*.cpp) \ | ||
57 | $(wildcard $(SRC_ROOT)/util/*.cpp) \ | 65 | $(wildcard $(SRC_ROOT)/util/*.cpp) \ |
58 | $(wildcard $(SRC_ROOT)/reprocessing_module/*.cpp) \ | 66 | $(wildcard $(SRC_ROOT)/reprocessing_module/*.cpp) \ |
59 | $(wildcard $(SRC_ROOT)/reprocessing_module/rbmq/*.cpp) \ | 67 | $(wildcard $(SRC_ROOT)/reprocessing_module/rbmq/*.cpp) \ |
68 | + $(wildcard $(SRC_ROOT)/decoder/gb28181/*.cpp) \ | ||
69 | + $(wildcard $(SRC_ROOT)/decoder/gb28181/rtp/*.cpp) \ | ||
70 | + $(wildcard $(SRC_ROOT)/decoder/gb28181/sip/*.cpp) \ | ||
71 | + $(wildcard $(SRC_ROOT)/decoder/gb28181/sip/Message/*.cpp) \ | ||
72 | + $(wildcard $(SRC_ROOT)/decoder/gb28181/sip/tinyxml2/*.cpp) \ | ||
73 | + $(wildcard $(SRC_ROOT)/decoder/gb28181/sip/Utils/*.cpp) \ | ||
60 | 74 | ||
61 | OBJS = $(patsubst %.cpp, %.o, $(notdir $(SRCS))) | 75 | OBJS = $(patsubst %.cpp, %.o, $(notdir $(SRCS))) |
62 | 76 | ||
@@ -90,6 +104,27 @@ $(TARGET):$(OBJS) | @@ -90,6 +104,27 @@ $(TARGET):$(OBJS) | ||
90 | %.o:$(SRC_ROOT)/reprocessing_module/rbmq/%.cpp | 104 | %.o:$(SRC_ROOT)/reprocessing_module/rbmq/%.cpp |
91 | $(XX) $(CXXFLAGS) -c $< | 105 | $(XX) $(CXXFLAGS) -c $< |
92 | 106 | ||
107 | +%.o:$(SRC_ROOT)/decoder/gb28181/%.cpp | ||
108 | + $(XX) $(CXXFLAGS) -c $< | ||
109 | + | ||
110 | +%.o:$(SRC_ROOT)/decoder/gb28181/rtp/%.cpp | ||
111 | + $(XX) $(CXXFLAGS) -c $< | ||
112 | + | ||
113 | +%.o:$(SRC_ROOT)/decoder/gb28181/sip/%.cpp | ||
114 | + $(XX) $(CXXFLAGS) -c $< | ||
115 | + | ||
116 | +%.o:$(SRC_ROOT)/decoder/gb28181/sip/Message/%.cpp | ||
117 | + $(XX) $(CXXFLAGS) -c $< | ||
118 | + | ||
119 | +%.o:$(SRC_ROOT)/decoder/gb28181/sip/tinyxml2/%.cpp | ||
120 | + $(XX) $(CXXFLAGS) -c $< | ||
121 | + | ||
122 | +%.o:$(SRC_ROOT)/decoder/gb28181/sip/Utils/%.cpp | ||
123 | + $(XX) $(CXXFLAGS) -c $< | ||
124 | + | ||
125 | + | ||
126 | + | ||
93 | 127 | ||
128 | + | ||
94 | clean: | 129 | clean: |
95 | rm -f *.o $(TARGET) | 130 | rm -f *.o $(TARGET) |
src/decoder/test_28181.cpp