正在显示
102 个修改的文件
包含
2085 行增加
和
1713 行删除
@@ -136,8 +136,11 @@ | @@ -136,8 +136,11 @@ | ||
136 | "dji_platform.h": "c", | 136 | "dji_platform.h": "c", |
137 | "util_misc.h": "c", | 137 | "util_misc.h": "c", |
138 | "jzsdk_smt_code.h": "c", | 138 | "jzsdk_smt_code.h": "c", |
139 | - "volume.h": "c" | 139 | + "volume.h": "c", |
140 | + "jzsdk_data_transmisson.h": "c", | ||
141 | + "jzsdk_monitor.h": "c" | ||
140 | }, | 142 | }, |
141 | "Codegeex.GenerationPreference": "automatic", | 143 | "Codegeex.GenerationPreference": "automatic", |
142 | - "C_Cpp.dimInactiveRegions": false | 144 | + "C_Cpp.dimInactiveRegions": false, |
145 | + "Codegeex.RepoIndex": true | ||
143 | } | 146 | } |
1 | # 编译链的配置 | 1 | # 编译链的配置 |
2 | 2 | ||
3 | #1、编译链与设备类型的选择 | 3 | #1、编译链与设备类型的选择 |
4 | -set(DEVICE_NAME JZ_H150T) | 4 | +set(DEVICE_NAME JZ_H1E) |
5 | #上一行为禁止修改行 | 5 | #上一行为禁止修改行 |
6 | 6 | ||
7 | message("**************************JZSDK构建编译开始***************************\n") | 7 | message("**************************JZSDK构建编译开始***************************\n") |
@@ -30,6 +30,8 @@ elseif("${DEVICE_NAME}" STREQUAL "TF_A1") | @@ -30,6 +30,8 @@ elseif("${DEVICE_NAME}" STREQUAL "TF_A1") | ||
30 | set(MAKE_COMPILER ARM_CORTEXA9_LINUX) | 30 | set(MAKE_COMPILER ARM_CORTEXA9_LINUX) |
31 | elseif("${DEVICE_NAME}" STREQUAL "JZ_C1") | 31 | elseif("${DEVICE_NAME}" STREQUAL "JZ_C1") |
32 | set(MAKE_COMPILER ARM_X86_64_ARRCH64) | 32 | set(MAKE_COMPILER ARM_X86_64_ARRCH64) |
33 | +elseif("${DEVICE_NAME}" STREQUAL "JZ_ST") | ||
34 | + set(MAKE_COMPILER ARM_X86_64_ARRCH64) | ||
33 | endif() | 35 | endif() |
34 | 36 | ||
35 | if(${MAKE_COMPILER} STREQUAL "ARM_CORTEXA9_LINUX") | 37 | if(${MAKE_COMPILER} STREQUAL "ARM_CORTEXA9_LINUX") |
@@ -11,6 +11,7 @@ set(LIB_RK_MMP VERSION_SWITCH_OFF) | @@ -11,6 +11,7 @@ set(LIB_RK_MMP VERSION_SWITCH_OFF) | ||
11 | set(LIB_RK_RGB VERSION_SWITCH_OFF) | 11 | set(LIB_RK_RGB VERSION_SWITCH_OFF) |
12 | set(LIB_USB VERSION_SWITCH_OFF) | 12 | set(LIB_USB VERSION_SWITCH_OFF) |
13 | set(LIB_KT_IRC VERSION_SWITCH_OFF) | 13 | set(LIB_KT_IRC VERSION_SWITCH_OFF) |
14 | +set(LIB_SAT_IRC VERSION_SWITCH_OFF) | ||
14 | 15 | ||
15 | add_definitions(-D COMPILE_MODE_MODULE) #设置代码为编译模式 | 16 | add_definitions(-D COMPILE_MODE_MODULE) #设置代码为编译模式 |
16 | 17 | ||
@@ -95,11 +96,18 @@ if(${MEDIA_PROC_MODULE} STREQUAL "VERSION_SWITCH_ON") | @@ -95,11 +96,18 @@ if(${MEDIA_PROC_MODULE} STREQUAL "VERSION_SWITCH_ON") | ||
95 | message("加载USB模块") | 96 | message("加载USB模块") |
96 | set(LIB_USB VERSION_SWITCH_ON) | 97 | set(LIB_USB VERSION_SWITCH_ON) |
97 | 98 | ||
98 | - if(${IRC_MODULE} STREQUAL "VERSION_SWITCH_ON") | 99 | + if(${LIB_KT_MODULE} STREQUAL "VERSION_SWITCH_ON") |
99 | message("加载昆腾红外相机模块") | 100 | message("加载昆腾红外相机模块") |
100 | set(LIB_KT_IRC VERSION_SWITCH_ON) | 101 | set(LIB_KT_IRC VERSION_SWITCH_ON) |
101 | 102 | ||
102 | endif() | 103 | endif() |
104 | + | ||
105 | + if(${LIB_SATIRC_MODULE} STREQUAL "VERSION_SWITCH_ON") | ||
106 | + message("加载飒特红外相机模块") | ||
107 | + set(LIB_SAT_IRC VERSION_SWITCH_ON) | ||
108 | + | ||
109 | + endif() | ||
110 | + | ||
103 | endif() | 111 | endif() |
104 | 112 | ||
105 | endif() | 113 | endif() |
@@ -52,6 +52,12 @@ set(WIRINGPI_MODULE VERSION_SWITCH_OFF) | @@ -52,6 +52,12 @@ set(WIRINGPI_MODULE VERSION_SWITCH_OFF) | ||
52 | # OpenCV库 | 52 | # OpenCV库 |
53 | set(IMAGEPROCESSING_MODULE VERSION_SWITCH_OFF) | 53 | set(IMAGEPROCESSING_MODULE VERSION_SWITCH_OFF) |
54 | 54 | ||
55 | +# 鲲腾库 | ||
56 | +set(LIB_KT_MODULE VERSION_SWITCH_OFF) | ||
57 | + | ||
58 | +# 飒特库 | ||
59 | +set(LIB_SATIRC_MODULE VERSION_SWITCH_OFF) | ||
60 | + | ||
55 | ########################## 通用库加载 ########################################### | 61 | ########################## 通用库加载 ########################################### |
56 | 62 | ||
57 | # 添加信息模块 | 63 | # 添加信息模块 |
@@ -358,6 +364,29 @@ elseif("${DEVICE_NAME}" STREQUAL "JZ_C1") | @@ -358,6 +364,29 @@ elseif("${DEVICE_NAME}" STREQUAL "JZ_C1") | ||
358 | 364 | ||
359 | message("C1基础配置完毕\n") | 365 | message("C1基础配置完毕\n") |
360 | 366 | ||
367 | +elseif("${DEVICE_NAME}" STREQUAL "JZ_ST") | ||
368 | + | ||
369 | + # 添加Gimbal 云台处理模块 | ||
370 | + set(GIMBAL_MODULE VERSION_SWITCH_ON) | ||
371 | + | ||
372 | + # 添加IRCUT 引脚处理模块 | ||
373 | + set(IRCUT_MODULE VERSION_SWITCH_ON) | ||
374 | + | ||
375 | + # 添加MediaProc 媒体管理模块 | ||
376 | + set(MEDIA_PROC_MODULE VERSION_SWITCH_ON) | ||
377 | + | ||
378 | + # 添加红外相机模块 | ||
379 | + set(IRC_MODULE VERSION_SWITCH_ON) | ||
380 | + | ||
381 | + # 添加飒特模块 | ||
382 | + set(LIB_SATIRC_MODULE VERSION_SWITCH_ON) | ||
383 | + | ||
384 | + #设备独立配置源文件 | ||
385 | + file(GLOB_RECURSE DEVICE_CONFOG_SRC ${ROOT_DIRS}JZsdk_Config/DeviceSample/JZ_ST/*.c) | ||
386 | + list(APPEND ALL_SRC_FILES ${DEVICE_CONFOG_SRC}) | ||
387 | + | ||
388 | + message("ST基础配置完毕\n") | ||
389 | + | ||
361 | endif() | 390 | endif() |
362 | 391 | ||
363 | message("***********************模组模块配置完毕*********************************\n") | 392 | message("***********************模组模块配置完毕*********************************\n") |
@@ -189,4 +189,18 @@ if(${LIB_KT_IRC} STREQUAL "VERSION_SWITCH_ON") | @@ -189,4 +189,18 @@ if(${LIB_KT_IRC} STREQUAL "VERSION_SWITCH_ON") | ||
189 | 189 | ||
190 | endif() | 190 | endif() |
191 | 191 | ||
192 | +#飒特 IRC库 | ||
193 | +if(${LIB_SAT_IRC} STREQUAL "VERSION_SWITCH_ON") | ||
194 | + | ||
195 | + add_definitions(-DMACRO_SATIRC_MODULE) | ||
196 | + | ||
197 | + message("STIRC库已加载\n") | ||
198 | + include_directories(${ROOT_DIRS}/ThirdParty/SatIrcLib/include) | ||
199 | + target_link_libraries( | ||
200 | + ${PROJECT_NAME} | ||
201 | + ${ROOT_DIRS}/ThirdParty/SatIrcLib/aarch64-none-linux-gnu/lib/libsatir.so | ||
202 | + ) | ||
203 | + | ||
204 | +endif() | ||
205 | + | ||
192 | message("**************************动态库加载完毕***************************\n") | 206 | message("**************************动态库加载完毕***************************\n") |
@@ -24,6 +24,15 @@ extern "C" { | @@ -24,6 +24,15 @@ extern "C" { | ||
24 | 24 | ||
25 | /* Exported types ------------------------------------------------------------*/ | 25 | /* Exported types ------------------------------------------------------------*/ |
26 | 26 | ||
27 | +//时间结构体 | ||
28 | +typedef struct { | ||
29 | + U16_t year; | ||
30 | + U8_t month; | ||
31 | + U8_t day; | ||
32 | + U8_t hour; | ||
33 | + U8_t minute; | ||
34 | + U8_t second; | ||
35 | +}t_JZdateTime; | ||
27 | 36 | ||
28 | 37 | ||
29 | //GPS时间 | 38 | //GPS时间 |
@@ -38,6 +38,11 @@ typedef uint16_t U16_t; | @@ -38,6 +38,11 @@ typedef uint16_t U16_t; | ||
38 | typedef uint32_t U32_t; | 38 | typedef uint32_t U32_t; |
39 | typedef uint64_t U64_t; | 39 | typedef uint64_t U64_t; |
40 | 40 | ||
41 | +#define JZ_U8 U8_t | ||
42 | +#define JZ_U16 U16_t | ||
43 | +#define JZ_U32 U32_t | ||
44 | +#define JZ_U64 U64_t | ||
45 | + | ||
41 | // typedef unsigned long T_JZsdkReturnCode; | 46 | // typedef unsigned long T_JZsdkReturnCode; |
42 | // typedef unsigned char U8_t; | 47 | // typedef unsigned char U8_t; |
43 | // typedef unsigned short U16_t; | 48 | // typedef unsigned short U16_t; |
@@ -47,6 +52,9 @@ typedef uint64_t U64_t; | @@ -47,6 +52,9 @@ typedef uint64_t U64_t; | ||
47 | typedef double F64_t; | 52 | typedef double F64_t; |
48 | typedef float F32_t; | 53 | typedef float F32_t; |
49 | 54 | ||
55 | +#define JZ_F64 F64_t | ||
56 | +#define JZ_F32 F32_t | ||
57 | + | ||
50 | #define JZSDK_SINGLE_THREAD 0 //jz单线程 | 58 | #define JZSDK_SINGLE_THREAD 0 //jz单线程 |
51 | #define JZSDK_MULTI_THREAD 1 //jz多线程 | 59 | #define JZSDK_MULTI_THREAD 1 //jz多线程 |
52 | 60 |
1 | /* 头文件 ------------------------------------------------------------------*/ | 1 | /* 头文件 ------------------------------------------------------------------*/ |
2 | -#include <stdio.h> | ||
3 | -#include <stdlib.h> | ||
4 | -#include <string.h> | ||
5 | -#include <stdarg.h> | ||
6 | -#include <stdio.h> | ||
7 | - | ||
8 | -#include "JZsdk_Logger.h" | ||
9 | -#include <time.h> | 2 | +#include "JZsdk_logger.h" |
10 | #include "JZsdkLib.h" | 3 | #include "JZsdkLib.h" |
11 | -#include <pthread.h> | ||
12 | -#include <sys/time.h> | ||
13 | -#include <sys/resource.h> | ||
14 | -#include <unistd.h> | ||
15 | -#include <sys/types.h> | ||
16 | - | ||
17 | -#define JZSDK_LOG_NAME "JZLOG" | ||
18 | -#define JZSDK_LOG_INDEX_FILE_NAME "/root/sdcard/JZLOG/thelast" | ||
19 | -#define JZSDK_LOG_PATH "/root/sdcard/JZLOG/" | ||
20 | -#define JZSDK_LOG_MAX_COUNT 20 | ||
21 | -static char logFilePath[128]; | 4 | +#include <stdarg.h> |
22 | 5 | ||
23 | -#define LOG_GRADE JZSDK_LOGGER_CONSOLE_LOG_LEVEL_INFO | 6 | +static T_JZsdkLoggerConsole *UserLogPrintConsole = NULL; //用户日志输出控制台 |
7 | +static T_JZsdkLoggerConsole *UserLogRecordConsole = NULL; //用户日志输出控制台 | ||
24 | 8 | ||
25 | /* 全局变量 ------------------------------------------------------------------*/ | 9 | /* 全局变量 ------------------------------------------------------------------*/ |
26 | -static struct timeval g_start_time; | ||
27 | -static FILE *logFile = NULL; | ||
28 | -static FILE *logFileCnt = NULL; | ||
29 | -static int Logger_init_flag = JZ_FLAGCODE_OFF; | ||
30 | 10 | ||
31 | /* 函数声明 ------------------------------------------------------------------*/ | 11 | /* 函数声明 ------------------------------------------------------------------*/ |
32 | - | ||
33 | -long long get_total_ram() { | ||
34 | - FILE *file; | ||
35 | - char line[128]; | ||
36 | - long long total_ram = 0; | ||
37 | - | ||
38 | - file = fopen("/proc/meminfo", "r"); | ||
39 | - if (!file) { | ||
40 | - perror("Error opening /proc/meminfo"); | ||
41 | - return 0; | ||
42 | - } | ||
43 | - | ||
44 | - while (fgets(line, sizeof(line), file)) { | ||
45 | - if (strncmp(line, "MemTotal:", 9) == 0) { | ||
46 | - sscanf(line, "MemTotal: %lld kB", &total_ram); | ||
47 | - break; | ||
48 | - } | ||
49 | - } | ||
50 | - | ||
51 | - fclose(file); | ||
52 | - return total_ram; | ||
53 | -} | ||
54 | - | ||
55 | -long long get_current_rss(pid_t pid) { | ||
56 | - FILE *file; | ||
57 | - char line[128]; | ||
58 | - long long vmrss = 0; | ||
59 | - | ||
60 | - char path[64]; | ||
61 | - snprintf(path, sizeof(path), "/proc/%d/status", pid); | ||
62 | - | ||
63 | - file = fopen(path, "r"); | ||
64 | - if (!file) { | ||
65 | - perror("Error opening /proc/[pid]/status"); | ||
66 | - return 0; | ||
67 | - } | ||
68 | - | ||
69 | - while (fgets(line, sizeof(line), file)) { | ||
70 | - if (strncmp(line, "VmRSS:", 6) == 0) { | ||
71 | - sscanf(line, "VmRSS: %lld kB", &vmrss); | ||
72 | - break; | ||
73 | - } | ||
74 | - } | ||
75 | - | ||
76 | - fclose(file); | ||
77 | - return vmrss; | ||
78 | -} | ||
79 | - | ||
80 | -static void *MonitorTask(void *arg) | ||
81 | -{ | ||
82 | - //获取程序的pid号 | ||
83 | - pid_t pid = getpid(); // 获取当前进程的 PID | ||
84 | - long long total_ram; //最大ram内存 | ||
85 | - long long current_rss; //RSS内存 | ||
86 | - double memory_percentage; //内存百分比 | ||
87 | - | ||
88 | - // 获取系统总 RAM | ||
89 | - total_ram = get_total_ram(); | ||
90 | - | ||
91 | - while (1) | ||
92 | - { | ||
93 | - printf("当前进程pid号%d\n",pid); | ||
94 | - | ||
95 | - // 获取当前进程的内存使用量 | ||
96 | - current_rss = get_current_rss(pid); | ||
97 | - | ||
98 | - // 计算内存百分比 | ||
99 | - if (total_ram > 0) | ||
100 | - { | ||
101 | - memory_percentage = (double)current_rss / total_ram * 100; | ||
102 | - } else { | ||
103 | - memory_percentage = 0; | ||
104 | - } | ||
105 | - | ||
106 | - // 打印结果 | ||
107 | - printf("Program current memory usage: %lld KB\n", current_rss); | ||
108 | - JZSDK_LOG_INFO("Monitor:(%.2f%% of total RAM)", memory_percentage); | ||
109 | - | ||
110 | - delayS(10); | ||
111 | - } | ||
112 | -} | ||
113 | - | ||
114 | - | ||
115 | - | ||
116 | -static int Log_Monitor() | ||
117 | -{ | ||
118 | - pthread_t work_mode_task; | ||
119 | - pthread_attr_t task_attribute; //线程属性 | ||
120 | - pthread_attr_init(&task_attribute); //初始化线程属性 | ||
121 | - pthread_attr_setdetachstate(&task_attribute, PTHREAD_CREATE_DETACHED); //设置线程属性 | ||
122 | - int timer = pthread_create(&work_mode_task,&task_attribute,MonitorTask,NULL); //线程 | ||
123 | - if(timer != 0) | ||
124 | - { | ||
125 | - printf("创建计时线程失败!\n"); | ||
126 | - } | ||
127 | -} | ||
128 | - | ||
129 | -T_JZsdkReturnCode createJZLOGFolder() | ||
130 | -{ | ||
131 | - const char *path = "/root/sdcard/JZLOG"; | ||
132 | - | ||
133 | - // 使用系统命令检测路径是否存在 | ||
134 | - if(JZsdk_check_directory_exists_posix(path) == JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
135 | - { | ||
136 | - return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
137 | - } | ||
138 | - else | ||
139 | - { | ||
140 | - JZsdk_Osal_Mkdir(path); | ||
141 | - return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
142 | - } | ||
143 | -} | ||
144 | - | ||
145 | -int ReadLogNumFromFile() | ||
146 | -{ | ||
147 | - const char *path = JZSDK_LOG_INDEX_FILE_NAME; | ||
148 | - int logNum = 0; | ||
149 | - | ||
150 | - FILE *file = fopen(path, "r"); | ||
151 | - if (file == NULL) | ||
152 | - { | ||
153 | - // 如果文件不存在,则创建并设置LogNum为0 | ||
154 | - file = fopen(path, "w"); | ||
155 | - fprintf(file, "%d", logNum); | ||
156 | - } | ||
157 | - else | ||
158 | - { | ||
159 | - // 从文件中读取LogNum,并自增1 | ||
160 | - fscanf(file, "%d", &logNum); | ||
161 | - logNum++; | ||
162 | - fclose(file); | ||
163 | - | ||
164 | - // 将新的LogNum写回文件中 | ||
165 | - file = fopen(path, "w"); | ||
166 | - fprintf(file, "%d", logNum); | ||
167 | - } | ||
168 | - fclose(file); | ||
169 | - | ||
170 | - return logNum; | ||
171 | -} | ||
172 | - | ||
173 | -T_JZsdkReturnCode JZsdk_LoggerInit() | 12 | +T_JZsdkReturnCode JZsdk_Logger_AddPrintConsole(T_JZsdkLoggerConsole *console) |
174 | { | 13 | { |
175 | - int ret; | ||
176 | - unsigned int logFileIndex = 0; | ||
177 | - unsigned int currentLogFileIndex; | ||
178 | - | ||
179 | - JZsdk_Osal_Mkdir(JZSDK_LOG_PATH); | ||
180 | - | ||
181 | - char systemCmd[64]; // 用于存储系统命令 | ||
182 | - | ||
183 | - char folderName[JZSDK_FILE_NAME_SIZE_MAX]; | ||
184 | - | ||
185 | - time_t currentTime = time(NULL); | ||
186 | - struct tm *localTime = localtime(¤tTime); | ||
187 | - | ||
188 | - if (localTime == NULL) { | ||
189 | - printf("Get local time error.\r\n"); | ||
190 | - return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
191 | - } | ||
192 | - | ||
193 | - if (access(JZSDK_LOG_NAME, F_OK) != 0) { | ||
194 | - sprintf(folderName, "mkdir %s", JZSDK_LOG_NAME); | ||
195 | - ret = system(folderName); | ||
196 | - if (ret != 0) { | ||
197 | - return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
198 | - } | ||
199 | - } | ||
200 | - | ||
201 | - logFileCnt = fopen(JZSDK_LOG_INDEX_FILE_NAME, "rb+"); | ||
202 | - if (logFileCnt == NULL) | 14 | + if (console == NULL) |
203 | { | 15 | { |
204 | - logFileCnt = fopen(JZSDK_LOG_INDEX_FILE_NAME, "wb+"); | ||
205 | - if (logFileCnt == NULL) | ||
206 | - { | ||
207 | - return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
208 | - } | ||
209 | - } | ||
210 | - else | ||
211 | - { | ||
212 | - ret = fseek(logFileCnt, 0, SEEK_SET); | ||
213 | - if (ret != 0) | ||
214 | - { | ||
215 | - printf("Seek log count file error, ret: %d\r\n", ret); | ||
216 | - return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
217 | - } | ||
218 | - | ||
219 | - ret = fread((uint16_t *) &logFileIndex, 1, sizeof(uint16_t), logFileCnt); | ||
220 | - if (ret != sizeof(uint16_t)) | ||
221 | - { | ||
222 | - printf("Read log file index error.\r\n"); | ||
223 | - } | 16 | + printf("JZsdk_Logger_AddPrintConsole: Invalid parameter\n"); |
17 | + return JZ_ERROR_SYSTEM_MODULE_CODE_INVALID_PARAMETER; | ||
224 | } | 18 | } |
225 | 19 | ||
226 | - currentLogFileIndex = logFileIndex; | ||
227 | - logFileIndex++; | ||
228 | - | ||
229 | - ret = fseek(logFileCnt, 0, SEEK_SET); | ||
230 | - if (ret != 0) | ||
231 | - { | ||
232 | - printf("Seek log file error, ret: %d\r\n", ret); | ||
233 | - return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
234 | - } | ||
235 | - | ||
236 | - ret = fwrite((unsigned int *) &logFileIndex, 1, sizeof(unsigned int), logFileCnt); | ||
237 | - if (ret != sizeof(unsigned int)) | ||
238 | - { | ||
239 | - printf("Write log file index error.\r\n"); | ||
240 | - fclose(logFileCnt); | ||
241 | - return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
242 | - } | ||
243 | - | ||
244 | - fclose(logFileCnt); | ||
245 | - | ||
246 | - //filePath : /root/sdcard/Logs/_%04d_%04d%02d%02d_%02d-%02d-%02d.log | ||
247 | - sprintf(logFilePath, "%s%04d_%04d%02d%02d_%02d-%02d-%02d.log", JZSDK_LOG_PATH, currentLogFileIndex, | ||
248 | - localTime->tm_year + 1900, localTime->tm_mon + 1, localTime->tm_mday, | ||
249 | - localTime->tm_hour, localTime->tm_min, localTime->tm_sec); | ||
250 | - | ||
251 | - logFile = fopen(logFilePath, "wb+"); | ||
252 | - if (logFile == NULL) | ||
253 | - { | ||
254 | - printf("Open filepath time error."); | ||
255 | - return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
256 | - } | ||
257 | - | ||
258 | - if (logFileIndex >= JZSDK_LOG_MAX_COUNT) | ||
259 | - { | ||
260 | - sprintf(systemCmd, "rm -rf %s_%04d*.log", JZSDK_LOG_PATH, currentLogFileIndex - JZSDK_LOG_MAX_COUNT); | ||
261 | - ret = system(systemCmd); | ||
262 | - if (ret != 0) { | ||
263 | - printf("Remove file error, ret:%d.\r\n", ret); | ||
264 | - return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
265 | - } | ||
266 | - } | ||
267 | - | ||
268 | - sprintf(systemCmd, "ln -sfrv %s " JZSDK_LOG_NAME "/latest.log", logFilePath); | ||
269 | - system(systemCmd); | ||
270 | - | ||
271 | - | ||
272 | - //打开初始化完成的flag | ||
273 | - Logger_init_flag = JZ_FLAGCODE_ON; | ||
274 | - | ||
275 | - //设立监控 | ||
276 | - Log_Monitor(); | ||
277 | - | ||
278 | - JZSDK_LOG_INFO("%s", logFilePath); | ||
279 | - | ||
280 | - JZSDK_LOG_INFO("log初始化完成"); | ||
281 | - | 20 | + UserLogPrintConsole = (T_JZsdkLoggerConsole *)malloc(sizeof(T_JZsdkLoggerConsole)); |
21 | + memcpy(UserLogPrintConsole, console, sizeof(T_JZsdkLoggerConsole)); | ||
282 | return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | 22 | return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; |
283 | } | 23 | } |
284 | 24 | ||
285 | -T_JZsdkReturnCode JZsdk_LoggerDeInit() | ||
286 | -{ | ||
287 | - if (logFile != NULL) | ||
288 | - { | ||
289 | - fclose(logFile); | ||
290 | - } | ||
291 | -} | ||
292 | - | ||
293 | -T_JZsdkReturnCode writeToLogFile(const char *data) | 25 | +T_JZsdkReturnCode JZsdk_Logger_AddRecordConsole(T_JZsdkLoggerConsole *console) |
294 | { | 26 | { |
295 | - if (logFile == NULL) | 27 | + if (console == NULL) |
296 | { | 28 | { |
297 | - return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | 29 | + printf("JZsdk_Logger_AddRecordConsole: Invalid parameter\n"); |
30 | + return JZ_ERROR_SYSTEM_MODULE_CODE_INVALID_PARAMETER; | ||
298 | } | 31 | } |
299 | 32 | ||
300 | - fprintf(logFile, "%s", data); // 写入新的数据 | ||
301 | - fflush(logFile); | ||
302 | -} | ||
303 | - | ||
304 | -T_JZsdkReturnCode HexToLogFile(const char *data) | ||
305 | -{ | ||
306 | - if (logFile == NULL) | ||
307 | - { | ||
308 | - return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
309 | - } | ||
310 | - | ||
311 | - fprintf(logFile, "%x ", data[0]); // 写入新的数据 | ||
312 | - fflush(logFile); | 33 | + UserLogRecordConsole = (T_JZsdkLoggerConsole *)malloc(sizeof(T_JZsdkLoggerConsole)); |
34 | + memcpy(UserLogRecordConsole, console, sizeof(T_JZsdkLoggerConsole)); | ||
35 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
313 | } | 36 | } |
314 | 37 | ||
315 | - | ||
316 | -void JZsdk_UserLogOutput(E_JZsdkConsoleLogLevel level, const char *fmt, ...) | 38 | +void JZsdk_UserLogOutput(E_JZsdkConsoleLogLevel level, const char *fmt, ...) |
317 | { | 39 | { |
318 | // 将日志级别转换为相应的字符串 | 40 | // 将日志级别转换为相应的字符串 |
319 | const char *JZSDK_LOGGER_CONSOLE_LOG_LEVEL = ""; | 41 | const char *JZSDK_LOGGER_CONSOLE_LOG_LEVEL = ""; |
@@ -333,79 +55,73 @@ void JZsdk_UserLogOutput(E_JZsdkConsoleLogLevel level, const char *fmt, ...) | @@ -333,79 +55,73 @@ void JZsdk_UserLogOutput(E_JZsdkConsoleLogLevel level, const char *fmt, ...) | ||
333 | default: | 55 | default: |
334 | break; | 56 | break; |
335 | } | 57 | } |
58 | + | ||
336 | // 使用可变参数处理传入的格式化字符串和可变参数 | 59 | // 使用可变参数处理传入的格式化字符串和可变参数 |
337 | va_list args; | 60 | va_list args; |
338 | va_start(args, fmt); | 61 | va_start(args, fmt); |
339 | 62 | ||
340 | //格式化日志消息 | 63 | //格式化日志消息 |
341 | - char logMessage[512]; | 64 | + JZ_U8 logMessage[256]; |
342 | memset(logMessage, 0, sizeof(logMessage)); | 65 | memset(logMessage, 0, sizeof(logMessage)); |
343 | vsnprintf(logMessage, sizeof(logMessage), fmt, args); | 66 | vsnprintf(logMessage, sizeof(logMessage), fmt, args); |
344 | - | ||
345 | va_end(args); | 67 | va_end(args); |
346 | 68 | ||
347 | - struct timeval current_time; | ||
348 | - gettimeofday(¤t_time, 0); | 69 | + //获取当前的时间 |
70 | + JZ_U64 current_time = 0; | ||
71 | + T_JZsdkOsalHandler *osalHandle = JZsdk_Platform_GetOsalHandler(); | ||
72 | + if (osalHandle != NULL) | ||
73 | + { | ||
74 | + osalHandle->GetTimeUs(¤t_time); | ||
75 | + } | ||
349 | 76 | ||
350 | - long seconds = current_time.tv_sec - g_start_time.tv_sec; | ||
351 | - long microseconds = current_time.tv_usec - g_start_time.tv_usec; | ||
352 | - double elapsed = seconds + microseconds*1e-6; | 77 | + JZ_F64 elapsed = current_time / 1000000.0; |
353 | 78 | ||
354 | // 执行具体的日志输出操作 | 79 | // 执行具体的日志输出操作 |
355 | - char finalLogMessage[612]; | 80 | + JZ_U8 finalLogMessage[300]; |
356 | memset(finalLogMessage, 0, sizeof(finalLogMessage)); | 81 | memset(finalLogMessage, 0, sizeof(finalLogMessage)); |
357 | - snprintf(finalLogMessage, 612, "[%s][%.4f]%s\n", JZSDK_LOGGER_CONSOLE_LOG_LEVEL, elapsed, logMessage); | ||
358 | 82 | ||
359 | - printf("%s",finalLogMessage); | 83 | + snprintf(finalLogMessage, 300, "[%s][%.4f]%s\n", JZSDK_LOGGER_CONSOLE_LOG_LEVEL, elapsed, logMessage); |
84 | + | ||
85 | + if (UserLogPrintConsole != NULL) | ||
86 | + { | ||
87 | + if (level <= UserLogPrintConsole->consoleLevel && UserLogPrintConsole->func != NULL) | ||
88 | + { | ||
89 | + UserLogPrintConsole->func(finalLogMessage, strlen(finalLogMessage)); | ||
90 | + } | ||
91 | + } | ||
92 | + else | ||
93 | + { | ||
94 | + printf("%s",finalLogMessage); | ||
95 | + } | ||
360 | 96 | ||
361 | - //写入日志 | ||
362 | - if (Logger_init_flag == JZ_FLAGCODE_ON && level <= LOG_GRADE) | 97 | + if (UserLogRecordConsole != NULL) |
363 | { | 98 | { |
364 | - writeToLogFile(finalLogMessage); | ||
365 | - } | 99 | + if(level <= UserLogRecordConsole->consoleLevel && UserLogRecordConsole->func != NULL) |
100 | + { | ||
101 | + UserLogRecordConsole->func(finalLogMessage, strlen(finalLogMessage)); | ||
102 | + } | ||
103 | + } | ||
104 | + | ||
105 | + return; | ||
366 | } | 106 | } |
367 | 107 | ||
368 | 108 | ||
369 | 109 | ||
370 | -void JZsdk_User_OutputHex(E_JZsdkConsoleLogLevel level, const char *fmt, ...) | ||
371 | -{ | ||
372 | - // 将日志级别转换为相应的字符串 | ||
373 | - const char *JZSDK_LOGGER_CONSOLE_LOG_LEVEL = ""; | ||
374 | - switch (level) { | ||
375 | - case JZSDK_LOGGER_CONSOLE_LOG_LEVEL_DEBUG: | ||
376 | - JZSDK_LOGGER_CONSOLE_LOG_LEVEL = "DEBUG"; | ||
377 | - break; | ||
378 | - case JZSDK_LOGGER_CONSOLE_LOG_LEVEL_INFO: | ||
379 | - JZSDK_LOGGER_CONSOLE_LOG_LEVEL = "INFO"; | ||
380 | - break; | ||
381 | - case JZSDK_LOGGER_CONSOLE_LOG_LEVEL_WARN: | ||
382 | - JZSDK_LOGGER_CONSOLE_LOG_LEVEL = "WARNING"; | ||
383 | - break; | ||
384 | - case JZSDK_LOGGER_CONSOLE_LOG_LEVEL_ERROR: | ||
385 | - JZSDK_LOGGER_CONSOLE_LOG_LEVEL = "ERROR"; | ||
386 | - break; | ||
387 | - default: | ||
388 | - break; | ||
389 | - } | ||
390 | - // 使用可变参数处理传入的格式化字符串和可变参数 | ||
391 | - va_list args; | ||
392 | - va_start(args, fmt); | ||
393 | 110 | ||
394 | - //格式化日志消息 | ||
395 | - char logMessage[10]; | ||
396 | - memset(logMessage, 0, sizeof(logMessage)); | ||
397 | - vsnprintf(logMessage, sizeof(logMessage), fmt, args); | ||
398 | 111 | ||
399 | - va_end(args); | ||
400 | 112 | ||
401 | - // 执行具体的日志输出操作 | ||
402 | - char finalLogMessage[512]; | ||
403 | - memset(finalLogMessage, 0, sizeof(finalLogMessage)); | ||
404 | - snprintf(finalLogMessage, 612, "%s", logMessage); | ||
405 | 113 | ||
406 | 114 | ||
407 | - printf("%x ",finalLogMessage[0]); | ||
408 | 115 | ||
409 | - //写入日志 | ||
410 | - HexToLogFile(finalLogMessage); | ||
411 | -} | ||
116 | + | ||
117 | + | ||
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | ||
122 | + | ||
123 | + | ||
124 | + | ||
125 | + | ||
126 | + | ||
127 | + |
1 | /** | 1 | /** |
2 | ******************************************************************** | 2 | ******************************************************************** |
3 | * @file JZsdk_Logger.h | 3 | * @file JZsdk_Logger.h |
4 | - * 用于给h150s logger显示文件 | 4 | + * |
5 | * | 5 | * |
6 | ********************************************************************* | 6 | ********************************************************************* |
7 | */ | 7 | */ |
@@ -17,8 +17,9 @@ | @@ -17,8 +17,9 @@ | ||
17 | extern "C" { | 17 | extern "C" { |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | -/* Exported constants --------------------------------------------------------*/ | ||
21 | -/* 常亮定义*/ | 20 | + |
21 | + | ||
22 | +/* Exported types ------------------------------------------------------------*/ | ||
22 | 23 | ||
23 | 24 | ||
24 | typedef enum { | 25 | typedef enum { |
@@ -39,13 +40,30 @@ typedef enum { | @@ -39,13 +40,30 @@ typedef enum { | ||
39 | method is lower than this level, the level interface will not be | 40 | method is lower than this level, the level interface will not be |
40 | printed successfully. */ | 41 | printed successfully. */ |
41 | } E_JZsdkConsoleLogLevel; | 42 | } E_JZsdkConsoleLogLevel; |
42 | -/* Exported types ------------------------------------------------------------*/ | ||
43 | 43 | ||
44 | +/** | ||
45 | +* @brief The console method that needs to be registered. | ||
46 | +* @note Before registering the console method, you need to test the methods that need to be registered to ensure | ||
47 | +* that they can be used normally. | ||
48 | +*/ | ||
49 | +typedef T_JZsdkReturnCode (*JZsdk_ConsoleFunc)(const JZ_U8 *data, JZ_U16 dataLen); | ||
50 | + | ||
51 | +/** | ||
52 | + * @brief Logger console content. | ||
53 | + */ | ||
54 | +typedef struct { | ||
55 | + JZsdk_ConsoleFunc func; | ||
56 | + JZ_U8 consoleLevel; | ||
57 | + bool isSupportColor; | ||
58 | +} T_JZsdkLoggerConsole; | ||
44 | 59 | ||
45 | /* Exported functions --------------------------------------------------------*/ | 60 | /* Exported functions --------------------------------------------------------*/ |
46 | void JZsdk_UserLogOutput(E_JZsdkConsoleLogLevel level, const char *fmt, ...); | 61 | void JZsdk_UserLogOutput(E_JZsdkConsoleLogLevel level, const char *fmt, ...); |
47 | -T_JZsdkReturnCode JZsdk_LoggerInit(); | ||
48 | void JZsdk_User_OutputHex(E_JZsdkConsoleLogLevel level, const char *fmt, ...); | 62 | void JZsdk_User_OutputHex(E_JZsdkConsoleLogLevel level, const char *fmt, ...); |
63 | +T_JZsdkReturnCode JZsdk_Logger_AddPrintConsole(T_JZsdkLoggerConsole *console); | ||
64 | +T_JZsdkReturnCode JZsdk_Logger_AddRecordConsole(T_JZsdkLoggerConsole *console); | ||
65 | + | ||
66 | +T_JZsdkReturnCode JZsdk_LoggerInit(); | ||
49 | 67 | ||
50 | /* Exported constants --------------------------------------------------------*/ | 68 | /* Exported constants --------------------------------------------------------*/ |
51 | #define JZSDK_LOG_DEBUG(fmt, ...) \ | 69 | #define JZSDK_LOG_DEBUG(fmt, ...) \ |
@@ -59,7 +77,6 @@ void JZsdk_User_OutputHex(E_JZsdkConsoleLogLevel level, const char *fmt, ...); | @@ -59,7 +77,6 @@ void JZsdk_User_OutputHex(E_JZsdkConsoleLogLevel level, const char *fmt, ...); | ||
59 | #define JZSDK_LOG_OUTPUTHEX(fmt, ...) \ | 77 | #define JZSDK_LOG_OUTPUTHEX(fmt, ...) \ |
60 | JZsdk_User_OutputHex(JZSDK_LOGGER_CONSOLE_LOG_LEVEL_INFO, "" fmt , ##__VA_ARGS__) | 78 | JZsdk_User_OutputHex(JZSDK_LOGGER_CONSOLE_LOG_LEVEL_INFO, "" fmt , ##__VA_ARGS__) |
61 | 79 | ||
62 | - | ||
63 | #ifdef __cplusplus | 80 | #ifdef __cplusplus |
64 | } | 81 | } |
65 | #endif | 82 | #endif |
1 | +#include "JZsdk_Logger.h" | ||
2 | +#include "JZsdkLib.h" | ||
3 | + | ||
4 | +#include <unistd.h> | ||
5 | +#include <time.h> | ||
6 | + | ||
7 | +#define JZSDK_LOG_PATH "/root/sdcard/JZLOG/" //sd卡存放路径 | ||
8 | +#define JZSDK_LOG_INDEX_PATH "/root/JZLOG/" //sd卡存放序号文件路径 | ||
9 | +#define JZSDK_LOG_INDEX_FILE_NAME "/root/JZLOG/thelast" //sd卡存放序号文件路径 | ||
10 | + | ||
11 | +#define JZ_LOG_FOLDER_NAME_MAX_SIZE (32) | ||
12 | +#define JZ_LOG_MAX_COUNT (10) | ||
13 | +#define JZ_SYSTEM_CMD_STR_MAX_SIZE (64) | ||
14 | +#define JZSDK_LOG_MAX_COUNT 20 | ||
15 | + | ||
16 | +#define LOG_GRADE JZSDK_LOGGER_CONSOLE_LOG_LEVEL_INFO //日志等级! | ||
17 | + | ||
18 | + | ||
19 | +/* 全局变量 ------------------------------------------------------------------*/ | ||
20 | +static struct timeval g_start_time; | ||
21 | +static FILE *logFile = NULL; | ||
22 | +static FILE *logFileCnt = NULL; | ||
23 | +static int Logger_init_flag = JZ_FLAGCODE_OFF; | ||
24 | + | ||
25 | +/* 函数声明 ------------------------------------------------------------------*/ | ||
26 | + | ||
27 | + | ||
28 | +static T_JZsdkReturnCode createJZLOGFolder() | ||
29 | +{ | ||
30 | + // 使用系统命令检测路径是否存在 | ||
31 | + if(JZsdk_check_directory_exists_posix(JZSDK_LOG_PATH) != JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
32 | + { | ||
33 | + JZsdk_Osal_Mkdir(JZSDK_LOG_PATH); | ||
34 | + } | ||
35 | + | ||
36 | + if(JZsdk_check_directory_exists_posix(JZSDK_LOG_INDEX_PATH) != JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
37 | + { | ||
38 | + JZsdk_Osal_Mkdir(JZSDK_LOG_INDEX_PATH); | ||
39 | + } | ||
40 | + | ||
41 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
42 | +} | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | +static T_JZsdkReturnCode JzUser_PrintConsole(const JZ_U8 *data, JZ_U16 dataLen) | ||
47 | +{ | ||
48 | + dataLen = dataLen; | ||
49 | + | ||
50 | + printf("%s", data); | ||
51 | + | ||
52 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
53 | +} | ||
54 | + | ||
55 | +static T_JZsdkReturnCode JzUser_LocalWrite(const JZ_U8 *data, JZ_U16 dataLen) | ||
56 | +{ | ||
57 | + JZ_U32 realLen; | ||
58 | + | ||
59 | + if (logFile == NULL) | ||
60 | + { | ||
61 | + return JZ_ERROR_SYSTEM_MODULE_CODE_INVALID_PARAMETER; | ||
62 | + } | ||
63 | + | ||
64 | + realLen = fwrite(data, 1, dataLen, logFile); | ||
65 | + fflush(logFile); | ||
66 | + if (realLen == dataLen) | ||
67 | + { | ||
68 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
69 | + } | ||
70 | + else | ||
71 | + { | ||
72 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
73 | + } | ||
74 | +} | ||
75 | + | ||
76 | +static T_JZsdkReturnCode JzUser_LocalWriteFsInit(const JZ_U8 *path) | ||
77 | +{ | ||
78 | + JZ_U8 filePath[JZSDK_FILE_PATH_SIZE_MAX]; | ||
79 | + JZ_U8 systemCmd[JZ_SYSTEM_CMD_STR_MAX_SIZE]; | ||
80 | + JZ_U8 folderName[JZ_LOG_FOLDER_NAME_MAX_SIZE]; | ||
81 | + time_t currentTime = time(NULL); | ||
82 | + struct tm *localTime = localtime(¤tTime); | ||
83 | + uint16_t logFileIndex = 0; | ||
84 | + uint16_t currentLogFileIndex; | ||
85 | + uint8_t ret; | ||
86 | + | ||
87 | + | ||
88 | + if (localTime == NULL) | ||
89 | + { | ||
90 | + printf("Get local time error.\r\n"); | ||
91 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
92 | + } | ||
93 | + | ||
94 | + logFileCnt = fopen(JZSDK_LOG_INDEX_FILE_NAME, "rb+"); | ||
95 | + if (logFileCnt == NULL) | ||
96 | + { | ||
97 | + logFileCnt = fopen(JZSDK_LOG_INDEX_FILE_NAME, "wb+"); | ||
98 | + if (logFileCnt == NULL) | ||
99 | + { | ||
100 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
101 | + } | ||
102 | + } | ||
103 | + else | ||
104 | + { | ||
105 | + ret = fseek(logFileCnt, 0, SEEK_SET); | ||
106 | + if (ret != 0) | ||
107 | + { | ||
108 | + printf("Seek log count file error.\r\n"); | ||
109 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
110 | + } | ||
111 | + | ||
112 | + ret = fread((uint16_t *) &logFileIndex, 1, sizeof(uint16_t), logFileCnt); | ||
113 | + if (ret != sizeof(uint16_t)) | ||
114 | + { | ||
115 | + printf("Read log file index error.\r\n"); | ||
116 | + } | ||
117 | + } | ||
118 | + | ||
119 | + currentLogFileIndex = logFileIndex; | ||
120 | + logFileIndex++; | ||
121 | + | ||
122 | + ret = fseek(logFileCnt, 0, SEEK_SET); | ||
123 | + if (ret != 0) { | ||
124 | + printf("Seek log file error, ret: %d\r\n", ret); | ||
125 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
126 | + } | ||
127 | + | ||
128 | + ret = fwrite((uint16_t *) &logFileIndex, 1, sizeof(uint16_t), logFileCnt); | ||
129 | + if (ret != sizeof(uint16_t)) { | ||
130 | + printf("Write log file index error.\r\n"); | ||
131 | + fclose(logFileCnt); | ||
132 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
133 | + } | ||
134 | + | ||
135 | + fclose(logFileCnt); | ||
136 | + | ||
137 | + //移除sd卡的计数文件 | ||
138 | + memset(systemCmd, 0, sizeof(systemCmd)); | ||
139 | + sprintf(systemCmd, "rm -f %sthelast", JZSDK_LOG_PATH); | ||
140 | + ret = system(systemCmd); | ||
141 | + if (ret != 0) { | ||
142 | + JZSDK_LOG_ERROR("Remove file error, ret:%d.\r\n", ret); | ||
143 | + } | ||
144 | + | ||
145 | + //复制日志计数文件到sd卡 | ||
146 | + memset(systemCmd, 0, sizeof(systemCmd)); | ||
147 | + sprintf(systemCmd, "cp %s %s", JZSDK_LOG_INDEX_FILE_NAME, JZSDK_LOG_PATH); | ||
148 | + ret = system(systemCmd); | ||
149 | + if (ret != 0) { | ||
150 | + JZSDK_LOG_ERROR("Copy file error, ret:%d.\r\n", ret); | ||
151 | + } | ||
152 | + | ||
153 | + //开始打开log文件 | ||
154 | + sprintf(filePath, "%s_%04d_%04d%02d%02d_%02d-%02d-%02d.log", path, currentLogFileIndex, | ||
155 | + localTime->tm_year + 1900, localTime->tm_mon + 1, localTime->tm_mday, | ||
156 | + localTime->tm_hour, localTime->tm_min, localTime->tm_sec); | ||
157 | + | ||
158 | + logFile = fopen(filePath, "wb+"); | ||
159 | + if (logFile == NULL) { | ||
160 | + JZSDK_LOG_ERROR("Open filepath time error."); | ||
161 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
162 | + } | ||
163 | + | ||
164 | + if (logFileIndex >= JZ_LOG_MAX_COUNT) | ||
165 | + { | ||
166 | + //把多余的日志删除 | ||
167 | + sprintf(systemCmd, "rm -rf %s_%04d*.log", path, currentLogFileIndex - JZ_LOG_MAX_COUNT); | ||
168 | + ret = system(systemCmd); | ||
169 | + if (ret != 0) { | ||
170 | + printf("Remove file error, ret:%d.\r\n", ret); | ||
171 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
172 | + } | ||
173 | + } | ||
174 | + | ||
175 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
176 | +} | ||
177 | + | ||
178 | +T_JZsdkReturnCode JZsdk_LoggerInit() | ||
179 | +{ | ||
180 | + T_JZsdkReturnCode ReturnCode; | ||
181 | + unsigned int logFileIndex = 0; | ||
182 | + unsigned int currentLogFileIndex; | ||
183 | + | ||
184 | + | ||
185 | + T_JZsdkLoggerConsole printfConsole = { | ||
186 | + .func = JzUser_PrintConsole, | ||
187 | + .consoleLevel = JZSDK_LOGGER_CONSOLE_LOG_LEVEL_DEBUG, | ||
188 | + .isSupportColor = true, | ||
189 | + }; | ||
190 | + | ||
191 | + T_JZsdkLoggerConsole localRecordConsole = { | ||
192 | + .func = JzUser_LocalWrite, | ||
193 | + .consoleLevel = JZSDK_LOGGER_CONSOLE_LOG_LEVEL_INFO, | ||
194 | + .isSupportColor = true, | ||
195 | + }; | ||
196 | + | ||
197 | + //1、检测日志文件夹是否存在,不存在则创建 | ||
198 | + ReturnCode = createJZLOGFolder(); | ||
199 | + if(ReturnCode != JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
200 | + { | ||
201 | + printf("createJZLOGFolder error\n"); | ||
202 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
203 | + } | ||
204 | + | ||
205 | + ReturnCode = JzUser_LocalWriteFsInit(JZSDK_LOG_PATH); | ||
206 | + if(ReturnCode != JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
207 | + { | ||
208 | + printf("file system init error\n"); | ||
209 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
210 | + } | ||
211 | + | ||
212 | + ReturnCode = JZsdk_Logger_AddPrintConsole(&printfConsole); | ||
213 | + if (ReturnCode != JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
214 | + { | ||
215 | + printf("JZsdk Logger AddPrintConsole error\n"); | ||
216 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
217 | + } | ||
218 | + | ||
219 | + ReturnCode = JZsdk_Logger_AddRecordConsole(&localRecordConsole); | ||
220 | + if (ReturnCode != JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
221 | + { | ||
222 | + printf("JZsdk Logger AddRecordConsole error\n"); | ||
223 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
224 | + } | ||
225 | + | ||
226 | + //设立监控 | ||
227 | + JZsdk_Log_Monitor_Init(); | ||
228 | + | ||
229 | + JZSDK_LOG_INFO("Log init success."); | ||
230 | + | ||
231 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
232 | +} | ||
233 | + | ||
234 | +T_JZsdkReturnCode JZsdk_LoggerDeInit() | ||
235 | +{ | ||
236 | + if (logFile != NULL) | ||
237 | + { | ||
238 | + fclose(logFile); | ||
239 | + logFile = NULL; | ||
240 | + } | ||
241 | + | ||
242 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
243 | +} |
1 | +#include "JZsdkLib.h" | ||
2 | +#include "./JZsdk_monitor.h" | ||
3 | +#include <pthread.h> | ||
4 | + | ||
5 | +static long long get_total_ram() | ||
6 | +{ | ||
7 | + FILE *file; | ||
8 | + char line[128]; | ||
9 | + long long total_ram = 0; | ||
10 | + | ||
11 | + file = fopen("/proc/meminfo", "r"); | ||
12 | + if (!file) { | ||
13 | + perror("Error opening /proc/meminfo"); | ||
14 | + return 0; | ||
15 | + } | ||
16 | + | ||
17 | + while (fgets(line, sizeof(line), file)) { | ||
18 | + if (strncmp(line, "MemTotal:", 9) == 0) { | ||
19 | + sscanf(line, "MemTotal: %lld kB", &total_ram); | ||
20 | + break; | ||
21 | + } | ||
22 | + } | ||
23 | + | ||
24 | + fclose(file); | ||
25 | + return total_ram; | ||
26 | +} | ||
27 | + | ||
28 | +static long long get_current_rss(pid_t pid) | ||
29 | +{ | ||
30 | + FILE *file; | ||
31 | + char line[128]; | ||
32 | + long long vmrss = 0; | ||
33 | + | ||
34 | + char path[64]; | ||
35 | + snprintf(path, sizeof(path), "/proc/%d/status", pid); | ||
36 | + | ||
37 | + file = fopen(path, "r"); | ||
38 | + if (!file) { | ||
39 | + perror("Error opening /proc/[pid]/status"); | ||
40 | + return 0; | ||
41 | + } | ||
42 | + | ||
43 | + while (fgets(line, sizeof(line), file)) { | ||
44 | + if (strncmp(line, "VmRSS:", 6) == 0) { | ||
45 | + sscanf(line, "VmRSS: %lld kB", &vmrss); | ||
46 | + break; | ||
47 | + } | ||
48 | + } | ||
49 | + | ||
50 | + fclose(file); | ||
51 | + return vmrss; | ||
52 | +} | ||
53 | + | ||
54 | +static void *MonitorTask(void *arg) | ||
55 | +{ | ||
56 | + //获取程序的pid号 | ||
57 | + pid_t pid = getpid(); // 获取当前进程的 PID | ||
58 | + long long total_ram; //最大ram内存 | ||
59 | + long long current_rss; //RSS内存 | ||
60 | + double memory_percentage; //内存百分比 | ||
61 | + | ||
62 | + // 获取系统总 RAM | ||
63 | + total_ram = get_total_ram(); | ||
64 | + | ||
65 | + while (1) | ||
66 | + { | ||
67 | + printf("当前进程pid号%d\n",pid); | ||
68 | + | ||
69 | + // 获取当前进程的内存使用量 | ||
70 | + current_rss = get_current_rss(pid); | ||
71 | + | ||
72 | + // 计算内存百分比 | ||
73 | + if (total_ram > 0) | ||
74 | + { | ||
75 | + memory_percentage = (double)current_rss / total_ram * 100; | ||
76 | + } else { | ||
77 | + memory_percentage = 0; | ||
78 | + } | ||
79 | + | ||
80 | + // 打印结果 | ||
81 | + printf("Program current memory usage: %lld KB\n", current_rss); | ||
82 | + JZSDK_LOG_INFO("Monitor:(%.2f%% of total RAM)", memory_percentage); | ||
83 | + | ||
84 | + delayS(10); | ||
85 | + } | ||
86 | +} | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | +T_JZsdkReturnCode JZsdk_Log_Monitor_Init() | ||
91 | +{ | ||
92 | + pthread_t work_mode_task; | ||
93 | + pthread_attr_t task_attribute; //线程属性 | ||
94 | + pthread_attr_init(&task_attribute); //初始化线程属性 | ||
95 | + pthread_attr_setdetachstate(&task_attribute, PTHREAD_CREATE_DETACHED); //设置线程属性 | ||
96 | + int timer = pthread_create(&work_mode_task,&task_attribute,MonitorTask,NULL); //线程 | ||
97 | + if(timer != 0) | ||
98 | + { | ||
99 | + printf("创建计时线程失败!\n"); | ||
100 | + } | ||
101 | + | ||
102 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
103 | +} |
1 | +/** | ||
2 | + ******************************************************************** | ||
3 | + * @file JZsdk_monitor.h | ||
4 | + * | ||
5 | + * | ||
6 | + ********************************************************************* | ||
7 | + */ | ||
8 | + | ||
9 | +/* Define to prevent recursive inclusion 避免重定义 -------------------------------------*/ | ||
10 | +#ifndef JZSDK_MONITOR_H | ||
11 | +#define JZSDK_MONITOR_H | ||
12 | + | ||
13 | +/* Includes ------------------------------------------------------------------*/ | ||
14 | +#include "JZsdk_Base/JZsdk_Code/JZsdk_Code.h" | ||
15 | + | ||
16 | +#ifdef __cplusplus | ||
17 | +extern "C" { | ||
18 | +#endif | ||
19 | + | ||
20 | +/* Exported constants --------------------------------------------------------*/ | ||
21 | +/* 常亮定义*/ | ||
22 | + | ||
23 | + | ||
24 | +/* Exported types ------------------------------------------------------------*/ | ||
25 | + | ||
26 | + | ||
27 | +/* Exported functions --------------------------------------------------------*/ | ||
28 | +T_JZsdkReturnCode JZsdk_Log_Monitor_Init(); | ||
29 | + | ||
30 | +/* Exported constants --------------------------------------------------------*/ | ||
31 | + | ||
32 | + | ||
33 | +#ifdef __cplusplus | ||
34 | +} | ||
35 | +#endif | ||
36 | + | ||
37 | +#endif | ||
38 | +/************************ (C) COPYRIGHT JZSDK Innovations *******END OF FILE******/ |
@@ -316,6 +316,10 @@ static T_JZsdkReturnCode DeviceSample_init(int mode) | @@ -316,6 +316,10 @@ static T_JZsdkReturnCode DeviceSample_init(int mode) | ||
316 | JZC1_Init(mode); | 316 | JZC1_Init(mode); |
317 | #endif | 317 | #endif |
318 | 318 | ||
319 | + //萨特相机加载 | ||
320 | + #if DEVICE_VERSION == JZ_ST | ||
321 | + JZ_ST_Init(mode); | ||
322 | + #endif | ||
319 | } | 323 | } |
320 | 324 | ||
321 | 325 |
@@ -199,7 +199,24 @@ extern "C" { | @@ -199,7 +199,24 @@ extern "C" { | ||
199 | #define UART_DEV1_BITRATE (115200) | 199 | #define UART_DEV1_BITRATE (115200) |
200 | 200 | ||
201 | #define UART_DEV2_NUM NULL | 201 | #define UART_DEV2_NUM NULL |
202 | - #define UART_DEV2_BITRATE (115200) | 202 | + #define UART_DEV2_BITRATE (0) |
203 | + | ||
204 | + #define COMM_4G_UART_NUM NULL | ||
205 | + #define COMM_4G_UART_BITRATE (0) | ||
206 | + | ||
207 | + #define GIMBAL_UART_NUM NULL | ||
208 | + #define GIMBAL_UART_BITRATE (0) | ||
209 | + | ||
210 | + #define NET_WORK_IPADDR "192.168.5.3" | ||
211 | + #define NET_WORK_TARGET_IPADDR "192.168.5.10" | ||
212 | + #define NET_WORK_NETMASK "255.255.255.0" | ||
213 | + | ||
214 | +#elif DEVICE_VERSION == JZ_ST | ||
215 | + #define UART_DEV1_NUM "/dev/ttyS6" | ||
216 | + #define UART_DEV1_BITRATE (115200) | ||
217 | + | ||
218 | + #define UART_DEV2_NUM NULL | ||
219 | + #define UART_DEV2_BITRATE (0) | ||
203 | 220 | ||
204 | #define COMM_4G_UART_NUM NULL | 221 | #define COMM_4G_UART_NUM NULL |
205 | #define COMM_4G_UART_BITRATE (0) | 222 | #define COMM_4G_UART_BITRATE (0) |
@@ -26,6 +26,7 @@ | @@ -26,6 +26,7 @@ | ||
26 | #include "DeviceSample/JZ_U3_series/JZ_U30/JZ_u30.h" | 26 | #include "DeviceSample/JZ_U3_series/JZ_U30/JZ_u30.h" |
27 | 27 | ||
28 | #include "DeviceSample/JZC1/JZC1.h" | 28 | #include "DeviceSample/JZC1/JZC1.h" |
29 | +#include "DeviceSample/JZ_ST/JZ_ST.h" | ||
29 | 30 | ||
30 | #include "TF_A1/TF_a1.h" | 31 | #include "TF_A1/TF_a1.h" |
31 | 32 |
1 | -// #include "JZsdkLib.h" | ||
2 | -// #include "BaseConfig.h" | ||
3 | -// #include <pthread.h> | ||
4 | -// #include <math.h> | 1 | +#include "JZsdkLib.h" |
2 | +#include "BaseConfig.h" | ||
3 | +#include <pthread.h> | ||
4 | +#include <math.h> | ||
5 | 5 | ||
6 | -// #include "IRCUT/ircut.h" | 6 | +#include "IRCUT/ircut.h" |
7 | 7 | ||
8 | -// #include "MediaProc/IRC_funtion/SatIrcLibProc/Sat_Irc.h" | 8 | +#include "MediaProc/IRC_funtion/SatIrcLibProc/Sat_Irc.h" |
9 | 9 | ||
10 | -// #ifdef RTK_MPP_STATUS_ON | ||
11 | -// #include "MediaProc/MultProc/RTK_mmp/RTK_mmp.h" | ||
12 | -// #include "MediaProc/MultProc/RTK_mmp/Dec/RTK_mmp_dec.h" | ||
13 | -// #include "MediaProc/MultProc/RTK_mmp/Enc/RTK_mmp_enc.h" | ||
14 | -// #include "MediaProc/Camera/Camera.h" | 10 | +#ifdef RTK_MPP_STATUS_ON |
11 | +#include "MediaProc/MultProc/RTK_mmp/RTK_mmp.h" | ||
12 | +#include "MediaProc/MultProc/RTK_mmp/Dec/RTK_mmp_dec.h" | ||
13 | +#include "MediaProc/MultProc/RTK_mmp/Enc/RTK_mmp_enc.h" | ||
14 | +#include "MediaProc/Camera/Camera.h" | ||
15 | 15 | ||
16 | -// #ifdef RTK_RGA_STATUS_ON | 16 | +#endif |
17 | 17 | ||
18 | -// #include "MediaProc/RgaProc/RK_Rga/RK_Rga.h" | 18 | +#ifdef RTK_RGA_STATUS_ON |
19 | 19 | ||
20 | -// #endif | 20 | +#include "MediaProc/RgaProc/RK_Rga/RK_Rga.h" |
21 | 21 | ||
22 | -// #include "MediaProc/MediaProc.h" | ||
23 | -// #include "UI_control/UI_control.h" | ||
24 | -// #include "CommonMod/PowerManger/PowerManger.h" | 22 | +#endif |
25 | 23 | ||
26 | -// typedef struct ST_RgaInfo | ||
27 | -// { | ||
28 | -// //源图像 | ||
29 | -// RK_RgaImage *src_img; | 24 | +#include "MediaProc/MediaProc.h" |
25 | +#include "UI_control/UI_control.h" | ||
26 | +#include "CommonMod/PowerManger/PowerManger.h" | ||
30 | 27 | ||
31 | -// //裁剪图像 | ||
32 | -// RK_RgaImage *corp_img; | 28 | +typedef struct ST_RgaInfo |
29 | +{ | ||
30 | + //源图像 | ||
31 | + RK_RgaImage *src_img; | ||
33 | 32 | ||
34 | -// //目标图像 | ||
35 | -// RK_RgaImage *dst_img; | 33 | + //裁剪图像 |
34 | + RK_RgaImage *corp_img; | ||
36 | 35 | ||
37 | -// //放大倍数 | ||
38 | -// int scale; | 36 | + //目标图像 |
37 | + RK_RgaImage *dst_img; | ||
39 | 38 | ||
40 | -// }ST_RgaInfo; | 39 | + //放大倍数 |
40 | + int scale; | ||
41 | 41 | ||
42 | +}ST_RgaInfo; | ||
42 | 43 | ||
43 | -// typedef struct T_JZST_info | ||
44 | -// { | ||
45 | -// /*************************************************************/ | ||
46 | -// //红外相机的编码器信息 | ||
47 | -// T_rtk_mmp_enc_info *IRC_enc_info; | ||
48 | 44 | ||
49 | -// //红外相机的rga信息 | ||
50 | -// ST_RgaInfo *IRC_rga_info; | 45 | +typedef struct T_JZST_info |
46 | +{ | ||
47 | +/*************************************************************/ | ||
48 | + //红外相机的编码器信息 | ||
49 | + T_rtk_mmp_enc_info *IRC_enc_info; | ||
51 | 50 | ||
52 | -// /*************************************************************/ | ||
53 | -// //光学相机的解码器信息 | ||
54 | -// T_rtk_mmp_dec_info *Opt_dec_info; | 51 | + //红外相机的rga信息 |
52 | + ST_RgaInfo *IRC_rga_info; | ||
55 | 53 | ||
56 | -// //光学相机的编码器信息 | ||
57 | -// T_rtk_mmp_enc_info *Opt_enc_info; | 54 | +/*************************************************************/ |
55 | + //光学相机的解码器信息 | ||
56 | + T_rtk_mmp_dec_info *Opt_dec_info; | ||
58 | 57 | ||
59 | -// //光学相机的相机信息 | ||
60 | -// JZsdk_CameraInfo *Opt_Camera_info; | 58 | + //光学相机的编码器信息 |
59 | + T_rtk_mmp_enc_info *Opt_enc_info; | ||
61 | 60 | ||
62 | -// //光学相机的rga信息 | ||
63 | -// ST_RgaInfo *Opt_rga_info; | ||
64 | -// /*************************************************************/ | ||
65 | -// //融合相机的编码器信息 | ||
66 | -// T_rtk_mmp_enc_info *Fuse_enc_info; | 61 | + //光学相机的相机信息 |
62 | + JZsdk_CameraInfo *Opt_Camera_info; | ||
67 | 63 | ||
68 | -// }T_JZST_info; | 64 | + //光学相机的rga信息 |
65 | + ST_RgaInfo *Opt_rga_info; | ||
66 | +/*************************************************************/ | ||
67 | + //融合相机的编码器信息 | ||
68 | + T_rtk_mmp_enc_info *Fuse_enc_info; | ||
69 | 69 | ||
70 | +}T_JZST_info; | ||
70 | 71 | ||
71 | -// #define JZ__IRC_WIDTH 320 | ||
72 | -// #define JZ__IRC_HEIGHT 256 | ||
73 | -// #define JZ__IRC_FRAMERATE 25 | ||
74 | -// #define JZ__IRC_INDEX VIDEOMGMT_STREAMING_FLOW_INDEX_FIRST | ||
75 | -// #define JZ__IRC_BPS 4000000 | ||
76 | 72 | ||
73 | +#define JZ_IRC_WIDTH 320 | ||
74 | +#define JZ_IRC_HEIGHT 256 | ||
75 | +#define JZ_IRC_FRAMERATE 25 | ||
76 | +#define JZ_IRC_INDEX VIDEOMGMT_STREAMING_FLOW_INDEX_FIRST | ||
77 | +#define JZ_IRC_BPS 500000 | ||
77 | 78 | ||
78 | -// static T_JZST_info g_JZST_info; | ||
79 | 79 | ||
80 | +static T_JZST_info g_JZST_info; | ||
80 | 81 | ||
81 | 82 | ||
82 | -// T_JZsdkReturnCode JZST_SetNextFrame_IDR(unsigned int index) | ||
83 | -// { | ||
84 | -// if (index == JZ__IRC_INDEX) | ||
85 | -// { | ||
86 | -// RTK_mmp_enc_SetNextFrame_IDR(g_JZST_info.IRC_enc_info); | ||
87 | -// } | ||
88 | -// // else if (index == JZ_C1_OPT_INDEX) | ||
89 | -// // { | ||
90 | -// // RTK_mmp_enc_SetNextFrame_IDR(g_JZC1_info.Opt_enc_info); | ||
91 | -// // } | ||
92 | -// // else if (index == JZ_C1_FUSE_INDEX) | ||
93 | -// // { | ||
94 | -// // RTK_mmp_enc_SetNextFrame_IDR(g_JZC1_info.Fuse_enc_info); | ||
95 | -// // } | ||
96 | 83 | ||
97 | -// return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | 84 | +T_JZsdkReturnCode JZST_SetNextFrame_IDR(unsigned int index) |
85 | +{ | ||
86 | + if (index == JZ_IRC_INDEX) | ||
87 | + { | ||
88 | + RTK_mmp_enc_SetNextFrame_IDR(g_JZST_info.IRC_enc_info); | ||
89 | + } | ||
90 | + // else if (index == JZ_C1_OPT_INDEX) | ||
91 | + // { | ||
92 | + // RTK_mmp_enc_SetNextFrame_IDR(g_JZC1_info.Opt_enc_info); | ||
93 | + // } | ||
94 | + // else if (index == JZ_C1_FUSE_INDEX) | ||
95 | + // { | ||
96 | + // RTK_mmp_enc_SetNextFrame_IDR(g_JZC1_info.Fuse_enc_info); | ||
97 | + // } | ||
98 | + | ||
99 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
100 | + | ||
101 | +} | ||
102 | + | ||
103 | +//数据推送函数 | ||
104 | +static T_JZsdkReturnCode JZST_PushFrame(int CameraIndex, unsigned char* data, unsigned int data_len) | ||
105 | +{ | ||
106 | + int currentIndex = VideoMgmt_GetVideoStreamFlowIndexNum(); //获取当前视频流索引 | ||
107 | + //无视频流 | ||
108 | + if (currentIndex == 0) | ||
109 | + { | ||
110 | + //不推送视频 | ||
111 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
112 | + } | ||
113 | + | ||
114 | + //红外相机 | ||
115 | + if (currentIndex == JZ_IRC_INDEX && CameraIndex == JZ_IRC_INDEX) | ||
116 | + { | ||
117 | + | ||
118 | + //推送数据到流转模块 | ||
119 | + VideoMgmt_Single_FrameIn(data, data_len); | ||
120 | + } | ||
121 | + | ||
122 | + // //光学相机 | ||
123 | + // if(CameraIndex == JZ_C1_OPT_INDEX && currentIndex == JZ_C1_OPT_INDEX) | ||
124 | + // { | ||
125 | + // //推送数据到流转模块 | ||
126 | + // VideoMgmt_Single_FrameIn(data, data_len); | ||
127 | + // } | ||
128 | + | ||
129 | + // //组合视频流 | ||
130 | + // if (currentIndex == JZ_C1_FUSE_INDEX && CameraIndex == JZ_C1_FUSE_INDEX) | ||
131 | + // { | ||
132 | + // //推送数据到流转模块 | ||
133 | + // VideoMgmt_Single_FrameIn(data, data_len); | ||
134 | + // } | ||
135 | + | ||
136 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
137 | +} | ||
138 | + | ||
139 | + | ||
140 | +static T_JZsdkReturnCode rgb32_to_yuv420sp(uint8_t *rgb32, uint8_t *yuv420sp, int width, int height) | ||
141 | +{ | ||
142 | + int frame_size = width * height; | ||
143 | + uint8_t *y_plane = yuv420sp; // Y分量 | ||
144 | + uint8_t *uv_plane = yuv420sp + frame_size; // UV交错分量(NV12) | ||
145 | + | ||
146 | + for (int y = 0; y < height; y++) { | ||
147 | + for (int x = 0; x < width; x++) { | ||
148 | + // 假设RGB32内存布局为[B,G,R,A](小端序常见) | ||
149 | + int idx = (y * width + x) * 4; | ||
150 | + uint8_t B = rgb32[idx]; | ||
151 | + uint8_t G = rgb32[idx + 1]; | ||
152 | + uint8_t R = rgb32[idx + 2]; | ||
153 | + // uint8_t A = rgb32[idx + 3]; // Alpha通道忽略 | ||
154 | + | ||
155 | + // 计算YUV(BT.601标准) | ||
156 | + int Y = 0.257 * R + 0.504 * G + 0.098 * B + 16; | ||
157 | + int U = -0.148 * R - 0.291 * G + 0.439 * B + 128; | ||
158 | + int V = 0.439 * R - 0.368 * G - 0.071 * B + 128; | ||
159 | + | ||
160 | + // 写入Y分量 | ||
161 | + y_plane[y * width + x] = (uint8_t)fmin(fmax(Y, 0), 255); | ||
162 | + | ||
163 | + // 仅偶数行和偶数列采样UV分量(420下采样) | ||
164 | + if (y % 2 == 0 && x % 2 == 0) { | ||
165 | + int uv_idx = (y / 2) * (width / 2) + (x / 2); | ||
166 | + uv_plane[uv_idx * 2] = (uint8_t)fmin(fmax(U, 0), 255); // U | ||
167 | + uv_plane[uv_idx * 2 + 1] = (uint8_t)fmin(fmax(V, 0), 255); // V | ||
168 | + } | ||
169 | + } | ||
170 | + } | ||
171 | + | ||
172 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
173 | +} | ||
174 | + | ||
175 | +static void *JZ_ircDataThread(void *args) | ||
176 | +{ | ||
177 | +#ifdef SATIRC_LIB_STATUS_ON | ||
178 | + U8_t *buf = NULL; | ||
179 | + int PixelNum = JZ_IRC_WIDTH * JZ_IRC_HEIGHT; | ||
180 | + | ||
181 | + buf = (U8_t *)malloc(JZ_IRC_WIDTH * JZ_IRC_HEIGHT * 4); | ||
182 | + U8_t *yuv420sp = (U8_t *)malloc(JZ_IRC_WIDTH * JZ_IRC_HEIGHT * 3 / 2); | ||
183 | + | ||
184 | + int test_i = 0; | ||
185 | + int color = 0; | ||
186 | + | ||
187 | + JZSDK_LOG_INFO("红外相机线程启动!"); | ||
98 | 188 | ||
99 | -// } | ||
100 | - | ||
101 | -// //数据推送函数 | ||
102 | -// static T_JZsdkReturnCode JZST_PushFrame(int CameraIndex, unsigned char* data, unsigned int data_len) | ||
103 | -// { | ||
104 | -// int currentIndex = VideoMgmt_GetVideoStreamFlowIndexNum(); //获取当前视频流索引 | ||
105 | -// //无视频流 | ||
106 | -// if (currentIndex == 0) | ||
107 | -// { | ||
108 | -// //不推送视频 | ||
109 | -// return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
110 | -// } | ||
111 | - | ||
112 | -// //红外相机 | ||
113 | -// if (currentIndex == JZ__IRC_INDEX && CameraIndex == JZ__IRC_INDEX) | ||
114 | -// { | ||
115 | - | ||
116 | -// //推送数据到流转模块 | ||
117 | -// VideoMgmt_Single_FrameIn(data, data_len); | ||
118 | -// } | ||
119 | - | ||
120 | -// // //光学相机 | ||
121 | -// // if(CameraIndex == JZ_C1_OPT_INDEX && currentIndex == JZ_C1_OPT_INDEX) | ||
122 | -// // { | ||
123 | -// // //推送数据到流转模块 | ||
124 | -// // VideoMgmt_Single_FrameIn(data, data_len); | ||
125 | -// // } | ||
126 | - | ||
127 | -// // //组合视频流 | ||
128 | -// // if (currentIndex == JZ_C1_FUSE_INDEX && CameraIndex == JZ_C1_FUSE_INDEX) | ||
129 | -// // { | ||
130 | -// // //推送数据到流转模块 | ||
131 | -// // VideoMgmt_Single_FrameIn(data, data_len); | ||
132 | -// // } | ||
133 | - | ||
134 | -// return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
135 | -// } | ||
136 | - | ||
137 | - | ||
138 | -// static T_JZsdkReturnCode rgb32_to_yuv420sp(uint8_t *rgb32, uint8_t *yuv420sp, int width, int height) | ||
139 | -// { | ||
140 | -// int frame_size = width * height; | ||
141 | -// uint8_t *y_plane = yuv420sp; // Y分量 | ||
142 | -// uint8_t *uv_plane = yuv420sp + frame_size; // UV交错分量(NV12) | ||
143 | - | ||
144 | -// for (int y = 0; y < height; y++) { | ||
145 | -// for (int x = 0; x < width; x++) { | ||
146 | -// // 假设RGB32内存布局为[B,G,R,A](小端序常见) | ||
147 | -// int idx = (y * width + x) * 4; | ||
148 | -// uint8_t B = rgb32[idx]; | ||
149 | -// uint8_t G = rgb32[idx + 1]; | ||
150 | -// uint8_t R = rgb32[idx + 2]; | ||
151 | -// // uint8_t A = rgb32[idx + 3]; // Alpha通道忽略 | ||
152 | - | ||
153 | -// // 计算YUV(BT.601标准) | ||
154 | -// int Y = 0.257 * R + 0.504 * G + 0.098 * B + 16; | ||
155 | -// int U = -0.148 * R - 0.291 * G + 0.439 * B + 128; | ||
156 | -// int V = 0.439 * R - 0.368 * G - 0.071 * B + 128; | ||
157 | - | ||
158 | -// // 写入Y分量 | ||
159 | -// y_plane[y * width + x] = (uint8_t)fmin(fmax(Y, 0), 255); | ||
160 | - | ||
161 | -// // 仅偶数行和偶数列采样UV分量(420下采样) | ||
162 | -// if (y % 2 == 0 && x % 2 == 0) { | ||
163 | -// int uv_idx = (y / 2) * (width / 2) + (x / 2); | ||
164 | -// uv_plane[uv_idx * 2] = (uint8_t)fmin(fmax(U, 0), 255); // U | ||
165 | -// uv_plane[uv_idx * 2 + 1] = (uint8_t)fmin(fmax(V, 0), 255); // V | ||
166 | -// } | ||
167 | -// } | ||
168 | -// } | ||
169 | - | ||
170 | -// return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
171 | -// } | ||
172 | - | ||
173 | -// static void *JZ__ircDataThread(void *args) | ||
174 | -// { | ||
175 | -// #ifdef SATIRC_LIB_STATUS_ON | ||
176 | -// U8_t *buf = NULL; | ||
177 | -// int PixelNum = JZ__IRC_WIDTH * JZ__IRC_HEIGHT; | ||
178 | - | ||
179 | -// buf = (U8_t *)malloc(JZ__IRC_WIDTH * JZ__IRC_HEIGHT * 4); | ||
180 | -// U8_t *yuv420sp = (U8_t *)malloc(320 * 256 * 3 / 2); | ||
181 | - | ||
182 | -// int test_i = 0; | ||
183 | -// int color = 0; | ||
184 | - | ||
185 | -// while (1) | ||
186 | -// { | ||
187 | -// //每25张更换一次颜色 | ||
188 | -// if (test_i % 25 == 0) | ||
189 | -// { | ||
190 | -// color++; | ||
191 | -// if (color == 12) | ||
192 | -// { | ||
193 | -// color = 0; | ||
194 | -// } | 189 | + FILE *fp = fopen("image.h264", "wb"); |
190 | + | ||
191 | + while (1) | ||
192 | + { | ||
193 | + delayMs(1000/JZ_IRC_FRAMERATE); | ||
194 | + | ||
195 | + //每25张更换一次颜色 | ||
196 | + if (test_i % 25 == 0) | ||
197 | + { | ||
198 | + color++; | ||
199 | + if (color == 12) | ||
200 | + { | ||
201 | + color = 0; | ||
202 | + } | ||
195 | 203 | ||
196 | -// SatIrc_SetColorPalette(color); //可以测0~11 | ||
197 | -// } | 204 | + SatIrc_SetColorPalette(color); //可以测0~11 |
205 | + } | ||
198 | 206 | ||
199 | -// //获取红外数据 | ||
200 | -// memset(buf, 0, JZ__IRC_WIDTH * JZ__IRC_HEIGHT * 4); | ||
201 | -// SatIrc_GetIRImage(buf, PixelNum); | 207 | + //获取红外数据 |
208 | + memset(buf, 0, JZ_IRC_WIDTH * JZ_IRC_HEIGHT * 4); | ||
209 | + SatIrc_GetIRImage(buf, PixelNum); | ||
202 | 210 | ||
203 | -// //将红外数据转换为yuv | ||
204 | -// memset(yuv420sp, 0, 320 * 256 * 3 / 2); | ||
205 | -// rgb32_to_yuv420sp(buf, yuv420sp, JZ__IRC_WIDTH, JZ__IRC_HEIGHT); | 211 | + //将红外数据转换为yuv |
212 | + memset(yuv420sp, 0, 320 * 256 * 3 / 2); | ||
213 | + rgb32_to_yuv420sp(buf, yuv420sp, JZ_IRC_WIDTH, JZ_IRC_HEIGHT); | ||
206 | 214 | ||
207 | -// //将红外数据送去编码器 | ||
208 | -// unsigned char *h264Data = NULL; | ||
209 | -// unsigned int h264DataLen = 0; | 215 | + //将红外数据送去编码器 |
216 | + unsigned char *h264Data = NULL; | ||
217 | + unsigned int h264DataLen = 0; | ||
210 | 218 | ||
211 | -// MppPacket Packet = NULL; | 219 | + MppPacket Packet = NULL; |
212 | 220 | ||
213 | -// //进行编码 | ||
214 | -// RTK_mmp_enc_data_to_h264(g_JZST_info.IRC_enc_info, yuv420sp, 320 * 256 * 3 / 2, &Packet); | 221 | + //进行编码 |
222 | + RTK_mmp_enc_data_to_h264(g_JZST_info.IRC_enc_info, yuv420sp, 320 * 256 * 3 / 2, &Packet); | ||
215 | 223 | ||
216 | -// h264DataLen = mpp_packet_get_length(Packet); | ||
217 | -// h264Data = (unsigned char *)mpp_packet_get_pos(Packet); | 224 | + h264DataLen = mpp_packet_get_length(Packet); |
225 | + h264Data = (unsigned char *)mpp_packet_get_pos(Packet); | ||
218 | 226 | ||
219 | -// //释放掉packet | ||
220 | -// mpp_packet_deinit(&Packet); | ||
221 | - | ||
222 | -// //将h264数据推送 | ||
223 | -// JZST_PushFrame(1, h264Data, h264DataLen); | ||
224 | - | ||
225 | -// delayMs(1000/JZ__IRC_FRAMERATE); | ||
226 | -// } | ||
227 | -// #endif // #ifdef SATIRC_LIB_STATUS_ON | ||
228 | -// } | ||
229 | - | ||
230 | -// static T_JZsdkReturnCode JZ__IrcCameraInit() | ||
231 | -// { | ||
232 | -// T_JZsdkReturnCode ret = JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
233 | - | ||
234 | -// //初始化红外参数 | ||
235 | -// ret = IRC_ParamInit(JZ__IRC_HEIGHT, JZ__IRC_WIDTH, JZ__IRC_FRAMERATE, IRC_DEAL_MODE_SAT); | ||
236 | -// if (ret != JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
237 | -// { | ||
238 | -// JZSDK_LOG_ERROR("红外参数初始化失败!"); | ||
239 | -// return ret; | ||
240 | -// } | ||
241 | - | ||
242 | -// //初始化红外相机 | ||
243 | -// T_JZsdkReturnCode = SatIrc_init(); | ||
244 | -// if (ret != JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
245 | -// { | ||
246 | -// JZSDK_LOG_ERROR("红外相机初始化失败!"); | ||
247 | -// return ret; | ||
248 | -// } | ||
249 | - | ||
250 | -// //初始化接收相机数据的线程 | ||
251 | -// T_JZsdkOsalHandler *osal_handle = JZsdk_Platform_GetOsalHandler(); | ||
252 | - | ||
253 | -// T_JZTaskHandle JZ__ircDataTask = NULL; | ||
254 | -// osal_handle->TaskCreate("JZ__ircDataThread", JZ__ircDataThread, 8192, NULL, JZ__ircDataTask); | ||
255 | - | ||
256 | -// return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
257 | -// } | ||
258 | - | ||
259 | -// T_JZsdkReturnCode JZ__Init(int mode) | ||
260 | -// { | ||
261 | -// //网口初始化 | ||
262 | -// if (mode == APP_UART) | ||
263 | -// { | ||
264 | -// //网口初始化 | ||
265 | -// JZsdk_NetWork_Init(); | ||
266 | -// } | ||
267 | - | ||
268 | -// T_JZsdkReturnCode ret = JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
269 | - | ||
270 | -// #ifdef RTK_MPP_STATUS_ON | ||
271 | - | ||
272 | -// //初始化相机流管理器 | ||
273 | -// T_JZsdkVideoMgmtHandler VideoMgmtHandler = { | ||
274 | -// .SetNextFrame_IDR = JZST_SetNextFrame_IDR, | ||
275 | -// }; | ||
276 | -// VideoMgmt_Init(VideoMgmtHandler); | ||
277 | - | ||
278 | -// //初始化红外的编码器 | ||
279 | -// g_JZST_info.IRC_enc_info = (T_rtk_mmp_dec_info *)malloc(sizeof(T_rtk_mmp_dec_info)); | ||
280 | - | ||
281 | -// //配置参数 | ||
282 | -// g_JZST_info.IRC_enc_info->Input_fmt = MPP_FMT_YUV420SP; | ||
283 | -// g_JZST_info.IRC_enc_info->encType = MPP_VIDEO_CodingAVC; | ||
284 | -// g_JZST_info.IRC_enc_info->width = JZ__IRC_WIDTH; | ||
285 | -// g_JZST_info.IRC_enc_info->height = JZ__IRC_HEIGHT; | ||
286 | -// g_JZST_info.IRC_enc_info->FrameNum = JZ__IRC_FRAMERATE; | ||
287 | -// g_JZST_info.IRC_enc_info->IDR_gop = 5; | ||
288 | -// g_JZST_info.IRC_enc_info->bps_target = JZ__IRC_BPS; | ||
289 | - | ||
290 | -// g_JZST_info.IRC_enc_info->hor_stride = JZ_ALIGN(g_JZST_info.IRC_enc_info->width, 16); | ||
291 | -// g_JZST_info.IRC_enc_info->ver_stride = JZ_ALIGN(g_JZST_info.IRC_enc_info->height, 16); | ||
292 | - | ||
293 | -// //初始化编码器 | ||
294 | -// RTK_mmp_enc_init(g_JZST_info.IRC_enc_info); | ||
295 | - | ||
296 | -// //初始化红外相机 | ||
297 | -// ret = JZ__IrcCameraInit(); | ||
298 | -// if (ret != JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
299 | -// { | ||
300 | -// JZSDK_LOG_ERROR("红外相机初始化失败!"); | ||
301 | -// } | ||
302 | - | ||
303 | -// //设置默认推送红外摄像头 | ||
304 | -// VideoMgmt_VideoStreamFlowIndex(JZ__IRC_INDEX); | 227 | + //释放掉packet |
228 | + mpp_packet_deinit(&Packet); | ||
229 | + | ||
230 | + //将h264数据推送 | ||
231 | + JZST_PushFrame(JZ_IRC_INDEX, h264Data, h264DataLen); | ||
232 | + fwrite(h264Data, h264DataLen, 1, fp); | ||
233 | + fflush(fp); | ||
234 | + | ||
235 | + JZSDK_LOG_DEBUG("红外相机线程执行中!, 长度 %d", h264DataLen); | ||
236 | + | ||
237 | + test_i++; | ||
238 | + } | ||
239 | + | ||
240 | + fclose(fp); | ||
241 | +#endif // #ifdef SATIRC_LIB_STATUS_ON | ||
242 | +} | ||
243 | + | ||
244 | +static T_JZsdkReturnCode JZ_IrcCameraInit() | ||
245 | +{ | ||
246 | + T_JZsdkReturnCode ret = JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
247 | + | ||
248 | + //初始化红外参数 | ||
249 | + ret = IRC_ParamInit(JZ_IRC_HEIGHT, JZ_IRC_WIDTH, JZ_IRC_FRAMERATE, IRC_DEAL_MODE_SAT); | ||
250 | + if (ret != JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
251 | + { | ||
252 | + JZSDK_LOG_ERROR("红外参数初始化失败!"); | ||
253 | + return ret; | ||
254 | + } | ||
255 | + | ||
256 | + //初始化红外相机 | ||
257 | + ret = SatIrc_init(); | ||
258 | + if (ret != JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
259 | + { | ||
260 | + JZSDK_LOG_ERROR("红外相机初始化失败!"); | ||
261 | + return ret; | ||
262 | + } | ||
263 | + | ||
264 | + //初始化接收相机数据的线程 | ||
265 | + T_JZsdkOsalHandler *osal_handle = JZsdk_Platform_GetOsalHandler(); | ||
266 | + | ||
267 | + T_JZTaskHandle JZ_ircDataTask = NULL; | ||
268 | + osal_handle->TaskCreate("JZ_ircDataThread", JZ_ircDataThread, 8192, NULL, &JZ_ircDataTask); | ||
269 | + | ||
270 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
271 | +} | ||
272 | + | ||
273 | +T_JZsdkReturnCode JZ_ST_Init(int mode) | ||
274 | +{ | ||
275 | + //网口初始化 | ||
276 | + if (mode == APP_UART) | ||
277 | + { | ||
278 | + //网口初始化 | ||
279 | + JZsdk_NetWork_Init(); | ||
280 | + } | ||
281 | + | ||
282 | + T_JZsdkReturnCode ret = JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
283 | + | ||
284 | +#ifdef RTK_MPP_STATUS_ON | ||
285 | + | ||
286 | + //初始化相机流管理器 | ||
287 | + T_JZsdkVideoMgmtHandler VideoMgmtHandler = { | ||
288 | + .SetNextFrame_IDR = JZST_SetNextFrame_IDR, | ||
289 | + }; | ||
290 | + VideoMgmt_Init(VideoMgmtHandler); | ||
291 | + | ||
292 | + //初始化红外的编码器 | ||
293 | + g_JZST_info.IRC_enc_info = (T_rtk_mmp_enc_info *)malloc(sizeof(T_rtk_mmp_enc_info)); | ||
294 | + | ||
295 | + //配置参数 | ||
296 | + g_JZST_info.IRC_enc_info->Input_fmt = MPP_FMT_YUV420SP; | ||
297 | + g_JZST_info.IRC_enc_info->encType = MPP_VIDEO_CodingAVC; | ||
298 | + g_JZST_info.IRC_enc_info->width = JZ_IRC_WIDTH; | ||
299 | + g_JZST_info.IRC_enc_info->height = JZ_IRC_HEIGHT; | ||
300 | + g_JZST_info.IRC_enc_info->FrameNum = JZ_IRC_FRAMERATE; | ||
301 | + g_JZST_info.IRC_enc_info->IDR_gop = 5; | ||
302 | + g_JZST_info.IRC_enc_info->bps_target = JZ_IRC_BPS; | ||
303 | + | ||
304 | + g_JZST_info.IRC_enc_info->hor_stride = JZ_ALIGN(g_JZST_info.IRC_enc_info->width, 16); | ||
305 | + g_JZST_info.IRC_enc_info->ver_stride = JZ_ALIGN(g_JZST_info.IRC_enc_info->height, 16); | ||
306 | + | ||
307 | + //初始化编码器 | ||
308 | + RTK_mmp_enc_Init(g_JZST_info.IRC_enc_info); | ||
309 | + | ||
310 | + //初始化红外相机 | ||
311 | + ret = JZ_IrcCameraInit(); | ||
312 | + if (ret != JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
313 | + { | ||
314 | + JZSDK_LOG_ERROR("红外相机初始化失败!"); | ||
315 | + } | ||
316 | + | ||
317 | + //设置默认推送红外摄像头 | ||
318 | + VideoMgmt_VideoStreamFlowIndex(JZ_IRC_INDEX); | ||
305 | 319 | ||
306 | -// return ret; | 320 | + return ret; |
321 | + | ||
322 | +#endif | ||
307 | 323 | ||
308 | -// #endif | ||
309 | -// } | ||
324 | + JZSDK_LOG_INFO("红外相机初始化完成"); | ||
325 | +} |
JZsdk_Config/DeviceSample/JZ_ST/JZ_ST.h
0 → 100644
1 | +/** | ||
2 | + ******************************************************************** | ||
3 | + * @file JZST.h | ||
4 | + * JZST.h的头文件 | ||
5 | + * | ||
6 | + ********************************************************************* | ||
7 | + */ | ||
8 | + | ||
9 | +/* Define to prevent recursive inclusion 避免重定义 -------------------------------------*/ | ||
10 | +#ifndef JZST_H | ||
11 | +#define JZST_H | ||
12 | + | ||
13 | +#include "JZsdk_Base/JZsdk_Code/JZsdk_Code.h" | ||
14 | + | ||
15 | + | ||
16 | +/* Includes ------------------------------------------------------------------*/ | ||
17 | +#ifdef __cplusplus | ||
18 | +extern "C" { | ||
19 | +#endif | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | +/* Exported constants --------------------------------------------------------*/ | ||
24 | +/* 常亮定义*/ | ||
25 | + | ||
26 | +/* Exported types ------------------------------------------------------------*/ | ||
27 | + | ||
28 | +T_JZsdkReturnCode JZ_ST_Init(int mode); | ||
29 | + | ||
30 | + | ||
31 | +#ifdef __cplusplus | ||
32 | +} | ||
33 | +#endif | ||
34 | + | ||
35 | +#endif |
@@ -7,34 +7,35 @@ | @@ -7,34 +7,35 @@ | ||
7 | #define VERSION_CHOOSE_H | 7 | #define VERSION_CHOOSE_H |
8 | #include "JZsdk_Base/JZsdk_Code/JZsdk_DeviceCode.h" | 8 | #include "JZsdk_Base/JZsdk_Code/JZsdk_DeviceCode.h" |
9 | //1~10行 除了D可以修改版本选择 禁止动任何东西 | 9 | //1~10行 除了D可以修改版本选择 禁止动任何东西 |
10 | -#define DEVICE_VERSION JZ_H150T | 10 | +#define DEVICE_VERSION JZ_H1E |
11 | 11 | ||
12 | //禁止修改行 选择是串口程序 还是 psdk程序 | 12 | //禁止修改行 选择是串口程序 还是 psdk程序 |
13 | -#define APP_VERSION APP_PSDK | 13 | +#define APP_VERSION APP_UART |
14 | 14 | ||
15 | //禁止修改行 板子型号 | 15 | //禁止修改行 板子型号 |
16 | -#define PLATFORM_VERSION PLATFORM_H3 | 16 | +#define PLATFORM_VERSION PLATFORM_V3S |
17 | 17 | ||
18 | //禁止修改行 串口连接程序的软件版本号 | 18 | //禁止修改行 串口连接程序的软件版本号 |
19 | -#define MAJOR_VERSION 01 | ||
20 | -#define MINOR_VERSION 03 | ||
21 | -#define MODIFY_VERSION 11 | ||
22 | -#define DEBUG_VERSION 01 | 19 | +#define MAJOR_VERSION_TEN_POSITION 0 |
20 | +#define MAJOR_VERSION_ONE_POSITION 0 | ||
21 | +#define MINOR_VERSION_TEN_POSITION 0 | ||
22 | +#define MINOR_VERSION_ONE_POSITION 0 | ||
23 | +#define MODIFY_VERSION_TEN_POSITION 0 | ||
24 | +#define MODIFY_VERSION_ONE_POSITION 2 | ||
25 | +#define DEBUG_VERSION_TEN_POSITION 1 | ||
26 | +#define DEBUG_VERSION_ONE_POSITION 9 | ||
23 | 27 | ||
24 | -//禁止修改行 滤波方式 该项目目前已被移除 | ||
25 | -#define FILTERING_TYPE HIGH_PASS_FILTERING | ||
26 | 28 | ||
27 | -//禁止修改行固件属地 目前 国内版/海外版, 该选项目前已被移除 | ||
28 | -#define FIRMWARE_ORIGIN DOMESTIC_VERSION | ||
29 | 29 | ||
30 | -//禁止修改行指定特殊固件 | 30 | +//禁止修改行31 特殊版本号 |
31 | #define SPECIAL_VERSION SPECIAL_NORMAL | 31 | #define SPECIAL_VERSION SPECIAL_NORMAL |
32 | 32 | ||
33 | -//禁止修改行 全志编解码库 | ||
34 | -#define ALLWINNER_CEDAR VERSION_SWITCH_OFF | 33 | +//版本号 |
34 | +#define MAJOR_VERSION (MAJOR_VERSION_TEN_POSITION*10+MAJOR_VERSION_ONE_POSITION) | ||
35 | +#define MINOR_VERSION (MINOR_VERSION_TEN_POSITION*10+MINOR_VERSION_ONE_POSITION) | ||
36 | +#define MODIFY_VERSION (MODIFY_VERSION_TEN_POSITION*10+MODIFY_VERSION_ONE_POSITION) | ||
37 | +#define DEBUG_VERSION (DEBUG_VERSION_TEN_POSITION*10+DEBUG_VERSION_ONE_POSITION) | ||
35 | 38 | ||
36 | -//禁止修改行 是否开启连接超时, 该项目目前已被移除 | ||
37 | -#define CONNECTION_TIMED_OUT VERSION_SWITCH_OFF | ||
38 | 39 | ||
39 | //这个开关可以方便日常代码编写的跳转功能 | 40 | //这个开关可以方便日常代码编写的跳转功能 |
40 | #ifdef COMPILE_MODE_MODULE | 41 | #ifdef COMPILE_MODE_MODULE |
@@ -63,6 +64,11 @@ | @@ -63,6 +64,11 @@ | ||
63 | #define KTIRC_LIB_STATUS_ON | 64 | #define KTIRC_LIB_STATUS_ON |
64 | #endif | 65 | #endif |
65 | 66 | ||
67 | + //是否加载satirclib | ||
68 | + #ifdef MACRO_SATIRC_MODULE | ||
69 | + #define SATIRC_LIB_STATUS_ON | ||
70 | + #endif | ||
71 | + | ||
66 | //是否加载usb模块 | 72 | //是否加载usb模块 |
67 | #ifdef MACRO_USB_MODULE | 73 | #ifdef MACRO_USB_MODULE |
68 | #define USB_CONFIG_STATUS_ON | 74 | #define USB_CONFIG_STATUS_ON |
@@ -93,6 +99,7 @@ | @@ -93,6 +99,7 @@ | ||
93 | #define LIGHTING_STATUS_ON | 99 | #define LIGHTING_STATUS_ON |
94 | #endif | 100 | #endif |
95 | 101 | ||
102 | + | ||
96 | #else //这里用于方便调试使用,不是实际加载的模组 | 103 | #else //这里用于方便调试使用,不是实际加载的模组 |
97 | 104 | ||
98 | //是否开启音频库功能 | 105 | //是否开启音频库功能 |
@@ -4071,7 +4071,7 @@ static T_JZsdkReturnCode RecvDeal_ObtainSearchLight_Mode(int Port, char *getbuf) | @@ -4071,7 +4071,7 @@ static T_JZsdkReturnCode RecvDeal_ObtainSearchLight_Mode(int Port, char *getbuf) | ||
4071 | **********/ | 4071 | **********/ |
4072 | static T_JZsdkReturnCode RecvDeal_ObtainSearchLight_Lumen(int Port, char *getbuf) | 4072 | static T_JZsdkReturnCode RecvDeal_ObtainSearchLight_Lumen(int Port, char *getbuf) |
4073 | { | 4073 | { |
4074 | - JZSDK_LOG_INFO("%s,收到灯光亮度",JZsdk_DefineCode_GetPortName(Port)); | 4074 | + //JZSDK_LOG_INFO("%s,收到灯光亮度",JZsdk_DefineCode_GetPortName(Port)); |
4075 | 4075 | ||
4076 | //获取帧的序列号 | 4076 | //获取帧的序列号 |
4077 | int FrameSequence = JZsdk_Get_FrameSequence(getbuf); | 4077 | int FrameSequence = JZsdk_Get_FrameSequence(getbuf); |
@@ -4093,7 +4093,7 @@ static T_JZsdkReturnCode RecvDeal_ObtainSearchLight_Lumen(int Port, char *getbuf | @@ -4093,7 +4093,7 @@ static T_JZsdkReturnCode RecvDeal_ObtainSearchLight_Lumen(int Port, char *getbuf | ||
4093 | **********/ | 4093 | **********/ |
4094 | static T_JZsdkReturnCode RecvDeal_ObtainSearchLight_Temperature(int Port, char *getbuf) | 4094 | static T_JZsdkReturnCode RecvDeal_ObtainSearchLight_Temperature(int Port, char *getbuf) |
4095 | { | 4095 | { |
4096 | - JZSDK_LOG_INFO("%s,收到探照灯温度",JZsdk_DefineCode_GetPortName(Port)); | 4096 | + //JZSDK_LOG_INFO("%s,收到探照灯温度",JZsdk_DefineCode_GetPortName(Port)); |
4097 | 4097 | ||
4098 | //获取帧的序列号 | 4098 | //获取帧的序列号 |
4099 | int FrameSequence = JZsdk_Get_FrameSequence(getbuf); | 4099 | int FrameSequence = JZsdk_Get_FrameSequence(getbuf); |
@@ -4216,7 +4216,7 @@ static T_JZsdkReturnCode RecvDeal_ObtainGimbalPitchFineTuning(int Port, char *ge | @@ -4216,7 +4216,7 @@ static T_JZsdkReturnCode RecvDeal_ObtainGimbalPitchFineTuning(int Port, char *ge | ||
4216 | **********/ | 4216 | **********/ |
4217 | static T_JZsdkReturnCode RecvDeal_ObtainWaringlight_Status(int Port, char *getbuf) | 4217 | static T_JZsdkReturnCode RecvDeal_ObtainWaringlight_Status(int Port, char *getbuf) |
4218 | { | 4218 | { |
4219 | - JZSDK_LOG_INFO("%s,收到警灯状态",JZsdk_DefineCode_GetPortName(Port)); | 4219 | + //JZSDK_LOG_INFO("%s,收到警灯状态",JZsdk_DefineCode_GetPortName(Port)); |
4220 | 4220 | ||
4221 | //获取帧的序列号 | 4221 | //获取帧的序列号 |
4222 | int FrameSequence = JZsdk_Get_FrameSequence(getbuf); | 4222 | int FrameSequence = JZsdk_Get_FrameSequence(getbuf); |
@@ -4238,7 +4238,7 @@ static T_JZsdkReturnCode RecvDeal_ObtainWaringlight_Status(int Port, char *getbu | @@ -4238,7 +4238,7 @@ static T_JZsdkReturnCode RecvDeal_ObtainWaringlight_Status(int Port, char *getbu | ||
4238 | **********/ | 4238 | **********/ |
4239 | static T_JZsdkReturnCode RecvDeal_ObtainWaringlight_Color(int Port, char *getbuf) | 4239 | static T_JZsdkReturnCode RecvDeal_ObtainWaringlight_Color(int Port, char *getbuf) |
4240 | { | 4240 | { |
4241 | - JZSDK_LOG_INFO("%s,收到警灯颜色",JZsdk_DefineCode_GetPortName(Port)); | 4241 | + //JZSDK_LOG_INFO("%s,收到警灯颜色",JZsdk_DefineCode_GetPortName(Port)); |
4242 | 4242 | ||
4243 | //获取帧的序列号 | 4243 | //获取帧的序列号 |
4244 | int FrameSequence = JZsdk_Get_FrameSequence(getbuf); | 4244 | int FrameSequence = JZsdk_Get_FrameSequence(getbuf); |
@@ -306,6 +306,53 @@ T_JZsdkReturnCode AudioDeal_StopDeal() | @@ -306,6 +306,53 @@ T_JZsdkReturnCode AudioDeal_StopDeal() | ||
306 | 306 | ||
307 | /************** | 307 | /************** |
308 | * | 308 | * |
309 | + * 获取文件的时长信息 | ||
310 | + * | ||
311 | + * ***********/ | ||
312 | +T_JZsdkReturnCode AudioDeal_GetAudio_DurationInfo(JZ_U8 *FilePath, JZ_U32 *Duration) | ||
313 | +{ | ||
314 | + int ret; | ||
315 | + AVFormatContext *fmt_ctx = NULL; | ||
316 | + | ||
317 | + fmt_ctx = avformat_alloc_context(); | ||
318 | + if (!fmt_ctx) { | ||
319 | + JZSDK_LOG_ERROR("无法分配AVFormatContext"); | ||
320 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
321 | + } | ||
322 | + | ||
323 | + ret = avformat_open_input(&fmt_ctx, FilePath, NULL, NULL); | ||
324 | + if (ret < 0) { | ||
325 | + JZSDK_LOG_ERROR("无法打开音频文件"); | ||
326 | + goto cleanUp; | ||
327 | + } | ||
328 | + | ||
329 | + // if (avformat_find_stream_info(fmt_ctx, NULL) < 0) { | ||
330 | + // JZSDK_LOG_ERROR("检索音频流信息失败"); | ||
331 | + // goto cleanUp; | ||
332 | + // } | ||
333 | + | ||
334 | + // if (fmt_ctx->duration <= 0) { | ||
335 | + // JZSDK_LOG_ERROR("无效的音频时长"); | ||
336 | + // goto cleanUp; | ||
337 | + // } | ||
338 | + | ||
339 | + // *Duration = (uint32_t)(fmt_ctx->duration / AV_TIME_BASE); | ||
340 | + | ||
341 | + | ||
342 | + avformat_close_input(&fmt_ctx); | ||
343 | + | ||
344 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
345 | + | ||
346 | +cleanUp: | ||
347 | + if (fmt_ctx) { | ||
348 | + avformat_close_input(&fmt_ctx); | ||
349 | + } | ||
350 | + *Duration = 0; // 确保失败时Duration被清零 | ||
351 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
352 | +} | ||
353 | + | ||
354 | +/************** | ||
355 | + * | ||
309 | * 获取音频库的处理状态 | 356 | * 获取音频库的处理状态 |
310 | * | 357 | * |
311 | * ***********/ | 358 | * ***********/ |
@@ -105,6 +105,7 @@ T_JZsdkReturnCode AudioDeal_SetFilterMode(int mode); | @@ -105,6 +105,7 @@ T_JZsdkReturnCode AudioDeal_SetFilterMode(int mode); | ||
105 | T_JZsdkReturnCode AudioDeal_GetFilterMode(); | 105 | T_JZsdkReturnCode AudioDeal_GetFilterMode(); |
106 | 106 | ||
107 | T_JZsdkReturnCode AudioDeal_Mp3DataStop(); | 107 | T_JZsdkReturnCode AudioDeal_Mp3DataStop(); |
108 | +T_JZsdkReturnCode AudioDeal_GetAudio_DurationInfo(JZ_U8 *FilePath, JZ_U32 *Duration); | ||
108 | 109 | ||
109 | #ifdef __cplusplus | 110 | #ifdef __cplusplus |
110 | } | 111 | } |
@@ -141,6 +141,56 @@ extern "C" { | @@ -141,6 +141,56 @@ extern "C" { | ||
141 | anequalizer=c0 f=3700 w=1400 g=-24 t=0|c1 f=3700 w=1400 g=-24 t=0" | 141 | anequalizer=c0 f=3700 w=1400 g=-24 t=0|c1 f=3700 w=1400 g=-24 t=0" |
142 | 142 | ||
143 | 143 | ||
144 | +#define FILTER_FORMAL_2_M30_TTS "equalizer=f=31:t=q:w=2.0:g=-48, \ | ||
145 | + equalizer=f=62:t=q:w=2.0:g=-36, \ | ||
146 | + equalizer=f=125:t=q:w=2.0:g=-30, \ | ||
147 | + equalizer=f=250:t=q:w=2.0:g=-26, \ | ||
148 | + equalizer=f=500:t=q:w=2.0:g=-20, \ | ||
149 | + equalizer=f=1000:t=q:w=2.0:g=-12, \ | ||
150 | + equalizer=f=2000:t=q:w=2.0:g=-8, \ | ||
151 | + equalizer=f=4000:t=q:w=2.0:g=+0, \ | ||
152 | + equalizer=f=8000:t=q:w=2.0:g=+0, \ | ||
153 | + equalizer=f=16000:t=q:w=2.0:g=+0, \ | ||
154 | + compand=attacks=0:decays=0.3:points=-60/-60|-30/-20|-20/-15|-10/-10|0/-5:gain=5, \ | ||
155 | + lowpass=f=6000:width_type=q:w=1.8, \ | ||
156 | + highpass=f=80:width_type=q:w=1.2, \ | ||
157 | + volume=0.98, \ | ||
158 | + anequalizer=c0 f=3800 w=1200 g=-5 t=0|c1 f=3800 w=1200 g=-10 t=0, \ | ||
159 | + anequalizer=c0 f=3100 w=600 g=-3 t=0|c1 f=3100 w=600 g=-3 t=0" | ||
160 | + | ||
161 | +#define FILTER_FORMAL_2_M30_1 "equalizer=f=31:t=q:w=2.0:g=-48, \ | ||
162 | + equalizer=f=62:t=q:w=2.0:g=-36, \ | ||
163 | + equalizer=f=125:t=q:w=2.0:g=-30, \ | ||
164 | + equalizer=f=250:t=q:w=2.0:g=-26, \ | ||
165 | + equalizer=f=500:t=q:w=2.0:g=-20, \ | ||
166 | + equalizer=f=1000:t=q:w=2.0:g=-12, \ | ||
167 | + equalizer=f=2000:t=q:w=2.0:g=-8, \ | ||
168 | + equalizer=f=4000:t=q:w=2.0:g=+0, \ | ||
169 | + equalizer=f=8000:t=q:w=2.0:g=+0, \ | ||
170 | + equalizer=f=16000:t=q:w=2.0:g=+0, \ | ||
171 | + compand=attacks=0:decays=0.3:points=-60/-60|-30/-20|-20/-15|-10/-10|0/-5:gain=5, \ | ||
172 | + lowpass=f=6000:width_type=q:w=1.8, \ | ||
173 | + highpass=f=80:width_type=q:w=1.2, \ | ||
174 | + volume=0.98, \ | ||
175 | + anequalizer=c0 f=3800 w=1200 g=-22 t=0|c1 f=3800 w=1200 g=-22 t=0, \ | ||
176 | + anequalizer=c0 f=3100 w=600 g=-16 t=0|c1 f=3100 w=600 g=-16 t=0" | ||
177 | + | ||
178 | +#define FILTER_FORMAL_2_M30_2 "equalizer=f=31:t=q:w=2.0:g=-48, \ | ||
179 | + equalizer=f=62:t=q:w=2.0:g=-36, \ | ||
180 | + equalizer=f=125:t=q:w=2.0:g=-30, \ | ||
181 | + equalizer=f=250:t=q:w=2.0:g=-26, \ | ||
182 | + equalizer=f=500:t=q:w=2.0:g=-20, \ | ||
183 | + equalizer=f=1000:t=q:w=2.0:g=-12, \ | ||
184 | + equalizer=f=2000:t=q:w=2.0:g=-8, \ | ||
185 | + equalizer=f=4000:t=q:w=2.0:g=+0, \ | ||
186 | + equalizer=f=8000:t=q:w=2.0:g=+0, \ | ||
187 | + equalizer=f=16000:t=q:w=2.0:g=+0, \ | ||
188 | + compand=attacks=0:decays=0.3:points=-60/-60|-30/-20|-20/-15|-10/-10|0/-5:gain=5, \ | ||
189 | + lowpass=f=6000:width_type=q:w=1.8, \ | ||
190 | + highpass=f=80:width_type=q:w=1.2, \ | ||
191 | + volume=0.98, \ | ||
192 | + anequalizer=c0 f=4000 w=1400 g=-28 t=0|c1 f=4000 w=1400 g=-28 t=0, \ | ||
193 | + anequalizer=c0 f=3700 w=1400 g=-24 t=0|c1 f=3700 w=1400 g=-24 t=0" | ||
144 | 194 | ||
145 | /*00 35 | 195 | /*00 35 |
146 | 02 37 | 196 | 02 37 |
@@ -193,13 +243,13 @@ typedef enum FilterList{ | @@ -193,13 +243,13 @@ typedef enum FilterList{ | ||
193 | //h10t的滤波器跟其他的不一样,所以单独定义 | 243 | //h10t的滤波器跟其他的不一样,所以单独定义 |
194 | #if DEVICE_VERSION == JZ_H10T | 244 | #if DEVICE_VERSION == JZ_H10T |
195 | 245 | ||
196 | -#define FILTER_PARAM_M30_AUDIO FILTER_FORMAL_1_M30_2 | ||
197 | -#define FILTER_PARAM_M30_TTS FILTER_FORMAL_1_M30_TTS | 246 | +#define FILTER_PARAM_M30_AUDIO FILTER_FORMAL_2_M30_2 |
247 | +#define FILTER_PARAM_M30_TTS FILTER_FORMAL_2_M30_TTS | ||
198 | 248 | ||
199 | #else | 249 | #else |
200 | 250 | ||
201 | -#define FILTER_PARAM_M30_AUDIO FILTER_FORMAL_1_M30_1 | ||
202 | -#define FILTER_PARAM_M30_TTS FILTER_FORMAL_1_M30_TTS | 251 | +#define FILTER_PARAM_M30_AUDIO FILTER_FORMAL_2_M30_1 |
252 | +#define FILTER_PARAM_M30_TTS FILTER_FORMAL_2_M30_TTS | ||
203 | 253 | ||
204 | #endif | 254 | #endif |
205 | /* Exported types ------------------------------------------------------------*/ | 255 | /* Exported types ------------------------------------------------------------*/ |
1 | #include "JZsdkLib.h" | 1 | #include "JZsdkLib.h" |
2 | #include <sys/time.h> // 对于 settimeofday 可能需要这个头文件 | 2 | #include <sys/time.h> // 对于 settimeofday 可能需要这个头文件 |
3 | #include <time.h> | 3 | #include <time.h> |
4 | - | 4 | +#include <unistd.h> |
5 | +#include <string.h> | ||
5 | #include "Attribute.h" | 6 | #include "Attribute.h" |
6 | 7 | ||
8 | +// 每个月的天数表(索引0为占位) | ||
9 | +const uint8_t days_in_month[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; | ||
10 | + | ||
7 | static T_JZsdkAttributeGpsTime g_GpsTime = 0; | 11 | static T_JZsdkAttributeGpsTime g_GpsTime = 0; |
8 | static T_JZsdkAttributeGpsDate g_GpsDate = 0; | 12 | static T_JZsdkAttributeGpsDate g_GpsDate = 0; |
9 | static T_JZsdkAttributeGpsPosition g_GpsPositino = {0}; | 13 | static T_JZsdkAttributeGpsPosition g_GpsPositino = {0}; |
@@ -15,19 +19,138 @@ static T_JZsdkAttributeGpsPosition g_GpsPositino = {0}; | @@ -15,19 +19,138 @@ static T_JZsdkAttributeGpsPosition g_GpsPositino = {0}; | ||
15 | // static int GpsMinute = 0; | 19 | // static int GpsMinute = 0; |
16 | // static int GpsSecond = 0; | 20 | // static int GpsSecond = 0; |
17 | 21 | ||
22 | +void * Attribute_Task(void *arg) | ||
23 | +{ | ||
24 | + t_JZdateTime dt; | ||
25 | + | ||
26 | + const time_t GPS_EPOCH_OFFSET = 315964800; // 1980-01-06 -> 1970-01-01的秒数 | ||
27 | + const uint8_t GPS_LEAP_SECONDS = 18; // GPS-UTC闰秒差(需动态更新) | ||
28 | + | ||
29 | + //每60s更新一次psdk时间 | ||
30 | + while (1) | ||
31 | + { | ||
32 | + //获取gps时间 | ||
33 | + T_JZsdkAttributeGpsTime gpsTime = Attribute_GetGpsTime(); | ||
34 | + | ||
35 | + JZsdk_convert_gpstime(gpsTime, &dt); | ||
36 | + | ||
37 | + JZSDK_LOG_INFO("GPS Time: %u seconds\n", gpsTime); | ||
38 | + JZSDK_LOG_INFO("Converted: %04u-%02u-%02u %02u:%02u:%02u\n", | ||
39 | + dt.year, dt.month, dt.day, | ||
40 | + dt.hour, dt.minute, dt.second); | ||
41 | + | ||
42 | + //将gps时间转换为unix时间 | ||
43 | + time_t gps_utc = gpsTime + GPS_EPOCH_OFFSET - GPS_LEAP_SECONDS; | ||
44 | + | ||
45 | + //获取系统时间 | ||
46 | + struct timeval tv; | ||
47 | + if (gettimeofday(&tv, NULL) != 0) { | ||
48 | + JZSDK_LOG_ERROR("获取系统时间失败"); | ||
49 | + delayS(10); | ||
50 | + continue; | ||
51 | + } | ||
52 | + | ||
53 | + // 计算时间差 | ||
54 | + time_t time_diff = labs(gps_utc - tv.tv_sec); | ||
55 | + | ||
56 | + // 超阈值时更新系统时间 | ||
57 | + if (time_diff > 60) | ||
58 | + { | ||
59 | + JZSDK_LOG_INFO("时间差超过60秒: GPS=%u, 系统=%ld", gpsTime, tv.tv_sec); | ||
60 | + | ||
61 | + struct timeval new_tv = { .tv_sec = gps_utc, .tv_usec = 0 }; | ||
62 | + if (settimeofday(&new_tv, NULL) == 0) { | ||
63 | + JZSDK_LOG_INFO("系统时间更新成功"); | ||
64 | + } else { | ||
65 | + JZSDK_LOG_ERROR("系统时间更新失败(需root权限)"); | ||
66 | + } | ||
67 | + } | ||
68 | + | ||
69 | + delayS(20); | ||
70 | + } | ||
71 | + | ||
72 | + return NULL; | ||
73 | +} | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | +static T_JZsdkReturnCode is_system_utc() | ||
78 | +{ | ||
79 | + // 方法1:检查 /etc/localtime 是否链接到 UTC | ||
80 | + char cmd[256]; | ||
81 | + snprintf(cmd, sizeof(cmd), "readlink /etc/localtime | grep -q UTC"); | ||
82 | + if (system(cmd) == 0) { | ||
83 | + JZSDK_LOG_INFO("系统时区为 UTC (检测到 /etc/localtime 链接)"); | ||
84 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
85 | + } | ||
86 | + | ||
87 | + // 方法2:检查 /etc/timezone 文件内容 | ||
88 | + FILE *tz_file = fopen("/etc/timezone", "r"); | ||
89 | + if (tz_file) { | ||
90 | + char tz[32] = {0}; | ||
91 | + fgets(tz, sizeof(tz), tz_file); | ||
92 | + fclose(tz_file); | ||
93 | + if (strstr(tz, "UTC") || strstr(tz, "Etc/UTC")) { | ||
94 | + JZSDK_LOG_INFO("系统时区为 UTC (检测到 /etc/timezone)"); | ||
95 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
96 | + } | ||
97 | + } | ||
98 | + | ||
99 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
100 | +} | ||
101 | + | ||
102 | +static T_JZsdkReturnCode set_system_utc() | ||
103 | +{ | ||
104 | + // 1. 检查 root 权限 | ||
105 | + if (geteuid() != 0) { | ||
106 | + JZSDK_LOG_ERROR("修改时区需要 root 权限"); | ||
107 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
108 | + } | ||
109 | + | ||
110 | + // 2. 更新 /etc/localtime | ||
111 | + system("rm -f /etc/localtime"); | ||
112 | + system("ln -sf /usr/share/zoneinfo/UTC /etc/localtime"); | ||
113 | + | ||
114 | + // 3. 更新 /etc/timezone(如果存在) | ||
115 | + system("echo 'UTC' > /etc/timezone 2>/dev/null"); | ||
116 | + | ||
117 | + // 4. 通知系统时区变更(如果使用 systemd) | ||
118 | + system("timedatectl set-timezone UTC 2>/dev/null"); | ||
119 | + | ||
120 | + // 5. 验证是否成功 | ||
121 | + return is_system_utc(); | ||
122 | +} | ||
123 | + | ||
124 | +static T_JZsdkReturnCode Attribute_ChangeTimezone() | ||
125 | +{ | ||
126 | + if (is_system_utc() == JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
127 | + JZSDK_LOG_INFO("系统已是 UTC,无需修改"); | ||
128 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
129 | + } | ||
130 | + | ||
131 | + T_JZsdkReturnCode ret = set_system_utc(); | ||
132 | + if (ret == JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
133 | + JZSDK_LOG_INFO("系统时区已永久修改为 UTC"); | ||
134 | + } else { | ||
135 | + JZSDK_LOG_ERROR("修改时区失败"); | ||
136 | + } | ||
137 | + return ret; | ||
138 | +} | ||
18 | T_JZsdkReturnCode Attribute_Init() | 139 | T_JZsdkReturnCode Attribute_Init() |
19 | { | 140 | { |
141 | + T_JZsdkOsalHandler *OsalHandle = JZsdk_Platform_GetOsalHandler(); | ||
142 | + | ||
143 | + //系统时区修改 | ||
144 | + //Attribute_ChangeTimezone(); | ||
20 | 145 | ||
21 | - int year = 0; | ||
22 | - int month = 0; | ||
23 | - int day = 0; | ||
24 | - int hour = 0; | ||
25 | - int minute = 0; | ||
26 | - int second = 0; | 146 | + //将进程修改为UTC时区 |
147 | + setenv("TZ", "UTC", 1); // 强制使用UTC时区 | ||
148 | + tzset(); // 生效时区设置 | ||
27 | 149 | ||
28 | - Attribute_GetTime_ByI(&year, &month, &day, &hour, &minute, &second); | ||
29 | 150 | ||
30 | - JZSDK_LOG_INFO("%d-%d-%d %d:%d:%d", year, month, day, hour, minute, second); | 151 | + //创建任务 |
152 | + T_JZTaskHandle taskHandle = NULL; | ||
153 | + OsalHandle->TaskCreate("attribute_task",Attribute_Task, 4096, NULL, &taskHandle); | ||
31 | 154 | ||
32 | JZSDK_LOG_INFO("Attribute_Init_Complete"); | 155 | JZSDK_LOG_INFO("Attribute_Init_Complete"); |
33 | 156 | ||
@@ -161,33 +284,68 @@ T_JZsdkReturnCode Attribute_GetGpsXYZ_ByF(float *x, float *y, float *z) | @@ -161,33 +284,68 @@ T_JZsdkReturnCode Attribute_GetGpsXYZ_ByF(float *x, float *y, float *z) | ||
161 | return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | 284 | return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; |
162 | } | 285 | } |
163 | 286 | ||
164 | -/************************ | ||
165 | - * | ||
166 | - * 获取显示的时间 | ||
167 | - * | ||
168 | - * | ||
169 | - * ***********************/ | ||
170 | -T_JZsdkReturnCode Attribute_GetTime_ByI(int *year, int *month, int *day, int *hour, int *minute, int *second) | 287 | + |
288 | +// 判断是否为闰年 | ||
289 | +static bool is_leap_year(uint16_t year) { | ||
290 | + return (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0); | ||
291 | +} | ||
292 | + | ||
293 | +// 计算日期 | ||
294 | +static void calculate_date(uint32_t total_days, t_JZdateTime *date) { | ||
295 | + // GPS起始时间:1980年1月6日 | ||
296 | + date->year = 1980; | ||
297 | + date->month = 1; | ||
298 | + date->day = 6; | ||
299 | + | ||
300 | + while (total_days > 0) { | ||
301 | + // 计算当前年是否是闰年 | ||
302 | + uint16_t days_in_year = is_leap_year(date->year) ? 366 : 365; | ||
303 | + | ||
304 | + if (total_days >= days_in_year) { | ||
305 | + total_days -= days_in_year; | ||
306 | + date->year++; | ||
307 | + } else { | ||
308 | + // 处理月份 | ||
309 | + uint8_t month = date->month; | ||
310 | + while (total_days > 0 && month <= 12) { | ||
311 | + uint8_t dim = days_in_month[month]; | ||
312 | + // 闰年2月特殊处理 | ||
313 | + if (month == 2 && is_leap_year(date->year)) dim++; | ||
314 | + | ||
315 | + if (total_days >= dim) { | ||
316 | + total_days -= dim; | ||
317 | + month++; | ||
318 | + } else { | ||
319 | + date->day += total_days; | ||
320 | + total_days = 0; | ||
321 | + if (date->day > dim) { | ||
322 | + date->day -= dim; | ||
323 | + month++; | ||
324 | + } | ||
325 | + } | ||
326 | + } | ||
327 | + date->month = month; | ||
328 | + break; | ||
329 | + } | ||
330 | + } | ||
331 | +} | ||
332 | + | ||
333 | +T_JZsdkReturnCode JZsdk_convert_gpstime(T_JZsdkAttributeGpsTime gpstime, t_JZdateTime *result) | ||
171 | { | 334 | { |
172 | - // 转换为time_t(注意:这里假设TimeStamp是以秒为单位的Unix时间戳) | ||
173 | - // 如果TimeStamp是以毫秒为单位的,你需要将其除以1000 | ||
174 | - time_t time_t_TimeStamp = (time_t)g_GpsTime; // 注意:这里可能会有截断,如果TimeStamp非常大 | ||
175 | - | ||
176 | - // 使用localtime将time_t转换为tm结构体 | ||
177 | - struct tm *tm_info = localtime(&time_t_TimeStamp); | ||
178 | - if (tm_info == NULL) | ||
179 | - { | ||
180 | - JZSDK_LOG_ERROR("时间转化失败"); | ||
181 | - return JZ_ERROR_SYSTEM_MODULE_CODE_INVALID_PARAMETER; | ||
182 | - } | ||
183 | - | ||
184 | - *year = tm_info->tm_year + 1900; | ||
185 | - *month = tm_info->tm_mon + 1; | ||
186 | - *day = tm_info->tm_mday; | ||
187 | - | ||
188 | - *hour = tm_info->tm_hour; | ||
189 | - *minute = tm_info->tm_min; | ||
190 | - *second = tm_info->tm_sec; | ||
191 | - | ||
192 | - //JZSDK_LOG_INFO("获得年份: %d, 月份: %d, 日期: %d, 小时:%d, 分:%d 秒:%d", *year, *month, *day, *hour, *minute, *second); | ||
193 | -} | ||
335 | + const U32_t SECONDS_PER_DAY = 86400; | ||
336 | + const U32_t SECONDS_PER_HOUR = 3600; | ||
337 | + const U8_t SECONDS_PER_MINUTE = 60; | ||
338 | + | ||
339 | + // 计算时分秒 | ||
340 | + U32_t total_days = gpstime / SECONDS_PER_DAY; | ||
341 | + U32_t remaining = gpstime % SECONDS_PER_DAY; | ||
342 | + | ||
343 | + result->hour = remaining / SECONDS_PER_HOUR; | ||
344 | + remaining %= SECONDS_PER_HOUR; | ||
345 | + | ||
346 | + result->minute = remaining / SECONDS_PER_MINUTE; | ||
347 | + result->second = remaining % SECONDS_PER_MINUTE; | ||
348 | + | ||
349 | + // 计算年月日 | ||
350 | + calculate_date(total_days, result); | ||
351 | +} |
@@ -35,6 +35,9 @@ T_JZsdkAttributeGpsDate Attribute_GetGpsDate(); | @@ -35,6 +35,9 @@ T_JZsdkAttributeGpsDate Attribute_GetGpsDate(); | ||
35 | T_JZsdkReturnCode Attribute_GetGpsXYZ_ByF(float *x, float *y, float *z); | 35 | T_JZsdkReturnCode Attribute_GetGpsXYZ_ByF(float *x, float *y, float *z); |
36 | T_JZsdkReturnCode Attribute_GetTime_ByI(int *year, int *month, int *day, int *hour, int *minute, int *second); | 36 | T_JZsdkReturnCode Attribute_GetTime_ByI(int *year, int *month, int *day, int *hour, int *minute, int *second); |
37 | T_JZsdkReturnCode Attribute_GetGpsXYZ_ByStr(unsigned char *latitude, unsigned char *longitude, float *z); | 37 | T_JZsdkReturnCode Attribute_GetGpsXYZ_ByStr(unsigned char *latitude, unsigned char *longitude, float *z); |
38 | +T_JZsdkReturnCode Attribute_Init(); | ||
39 | + | ||
40 | +T_JZsdkReturnCode JZsdk_convert_gpstime(T_JZsdkAttributeGpsTime gpstime, t_JZdateTime *result); | ||
38 | 41 | ||
39 | 42 | ||
40 | #ifdef __cplusplus | 43 | #ifdef __cplusplus |
@@ -6,6 +6,7 @@ | @@ -6,6 +6,7 @@ | ||
6 | #include "./DeviceMessage/DeviceMessage.h" | 6 | #include "./DeviceMessage/DeviceMessage.h" |
7 | #include "DeviceInfo/DeviceInfo.h" | 7 | #include "DeviceInfo/DeviceInfo.h" |
8 | #include "DeviceInfo/HardwareInfo/HardwareInfo.h" | 8 | #include "DeviceInfo/HardwareInfo/HardwareInfo.h" |
9 | +#include "DeviceInfo/Attribute/Attribute.h" | ||
9 | 10 | ||
10 | #include "JZsdk_Hal.h" | 11 | #include "JZsdk_Hal.h" |
11 | 12 | ||
@@ -53,6 +54,9 @@ T_JZsdkReturnCode DeviceInfo_Init() | @@ -53,6 +54,9 @@ T_JZsdkReturnCode DeviceInfo_Init() | ||
53 | //设备信息自打印 | 54 | //设备信息自打印 |
54 | //DeviceMessage_PrintDeviceInfo(); | 55 | //DeviceMessage_PrintDeviceInfo(); |
55 | 56 | ||
57 | + //设备属性初始化 | ||
58 | + Attribute_Init(); | ||
59 | + | ||
56 | JZSDK_LOG_INFO("MODULE_DEVICE_INFO_INIT_COMPLETE"); | 60 | JZSDK_LOG_INFO("MODULE_DEVICE_INFO_INIT_COMPLETE"); |
57 | } | 61 | } |
58 | 62 |
@@ -355,8 +355,19 @@ static T_JZsdkReturnCode DeviceMessage_Enter_Debug(unsigned char *message) | @@ -355,8 +355,19 @@ static T_JZsdkReturnCode DeviceMessage_Enter_Debug(unsigned char *message) | ||
355 | } | 355 | } |
356 | #endif | 356 | #endif |
357 | 357 | ||
358 | + //显示gps时间 | ||
359 | + //获取gps时间 | ||
360 | + T_JZsdkAttributeGpsTime gpsTime = Attribute_GetGpsTime(); | ||
361 | + t_JZdateTime dt; | ||
362 | + JZsdk_convert_gpstime(gpsTime, &dt); | ||
358 | 363 | ||
364 | + memset(new_message,0,sizeof(new_message)); | ||
365 | + memset(old_message,0,sizeof(old_message)); | ||
366 | + snprintf(new_message,MESSAGE_MAX_LEN,"%d-%d-%d-%d-%d-%d\n",dt.year,dt.month,dt.day,dt.hour,dt.minute,dt.second); | ||
367 | + snprintf(old_message,MESSAGE_MAX_LEN,"%s",message); | ||
368 | + snprintf(message,MESSAGE_MAX_LEN,"%s%s",old_message,new_message); | ||
359 | 369 | ||
370 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
360 | } | 371 | } |
361 | 372 | ||
362 | 373 |
@@ -55,6 +55,7 @@ T_JZsdkReturnCode IRC_ParamInit(int height, int width, int frameRate, IRC_DealMo | @@ -55,6 +55,7 @@ T_JZsdkReturnCode IRC_ParamInit(int height, int width, int frameRate, IRC_DealMo | ||
55 | #endif | 55 | #endif |
56 | } | 56 | } |
57 | 57 | ||
58 | + JZSDK_LOG_INFO("IRC参数初始化完成"); | ||
58 | 59 | ||
59 | return ret; | 60 | return ret; |
60 | } | 61 | } |
@@ -25,7 +25,7 @@ extern "C" { | @@ -25,7 +25,7 @@ extern "C" { | ||
25 | 25 | ||
26 | /* Exported functions --------------------------------------------------------*/ | 26 | /* Exported functions --------------------------------------------------------*/ |
27 | 27 | ||
28 | -#if DEVICE_VERSION == JZ_C1 | 28 | +#if DEVICE_VERSION == JZ_C1 || DEVICE_VERSION == JZ_ST |
29 | 29 | ||
30 | #define FIRST_WIDTH 320 | 30 | #define FIRST_WIDTH 320 |
31 | #define FIRST_HEIGHT 256 | 31 | #define FIRST_HEIGHT 256 |
@@ -939,6 +939,45 @@ T_JZsdkReturnCode Megaphone_Init() | @@ -939,6 +939,45 @@ T_JZsdkReturnCode Megaphone_Init() | ||
939 | 939 | ||
940 | /********* | 940 | /********* |
941 | * | 941 | * |
942 | + * 喊话器初始化 仅tts | ||
943 | + * | ||
944 | +**********/ | ||
945 | +T_JZsdkReturnCode Megaphone_Init_OnlyTTs() | ||
946 | +{ | ||
947 | + if (MegaphoneStatusFlag == JZ_FLAGCODE_ON) | ||
948 | + { | ||
949 | + JZSDK_LOG_ERROR("喊话器已初始化"); | ||
950 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
951 | + } | ||
952 | + | ||
953 | + JZsdk_Malloc((void **)&g_MegaphoneInfo, sizeof(struct MegaphoneInfo)); | ||
954 | + | ||
955 | + //音量初始化 | ||
956 | + Megaphone_Volume_Init(); | ||
957 | + | ||
958 | + //TTS功能初始化 | ||
959 | + Megaphone_TTS_Init(); | ||
960 | + | ||
961 | + //根据语言信息设置默认语言 | ||
962 | + E_LanguageInfo LanguageInfo = LanguageInfo_Get_LanguageInfo(); | ||
963 | + if (LanguageInfo == LANGUAGE_INFO_CHINESE) | ||
964 | + { | ||
965 | + int language = 0x01; | ||
966 | + Megaphone_TTS_param(JZ_FLAGCODE_SET, MEGAPHONE_TTS_TONE, &language); | ||
967 | + } | ||
968 | + else | ||
969 | + { | ||
970 | + int language = 0x11; | ||
971 | + Megaphone_TTS_param(JZ_FLAGCODE_SET, MEGAPHONE_TTS_TONE, &language); | ||
972 | + } | ||
973 | + | ||
974 | + MegaphoneStatusFlag = JZ_FLAGCODE_ON; | ||
975 | +} | ||
976 | + | ||
977 | + | ||
978 | + | ||
979 | +/********* | ||
980 | + * | ||
942 | * 喊话器参数 | 981 | * 喊话器参数 |
943 | * | 982 | * |
944 | **********/ | 983 | **********/ |
@@ -78,6 +78,7 @@ extern struct MegaphoneInfo *g_MegaphoneInfo; | @@ -78,6 +78,7 @@ extern struct MegaphoneInfo *g_MegaphoneInfo; | ||
78 | 78 | ||
79 | /* Exported functions --------------------------------------------------------*/ | 79 | /* Exported functions --------------------------------------------------------*/ |
80 | T_JZsdkReturnCode Megaphone_Init(); | 80 | T_JZsdkReturnCode Megaphone_Init(); |
81 | +T_JZsdkReturnCode Megaphone_Init_OnlyTTs(); | ||
81 | T_JZsdkReturnCode Megaphone_TTS_Play(unsigned char *str, unsigned int str_len, int ReplyFlag); | 82 | T_JZsdkReturnCode Megaphone_TTS_Play(unsigned char *str, unsigned int str_len, int ReplyFlag); |
82 | T_JZsdkReturnCode Megaphone_TTS_param(int flagcode, enum MegaphoneTTSParam paramflag, int *value); | 83 | T_JZsdkReturnCode Megaphone_TTS_param(int flagcode, enum MegaphoneTTSParam paramflag, int *value); |
83 | T_JZsdkReturnCode Megaphone_Amplifier_param(int flagcode, int *value); | 84 | T_JZsdkReturnCode Megaphone_Amplifier_param(int flagcode, int *value); |
@@ -15,7 +15,7 @@ | @@ -15,7 +15,7 @@ | ||
15 | #include "Megaphone/Megaphone.h" | 15 | #include "Megaphone/Megaphone.h" |
16 | 16 | ||
17 | #define AUDIO_DIR "/root/sdcard/audio" | 17 | #define AUDIO_DIR "/root/sdcard/audio" |
18 | -#define RECODE_DIR "/root/sdcard/record" | 18 | +#define RECODE_DIR "/root/record" |
19 | 19 | ||
20 | //创建一个歌曲节点 | 20 | //创建一个歌曲节点 |
21 | static struct AudioMange_Node *g_AudioList = NULL; | 21 | static struct AudioMange_Node *g_AudioList = NULL; |
@@ -204,7 +204,7 @@ static T_JZsdkReturnCode AudioFile_FreeAudioList() | @@ -204,7 +204,7 @@ static T_JZsdkReturnCode AudioFile_FreeAudioList() | ||
204 | * 音频文件链表刷新 | 204 | * 音频文件链表刷新 |
205 | * | 205 | * |
206 | **********/ | 206 | **********/ |
207 | -T_JZsdkReturnCode AudioFile_FlushAudioList() | 207 | +static T_JZsdkReturnCode AudioFile_FlushAudioList_1() |
208 | { | 208 | { |
209 | if (g_AudioList_flush_Flag == JZ_FLAGCODE_ON) | 209 | if (g_AudioList_flush_Flag == JZ_FLAGCODE_ON) |
210 | { | 210 | { |
@@ -301,6 +301,8 @@ T_JZsdkReturnCode AudioFile_FlushAudioList() | @@ -301,6 +301,8 @@ T_JZsdkReturnCode AudioFile_FlushAudioList() | ||
301 | snprintf(cmd, sizeof(cmd), "ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 %s", fileDir); | 301 | snprintf(cmd, sizeof(cmd), "ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 %s", fileDir); |
302 | JZsdk_RunSystemCmd_ReturnResult(cmd, &(audioInfo.Time)); | 302 | JZsdk_RunSystemCmd_ReturnResult(cmd, &(audioInfo.Time)); |
303 | 303 | ||
304 | + //AudioDeal_GetAudio_DurationInfo(fileDir, &(audioInfo.Time)); | ||
305 | + | ||
304 | audioInfo.FileNameLen = len; | 306 | audioInfo.FileNameLen = len; |
305 | 307 | ||
306 | // 创建新节点 | 308 | // 创建新节点 |
@@ -336,6 +338,130 @@ T_JZsdkReturnCode AudioFile_FlushAudioList() | @@ -336,6 +338,130 @@ T_JZsdkReturnCode AudioFile_FlushAudioList() | ||
336 | return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | 338 | return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; |
337 | } | 339 | } |
338 | 340 | ||
341 | +/********* | ||
342 | + * | ||
343 | + * 音频文件链表刷新(稳定版) | ||
344 | + * | ||
345 | +**********/ | ||
346 | +static T_JZsdkReturnCode AudioFile_FlushAudioList_2() | ||
347 | +{ | ||
348 | + if (g_AudioList_flush_Flag == JZ_FLAGCODE_ON) | ||
349 | + { | ||
350 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
351 | + } | ||
352 | + g_AudioList_flush_Flag = JZ_FLAGCODE_ON; | ||
353 | + | ||
354 | + // 创建完整路径缓冲区 | ||
355 | + char fullpath[PATH_MAX]; | ||
356 | + struct dirent *entry; | ||
357 | + struct stat fileStat; | ||
358 | + DIR *dir = NULL; | ||
359 | + | ||
360 | + /* 创建audio目录(如果不存在) */ | ||
361 | + if (JZsdk_check_directory_exists_posix(AUDIO_DIR) != JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
362 | + JZsdk_Osal_Mkdir(AUDIO_DIR); | ||
363 | + } | ||
364 | + | ||
365 | + /* 安全打开目录 */ | ||
366 | + if (!(dir = opendir(AUDIO_DIR))) { | ||
367 | + JZSDK_LOG_ERROR("打开音频目录失败: %s", strerror(errno)); | ||
368 | + goto cleanup; | ||
369 | + } | ||
370 | + | ||
371 | + /* 清理旧链表 */ | ||
372 | + if (g_AudioList) { | ||
373 | + AudioFile_FreeAudioList(); | ||
374 | + } | ||
375 | + | ||
376 | + /* 遍历目录条目 */ | ||
377 | + while ((entry = readdir(dir)) != NULL) { | ||
378 | + const char *filename = entry->d_name; | ||
379 | + | ||
380 | + // 跳过特殊目录 | ||
381 | + if (strcmp(filename, ".") == 0 || strcmp(filename, "..") == 0) | ||
382 | + continue; | ||
383 | + | ||
384 | + // 构建完整路径 | ||
385 | + snprintf(fullpath, sizeof(fullpath), "%s/%s", AUDIO_DIR, filename); | ||
386 | + | ||
387 | + // 获取文件状态 | ||
388 | + if (lstat(fullpath, &fileStat) < 0) { | ||
389 | + JZSDK_LOG_WARN("无法获取文件状态: %s", fullpath); | ||
390 | + continue; | ||
391 | + } | ||
392 | + | ||
393 | + // 跳过非常规文件(目录/符号链接等) | ||
394 | + if (!S_ISREG(fileStat.st_mode)) { | ||
395 | + continue; | ||
396 | + } | ||
397 | + | ||
398 | + // 扩展名检查(优化版) | ||
399 | + const char *ext = strrchr(filename, '.'); | ||
400 | + if (!ext) continue; | ||
401 | + | ||
402 | + static const char *valid_ext[] = { | ||
403 | + "mp3", "wav", "flac", "m4a", "mp2", "wma", "aac", | ||
404 | + "MP3", "WAV", "FLAC", "M4A", "MP2", "WMA", "AAC" | ||
405 | + }; | ||
406 | + | ||
407 | + bool valid = false; | ||
408 | + for (size_t i = 0; i < sizeof(valid_ext)/sizeof(valid_ext[0]); i++) { | ||
409 | + if (strcasecmp(ext+1, valid_ext[i]) == 0) { | ||
410 | + valid = true; | ||
411 | + break; | ||
412 | + } | ||
413 | + } | ||
414 | + if (!valid) continue; | ||
415 | + | ||
416 | + /* 创建音频信息结构 */ | ||
417 | + struct AudioMange_audio_struct audioInfo = { | ||
418 | + .FileName = {0}, | ||
419 | + .FileSize = (uint32_t)fileStat.st_size, | ||
420 | + .Time = 0 | ||
421 | + }; | ||
422 | + strncpy(audioInfo.FileName, filename, sizeof(audioInfo.FileName)-1); | ||
423 | + | ||
424 | + unsigned char fileDir [256]; | ||
425 | + snprintf(fileDir, sizeof(fileDir), "/root/sdcard/audio/%s", filename); | ||
426 | + | ||
427 | + //写入文件大小 | ||
428 | + JZsdk_Fs_ReadFileSize(fileDir, &(audioInfo.FileSize)); | ||
429 | + JZSDK_LOG_INFO("读取到大小:%d",audioInfo.FileSize); | ||
430 | + | ||
431 | + // //写入时长信息 | ||
432 | + // unsigned char cmd[256]; | ||
433 | + // snprintf(cmd, sizeof(cmd), "ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 %s", fileDir); | ||
434 | + // JZsdk_RunSystemCmd_ReturnResult(cmd, &(audioInfo.Time)); | ||
435 | + // JZSDK_LOG_INFO("读取到时长:%d",audioInfo.Time); | ||
436 | + | ||
437 | + /* 创建链表节点 */ | ||
438 | + struct AudioMange_Node *newNode = NULL; | ||
439 | + if (Jzsdk_Create_AndioMange_Node(&newNode, audioInfo) != JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
440 | + JZSDK_LOG_ERROR("创建节点失败: %s", filename); | ||
441 | + continue; | ||
442 | + } | ||
443 | + | ||
444 | + /* 添加到链表 */ | ||
445 | + Jzsdk_AddAudioNodeToCircularList(&g_AudioList, &g_AudioListtail, &newNode); | ||
446 | + g_AudioList_Num++; | ||
447 | + } | ||
448 | + | ||
449 | +cleanup: | ||
450 | + if (dir) closedir(dir); | ||
451 | + g_AudioList_flush_Flag = JZ_FLAGCODE_OFF; | ||
452 | + JZsdk_PrintfAuidoNode_AudioList(g_AudioList); | ||
453 | + | ||
454 | + JZSDK_LOG_INFO("刷新歌曲列表已完成"); | ||
455 | + | ||
456 | + | ||
457 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
458 | +} | ||
459 | + | ||
460 | +T_JZsdkReturnCode AudioFile_FlushAudioList() | ||
461 | +{ | ||
462 | + AudioFile_FlushAudioList_1(); | ||
463 | +} | ||
464 | + | ||
339 | 465 | ||
340 | /********* | 466 | /********* |
341 | * | 467 | * |
@@ -9,13 +9,21 @@ | @@ -9,13 +9,21 @@ | ||
9 | #include "version_choose.h" | 9 | #include "version_choose.h" |
10 | #include "JZsdkLib.h" | 10 | #include "JZsdkLib.h" |
11 | 11 | ||
12 | +#define RECODE_DIR "/root/record/" | ||
13 | + | ||
12 | T_JZsdkReturnCode Espeak_init() | 14 | T_JZsdkReturnCode Espeak_init() |
13 | { | 15 | { |
14 | char dict_path[]="/root";//设置资源库路径 | 16 | char dict_path[]="/root";//设置资源库路径 |
15 | - char wav_save_path[]="/root/sdcard/record/";//设置生成音频路径 | 17 | + char wav_save_path[]=RECODE_DIR;//设置生成音频路径 |
16 | tts_init(dict_path,wav_save_path);//初始化 | 18 | tts_init(dict_path,wav_save_path);//初始化 |
17 | printf("espeak_init\n"); | 19 | printf("espeak_init\n"); |
18 | 20 | ||
21 | + //检查record文件夹是否存在 | ||
22 | + if (JZsdk_check_directory_exists_posix(RECODE_DIR) != JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
23 | + { | ||
24 | + JZsdk_RunSystemCmd("mkdir /root/record"); | ||
25 | + } | ||
26 | + | ||
19 | return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | 27 | return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; |
20 | } | 28 | } |
21 | 29 |
@@ -248,8 +248,9 @@ static T_JZsdkReturnCode TTS_FILE_GenerateAndPlay(struct t_Megaphone_tts_param * | @@ -248,8 +248,9 @@ static T_JZsdkReturnCode TTS_FILE_GenerateAndPlay(struct t_Megaphone_tts_param * | ||
248 | //获取音源,以及规则 | 248 | //获取音源,以及规则 |
249 | TTS_GetSoundSource(tone, name_tts, name_path, rule); | 249 | TTS_GetSoundSource(tone, name_tts, name_path, rule); |
250 | 250 | ||
251 | - //如果是方言和男生,则去掉字母 | ||
252 | - if (tone == 0x31 || tone == 0x32 || tone == 0x33 || tone == 0x34 || tone == 0x35 || tone == 0x36 || tone == 0x02) | 251 | + //如果是方言和男生,则去掉字母 或者追加音色里有男生 |
252 | + if (tone == 0x31 || tone == 0x32 || tone == 0x33 || tone == 0x34 || tone == 0x35 || tone == 0x36 || tone == 0x02 | ||
253 | + || tts_add_mode == 2) | ||
253 | { | 254 | { |
254 | remove_letters(argv); | 255 | remove_letters(argv); |
255 | } | 256 | } |
@@ -46,27 +46,54 @@ extern "C" { | @@ -46,27 +46,54 @@ extern "C" { | ||
46 | #define MAX_VOLUME (61) | 46 | #define MAX_VOLUME (61) |
47 | #define MAX_TTS_VOLUME (69) | 47 | #define MAX_TTS_VOLUME (69) |
48 | 48 | ||
49 | - // #define MAX_VOLUME 100 | ||
50 | - // #define MAX_TTS_VOLUME 100 | ||
51 | - | ||
52 | #elif DEVICE_VERSION == JZ_H10 | 49 | #elif DEVICE_VERSION == JZ_H10 |
53 | - #define MAX_VOLUME (65) | ||
54 | - #define MAX_TTS_VOLUME (70) | 50 | + // #define MAX_VOLUME (65) |
51 | + // #define MAX_TTS_VOLUME (70) | ||
52 | + | ||
53 | + //2025 4 10 改滤波 降低到u85% | ||
54 | + #define MAX_VOLUME (52) | ||
55 | + #define MAX_TTS_VOLUME (57) | ||
56 | + | ||
55 | #elif DEVICE_VERSION == JZ_H10T | 57 | #elif DEVICE_VERSION == JZ_H10T |
56 | - #define MAX_VOLUME (83) | ||
57 | - #define MAX_TTS_VOLUME (83) | 58 | + // #define MAX_VOLUME (83) |
59 | + // #define MAX_TTS_VOLUME (83) | ||
60 | + | ||
61 | + //2025 4 10 改滤波 降低到u56% | ||
62 | + #define MAX_VOLUME (70) | ||
63 | + #define MAX_TTS_VOLUME (74) | ||
64 | + | ||
58 | #elif DEVICE_VERSION == JZ_U3 | 65 | #elif DEVICE_VERSION == JZ_U3 |
59 | - #define MAX_VOLUME (74) | ||
60 | - #define MAX_TTS_VOLUME (82) | 66 | + // #define MAX_VOLUME (74) |
67 | + // #define MAX_TTS_VOLUME (82) | ||
68 | + | ||
69 | + //2025 4 10 改滤波 降低到u53% | ||
70 | + #define MAX_VOLUME (66) | ||
71 | + #define MAX_TTS_VOLUME (73) | ||
72 | + | ||
61 | #elif DEVICE_VERSION == JZ_U3D | 73 | #elif DEVICE_VERSION == JZ_U3D |
62 | - #define MAX_VOLUME (73) | ||
63 | - #define MAX_TTS_VOLUME (81) | 74 | + // #define MAX_VOLUME (73) |
75 | + // #define MAX_TTS_VOLUME (81) | ||
76 | + | ||
77 | + //2025 4 10 改滤波 降低到u53% | ||
78 | + #define MAX_VOLUME (66) | ||
79 | + #define MAX_TTS_VOLUME (73) | ||
80 | + | ||
64 | #elif DEVICE_VERSION == JZ_U30 | 81 | #elif DEVICE_VERSION == JZ_U30 |
65 | - #define MAX_VOLUME (74) | ||
66 | - #define MAX_TTS_VOLUME (82) | 82 | + // #define MAX_VOLUME (74) |
83 | + // #define MAX_TTS_VOLUME (82) | ||
84 | + | ||
85 | + //2025 4 10 改滤波 降低到u53% | ||
86 | + #define MAX_VOLUME (66) | ||
87 | + #define MAX_TTS_VOLUME (73) | ||
88 | + | ||
67 | #elif DEVICE_VERSION == JZ_U3S | 89 | #elif DEVICE_VERSION == JZ_U3S |
68 | - #define MAX_VOLUME (74) | ||
69 | - #define MAX_TTS_VOLUME (82) | 90 | + // #define MAX_VOLUME (74) |
91 | + // #define MAX_TTS_VOLUME (82) | ||
92 | + | ||
93 | + //2025 4 10 改滤波 降低到u53% | ||
94 | + #define MAX_VOLUME (66) | ||
95 | + #define MAX_TTS_VOLUME (73) | ||
96 | + | ||
70 | #elif DEVICE_VERSION == TF_A1 | 97 | #elif DEVICE_VERSION == TF_A1 |
71 | #define MAX_VOLUME (75) | 98 | #define MAX_VOLUME (75) |
72 | #define MAX_TTS_VOLUME (82) | 99 | #define MAX_TTS_VOLUME (82) |
@@ -31,7 +31,7 @@ T_JZsdkReturnCode Megphone_Attention() | @@ -31,7 +31,7 @@ T_JZsdkReturnCode Megphone_Attention() | ||
31 | AudioDeal_Init(); | 31 | AudioDeal_Init(); |
32 | 32 | ||
33 | //喊话器初始化 | 33 | //喊话器初始化 |
34 | - Megaphone_Init(); | 34 | + Megaphone_Init_OnlyTTs(); |
35 | 35 | ||
36 | //播放声音 | 36 | //播放声音 |
37 | AttentionVoice_IndependencePlay(); | 37 | AttentionVoice_IndependencePlay(); |
1 | # The set of languages for which implicit dependencies are needed: | 1 | # The set of languages for which implicit dependencies are needed: |
2 | set(CMAKE_DEPENDS_LANGUAGES | 2 | set(CMAKE_DEPENDS_LANGUAGES |
3 | "C" | 3 | "C" |
4 | - "CXX" | ||
5 | ) | 4 | ) |
6 | # The set of files for implicit dependencies of each language: | 5 | # The set of files for implicit dependencies of each language: |
7 | set(CMAKE_DEPENDS_CHECK_C | 6 | set(CMAKE_DEPENDS_CHECK_C |
@@ -18,6 +17,8 @@ set(CMAKE_DEPENDS_CHECK_C | @@ -18,6 +17,8 @@ set(CMAKE_DEPENDS_CHECK_C | ||
18 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComparsion_6Bframe.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComparsion_6Bframe.c.o" | 17 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComparsion_6Bframe.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComparsion_6Bframe.c.o" |
19 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_GetFrameTemplate.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_GetFrameTemplate.c.o" | 18 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_GetFrameTemplate.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_GetFrameTemplate.c.o" |
20 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_Logger.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_Logger.c.o" | 19 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_Logger.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_Logger.c.o" |
20 | + "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_Logger_Init.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_Logger_Init.c.o" | ||
21 | + "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_monitor.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_monitor.c.o" | ||
21 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/CheckSum_Src.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/CheckSum_Src.c.o" | 22 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/CheckSum_Src.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/CheckSum_Src.c.o" |
22 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/JZsdk_CheckSum.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/JZsdk_CheckSum.c.o" | 23 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/JZsdk_CheckSum.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/JZsdk_CheckSum.c.o" |
23 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_FileSystm/JZsdk_FileSystm.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_FileSystm/JZsdk_FileSystm.c.o" | 24 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_FileSystm/JZsdk_FileSystm.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_FileSystm/JZsdk_FileSystm.c.o" |
@@ -32,7 +33,7 @@ set(CMAKE_DEPENDS_CHECK_C | @@ -32,7 +33,7 @@ set(CMAKE_DEPENDS_CHECK_C | ||
32 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_TaskManagement/TaskManagement.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_TaskManagement/TaskManagement.c.o" | 33 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_TaskManagement/TaskManagement.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_TaskManagement/TaskManagement.c.o" |
33 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_TaskManagement/TaskMgmt_sample.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_TaskManagement/TaskMgmt_sample.c.o" | 34 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_TaskManagement/TaskMgmt_sample.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_TaskManagement/TaskMgmt_sample.c.o" |
34 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/BaseConfig.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/BaseConfig.c.o" | 35 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/BaseConfig.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/BaseConfig.c.o" |
35 | - "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/DeviceSample/JZ_H150S_H150T/JZ_h150s_h150t.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/DeviceSample/JZ_H150S_H150T/JZ_h150s_h150t.c.o" | 36 | + "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/DeviceSample/JZ_H1_series/JZ_H1E/JZ_h1e.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/DeviceSample/JZ_H1_series/JZ_H1E/JZ_h1e.c.o" |
36 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/ParamterParsing.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/ParamterParsing.c.o" | 37 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/ParamterParsing.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/ParamterParsing.c.o" |
37 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Recv/HalRecv.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Recv/HalRecv.c.o" | 38 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Recv/HalRecv.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Recv/HalRecv.c.o" |
38 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Recv/HalRecv_type1/HalRecv_type1.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Recv/HalRecv_type1/HalRecv_type1.c.o" | 39 | "/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Recv/HalRecv_type1/HalRecv_type1.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Recv/HalRecv_type1/HalRecv_type1.c.o" |
@@ -77,32 +78,14 @@ set(CMAKE_DEPENDS_CHECK_C | @@ -77,32 +78,14 @@ set(CMAKE_DEPENDS_CHECK_C | ||
77 | "/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/Sysfs_gpio/Sysfs_gpio.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/Sysfs_gpio/Sysfs_gpio.c.o" | 78 | "/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/Sysfs_gpio/Sysfs_gpio.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/Sysfs_gpio/Sysfs_gpio.c.o" |
78 | "/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/V3s_ircut/V3s_ircut.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/V3s_ircut/V3s_ircut.c.o" | 79 | "/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/V3s_ircut/V3s_ircut.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/V3s_ircut/V3s_ircut.c.o" |
79 | "/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/ircut.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/ircut.c.o" | 80 | "/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/ircut.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/ircut.c.o" |
80 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/Cam_FrameCatch/Cam_FrameCatch.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/Cam_FrameCatch/Cam_FrameCatch.c.o" | ||
81 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/Cam_Zoom/Cam_Zoom.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/Cam_Zoom/Cam_Zoom.c.o" | ||
82 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/Camera.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/Camera.c.o" | ||
83 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/V4L2_camera/V4L2_CameraParameterSetting.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/V4L2_camera/V4L2_CameraParameterSetting.c.o" | ||
84 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/V4L2_camera/V4L2_Record.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/V4L2_camera/V4L2_Record.c.o" | ||
85 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/V4L2_camera/V4L2_Record2.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/V4L2_camera/V4L2_Record2.c.o" | ||
86 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/IRC_data_deal/IRC_data_deal.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/IRC_data_deal/IRC_data_deal.c.o" | ||
87 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/IRC_funtion.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/IRC_funtion.c.o" | ||
88 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/JZIRC_LibProc/JZIRC_Lib.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/JZIRC_LibProc/JZIRC_Lib.c.o" | ||
89 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/ImageProc/BadPixelProc/BadPixelProc.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/ImageProc/BadPixelProc/BadPixelProc.c.o" | ||
90 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/ImageProc/PseudoColor/PseudoColor.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/ImageProc/PseudoColor/PseudoColor.c.o" | ||
91 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MediaProc.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MediaProc.c.o" | ||
92 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/MultProc.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/MultProc.c.o" | ||
93 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/RTK_mmp/Dec/RTK_mmp_dec.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/RTK_mmp/Dec/RTK_mmp_dec.c.o" | ||
94 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/RTK_mmp/Enc/RTK_mmp_enc.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/RTK_mmp/Enc/RTK_mmp_enc.c.o" | ||
95 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/RTK_mmp/RTK_mmp.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/RTK_mmp/RTK_mmp.c.o" | ||
96 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/RgaProc/RK_Rga/RK_Rga.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/RgaProc/RK_Rga/RK_Rga.c.o" | ||
97 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt.c.o" | ||
98 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt_Buffer.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt_Buffer.c.o" | ||
99 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt_Thread_Multi.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt_Thread_Multi.c.o" | ||
100 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt_Thread_Single.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt_Thread_Single.c.o" | ||
101 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamPhoto/VideoStream_ShootPhoto.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamPhoto/VideoStream_ShootPhoto.c.o" | ||
102 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamPush/VideoStream_Push.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamPush/VideoStream_Push.c.o" | ||
103 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamRecord/VideoStream_Record.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamRecord/VideoStream_Record.c.o" | ||
104 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamTransCode/VideoStreamTransCode.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamTransCode/VideoStreamTransCode.c.o" | ||
105 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamTransCode/ffmpeg_VideoTranscode.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamTransCode/ffmpeg_VideoTranscode.c.o" | 81 | + "/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/Lighting_InAndOut.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/Lighting_InAndOut.c.o" |
82 | + "/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLightTemControl/JZ_SearchLightTemp_calculation.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLightTemControl/JZ_SearchLightTemp_calculation.c.o" | ||
83 | + "/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLightTemControl/SearchLightTemControl.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLightTemControl/SearchLightTemControl.c.o" | ||
84 | + "/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLight_V3S/SearchLight_V3S_H1T/SearchLight_V3S_H1T.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLight_V3S/SearchLight_V3S_H1T/SearchLight_V3S_H1T.c.o" | ||
85 | + "/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLight_V3S/SearchLight_V3S_TFA1/SearchLight_V3S_TFA1.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLight_V3S/SearchLight_V3S_TFA1/SearchLight_V3S_TFA1.c.o" | ||
86 | + "/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLight_V3S/SearchLight_V3S_U3/SearchLight_V3S_U3.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLight_V3S/SearchLight_V3S_U3/SearchLight_V3S_U3.c.o" | ||
87 | + "/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/WarningLight/WarningLight_V3S/WarningLight_V3S_H1T/WarningLight_V3S_H1T.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/WarningLight/WarningLight_V3S/WarningLight_V3S_H1T/WarningLight_V3S_H1T.c.o" | ||
88 | + "/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/WarningLight/WarningLight_V3S/WarningLight_V3S_TFA1/WarningLight_V3S_TFA1.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/WarningLight/WarningLight_V3S/WarningLight_V3S_TFA1/WarningLight_V3S_TFA1.c.o" | ||
106 | "/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/AttentionVoice/AttentionVoice.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/AttentionVoice/AttentionVoice.c.o" | 89 | "/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/AttentionVoice/AttentionVoice.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/AttentionVoice/AttentionVoice.c.o" |
107 | "/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/AudioMange/AudioMange.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/AudioMange/AudioMange.c.o" | 90 | "/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/AudioMange/AudioMange.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/AudioMange/AudioMange.c.o" |
108 | "/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/MegTempControl/MegTempControl.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/MegTempControl/MegTempControl.c.o" | 91 | "/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/MegTempControl/MegTempControl.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/MegTempControl/MegTempControl.c.o" |
@@ -127,42 +110,14 @@ set(CMAKE_DEPENDS_CHECK_C | @@ -127,42 +110,14 @@ set(CMAKE_DEPENDS_CHECK_C | ||
127 | "/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_Widget.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_Widget.c.o" | 110 | "/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_Widget.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_Widget.c.o" |
128 | "/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetControl.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetControl.c.o" | 111 | "/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetControl.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetControl.c.o" |
129 | "/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetIndex.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetIndex.c.o" | 112 | "/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetIndex.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetIndex.c.o" |
130 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/boardtype_friendlyelec.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/boardtype_friendlyelec.c.o" | ||
131 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/drcSerial.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/drcSerial.c.o" | ||
132 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/max31855.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/max31855.c.o" | ||
133 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/max5322.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/max5322.c.o" | ||
134 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23008.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23008.c.o" | ||
135 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23016.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23016.c.o" | ||
136 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23017.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23017.c.o" | ||
137 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23s08.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23s08.c.o" | ||
138 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23s17.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23s17.c.o" | ||
139 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp3002.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp3002.c.o" | ||
140 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp3004.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp3004.c.o" | ||
141 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp3422.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp3422.c.o" | ||
142 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp4802.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp4802.c.o" | ||
143 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/pcf8574.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/pcf8574.c.o" | ||
144 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/pcf8591.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/pcf8591.c.o" | ||
145 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/piHiPri.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/piHiPri.c.o" | ||
146 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/piThread.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/piThread.c.o" | ||
147 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/sn3218.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/sn3218.c.o" | ||
148 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/softPwm.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/softPwm.c.o" | ||
149 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/softServo.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/softServo.c.o" | ||
150 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/softTone.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/softTone.c.o" | ||
151 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/sr595.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/sr595.c.o" | ||
152 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringPi.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringPi.c.o" | ||
153 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringPiI2C.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringPiI2C.c.o" | ||
154 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringPiSPI.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringPiSPI.c.o" | ||
155 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringSerial.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringSerial.c.o" | ||
156 | - "/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringShift.c" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringShift.c.o" | ||
157 | ) | 113 | ) |
158 | set(CMAKE_C_COMPILER_ID "GNU") | 114 | set(CMAKE_C_COMPILER_ID "GNU") |
159 | 115 | ||
160 | # Preprocessor definitions for this target. | 116 | # Preprocessor definitions for this target. |
161 | set(CMAKE_TARGET_DEFINITIONS_C | 117 | set(CMAKE_TARGET_DEFINITIONS_C |
162 | "MACRO_AUDIODEAL_MODULE" | 118 | "MACRO_AUDIODEAL_MODULE" |
163 | - "MACRO_MEDIA_PROC_MODULE" | 119 | + "MACRO_LIGHTING_MODULE" |
164 | "MACRO_MEGAPHONE_MODULE" | 120 | "MACRO_MEGAPHONE_MODULE" |
165 | - "MACRO_WIRINGPI_MODULE" | ||
166 | ) | 121 | ) |
167 | 122 | ||
168 | # The include file search paths: | 123 | # The include file search paths: |
@@ -170,45 +125,6 @@ set(CMAKE_C_TARGET_INCLUDE_PATH | @@ -170,45 +125,6 @@ set(CMAKE_C_TARGET_INCLUDE_PATH | ||
170 | "../../../JZsdk_Common" | 125 | "../../../JZsdk_Common" |
171 | "../../../JZsdk_Config" | 126 | "../../../JZsdk_Config" |
172 | "../../../JZsdk_hal" | 127 | "../../../JZsdk_hal" |
173 | - "../../../ThirdParty/wiringPi" | ||
174 | - "../../../Module/Megaphone" | ||
175 | - "../../../Module/Ircut" | ||
176 | - "../../../Module/Gimbal" | ||
177 | - "../../../Module/Lighting" | ||
178 | - "../../../Module/UI_control" | ||
179 | - "../../../Module/Camera" | ||
180 | - "../../../Module/COMMONManager" | ||
181 | - "../../../Module/TestAPP" | ||
182 | - "../../../Module/ImageProcessing" | ||
183 | - "../../../Module/SerialManagement" | ||
184 | - "../../../Module" | ||
185 | - "../../../ThirdParty/iFLYTEK_TTS/include" | ||
186 | - "../../../ThirdParty/Espeak/include" | ||
187 | - "../../../ThirdParty/AlsaLib/include" | ||
188 | - "../../../ThirdParty/opus/include" | ||
189 | - "../../../ThirdParty/ffmpeg_6_0/include" | ||
190 | - "../../../ThirdParty/x264_2245/include" | ||
191 | - "../../../ThirdParty/fdk_aac_2_0_3/include" | ||
192 | - ) | ||
193 | -set(CMAKE_DEPENDS_CHECK_CXX | ||
194 | - "/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/KtLibProc/KtLibProc.cpp" "/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/KtLibProc/KtLibProc.cpp.o" | ||
195 | - ) | ||
196 | -set(CMAKE_CXX_COMPILER_ID "GNU") | ||
197 | - | ||
198 | -# Preprocessor definitions for this target. | ||
199 | -set(CMAKE_TARGET_DEFINITIONS_CXX | ||
200 | - "MACRO_AUDIODEAL_MODULE" | ||
201 | - "MACRO_MEDIA_PROC_MODULE" | ||
202 | - "MACRO_MEGAPHONE_MODULE" | ||
203 | - "MACRO_WIRINGPI_MODULE" | ||
204 | - ) | ||
205 | - | ||
206 | -# The include file search paths: | ||
207 | -set(CMAKE_CXX_TARGET_INCLUDE_PATH | ||
208 | - "../../../JZsdk_Common" | ||
209 | - "../../../JZsdk_Config" | ||
210 | - "../../../JZsdk_hal" | ||
211 | - "../../../ThirdParty/wiringPi" | ||
212 | "../../../Module/Megaphone" | 128 | "../../../Module/Megaphone" |
213 | "../../../Module/Ircut" | 129 | "../../../Module/Ircut" |
214 | "../../../Module/Gimbal" | 130 | "../../../Module/Gimbal" |
不能预览此文件类型
1 | file(REMOVE_RECURSE | 1 | file(REMOVE_RECURSE |
2 | "CMakeFiles/ATTENTION_APP.dir/application/main.c.o" | 2 | "CMakeFiles/ATTENTION_APP.dir/application/main.c.o" |
3 | "CMakeFiles/ATTENTION_APP.dir/application/Megaphone_Attention.c.o" | 3 | "CMakeFiles/ATTENTION_APP.dir/application/Megaphone_Attention.c.o" |
4 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/DeviceSample/JZ_H150S_H150T/JZ_h150s_h150t.c.o" | 4 | + "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/DeviceSample/JZ_H1_series/JZ_H1E/JZ_h1e.c.o" |
5 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdkLib.c.o" | 5 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdkLib.c.o" |
6 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Code/JZsdk_DefineCode.c.o" | 6 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Code/JZsdk_DefineCode.c.o" |
7 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Code/JZsdk_DeviceCode.c.o" | 7 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Code/JZsdk_DeviceCode.c.o" |
@@ -13,6 +13,8 @@ file(REMOVE_RECURSE | @@ -13,6 +13,8 @@ file(REMOVE_RECURSE | ||
13 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComparsion_6Bframe.c.o" | 13 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComparsion_6Bframe.c.o" |
14 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_GetFrameTemplate.c.o" | 14 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_GetFrameTemplate.c.o" |
15 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_Logger.c.o" | 15 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_Logger.c.o" |
16 | + "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_Logger_Init.c.o" | ||
17 | + "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_monitor.c.o" | ||
16 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/CheckSum_Src.c.o" | 18 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/CheckSum_Src.c.o" |
17 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/JZsdk_CheckSum.c.o" | 19 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/JZsdk_CheckSum.c.o" |
18 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_FileSystm/JZsdk_FileSystm.c.o" | 20 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_FileSystm/JZsdk_FileSystm.c.o" |
@@ -56,33 +58,14 @@ file(REMOVE_RECURSE | @@ -56,33 +58,14 @@ file(REMOVE_RECURSE | ||
56 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/ircut.c.o" | 58 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/ircut.c.o" |
57 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/Sysfs_gpio/Sysfs_gpio.c.o" | 59 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/Sysfs_gpio/Sysfs_gpio.c.o" |
58 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/V3s_ircut/V3s_ircut.c.o" | 60 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/V3s_ircut/V3s_ircut.c.o" |
59 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/Camera.c.o" | ||
60 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/Cam_FrameCatch/Cam_FrameCatch.c.o" | ||
61 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/Cam_Zoom/Cam_Zoom.c.o" | ||
62 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/V4L2_camera/V4L2_CameraParameterSetting.c.o" | ||
63 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/V4L2_camera/V4L2_Record.c.o" | ||
64 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/V4L2_camera/V4L2_Record2.c.o" | ||
65 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/ImageProc/BadPixelProc/BadPixelProc.c.o" | ||
66 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/ImageProc/PseudoColor/PseudoColor.c.o" | ||
67 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/IRC_data_deal/IRC_data_deal.c.o" | ||
68 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/IRC_funtion.c.o" | ||
69 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/JZIRC_LibProc/JZIRC_Lib.c.o" | ||
70 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MediaProc.c.o" | ||
71 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/MultProc.c.o" | ||
72 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/RTK_mmp/Dec/RTK_mmp_dec.c.o" | ||
73 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/RTK_mmp/Enc/RTK_mmp_enc.c.o" | ||
74 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/RTK_mmp/RTK_mmp.c.o" | ||
75 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/RgaProc/RK_Rga/RK_Rga.c.o" | ||
76 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt.c.o" | ||
77 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt_Buffer.c.o" | ||
78 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt_Thread_Multi.c.o" | ||
79 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt_Thread_Single.c.o" | ||
80 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamPhoto/VideoStream_ShootPhoto.c.o" | ||
81 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamPush/VideoStream_Push.c.o" | ||
82 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamRecord/VideoStream_Record.c.o" | ||
83 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamTransCode/ffmpeg_VideoTranscode.c.o" | ||
84 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamTransCode/VideoStreamTransCode.c.o" | ||
85 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/KtLibProc/KtLibProc.cpp.o" | 61 | + "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/Lighting_InAndOut.c.o" |
62 | + "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLightTemControl/JZ_SearchLightTemp_calculation.c.o" | ||
63 | + "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLightTemControl/SearchLightTemControl.c.o" | ||
64 | + "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLight_V3S/SearchLight_V3S_H1T/SearchLight_V3S_H1T.c.o" | ||
65 | + "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLight_V3S/SearchLight_V3S_TFA1/SearchLight_V3S_TFA1.c.o" | ||
66 | + "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLight_V3S/SearchLight_V3S_U3/SearchLight_V3S_U3.c.o" | ||
67 | + "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/WarningLight/WarningLight_V3S/WarningLight_V3S_H1T/WarningLight_V3S_H1T.c.o" | ||
68 | + "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/WarningLight/WarningLight_V3S/WarningLight_V3S_TFA1/WarningLight_V3S_TFA1.c.o" | ||
86 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/Alsa/Pcm_AlsaPlay.c.o" | 69 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/Alsa/Pcm_AlsaPlay.c.o" |
87 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/AudioDeal.c.o" | 70 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/AudioDeal.c.o" |
88 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/AudioDealThread/AudioDealThread.c.o" | 71 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/AudioDealThread/AudioDealThread.c.o" |
@@ -122,38 +105,11 @@ file(REMOVE_RECURSE | @@ -122,38 +105,11 @@ file(REMOVE_RECURSE | ||
122 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_Widget.c.o" | 105 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_Widget.c.o" |
123 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetControl.c.o" | 106 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetControl.c.o" |
124 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetIndex.c.o" | 107 | "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetIndex.c.o" |
125 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/boardtype_friendlyelec.c.o" | ||
126 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/drcSerial.c.o" | ||
127 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/max31855.c.o" | ||
128 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/max5322.c.o" | ||
129 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23008.c.o" | ||
130 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23016.c.o" | ||
131 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23017.c.o" | ||
132 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23s08.c.o" | ||
133 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23s17.c.o" | ||
134 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp3002.c.o" | ||
135 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp3004.c.o" | ||
136 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp3422.c.o" | ||
137 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp4802.c.o" | ||
138 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/pcf8574.c.o" | ||
139 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/pcf8591.c.o" | ||
140 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/piHiPri.c.o" | ||
141 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/piThread.c.o" | ||
142 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/sn3218.c.o" | ||
143 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/softPwm.c.o" | ||
144 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/softServo.c.o" | ||
145 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/softTone.c.o" | ||
146 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/sr595.c.o" | ||
147 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringPi.c.o" | ||
148 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringPiI2C.c.o" | ||
149 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringPiSPI.c.o" | ||
150 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringSerial.c.o" | ||
151 | - "CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringShift.c.o" | ||
152 | "ATTENTION_APP.pdb" | 108 | "ATTENTION_APP.pdb" |
153 | "ATTENTION_APP" | 109 | "ATTENTION_APP" |
154 | ) | 110 | ) |
155 | 111 | ||
156 | # Per-language clean rules from dependency scanning. | 112 | # Per-language clean rules from dependency scanning. |
157 | -foreach(lang C CXX) | 113 | +foreach(lang C) |
158 | include(CMakeFiles/ATTENTION_APP.dir/cmake_clean_${lang}.cmake OPTIONAL) | 114 | include(CMakeFiles/ATTENTION_APP.dir/cmake_clean_${lang}.cmake OPTIONAL) |
159 | endforeach() | 115 | endforeach() |
@@ -2,16 +2,9 @@ | @@ -2,16 +2,9 @@ | ||
2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.5 | 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.5 |
3 | 3 | ||
4 | # compile C with /usr/local/arm/4.9.3/bin/arm-cortexa9-linux-gnueabihf-gcc | 4 | # compile C with /usr/local/arm/4.9.3/bin/arm-cortexa9-linux-gnueabihf-gcc |
5 | -# compile CXX with /usr/local/arm/4.9.3/bin/arm-cortexa9-linux-gnueabihf-g++ | ||
6 | C_FLAGS = -pthread -std=gnu99 -lm -ldl -lstdc++ -D COMPILE_MODE_MODULE | 5 | C_FLAGS = -pthread -std=gnu99 -lm -ldl -lstdc++ -D COMPILE_MODE_MODULE |
7 | 6 | ||
8 | -C_DEFINES = -DMACRO_AUDIODEAL_MODULE -DMACRO_MEDIA_PROC_MODULE -DMACRO_MEGAPHONE_MODULE -DMACRO_WIRINGPI_MODULE | 7 | +C_DEFINES = -DMACRO_AUDIODEAL_MODULE -DMACRO_LIGHTING_MODULE -DMACRO_MEGAPHONE_MODULE |
9 | 8 | ||
10 | -C_INCLUDES = -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../JZsdk_Common -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../JZsdk_Config -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../JZsdk_hal -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/wiringPi -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/Megaphone -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/Ircut -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/Gimbal -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/Lighting -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/UI_control -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/Camera -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/COMMONManager -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/TestAPP -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/ImageProcessing -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/SerialManagement -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/iFLYTEK_TTS/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/Espeak/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/AlsaLib/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/opus/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/ffmpeg_6_0/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/x264_2245/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/fdk_aac_2_0_3/include | ||
11 | - | ||
12 | -CXX_FLAGS = -D COMPILE_MODE_MODULE | ||
13 | - | ||
14 | -CXX_DEFINES = -DMACRO_AUDIODEAL_MODULE -DMACRO_MEDIA_PROC_MODULE -DMACRO_MEGAPHONE_MODULE -DMACRO_WIRINGPI_MODULE | ||
15 | - | ||
16 | -CXX_INCLUDES = -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../JZsdk_Common -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../JZsdk_Config -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../JZsdk_hal -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/wiringPi -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/Megaphone -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/Ircut -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/Gimbal -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/Lighting -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/UI_control -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/Camera -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/COMMONManager -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/TestAPP -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/ImageProcessing -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/SerialManagement -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/iFLYTEK_TTS/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/Espeak/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/AlsaLib/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/opus/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/ffmpeg_6_0/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/x264_2245/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/fdk_aac_2_0_3/include | 9 | +C_INCLUDES = -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../JZsdk_Common -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../JZsdk_Config -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../JZsdk_hal -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/Megaphone -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/Ircut -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/Gimbal -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/Lighting -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/UI_control -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/Camera -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/COMMONManager -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/TestAPP -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/ImageProcessing -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module/SerialManagement -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../Module -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/iFLYTEK_TTS/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/Espeak/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/AlsaLib/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/opus/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/ffmpeg_6_0/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/x264_2245/include -I/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/fdk_aac_2_0_3/include |
17 | 10 |
1 | -/usr/local/arm/4.9.3/bin/arm-cortexa9-linux-gnueabihf-g++ -pthread CMakeFiles/ATTENTION_APP.dir/application/main.c.o CMakeFiles/ATTENTION_APP.dir/application/Megaphone_Attention.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/DeviceSample/JZ_H150S_H150T/JZ_h150s_h150t.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdkLib.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Code/JZsdk_DefineCode.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Code/JZsdk_DeviceCode.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Code/JZsdk_ReturnCode/JZsdk_ReturnCode.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComParsion.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComparsion_5Aframe.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComparsion_5Bframe.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComparsion_6Aframe.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComparsion_6Bframe.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_GetFrameTemplate.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_Logger.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/CheckSum_Src.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/JZsdk_CheckSum.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_FileSystm/JZsdk_FileSystm.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_MemoryAdapter/JZsdk_MemoryAdapter.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_Mutex/JZsdk_Mutex.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_Osal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_Semaphore/JZsdk_Semaphore.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_Task/JZsdk_Task.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_Timer/JZsdk_Timer.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/Lwrb/lwrb.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_CommonFuntion/JZsdk_string/JZsdk_string.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_TaskManagement/TaskManagement.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_TaskManagement/TaskMgmt_sample.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/BaseConfig.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/ParamterParsing.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Recv/HalRecv.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Recv/HalRecv_type1/HalRecv_type1.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Recv/HalRecv_type1/HalRecv_type1_RecvDeal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Send/HalSend.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Send/HalSend_type1/HalSend_type1.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/JZsdk_Hal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/JZsdk_haldata_deal/JZsdk_data_transmisson.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/JZsdk_network/JZsdk_network.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/JZsdk_uart/JZsdk_Uart.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/JZsdk_uart/JZsdk_Uart_UartDeal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/JZsdk_usb_bulk/JZsdk_usb_bulk.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/Attribute/Attribute.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/DeviceInfo.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/DeviceMessage/DeviceMessage.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/HardwareInfo/HardwareInfo.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/LanguageInfo/LanguageInfo.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/SerialNumberProc/ActivateMAT/ActivateMAT.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/SerialNumberProc/FirewareOriginMAT/Country_Code.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/SerialNumberProc/FirewareOriginMAT/FirewareOriginMAT.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/SerialNumberProc/SerialProc.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Gimbal/Gimbal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Gimbal/Gimbal_DataDeal/Gimbal_DataDeal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Gimbal/Gimbal_MotorFineTuning/MotorFineTuning.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Gimbal/Gimbal_SpecialUart/Gimbal_SpecialUart.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/H3_ircut/H3_ircut.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/ircut.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/Sysfs_gpio/Sysfs_gpio.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/V3s_ircut/V3s_ircut.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/Camera.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/Cam_FrameCatch/Cam_FrameCatch.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/Cam_Zoom/Cam_Zoom.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/V4L2_camera/V4L2_CameraParameterSetting.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/V4L2_camera/V4L2_Record.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/Camera/V4L2_camera/V4L2_Record2.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/ImageProc/BadPixelProc/BadPixelProc.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/ImageProc/PseudoColor/PseudoColor.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/IRC_data_deal/IRC_data_deal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/IRC_funtion.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/JZIRC_LibProc/JZIRC_Lib.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MediaProc.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/MultProc.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/RTK_mmp/Dec/RTK_mmp_dec.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/RTK_mmp/Enc/RTK_mmp_enc.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/MultProc/RTK_mmp/RTK_mmp.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/RgaProc/RK_Rga/RK_Rga.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt_Buffer.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt_Thread_Multi.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoMgmt_Thread_Single.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamPhoto/VideoStream_ShootPhoto.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamPush/VideoStream_Push.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamRecord/VideoStream_Record.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamTransCode/ffmpeg_VideoTranscode.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/VideoMgmt/VideoStreamTransCode/VideoStreamTransCode.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/MediaProc/IRC_funtion/KtLibProc/KtLibProc.cpp.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/Alsa/Pcm_AlsaPlay.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/AudioDeal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/AudioDealThread/AudioDealThread.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/AudioStreamDeal/AudioFile_Stream_Deal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/AudioStreamDeal/File_Stream_deal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/AudioStreamDeal/pcm_Stream_deal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/Filter/FF_Filter.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/Filter/SoxFiliter/SoxFilter.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/NoiseReduction/NoiseReduction.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/Resample/pcm_Resample.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/AttentionVoice/AttentionVoice.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/AudioMange/AudioMange.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Megaphone.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/MegTempControl/MegTempControl.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Music/AudioFile/AudioFile_PlayDeal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Music/AudioFile/Megaphone_AudioFile.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Music/RealTimeMP2/Megaphone_RealTimeMP2.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Opus/OpusFile/OpusFilePlay.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Opus/OpusFile/OpusFileSave.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Opus/RealTimeVoice/Megaphone_RealTimeVoice.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/PcmAudio/PcmAudioFile.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/PcmAudio/PcmAudioPlay.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/PlayBack/Megaphone_PlayBack.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/PowerSimulation/Meg_PowerSimulation.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/TTS/cnTTS/cnTTS.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/TTS/Espeak_tts/Espeak_tts.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/TTS/Megaphone_TTS.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Volume/volume.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/CommonMod/CommonMod.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/CommonMod/HeartBeat/HeartBeat.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/CommonMod/PowerManger/PowerManger.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/CommonMod/PresetTask/PresetTask.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/CommonMod/Upgrade/Upgrade.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/Dji_Control/DJI_VideoDeal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/Psdk_UI_io.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/UI_control.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_Widget.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetControl.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetIndex.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/boardtype_friendlyelec.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/drcSerial.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/max31855.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/max5322.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23008.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23016.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23017.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23s08.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp23s17.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp3002.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp3004.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp3422.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/mcp4802.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/pcf8574.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/pcf8591.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/piHiPri.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/piThread.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/sn3218.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/softPwm.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/softServo.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/softTone.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/sr595.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringPi.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringPiI2C.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringPiSPI.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringSerial.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/ThirdParty/wiringPi/wiringShift.c.o -o ATTENTION_APP -L/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/iFLYTEK_TTS/lib/arm-cortexa9-linux-gnueabihf -rdynamic -lmsc ../../../ThirdParty/Espeak/lib/arm-cortexa9-linux-gnueabihf/libportaudio.so.2 ../../../ThirdParty/Espeak/lib/arm-cortexa9-linux-gnueabihf/libTTS_Player.so ../../../ThirdParty/AlsaLib/lib/arm-cortexa9-linux-gnueabihf/libasound.so.2.0.0 ../../../ThirdParty/opus/lib/arm-cortexa9-linux-gnueabihf/libopus.so ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libavcodec.so.60 ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libavdevice.so.60 ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libavfilter.so.9 ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libavformat.so.60 ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libavutil.so.58 ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libpostproc.so.57 ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libswresample.so.4 ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libswscale.so.7 ../../../ThirdParty/x264_2245/lib/arm-cortexa9-linux-gnueabihf/libx264.so.157 ../../../ThirdParty/fdk_aac_2_0_3/lib/arm-cortexa9-linux-gnueabihf/libfdk-aac.so.2 -Wl,-rpath,/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/iFLYTEK_TTS/lib/arm-cortexa9-linux-gnueabihf:/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/Espeak/lib/arm-cortexa9-linux-gnueabihf:/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/opus/lib/arm-cortexa9-linux-gnueabihf:/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf:/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/x264_2245/lib/arm-cortexa9-linux-gnueabihf:/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/fdk_aac_2_0_3/lib/arm-cortexa9-linux-gnueabihf | 1 | +/usr/local/arm/4.9.3/bin/arm-cortexa9-linux-gnueabihf-gcc -pthread -std=gnu99 -lm -ldl -lstdc++ -pthread CMakeFiles/ATTENTION_APP.dir/application/main.c.o CMakeFiles/ATTENTION_APP.dir/application/Megaphone_Attention.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/DeviceSample/JZ_H1_series/JZ_H1E/JZ_h1e.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdkLib.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Code/JZsdk_DefineCode.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Code/JZsdk_DeviceCode.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Code/JZsdk_ReturnCode/JZsdk_ReturnCode.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComParsion.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComparsion_5Aframe.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComparsion_5Bframe.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComparsion_6Aframe.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_FrameComparsion_6Bframe.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_FrameComparsion/JZsdk_GetFrameTemplate.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_Logger.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_Logger_Init.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Logger/JZsdk_monitor.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/CheckSum_Src.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_CheckSum/JZsdk_CheckSum.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_FileSystm/JZsdk_FileSystm.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_MemoryAdapter/JZsdk_MemoryAdapter.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_Mutex/JZsdk_Mutex.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_Osal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_Semaphore/JZsdk_Semaphore.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_Task/JZsdk_Task.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/JZsdk_Osal/JZsdk_Timer/JZsdk_Timer.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_Base/Lwrb/lwrb.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_CommonFuntion/JZsdk_string/JZsdk_string.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_TaskManagement/TaskManagement.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Common/JZsdk_TaskManagement/TaskMgmt_sample.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/BaseConfig.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_Config/ParamterParsing.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Recv/HalRecv.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Recv/HalRecv_type1/HalRecv_type1.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Recv/HalRecv_type1/HalRecv_type1_RecvDeal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Send/HalSend.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/Hal_Send/HalSend_type1/HalSend_type1.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/JZsdk_Hal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/JZsdk_haldata_deal/JZsdk_data_transmisson.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/JZsdk_network/JZsdk_network.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/JZsdk_uart/JZsdk_Uart.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/JZsdk_uart/JZsdk_Uart_UartDeal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/JZsdk_hal/JZsdk_usb_bulk/JZsdk_usb_bulk.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/Attribute/Attribute.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/DeviceInfo.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/DeviceMessage/DeviceMessage.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/HardwareInfo/HardwareInfo.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/LanguageInfo/LanguageInfo.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/SerialNumberProc/ActivateMAT/ActivateMAT.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/SerialNumberProc/FirewareOriginMAT/Country_Code.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/SerialNumberProc/FirewareOriginMAT/FirewareOriginMAT.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/DeviceInfo/SerialNumberProc/SerialProc.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Gimbal/Gimbal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Gimbal/Gimbal_DataDeal/Gimbal_DataDeal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Gimbal/Gimbal_MotorFineTuning/MotorFineTuning.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Gimbal/Gimbal_SpecialUart/Gimbal_SpecialUart.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/H3_ircut/H3_ircut.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/ircut.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/Sysfs_gpio/Sysfs_gpio.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Ircut/V3s_ircut/V3s_ircut.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/Lighting_InAndOut.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLightTemControl/JZ_SearchLightTemp_calculation.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLightTemControl/SearchLightTemControl.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLight_V3S/SearchLight_V3S_H1T/SearchLight_V3S_H1T.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLight_V3S/SearchLight_V3S_TFA1/SearchLight_V3S_TFA1.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/SearchLight/SearchLight_V3S/SearchLight_V3S_U3/SearchLight_V3S_U3.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/WarningLight/WarningLight_V3S/WarningLight_V3S_H1T/WarningLight_V3S_H1T.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Lighting/WarningLight/WarningLight_V3S/WarningLight_V3S_TFA1/WarningLight_V3S_TFA1.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/Alsa/Pcm_AlsaPlay.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/AudioDeal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/AudioDealThread/AudioDealThread.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/AudioStreamDeal/AudioFile_Stream_Deal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/AudioStreamDeal/File_Stream_deal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/AudioStreamDeal/pcm_Stream_deal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/Filter/FF_Filter.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/Filter/SoxFiliter/SoxFilter.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/NoiseReduction/NoiseReduction.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/AudioDeal/Resample/pcm_Resample.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/AttentionVoice/AttentionVoice.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/AudioMange/AudioMange.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Megaphone.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/MegTempControl/MegTempControl.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Music/AudioFile/AudioFile_PlayDeal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Music/AudioFile/Megaphone_AudioFile.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Music/RealTimeMP2/Megaphone_RealTimeMP2.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Opus/OpusFile/OpusFilePlay.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Opus/OpusFile/OpusFileSave.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Opus/RealTimeVoice/Megaphone_RealTimeVoice.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/PcmAudio/PcmAudioFile.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/PcmAudio/PcmAudioPlay.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/PlayBack/Megaphone_PlayBack.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/PowerSimulation/Meg_PowerSimulation.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/TTS/cnTTS/cnTTS.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/TTS/Espeak_tts/Espeak_tts.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/TTS/Megaphone_TTS.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/Megaphone/Volume/volume.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/CommonMod/CommonMod.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/CommonMod/HeartBeat/HeartBeat.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/CommonMod/PowerManger/PowerManger.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/CommonMod/PresetTask/PresetTask.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/CommonMod/Upgrade/Upgrade.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/Dji_Control/DJI_VideoDeal.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/Psdk_UI_io.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/UI_control.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_Widget.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetControl.c.o CMakeFiles/ATTENTION_APP.dir/mnt/hgfs/share/JZSDK_Linux/Module/UI_control/WidegMgmt/JZsdk_WidgetIndex.c.o -o ATTENTION_APP -L/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/iFLYTEK_TTS/lib/arm-cortexa9-linux-gnueabihf -rdynamic -lmsc ../../../ThirdParty/Espeak/lib/arm-cortexa9-linux-gnueabihf/libportaudio.so.2 ../../../ThirdParty/Espeak/lib/arm-cortexa9-linux-gnueabihf/libTTS_Player.so ../../../ThirdParty/AlsaLib/lib/arm-cortexa9-linux-gnueabihf/libasound.so.2.0.0 ../../../ThirdParty/opus/lib/arm-cortexa9-linux-gnueabihf/libopus.so ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libavcodec.so.60 ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libavdevice.so.60 ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libavfilter.so.9 ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libavformat.so.60 ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libavutil.so.58 ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libpostproc.so.57 ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libswresample.so.4 ../../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf/libswscale.so.7 ../../../ThirdParty/x264_2245/lib/arm-cortexa9-linux-gnueabihf/libx264.so.157 ../../../ThirdParty/fdk_aac_2_0_3/lib/arm-cortexa9-linux-gnueabihf/libfdk-aac.so.2 -Wl,-rpath,/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/iFLYTEK_TTS/lib/arm-cortexa9-linux-gnueabihf:/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/Espeak/lib/arm-cortexa9-linux-gnueabihf:/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/opus/lib/arm-cortexa9-linux-gnueabihf:/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/ffmpeg_6_0/lib/arm-cortexa9-linux-gnueabihf:/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/x264_2245/lib/arm-cortexa9-linux-gnueabihf:/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/../../ThirdParty/fdk_aac_2_0_3/lib/arm-cortexa9-linux-gnueabihf |
1 | CMAKE_PROGRESS_1 = | 1 | CMAKE_PROGRESS_1 = |
2 | CMAKE_PROGRESS_2 = 1 | 2 | CMAKE_PROGRESS_2 = 1 |
3 | -CMAKE_PROGRESS_3 = | ||
4 | -CMAKE_PROGRESS_4 = 2 | ||
5 | -CMAKE_PROGRESS_5 = 3 | ||
6 | -CMAKE_PROGRESS_6 = | ||
7 | -CMAKE_PROGRESS_7 = 4 | ||
8 | -CMAKE_PROGRESS_8 = 5 | ||
9 | -CMAKE_PROGRESS_9 = | ||
10 | -CMAKE_PROGRESS_10 = 6 | ||
11 | -CMAKE_PROGRESS_11 = 7 | ||
12 | -CMAKE_PROGRESS_12 = | ||
13 | -CMAKE_PROGRESS_13 = 8 | ||
14 | -CMAKE_PROGRESS_14 = 9 | ||
15 | -CMAKE_PROGRESS_15 = | ||
16 | -CMAKE_PROGRESS_16 = 10 | ||
17 | -CMAKE_PROGRESS_17 = 11 | ||
18 | -CMAKE_PROGRESS_18 = | ||
19 | -CMAKE_PROGRESS_19 = 12 | ||
20 | -CMAKE_PROGRESS_20 = 13 | ||
21 | -CMAKE_PROGRESS_21 = | ||
22 | -CMAKE_PROGRESS_22 = 14 | ||
23 | -CMAKE_PROGRESS_23 = 15 | ||
24 | -CMAKE_PROGRESS_24 = | ||
25 | -CMAKE_PROGRESS_25 = 16 | ||
26 | -CMAKE_PROGRESS_26 = 17 | ||
27 | -CMAKE_PROGRESS_27 = | ||
28 | -CMAKE_PROGRESS_28 = 18 | ||
29 | -CMAKE_PROGRESS_29 = 19 | ||
30 | -CMAKE_PROGRESS_30 = | ||
31 | -CMAKE_PROGRESS_31 = 20 | ||
32 | -CMAKE_PROGRESS_32 = 21 | ||
33 | -CMAKE_PROGRESS_33 = | ||
34 | -CMAKE_PROGRESS_34 = 22 | ||
35 | -CMAKE_PROGRESS_35 = 23 | ||
36 | -CMAKE_PROGRESS_36 = | ||
37 | -CMAKE_PROGRESS_37 = 24 | ||
38 | -CMAKE_PROGRESS_38 = 25 | ||
39 | -CMAKE_PROGRESS_39 = | ||
40 | -CMAKE_PROGRESS_40 = 26 | ||
41 | -CMAKE_PROGRESS_41 = 27 | ||
42 | -CMAKE_PROGRESS_42 = | ||
43 | -CMAKE_PROGRESS_43 = 28 | ||
44 | -CMAKE_PROGRESS_44 = 29 | ||
45 | -CMAKE_PROGRESS_45 = | ||
46 | -CMAKE_PROGRESS_46 = 30 | ||
47 | -CMAKE_PROGRESS_47 = 31 | ||
48 | -CMAKE_PROGRESS_48 = | ||
49 | -CMAKE_PROGRESS_49 = 32 | ||
50 | -CMAKE_PROGRESS_50 = 33 | ||
51 | -CMAKE_PROGRESS_51 = | ||
52 | -CMAKE_PROGRESS_52 = 34 | ||
53 | -CMAKE_PROGRESS_53 = 35 | ||
54 | -CMAKE_PROGRESS_54 = | ||
55 | -CMAKE_PROGRESS_55 = 36 | ||
56 | -CMAKE_PROGRESS_56 = 37 | ||
57 | -CMAKE_PROGRESS_57 = | ||
58 | -CMAKE_PROGRESS_58 = 38 | ||
59 | -CMAKE_PROGRESS_59 = 39 | ||
60 | -CMAKE_PROGRESS_60 = | ||
61 | -CMAKE_PROGRESS_61 = 40 | ||
62 | -CMAKE_PROGRESS_62 = 41 | ||
63 | -CMAKE_PROGRESS_63 = | ||
64 | -CMAKE_PROGRESS_64 = 42 | ||
65 | -CMAKE_PROGRESS_65 = 43 | ||
66 | -CMAKE_PROGRESS_66 = | ||
67 | -CMAKE_PROGRESS_67 = 44 | ||
68 | -CMAKE_PROGRESS_68 = 45 | ||
69 | -CMAKE_PROGRESS_69 = | ||
70 | -CMAKE_PROGRESS_70 = 46 | ||
71 | -CMAKE_PROGRESS_71 = 47 | ||
72 | -CMAKE_PROGRESS_72 = | ||
73 | -CMAKE_PROGRESS_73 = 48 | ||
74 | -CMAKE_PROGRESS_74 = 49 | ||
75 | -CMAKE_PROGRESS_75 = | ||
76 | -CMAKE_PROGRESS_76 = 50 | 3 | +CMAKE_PROGRESS_3 = 2 |
4 | +CMAKE_PROGRESS_4 = 3 | ||
5 | +CMAKE_PROGRESS_5 = 4 | ||
6 | +CMAKE_PROGRESS_6 = 5 | ||
7 | +CMAKE_PROGRESS_7 = 6 | ||
8 | +CMAKE_PROGRESS_8 = 7 | ||
9 | +CMAKE_PROGRESS_9 = 8 | ||
10 | +CMAKE_PROGRESS_10 = 9 | ||
11 | +CMAKE_PROGRESS_11 = 10 | ||
12 | +CMAKE_PROGRESS_12 = 11 | ||
13 | +CMAKE_PROGRESS_13 = 12 | ||
14 | +CMAKE_PROGRESS_14 = 13 | ||
15 | +CMAKE_PROGRESS_15 = 14 | ||
16 | +CMAKE_PROGRESS_16 = | ||
17 | +CMAKE_PROGRESS_17 = 15 | ||
18 | +CMAKE_PROGRESS_18 = 16 | ||
19 | +CMAKE_PROGRESS_19 = 17 | ||
20 | +CMAKE_PROGRESS_20 = 18 | ||
21 | +CMAKE_PROGRESS_21 = 19 | ||
22 | +CMAKE_PROGRESS_22 = 20 | ||
23 | +CMAKE_PROGRESS_23 = 21 | ||
24 | +CMAKE_PROGRESS_24 = 22 | ||
25 | +CMAKE_PROGRESS_25 = 23 | ||
26 | +CMAKE_PROGRESS_26 = 24 | ||
27 | +CMAKE_PROGRESS_27 = 25 | ||
28 | +CMAKE_PROGRESS_28 = 26 | ||
29 | +CMAKE_PROGRESS_29 = 27 | ||
30 | +CMAKE_PROGRESS_30 = 28 | ||
31 | +CMAKE_PROGRESS_31 = | ||
32 | +CMAKE_PROGRESS_32 = 29 | ||
33 | +CMAKE_PROGRESS_33 = 30 | ||
34 | +CMAKE_PROGRESS_34 = 31 | ||
35 | +CMAKE_PROGRESS_35 = 32 | ||
36 | +CMAKE_PROGRESS_36 = 33 | ||
37 | +CMAKE_PROGRESS_37 = 34 | ||
38 | +CMAKE_PROGRESS_38 = 35 | ||
39 | +CMAKE_PROGRESS_39 = 36 | ||
40 | +CMAKE_PROGRESS_40 = 37 | ||
41 | +CMAKE_PROGRESS_41 = 38 | ||
42 | +CMAKE_PROGRESS_42 = 39 | ||
43 | +CMAKE_PROGRESS_43 = 40 | ||
44 | +CMAKE_PROGRESS_44 = 41 | ||
45 | +CMAKE_PROGRESS_45 = 42 | ||
46 | +CMAKE_PROGRESS_46 = | ||
47 | +CMAKE_PROGRESS_47 = 43 | ||
48 | +CMAKE_PROGRESS_48 = 44 | ||
49 | +CMAKE_PROGRESS_49 = 45 | ||
50 | +CMAKE_PROGRESS_50 = 46 | ||
51 | +CMAKE_PROGRESS_51 = 47 | ||
52 | +CMAKE_PROGRESS_52 = 48 | ||
53 | +CMAKE_PROGRESS_53 = 49 | ||
54 | +CMAKE_PROGRESS_54 = 50 | ||
55 | +CMAKE_PROGRESS_55 = 51 | ||
56 | +CMAKE_PROGRESS_56 = 52 | ||
57 | +CMAKE_PROGRESS_57 = 53 | ||
58 | +CMAKE_PROGRESS_58 = 54 | ||
59 | +CMAKE_PROGRESS_59 = 55 | ||
60 | +CMAKE_PROGRESS_60 = 56 | ||
61 | +CMAKE_PROGRESS_61 = 57 | ||
62 | +CMAKE_PROGRESS_62 = | ||
63 | +CMAKE_PROGRESS_63 = 58 | ||
64 | +CMAKE_PROGRESS_64 = 59 | ||
65 | +CMAKE_PROGRESS_65 = 60 | ||
66 | +CMAKE_PROGRESS_66 = 61 | ||
67 | +CMAKE_PROGRESS_67 = 62 | ||
68 | +CMAKE_PROGRESS_68 = 63 | ||
69 | +CMAKE_PROGRESS_69 = 64 | ||
70 | +CMAKE_PROGRESS_70 = 65 | ||
71 | +CMAKE_PROGRESS_71 = 66 | ||
72 | +CMAKE_PROGRESS_72 = 67 | ||
73 | +CMAKE_PROGRESS_73 = 68 | ||
74 | +CMAKE_PROGRESS_74 = 69 | ||
75 | +CMAKE_PROGRESS_75 = 70 | ||
76 | +CMAKE_PROGRESS_76 = 71 | ||
77 | CMAKE_PROGRESS_77 = | 77 | CMAKE_PROGRESS_77 = |
78 | -CMAKE_PROGRESS_78 = 51 | ||
79 | -CMAKE_PROGRESS_79 = 52 | ||
80 | -CMAKE_PROGRESS_80 = | ||
81 | -CMAKE_PROGRESS_81 = 53 | ||
82 | -CMAKE_PROGRESS_82 = 54 | ||
83 | -CMAKE_PROGRESS_83 = | ||
84 | -CMAKE_PROGRESS_84 = 55 | ||
85 | -CMAKE_PROGRESS_85 = 56 | ||
86 | -CMAKE_PROGRESS_86 = | ||
87 | -CMAKE_PROGRESS_87 = 57 | ||
88 | -CMAKE_PROGRESS_88 = 58 | ||
89 | -CMAKE_PROGRESS_89 = | ||
90 | -CMAKE_PROGRESS_90 = 59 | ||
91 | -CMAKE_PROGRESS_91 = 60 | 78 | +CMAKE_PROGRESS_78 = 72 |
79 | +CMAKE_PROGRESS_79 = 73 | ||
80 | +CMAKE_PROGRESS_80 = 74 | ||
81 | +CMAKE_PROGRESS_81 = 75 | ||
82 | +CMAKE_PROGRESS_82 = 76 | ||
83 | +CMAKE_PROGRESS_83 = 77 | ||
84 | +CMAKE_PROGRESS_84 = 78 | ||
85 | +CMAKE_PROGRESS_85 = 79 | ||
86 | +CMAKE_PROGRESS_86 = 80 | ||
87 | +CMAKE_PROGRESS_87 = 81 | ||
88 | +CMAKE_PROGRESS_88 = 82 | ||
89 | +CMAKE_PROGRESS_89 = 83 | ||
90 | +CMAKE_PROGRESS_90 = 84 | ||
91 | +CMAKE_PROGRESS_91 = 85 | ||
92 | CMAKE_PROGRESS_92 = | 92 | CMAKE_PROGRESS_92 = |
93 | -CMAKE_PROGRESS_93 = 61 | ||
94 | -CMAKE_PROGRESS_94 = 62 | ||
95 | -CMAKE_PROGRESS_95 = | ||
96 | -CMAKE_PROGRESS_96 = 63 | ||
97 | -CMAKE_PROGRESS_97 = 64 | ||
98 | -CMAKE_PROGRESS_98 = | ||
99 | -CMAKE_PROGRESS_99 = 65 | ||
100 | -CMAKE_PROGRESS_100 = 66 | ||
101 | -CMAKE_PROGRESS_101 = | ||
102 | -CMAKE_PROGRESS_102 = 67 | ||
103 | -CMAKE_PROGRESS_103 = 68 | ||
104 | -CMAKE_PROGRESS_104 = | ||
105 | -CMAKE_PROGRESS_105 = 69 | ||
106 | -CMAKE_PROGRESS_106 = 70 | ||
107 | -CMAKE_PROGRESS_107 = | ||
108 | -CMAKE_PROGRESS_108 = 71 | ||
109 | -CMAKE_PROGRESS_109 = 72 | ||
110 | -CMAKE_PROGRESS_110 = | ||
111 | -CMAKE_PROGRESS_111 = 73 | ||
112 | -CMAKE_PROGRESS_112 = 74 | ||
113 | -CMAKE_PROGRESS_113 = | ||
114 | -CMAKE_PROGRESS_114 = 75 | ||
115 | -CMAKE_PROGRESS_115 = 76 | ||
116 | -CMAKE_PROGRESS_116 = | ||
117 | -CMAKE_PROGRESS_117 = 77 | ||
118 | -CMAKE_PROGRESS_118 = 78 | ||
119 | -CMAKE_PROGRESS_119 = | ||
120 | -CMAKE_PROGRESS_120 = 79 | ||
121 | -CMAKE_PROGRESS_121 = 80 | ||
122 | -CMAKE_PROGRESS_122 = | ||
123 | -CMAKE_PROGRESS_123 = 81 | ||
124 | -CMAKE_PROGRESS_124 = 82 | ||
125 | -CMAKE_PROGRESS_125 = | ||
126 | -CMAKE_PROGRESS_126 = 83 | ||
127 | -CMAKE_PROGRESS_127 = 84 | ||
128 | -CMAKE_PROGRESS_128 = | ||
129 | -CMAKE_PROGRESS_129 = 85 | ||
130 | -CMAKE_PROGRESS_130 = 86 | ||
131 | -CMAKE_PROGRESS_131 = | ||
132 | -CMAKE_PROGRESS_132 = 87 | ||
133 | -CMAKE_PROGRESS_133 = 88 | ||
134 | -CMAKE_PROGRESS_134 = | ||
135 | -CMAKE_PROGRESS_135 = 89 | ||
136 | -CMAKE_PROGRESS_136 = 90 | ||
137 | -CMAKE_PROGRESS_137 = | ||
138 | -CMAKE_PROGRESS_138 = 91 | ||
139 | -CMAKE_PROGRESS_139 = 92 | ||
140 | -CMAKE_PROGRESS_140 = | ||
141 | -CMAKE_PROGRESS_141 = 93 | ||
142 | -CMAKE_PROGRESS_142 = 94 | ||
143 | -CMAKE_PROGRESS_143 = | ||
144 | -CMAKE_PROGRESS_144 = 95 | ||
145 | -CMAKE_PROGRESS_145 = 96 | ||
146 | -CMAKE_PROGRESS_146 = | ||
147 | -CMAKE_PROGRESS_147 = 97 | ||
148 | -CMAKE_PROGRESS_148 = 98 | ||
149 | -CMAKE_PROGRESS_149 = | ||
150 | -CMAKE_PROGRESS_150 = 99 | ||
151 | -CMAKE_PROGRESS_151 = 100 | 93 | +CMAKE_PROGRESS_93 = 86 |
94 | +CMAKE_PROGRESS_94 = 87 | ||
95 | +CMAKE_PROGRESS_95 = 88 | ||
96 | +CMAKE_PROGRESS_96 = 89 | ||
97 | +CMAKE_PROGRESS_97 = 90 | ||
98 | +CMAKE_PROGRESS_98 = 91 | ||
99 | +CMAKE_PROGRESS_99 = 92 | ||
100 | +CMAKE_PROGRESS_100 = 93 | ||
101 | +CMAKE_PROGRESS_101 = 94 | ||
102 | +CMAKE_PROGRESS_102 = 95 | ||
103 | +CMAKE_PROGRESS_103 = 96 | ||
104 | +CMAKE_PROGRESS_104 = 97 | ||
105 | +CMAKE_PROGRESS_105 = 98 | ||
106 | +CMAKE_PROGRESS_106 = 99 | ||
107 | +CMAKE_PROGRESS_107 = 100 | ||
152 | 108 |
@@ -28,28 +28,28 @@ The CXX compiler identification is GNU, found in "/mnt/hgfs/share/JZSDK_Linux/pr | @@ -28,28 +28,28 @@ The CXX compiler identification is GNU, found in "/mnt/hgfs/share/JZSDK_Linux/pr | ||
28 | Determining if the C compiler works passed with the following output: | 28 | Determining if the C compiler works passed with the following output: |
29 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp | 29 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp |
30 | 30 | ||
31 | -Run Build Command:"/usr/bin/make" "cmTC_16b89/fast" | ||
32 | -/usr/bin/make -f CMakeFiles/cmTC_16b89.dir/build.make CMakeFiles/cmTC_16b89.dir/build | 31 | +Run Build Command:"/usr/bin/make" "cmTC_1165a/fast" |
32 | +/usr/bin/make -f CMakeFiles/cmTC_1165a.dir/build.make CMakeFiles/cmTC_1165a.dir/build | ||
33 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 33 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
34 | -Building C object CMakeFiles/cmTC_16b89.dir/testCCompiler.c.o | ||
35 | -/usr/bin/cc -o CMakeFiles/cmTC_16b89.dir/testCCompiler.c.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp/testCCompiler.c | ||
36 | -Linking C executable cmTC_16b89 | ||
37 | -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_16b89.dir/link.txt --verbose=1 | ||
38 | -/usr/bin/cc CMakeFiles/cmTC_16b89.dir/testCCompiler.c.o -o cmTC_16b89 -rdynamic | 34 | +Building C object CMakeFiles/cmTC_1165a.dir/testCCompiler.c.o |
35 | +/usr/bin/cc -o CMakeFiles/cmTC_1165a.dir/testCCompiler.c.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp/testCCompiler.c | ||
36 | +Linking C executable cmTC_1165a | ||
37 | +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1165a.dir/link.txt --verbose=1 | ||
38 | +/usr/bin/cc CMakeFiles/cmTC_1165a.dir/testCCompiler.c.o -o cmTC_1165a -rdynamic | ||
39 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 39 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
40 | 40 | ||
41 | 41 | ||
42 | Detecting C compiler ABI info compiled with the following output: | 42 | Detecting C compiler ABI info compiled with the following output: |
43 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp | 43 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp |
44 | 44 | ||
45 | -Run Build Command:"/usr/bin/make" "cmTC_31610/fast" | ||
46 | -/usr/bin/make -f CMakeFiles/cmTC_31610.dir/build.make CMakeFiles/cmTC_31610.dir/build | 45 | +Run Build Command:"/usr/bin/make" "cmTC_04826/fast" |
46 | +/usr/bin/make -f CMakeFiles/cmTC_04826.dir/build.make CMakeFiles/cmTC_04826.dir/build | ||
47 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 47 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
48 | -Building C object CMakeFiles/cmTC_31610.dir/CMakeCCompilerABI.c.o | ||
49 | -/usr/bin/cc -o CMakeFiles/cmTC_31610.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.5/Modules/CMakeCCompilerABI.c | ||
50 | -Linking C executable cmTC_31610 | ||
51 | -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_31610.dir/link.txt --verbose=1 | ||
52 | -/usr/bin/cc -v CMakeFiles/cmTC_31610.dir/CMakeCCompilerABI.c.o -o cmTC_31610 -rdynamic | 48 | +Building C object CMakeFiles/cmTC_04826.dir/CMakeCCompilerABI.c.o |
49 | +/usr/bin/cc -o CMakeFiles/cmTC_04826.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.5/Modules/CMakeCCompilerABI.c | ||
50 | +Linking C executable cmTC_04826 | ||
51 | +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_04826.dir/link.txt --verbose=1 | ||
52 | +/usr/bin/cc -v CMakeFiles/cmTC_04826.dir/CMakeCCompilerABI.c.o -o cmTC_04826 -rdynamic | ||
53 | Using built-in specs. | 53 | Using built-in specs. |
54 | COLLECT_GCC=/usr/bin/cc | 54 | COLLECT_GCC=/usr/bin/cc |
55 | COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper | 55 | COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper |
@@ -59,8 +59,8 @@ Thread model: posix | @@ -59,8 +59,8 @@ Thread model: posix | ||
59 | gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) | 59 | gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) |
60 | COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/ | 60 | COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/ |
61 | LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/ | 61 | LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/ |
62 | -COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_31610' '-rdynamic' '-mtune=generic' '-march=x86-64' | ||
63 | - /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccgWce3S.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_31610 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_31610.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o | 62 | +COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_04826' '-rdynamic' '-mtune=generic' '-march=x86-64' |
63 | + /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccnvyM4V.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_04826 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_04826.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o | ||
64 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 64 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
65 | 65 | ||
66 | 66 | ||
@@ -68,14 +68,14 @@ Parsed C implicit link information from above output: | @@ -68,14 +68,14 @@ Parsed C implicit link information from above output: | ||
68 | link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)] | 68 | link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)] |
69 | ignore line: [Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp] | 69 | ignore line: [Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp] |
70 | ignore line: [] | 70 | ignore line: [] |
71 | - ignore line: [Run Build Command:"/usr/bin/make" "cmTC_31610/fast"] | ||
72 | - ignore line: [/usr/bin/make -f CMakeFiles/cmTC_31610.dir/build.make CMakeFiles/cmTC_31610.dir/build] | 71 | + ignore line: [Run Build Command:"/usr/bin/make" "cmTC_04826/fast"] |
72 | + ignore line: [/usr/bin/make -f CMakeFiles/cmTC_04826.dir/build.make CMakeFiles/cmTC_04826.dir/build] | ||
73 | ignore line: [make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp'] | 73 | ignore line: [make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp'] |
74 | - ignore line: [Building C object CMakeFiles/cmTC_31610.dir/CMakeCCompilerABI.c.o] | ||
75 | - ignore line: [/usr/bin/cc -o CMakeFiles/cmTC_31610.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.5/Modules/CMakeCCompilerABI.c] | ||
76 | - ignore line: [Linking C executable cmTC_31610] | ||
77 | - ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_31610.dir/link.txt --verbose=1] | ||
78 | - ignore line: [/usr/bin/cc -v CMakeFiles/cmTC_31610.dir/CMakeCCompilerABI.c.o -o cmTC_31610 -rdynamic ] | 74 | + ignore line: [Building C object CMakeFiles/cmTC_04826.dir/CMakeCCompilerABI.c.o] |
75 | + ignore line: [/usr/bin/cc -o CMakeFiles/cmTC_04826.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.5/Modules/CMakeCCompilerABI.c] | ||
76 | + ignore line: [Linking C executable cmTC_04826] | ||
77 | + ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_04826.dir/link.txt --verbose=1] | ||
78 | + ignore line: [/usr/bin/cc -v CMakeFiles/cmTC_04826.dir/CMakeCCompilerABI.c.o -o cmTC_04826 -rdynamic ] | ||
79 | ignore line: [Using built-in specs.] | 79 | ignore line: [Using built-in specs.] |
80 | ignore line: [COLLECT_GCC=/usr/bin/cc] | 80 | ignore line: [COLLECT_GCC=/usr/bin/cc] |
81 | ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] | 81 | ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] |
@@ -85,13 +85,13 @@ Parsed C implicit link information from above output: | @@ -85,13 +85,13 @@ Parsed C implicit link information from above output: | ||
85 | ignore line: [gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ] | 85 | ignore line: [gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ] |
86 | ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/] | 86 | ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/] |
87 | ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/] | 87 | ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/] |
88 | - ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_31610' '-rdynamic' '-mtune=generic' '-march=x86-64'] | ||
89 | - link line: [ /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccgWce3S.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_31610 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_31610.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o] | 88 | + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_04826' '-rdynamic' '-mtune=generic' '-march=x86-64'] |
89 | + link line: [ /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccnvyM4V.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_04826 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_04826.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o] | ||
90 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/collect2] ==> ignore | 90 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/collect2] ==> ignore |
91 | arg [-plugin] ==> ignore | 91 | arg [-plugin] ==> ignore |
92 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so] ==> ignore | 92 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so] ==> ignore |
93 | arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] ==> ignore | 93 | arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] ==> ignore |
94 | - arg [-plugin-opt=-fresolution=/tmp/ccgWce3S.res] ==> ignore | 94 | + arg [-plugin-opt=-fresolution=/tmp/ccnvyM4V.res] ==> ignore |
95 | arg [-plugin-opt=-pass-through=-lgcc] ==> ignore | 95 | arg [-plugin-opt=-pass-through=-lgcc] ==> ignore |
96 | arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore | 96 | arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore |
97 | arg [-plugin-opt=-pass-through=-lc] ==> ignore | 97 | arg [-plugin-opt=-pass-through=-lc] ==> ignore |
@@ -109,7 +109,7 @@ Parsed C implicit link information from above output: | @@ -109,7 +109,7 @@ Parsed C implicit link information from above output: | ||
109 | arg [/lib64/ld-linux-x86-64.so.2] ==> ignore | 109 | arg [/lib64/ld-linux-x86-64.so.2] ==> ignore |
110 | arg [-zrelro] ==> ignore | 110 | arg [-zrelro] ==> ignore |
111 | arg [-o] ==> ignore | 111 | arg [-o] ==> ignore |
112 | - arg [cmTC_31610] ==> ignore | 112 | + arg [cmTC_04826] ==> ignore |
113 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o] ==> ignore | 113 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o] ==> ignore |
114 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o] ==> ignore | 114 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o] ==> ignore |
115 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o] ==> ignore | 115 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o] ==> ignore |
@@ -121,7 +121,7 @@ Parsed C implicit link information from above output: | @@ -121,7 +121,7 @@ Parsed C implicit link information from above output: | ||
121 | arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] | 121 | arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] |
122 | arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] | 122 | arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] |
123 | arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..] | 123 | arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..] |
124 | - arg [CMakeFiles/cmTC_31610.dir/CMakeCCompilerABI.c.o] ==> ignore | 124 | + arg [CMakeFiles/cmTC_04826.dir/CMakeCCompilerABI.c.o] ==> ignore |
125 | arg [-lgcc] ==> lib [gcc] | 125 | arg [-lgcc] ==> lib [gcc] |
126 | arg [--as-needed] ==> ignore | 126 | arg [--as-needed] ==> ignore |
127 | arg [-lgcc_s] ==> lib [gcc_s] | 127 | arg [-lgcc_s] ==> lib [gcc_s] |
@@ -155,14 +155,14 @@ Parsed C implicit link information from above output: | @@ -155,14 +155,14 @@ Parsed C implicit link information from above output: | ||
155 | Detecting C [-std=c11] compiler features compiled with the following output: | 155 | Detecting C [-std=c11] compiler features compiled with the following output: |
156 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp | 156 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp |
157 | 157 | ||
158 | -Run Build Command:"/usr/bin/make" "cmTC_d022c/fast" | ||
159 | -/usr/bin/make -f CMakeFiles/cmTC_d022c.dir/build.make CMakeFiles/cmTC_d022c.dir/build | 158 | +Run Build Command:"/usr/bin/make" "cmTC_c80b2/fast" |
159 | +/usr/bin/make -f CMakeFiles/cmTC_c80b2.dir/build.make CMakeFiles/cmTC_c80b2.dir/build | ||
160 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 160 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
161 | -Building C object CMakeFiles/cmTC_d022c.dir/feature_tests.c.o | ||
162 | -/usr/bin/cc -std=c11 -o CMakeFiles/cmTC_d022c.dir/feature_tests.c.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/feature_tests.c | ||
163 | -Linking C executable cmTC_d022c | ||
164 | -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d022c.dir/link.txt --verbose=1 | ||
165 | -/usr/bin/cc CMakeFiles/cmTC_d022c.dir/feature_tests.c.o -o cmTC_d022c -rdynamic | 161 | +Building C object CMakeFiles/cmTC_c80b2.dir/feature_tests.c.o |
162 | +/usr/bin/cc -std=c11 -o CMakeFiles/cmTC_c80b2.dir/feature_tests.c.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/feature_tests.c | ||
163 | +Linking C executable cmTC_c80b2 | ||
164 | +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c80b2.dir/link.txt --verbose=1 | ||
165 | +/usr/bin/cc CMakeFiles/cmTC_c80b2.dir/feature_tests.c.o -o cmTC_c80b2 -rdynamic | ||
166 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 166 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
167 | 167 | ||
168 | 168 | ||
@@ -175,14 +175,14 @@ make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_ | @@ -175,14 +175,14 @@ make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_ | ||
175 | Detecting C [-std=c99] compiler features compiled with the following output: | 175 | Detecting C [-std=c99] compiler features compiled with the following output: |
176 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp | 176 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp |
177 | 177 | ||
178 | -Run Build Command:"/usr/bin/make" "cmTC_45281/fast" | ||
179 | -/usr/bin/make -f CMakeFiles/cmTC_45281.dir/build.make CMakeFiles/cmTC_45281.dir/build | 178 | +Run Build Command:"/usr/bin/make" "cmTC_c2d17/fast" |
179 | +/usr/bin/make -f CMakeFiles/cmTC_c2d17.dir/build.make CMakeFiles/cmTC_c2d17.dir/build | ||
180 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 180 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
181 | -Building C object CMakeFiles/cmTC_45281.dir/feature_tests.c.o | ||
182 | -/usr/bin/cc -std=c99 -o CMakeFiles/cmTC_45281.dir/feature_tests.c.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/feature_tests.c | ||
183 | -Linking C executable cmTC_45281 | ||
184 | -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_45281.dir/link.txt --verbose=1 | ||
185 | -/usr/bin/cc CMakeFiles/cmTC_45281.dir/feature_tests.c.o -o cmTC_45281 -rdynamic | 181 | +Building C object CMakeFiles/cmTC_c2d17.dir/feature_tests.c.o |
182 | +/usr/bin/cc -std=c99 -o CMakeFiles/cmTC_c2d17.dir/feature_tests.c.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/feature_tests.c | ||
183 | +Linking C executable cmTC_c2d17 | ||
184 | +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c2d17.dir/link.txt --verbose=1 | ||
185 | +/usr/bin/cc CMakeFiles/cmTC_c2d17.dir/feature_tests.c.o -o cmTC_c2d17 -rdynamic | ||
186 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 186 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
187 | 187 | ||
188 | 188 | ||
@@ -195,14 +195,14 @@ make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_ | @@ -195,14 +195,14 @@ make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_ | ||
195 | Detecting C [-std=c90] compiler features compiled with the following output: | 195 | Detecting C [-std=c90] compiler features compiled with the following output: |
196 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp | 196 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp |
197 | 197 | ||
198 | -Run Build Command:"/usr/bin/make" "cmTC_b1470/fast" | ||
199 | -/usr/bin/make -f CMakeFiles/cmTC_b1470.dir/build.make CMakeFiles/cmTC_b1470.dir/build | 198 | +Run Build Command:"/usr/bin/make" "cmTC_f5ff6/fast" |
199 | +/usr/bin/make -f CMakeFiles/cmTC_f5ff6.dir/build.make CMakeFiles/cmTC_f5ff6.dir/build | ||
200 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 200 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
201 | -Building C object CMakeFiles/cmTC_b1470.dir/feature_tests.c.o | ||
202 | -/usr/bin/cc -std=c90 -o CMakeFiles/cmTC_b1470.dir/feature_tests.c.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/feature_tests.c | ||
203 | -Linking C executable cmTC_b1470 | ||
204 | -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b1470.dir/link.txt --verbose=1 | ||
205 | -/usr/bin/cc CMakeFiles/cmTC_b1470.dir/feature_tests.c.o -o cmTC_b1470 -rdynamic | 201 | +Building C object CMakeFiles/cmTC_f5ff6.dir/feature_tests.c.o |
202 | +/usr/bin/cc -std=c90 -o CMakeFiles/cmTC_f5ff6.dir/feature_tests.c.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/feature_tests.c | ||
203 | +Linking C executable cmTC_f5ff6 | ||
204 | +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f5ff6.dir/link.txt --verbose=1 | ||
205 | +/usr/bin/cc CMakeFiles/cmTC_f5ff6.dir/feature_tests.c.o -o cmTC_f5ff6 -rdynamic | ||
206 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 206 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
207 | 207 | ||
208 | 208 | ||
@@ -213,28 +213,28 @@ make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_ | @@ -213,28 +213,28 @@ make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_ | ||
213 | Determining if the CXX compiler works passed with the following output: | 213 | Determining if the CXX compiler works passed with the following output: |
214 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp | 214 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp |
215 | 215 | ||
216 | -Run Build Command:"/usr/bin/make" "cmTC_a5304/fast" | ||
217 | -/usr/bin/make -f CMakeFiles/cmTC_a5304.dir/build.make CMakeFiles/cmTC_a5304.dir/build | 216 | +Run Build Command:"/usr/bin/make" "cmTC_b1f79/fast" |
217 | +/usr/bin/make -f CMakeFiles/cmTC_b1f79.dir/build.make CMakeFiles/cmTC_b1f79.dir/build | ||
218 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 218 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
219 | -Building CXX object CMakeFiles/cmTC_a5304.dir/testCXXCompiler.cxx.o | ||
220 | -/usr/bin/c++ -o CMakeFiles/cmTC_a5304.dir/testCXXCompiler.cxx.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx | ||
221 | -Linking CXX executable cmTC_a5304 | ||
222 | -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a5304.dir/link.txt --verbose=1 | ||
223 | -/usr/bin/c++ CMakeFiles/cmTC_a5304.dir/testCXXCompiler.cxx.o -o cmTC_a5304 -rdynamic | 219 | +Building CXX object CMakeFiles/cmTC_b1f79.dir/testCXXCompiler.cxx.o |
220 | +/usr/bin/c++ -o CMakeFiles/cmTC_b1f79.dir/testCXXCompiler.cxx.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx | ||
221 | +Linking CXX executable cmTC_b1f79 | ||
222 | +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b1f79.dir/link.txt --verbose=1 | ||
223 | +/usr/bin/c++ CMakeFiles/cmTC_b1f79.dir/testCXXCompiler.cxx.o -o cmTC_b1f79 -rdynamic | ||
224 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 224 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
225 | 225 | ||
226 | 226 | ||
227 | Detecting CXX compiler ABI info compiled with the following output: | 227 | Detecting CXX compiler ABI info compiled with the following output: |
228 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp | 228 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp |
229 | 229 | ||
230 | -Run Build Command:"/usr/bin/make" "cmTC_8f7b9/fast" | ||
231 | -/usr/bin/make -f CMakeFiles/cmTC_8f7b9.dir/build.make CMakeFiles/cmTC_8f7b9.dir/build | 230 | +Run Build Command:"/usr/bin/make" "cmTC_d499b/fast" |
231 | +/usr/bin/make -f CMakeFiles/cmTC_d499b.dir/build.make CMakeFiles/cmTC_d499b.dir/build | ||
232 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 232 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
233 | -Building CXX object CMakeFiles/cmTC_8f7b9.dir/CMakeCXXCompilerABI.cpp.o | ||
234 | -/usr/bin/c++ -o CMakeFiles/cmTC_8f7b9.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.5/Modules/CMakeCXXCompilerABI.cpp | ||
235 | -Linking CXX executable cmTC_8f7b9 | ||
236 | -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8f7b9.dir/link.txt --verbose=1 | ||
237 | -/usr/bin/c++ -v CMakeFiles/cmTC_8f7b9.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_8f7b9 -rdynamic | 233 | +Building CXX object CMakeFiles/cmTC_d499b.dir/CMakeCXXCompilerABI.cpp.o |
234 | +/usr/bin/c++ -o CMakeFiles/cmTC_d499b.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.5/Modules/CMakeCXXCompilerABI.cpp | ||
235 | +Linking CXX executable cmTC_d499b | ||
236 | +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d499b.dir/link.txt --verbose=1 | ||
237 | +/usr/bin/c++ -v CMakeFiles/cmTC_d499b.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_d499b -rdynamic | ||
238 | Using built-in specs. | 238 | Using built-in specs. |
239 | COLLECT_GCC=/usr/bin/c++ | 239 | COLLECT_GCC=/usr/bin/c++ |
240 | COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper | 240 | COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper |
@@ -244,8 +244,8 @@ Thread model: posix | @@ -244,8 +244,8 @@ Thread model: posix | ||
244 | gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) | 244 | gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) |
245 | COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/ | 245 | COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/ |
246 | LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/ | 246 | LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/ |
247 | -COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_8f7b9' '-rdynamic' '-shared-libgcc' '-mtune=generic' '-march=x86-64' | ||
248 | - /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccu6JmuP.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_8f7b9 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_8f7b9.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o | 247 | +COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_d499b' '-rdynamic' '-shared-libgcc' '-mtune=generic' '-march=x86-64' |
248 | + /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccw4JZic.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_d499b /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_d499b.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o | ||
249 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 249 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
250 | 250 | ||
251 | 251 | ||
@@ -253,14 +253,14 @@ Parsed CXX implicit link information from above output: | @@ -253,14 +253,14 @@ Parsed CXX implicit link information from above output: | ||
253 | link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)] | 253 | link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)] |
254 | ignore line: [Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp] | 254 | ignore line: [Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp] |
255 | ignore line: [] | 255 | ignore line: [] |
256 | - ignore line: [Run Build Command:"/usr/bin/make" "cmTC_8f7b9/fast"] | ||
257 | - ignore line: [/usr/bin/make -f CMakeFiles/cmTC_8f7b9.dir/build.make CMakeFiles/cmTC_8f7b9.dir/build] | 256 | + ignore line: [Run Build Command:"/usr/bin/make" "cmTC_d499b/fast"] |
257 | + ignore line: [/usr/bin/make -f CMakeFiles/cmTC_d499b.dir/build.make CMakeFiles/cmTC_d499b.dir/build] | ||
258 | ignore line: [make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp'] | 258 | ignore line: [make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp'] |
259 | - ignore line: [Building CXX object CMakeFiles/cmTC_8f7b9.dir/CMakeCXXCompilerABI.cpp.o] | ||
260 | - ignore line: [/usr/bin/c++ -o CMakeFiles/cmTC_8f7b9.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.5/Modules/CMakeCXXCompilerABI.cpp] | ||
261 | - ignore line: [Linking CXX executable cmTC_8f7b9] | ||
262 | - ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8f7b9.dir/link.txt --verbose=1] | ||
263 | - ignore line: [/usr/bin/c++ -v CMakeFiles/cmTC_8f7b9.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_8f7b9 -rdynamic ] | 259 | + ignore line: [Building CXX object CMakeFiles/cmTC_d499b.dir/CMakeCXXCompilerABI.cpp.o] |
260 | + ignore line: [/usr/bin/c++ -o CMakeFiles/cmTC_d499b.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.5/Modules/CMakeCXXCompilerABI.cpp] | ||
261 | + ignore line: [Linking CXX executable cmTC_d499b] | ||
262 | + ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d499b.dir/link.txt --verbose=1] | ||
263 | + ignore line: [/usr/bin/c++ -v CMakeFiles/cmTC_d499b.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_d499b -rdynamic ] | ||
264 | ignore line: [Using built-in specs.] | 264 | ignore line: [Using built-in specs.] |
265 | ignore line: [COLLECT_GCC=/usr/bin/c++] | 265 | ignore line: [COLLECT_GCC=/usr/bin/c++] |
266 | ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] | 266 | ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] |
@@ -270,13 +270,13 @@ Parsed CXX implicit link information from above output: | @@ -270,13 +270,13 @@ Parsed CXX implicit link information from above output: | ||
270 | ignore line: [gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ] | 270 | ignore line: [gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ] |
271 | ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/] | 271 | ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/] |
272 | ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/] | 272 | ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/] |
273 | - ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_8f7b9' '-rdynamic' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] | ||
274 | - link line: [ /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccu6JmuP.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_8f7b9 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_8f7b9.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o] | 273 | + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_d499b' '-rdynamic' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] |
274 | + link line: [ /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccw4JZic.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_d499b /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_d499b.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o] | ||
275 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/collect2] ==> ignore | 275 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/collect2] ==> ignore |
276 | arg [-plugin] ==> ignore | 276 | arg [-plugin] ==> ignore |
277 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so] ==> ignore | 277 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so] ==> ignore |
278 | arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] ==> ignore | 278 | arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] ==> ignore |
279 | - arg [-plugin-opt=-fresolution=/tmp/ccu6JmuP.res] ==> ignore | 279 | + arg [-plugin-opt=-fresolution=/tmp/ccw4JZic.res] ==> ignore |
280 | arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore | 280 | arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore |
281 | arg [-plugin-opt=-pass-through=-lgcc] ==> ignore | 281 | arg [-plugin-opt=-pass-through=-lgcc] ==> ignore |
282 | arg [-plugin-opt=-pass-through=-lc] ==> ignore | 282 | arg [-plugin-opt=-pass-through=-lc] ==> ignore |
@@ -294,7 +294,7 @@ Parsed CXX implicit link information from above output: | @@ -294,7 +294,7 @@ Parsed CXX implicit link information from above output: | ||
294 | arg [/lib64/ld-linux-x86-64.so.2] ==> ignore | 294 | arg [/lib64/ld-linux-x86-64.so.2] ==> ignore |
295 | arg [-zrelro] ==> ignore | 295 | arg [-zrelro] ==> ignore |
296 | arg [-o] ==> ignore | 296 | arg [-o] ==> ignore |
297 | - arg [cmTC_8f7b9] ==> ignore | 297 | + arg [cmTC_d499b] ==> ignore |
298 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o] ==> ignore | 298 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o] ==> ignore |
299 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o] ==> ignore | 299 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o] ==> ignore |
300 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o] ==> ignore | 300 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o] ==> ignore |
@@ -306,7 +306,7 @@ Parsed CXX implicit link information from above output: | @@ -306,7 +306,7 @@ Parsed CXX implicit link information from above output: | ||
306 | arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] | 306 | arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] |
307 | arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] | 307 | arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] |
308 | arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..] | 308 | arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..] |
309 | - arg [CMakeFiles/cmTC_8f7b9.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore | 309 | + arg [CMakeFiles/cmTC_d499b.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore |
310 | arg [-lstdc++] ==> lib [stdc++] | 310 | arg [-lstdc++] ==> lib [stdc++] |
311 | arg [-lm] ==> lib [m] | 311 | arg [-lm] ==> lib [m] |
312 | arg [-lgcc_s] ==> lib [gcc_s] | 312 | arg [-lgcc_s] ==> lib [gcc_s] |
@@ -338,14 +338,14 @@ Parsed CXX implicit link information from above output: | @@ -338,14 +338,14 @@ Parsed CXX implicit link information from above output: | ||
338 | Detecting CXX [-std=c++14] compiler features compiled with the following output: | 338 | Detecting CXX [-std=c++14] compiler features compiled with the following output: |
339 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp | 339 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp |
340 | 340 | ||
341 | -Run Build Command:"/usr/bin/make" "cmTC_e6b93/fast" | ||
342 | -/usr/bin/make -f CMakeFiles/cmTC_e6b93.dir/build.make CMakeFiles/cmTC_e6b93.dir/build | 341 | +Run Build Command:"/usr/bin/make" "cmTC_f36b2/fast" |
342 | +/usr/bin/make -f CMakeFiles/cmTC_f36b2.dir/build.make CMakeFiles/cmTC_f36b2.dir/build | ||
343 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 343 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
344 | -Building CXX object CMakeFiles/cmTC_e6b93.dir/feature_tests.cxx.o | ||
345 | -/usr/bin/c++ -std=c++14 -o CMakeFiles/cmTC_e6b93.dir/feature_tests.cxx.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/feature_tests.cxx | ||
346 | -Linking CXX executable cmTC_e6b93 | ||
347 | -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e6b93.dir/link.txt --verbose=1 | ||
348 | -/usr/bin/c++ CMakeFiles/cmTC_e6b93.dir/feature_tests.cxx.o -o cmTC_e6b93 -rdynamic | 344 | +Building CXX object CMakeFiles/cmTC_f36b2.dir/feature_tests.cxx.o |
345 | +/usr/bin/c++ -std=c++14 -o CMakeFiles/cmTC_f36b2.dir/feature_tests.cxx.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/feature_tests.cxx | ||
346 | +Linking CXX executable cmTC_f36b2 | ||
347 | +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f36b2.dir/link.txt --verbose=1 | ||
348 | +/usr/bin/c++ CMakeFiles/cmTC_f36b2.dir/feature_tests.cxx.o -o cmTC_f36b2 -rdynamic | ||
349 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 349 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
350 | 350 | ||
351 | 351 | ||
@@ -411,14 +411,14 @@ make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_ | @@ -411,14 +411,14 @@ make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_ | ||
411 | Detecting CXX [-std=c++11] compiler features compiled with the following output: | 411 | Detecting CXX [-std=c++11] compiler features compiled with the following output: |
412 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp | 412 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp |
413 | 413 | ||
414 | -Run Build Command:"/usr/bin/make" "cmTC_c7b32/fast" | ||
415 | -/usr/bin/make -f CMakeFiles/cmTC_c7b32.dir/build.make CMakeFiles/cmTC_c7b32.dir/build | 414 | +Run Build Command:"/usr/bin/make" "cmTC_c42d3/fast" |
415 | +/usr/bin/make -f CMakeFiles/cmTC_c42d3.dir/build.make CMakeFiles/cmTC_c42d3.dir/build | ||
416 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 416 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
417 | -Building CXX object CMakeFiles/cmTC_c7b32.dir/feature_tests.cxx.o | ||
418 | -/usr/bin/c++ -std=c++11 -o CMakeFiles/cmTC_c7b32.dir/feature_tests.cxx.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/feature_tests.cxx | ||
419 | -Linking CXX executable cmTC_c7b32 | ||
420 | -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c7b32.dir/link.txt --verbose=1 | ||
421 | -/usr/bin/c++ CMakeFiles/cmTC_c7b32.dir/feature_tests.cxx.o -o cmTC_c7b32 -rdynamic | 417 | +Building CXX object CMakeFiles/cmTC_c42d3.dir/feature_tests.cxx.o |
418 | +/usr/bin/c++ -std=c++11 -o CMakeFiles/cmTC_c42d3.dir/feature_tests.cxx.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/feature_tests.cxx | ||
419 | +Linking CXX executable cmTC_c42d3 | ||
420 | +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c42d3.dir/link.txt --verbose=1 | ||
421 | +/usr/bin/c++ CMakeFiles/cmTC_c42d3.dir/feature_tests.cxx.o -o cmTC_c42d3 -rdynamic | ||
422 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 422 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
423 | 423 | ||
424 | 424 | ||
@@ -484,14 +484,14 @@ make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_ | @@ -484,14 +484,14 @@ make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_ | ||
484 | Detecting CXX [-std=c++98] compiler features compiled with the following output: | 484 | Detecting CXX [-std=c++98] compiler features compiled with the following output: |
485 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp | 485 | Change Dir: /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp |
486 | 486 | ||
487 | -Run Build Command:"/usr/bin/make" "cmTC_68e1e/fast" | ||
488 | -/usr/bin/make -f CMakeFiles/cmTC_68e1e.dir/build.make CMakeFiles/cmTC_68e1e.dir/build | 487 | +Run Build Command:"/usr/bin/make" "cmTC_cf109/fast" |
488 | +/usr/bin/make -f CMakeFiles/cmTC_cf109.dir/build.make CMakeFiles/cmTC_cf109.dir/build | ||
489 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 489 | make[1]: Entering directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
490 | -Building CXX object CMakeFiles/cmTC_68e1e.dir/feature_tests.cxx.o | ||
491 | -/usr/bin/c++ -std=c++98 -o CMakeFiles/cmTC_68e1e.dir/feature_tests.cxx.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/feature_tests.cxx | ||
492 | -Linking CXX executable cmTC_68e1e | ||
493 | -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_68e1e.dir/link.txt --verbose=1 | ||
494 | -/usr/bin/c++ CMakeFiles/cmTC_68e1e.dir/feature_tests.cxx.o -o cmTC_68e1e -rdynamic | 490 | +Building CXX object CMakeFiles/cmTC_cf109.dir/feature_tests.cxx.o |
491 | +/usr/bin/c++ -std=c++98 -o CMakeFiles/cmTC_cf109.dir/feature_tests.cxx.o -c /mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/feature_tests.cxx | ||
492 | +Linking CXX executable cmTC_cf109 | ||
493 | +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_cf109.dir/link.txt --verbose=1 | ||
494 | +/usr/bin/c++ CMakeFiles/cmTC_cf109.dir/feature_tests.cxx.o -o cmTC_cf109 -rdynamic | ||
495 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' | 495 | make[1]: Leaving directory '/mnt/hgfs/share/JZSDK_Linux/project_build/Attention_提示程序/build/CMakeFiles/CMakeTmp' |
496 | 496 | ||
497 | 497 |
此 diff 太大无法显示。
@@ -45,6 +45,7 @@ | @@ -45,6 +45,7 @@ | ||
45 | #include "JZsdkLib.h" | 45 | #include "JZsdkLib.h" |
46 | #include "BaseConfig.h" | 46 | #include "BaseConfig.h" |
47 | #include "JZsdk_haldata_deal/JZsdk_data_transmisson.h" | 47 | #include "JZsdk_haldata_deal/JZsdk_data_transmisson.h" |
48 | +#include "DeviceInfo/DeviceInfo.h" | ||
48 | 49 | ||
49 | 50 | ||
50 | /* Private constants ---------------------------------------------------------*/ | 51 | /* Private constants ---------------------------------------------------------*/ |
@@ -438,7 +439,7 @@ static T_DjiReturnCode ReceiveDataFromPayload3(const uint8_t *data, uint16_t len | @@ -438,7 +439,7 @@ static T_DjiReturnCode ReceiveDataFromPayload3(const uint8_t *data, uint16_t len | ||
438 | return ReceiveDataFromPayload(data, len); | 439 | return ReceiveDataFromPayload(data, len); |
439 | } | 440 | } |
440 | 441 | ||
441 | -static int DebugModeCheck(unsigned char *data, unsigned int len) | 442 | +static T_JZsdkReturnCode JZsdk_Compare_DebugMode(unsigned char *data, unsigned int len) |
442 | { | 443 | { |
443 | if (len == sizeof("#debugmode#") - 1) // 减去终止符 '\0' | 444 | if (len == sizeof("#debugmode#") - 1) // 减去终止符 '\0' |
444 | { | 445 | { |
@@ -449,22 +450,71 @@ static int DebugModeCheck(unsigned char *data, unsigned int len) | @@ -449,22 +450,71 @@ static int DebugModeCheck(unsigned char *data, unsigned int len) | ||
449 | { | 450 | { |
450 | if (data[i] != debugStr[i]) | 451 | if (data[i] != debugStr[i]) |
451 | { | 452 | { |
452 | - return -1; | 453 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; |
453 | } | 454 | } |
454 | } | 455 | } |
456 | + | ||
457 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
455 | } | 458 | } |
456 | } | 459 | } |
457 | - else | 460 | + |
461 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
462 | +} | ||
463 | + | ||
464 | +static T_JZsdkReturnCode JZsdk_Compare_LanguageInfo(unsigned char *data, unsigned int len) | ||
465 | +{ | ||
466 | + if(len == sizeof("#languageE#") - 1)//检查是否是修改语言 | ||
458 | { | 467 | { |
459 | - return -1; | 468 | + if (data[0] == '#' && data[len - 1] == '#') // 检查第一个和最后一个字符 |
469 | + { | ||
470 | + unsigned char debugStr[] = "#languageE#"; | ||
471 | + | ||
472 | + for (int i = 0; i < len - 2; i++) | ||
473 | + { | ||
474 | + if (data[i] != debugStr[i]) | ||
475 | + { | ||
476 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
477 | + } | ||
478 | + } | ||
479 | + | ||
480 | + if(data[len - 2] == 'E' || data[len - 2] == 'e') | ||
481 | + { | ||
482 | + LanguageInfo_Write_LanguageInfo(LANGUAGE_INFO_ENGLISH); | ||
483 | + } | ||
484 | + else if(data[len - 2] == 'C' || data[len - 2] == 'c') | ||
485 | + { | ||
486 | + LanguageInfo_Write_LanguageInfo(LANGUAGE_INFO_CHINESE); | ||
487 | + } | ||
488 | + else | ||
489 | + { | ||
490 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; | ||
491 | + } | ||
492 | + | ||
493 | + return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
494 | + } | ||
460 | } | 495 | } |
461 | 496 | ||
462 | - if(JZsdk_create_file("/root/ShakedownTest") == JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | 497 | + return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE; |
498 | +} | ||
499 | + | ||
500 | +static int DebugModeCheck(unsigned char *data, unsigned int len) | ||
501 | +{ | ||
502 | + if (JZsdk_Compare_DebugMode(data, len) == JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
463 | { | 503 | { |
464 | - JZSDK_LOG_INFO("已开启shakedownTest调试模式"); | 504 | + if(JZsdk_create_file("/root/ShakedownTest") == JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) |
505 | + { | ||
506 | + JZSDK_LOG_INFO("已开启shakedownTest调试模式"); | ||
507 | + } | ||
508 | + | ||
509 | + return 0; | ||
465 | } | 510 | } |
466 | 511 | ||
467 | - return 0; | 512 | + if (JZsdk_Compare_LanguageInfo(data, len) == JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS) |
513 | + { | ||
514 | + return 0; | ||
515 | + } | ||
516 | + | ||
517 | + return -1; | ||
468 | } | 518 | } |
469 | 519 | ||
470 | 520 |
1 | -/** | ||
2 | - ******************************************************************** | ||
3 | - * @file test_fc_subscription.c | ||
4 | - * @brief | ||
5 | - * | ||
6 | - * @copyright (c) 2021 DJI. All rights reserved. | ||
7 | - * | ||
8 | - * All information contained herein is, and remains, the property of DJI. | ||
9 | - * The intellectual and technical concepts contained herein are proprietary | ||
10 | - * to DJI and may be covered by U.S. and foreign patents, patents in process, | ||
11 | - * and protected by trade secret or copyright law. Dissemination of this | ||
12 | - * information, including but not limited to data and other proprietary | ||
13 | - * material(s) incorporated within the information, in any form, is strictly | ||
14 | - * prohibited without the express written consent of DJI. | ||
15 | - * | ||
16 | - * If you receive this source code without DJI’s authorization, you may not | ||
17 | - * further disseminate the information, and you must immediately remove the | ||
18 | - * source code and notify DJI of its removal. DJI reserves the right to pursue | ||
19 | - * legal actions against you for any loss(es) or damage(s) caused by your | ||
20 | - * failure to do so. | ||
21 | - * | ||
22 | - ********************************************************************* | ||
23 | - */ | ||
24 | - | ||
25 | -/* | ||
26 | - 1.消息订阅初始化 | ||
27 | - 2.构造回调函数,通过构造回调函数接收飞行器推送的信息。 | ||
28 | -*/ | ||
29 | - | ||
30 | -/* Includes ------------------------------------------------------------------*/ | ||
31 | -#include <utils/util_misc.h> | ||
32 | -#include <math.h> | ||
33 | -#include "test_fc_subscription.h" | ||
34 | -#include "dji_logger.h" | ||
35 | -#include "dji_platform.h" | ||
36 | -#include "widget_interaction_test/test_widget_interaction.h" | ||
37 | -#include "../widget/test_widget.h" | ||
38 | -#include "dji_aircraft_info.h" | ||
39 | - | ||
40 | -#include "version_choose.h" | ||
41 | -#include "Psdk_UI_io.h" | ||
42 | -#include "gimbal_emu/test_payload_gimbal_emu.h" | ||
43 | -#include "JZsdkLib.h" | ||
44 | - | ||
45 | -#include "DeviceInfo/Attribute/Attribute.h" | ||
46 | - | ||
47 | -/* Private constants ---------------------------------------------------------*/ | ||
48 | -#define FC_SUBSCRIPTION_TASK_FREQ (1) | ||
49 | -#define FC_SUBSCRIPTION_TASK_STACK_SIZE (1024) | ||
50 | - | ||
51 | - | ||
52 | -/* Private types -------------------------------------------------------------*/ | ||
53 | - | ||
54 | -/* Private functions declaration ---------------------------------------------*/ | ||
55 | -static void *Subscription_GPS_DealTask(void *arg); | ||
56 | -static void *Subscription_Velocity_ReplyTask(void *arg); | ||
57 | -// static void *Subscription_GimbalSub_Task(void *arg); | ||
58 | -static T_DjiReturnCode DjiTest_FcSubscriptionReceiveQuaternionCallback(const uint8_t *data, uint16_t dataSize, | ||
59 | - const T_DjiDataTimestamp *timestamp); | ||
60 | -static void *Subscription_GimbalAngels_task(void *arg); | ||
61 | -static void* Subscription_Height_Fusion_task(void* arg); | ||
62 | -/* Private variables ---------------------------------------------------------*/ | ||
63 | -static T_DjiTaskHandle s_userFcSubscriptionThread; | ||
64 | -static bool s_userFcSubscriptionDataShow = false;//标志位 | ||
65 | -static uint8_t s_totalSatelliteNumberUsed = 0; | ||
66 | - | ||
67 | -static T_DjiFcSubscriptionGpsTime gpsTime = {0}; | ||
68 | -static T_DjiFcSubscriptionGpsDate gpsDate = {0}; | ||
69 | -static T_DjiFcSubscriptionGpsPosition gpsPosition = {0}; | ||
70 | - | ||
71 | -//获取时间结构体 | ||
72 | -struct TimeGetSub | ||
73 | -{ | ||
74 | - int GetTime; | ||
75 | - int GetDate; | ||
76 | -}; | ||
77 | - | ||
78 | -float g_height_value = 0; | ||
79 | -int height_Volume_lock = 0; //高度音量锁 | ||
80 | -static int g_WhetherInChina = 0; | ||
81 | - | ||
82 | -/* Exported functions definition ---------------------------------------------*/ | ||
83 | -/* | ||
84 | - DjiTest_FcSubscriptionStartService----------------------------------------------------------------------------------------------START | ||
85 | - 1. 初始化消息订阅模块 | ||
86 | - 2. 指定TOPIC发起数据订阅 订阅的消息有 姿态四元数 速度 GPS 位置 GPS 信息 | ||
87 | - 3. 运行user_subscription_task样例任务 | ||
88 | -*/ | ||
89 | -T_DjiReturnCode DjiTest_FcSubscriptionStartService(void) | ||
90 | -{ | ||
91 | - T_DjiReturnCode djiStat; | ||
92 | - T_DjiOsalHandler *osalHandler = NULL; | ||
93 | - T_DjiReturnCode returnCode; | ||
94 | - T_DjiAircraftInfoBaseInfo aircraftInfoBaseInfo; | ||
95 | - | ||
96 | - osalHandler = DjiPlatform_GetOsalHandler(); | ||
97 | - | ||
98 | - //消息订阅功能模块初始化 | ||
99 | - djiStat = DjiFcSubscription_Init(); | ||
100 | - if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
101 | - USER_LOG_ERROR("init data subscription module error."); | ||
102 | - return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; | ||
103 | - } | ||
104 | - | ||
105 | - // 获得飞机信息 | ||
106 | - returnCode = DjiAircraftInfo_GetBaseInfo(&aircraftInfoBaseInfo); | ||
107 | - if (returnCode != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
108 | - USER_LOG_ERROR("get aircraft base info error"); | ||
109 | - return DJI_ERROR_SYSTEM_MODULE_CODE_SYSTEM_ERROR; | ||
110 | - } | ||
111 | - | ||
112 | - //订阅gps时间的主题 | ||
113 | - djiStat = DjiFcSubscription_SubscribeTopic(DJI_FC_SUBSCRIPTION_TOPIC_GPS_TIME, DJI_DATA_SUBSCRIPTION_TOPIC_1_HZ, | ||
114 | - NULL); | ||
115 | - if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
116 | - USER_LOG_ERROR("Subscribe topic gps position error."); | ||
117 | - return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; | ||
118 | - } | ||
119 | - | ||
120 | - //订阅gps日期 主题 | ||
121 | - djiStat = DjiFcSubscription_SubscribeTopic(DJI_FC_SUBSCRIPTION_TOPIC_GPS_DATE, DJI_DATA_SUBSCRIPTION_TOPIC_1_HZ, | ||
122 | - NULL); | ||
123 | - if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
124 | - USER_LOG_ERROR("Subscribe topic gps position error."); | ||
125 | - return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; | ||
126 | - } | ||
127 | - | ||
128 | - //订阅gps地址 | ||
129 | - djiStat = DjiFcSubscription_SubscribeTopic(DJI_FC_SUBSCRIPTION_TOPIC_GPS_POSITION, DJI_DATA_SUBSCRIPTION_TOPIC_1_HZ, | ||
130 | - NULL); | ||
131 | - if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
132 | - USER_LOG_ERROR("Subscribe topic gps position error."); | ||
133 | - return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; | ||
134 | - } | ||
135 | - | ||
136 | - //订阅 飞机 飞行状态 | ||
137 | - djiStat = DjiFcSubscription_SubscribeTopic(DJI_FC_SUBSCRIPTION_TOPIC_VELOCITY, DJI_DATA_SUBSCRIPTION_TOPIC_1_HZ, | ||
138 | - NULL); | ||
139 | - if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
140 | - USER_LOG_ERROR("Subscribe topic velocity error."); | ||
141 | - return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; | ||
142 | - } else { | ||
143 | - USER_LOG_DEBUG("Subscribe topic velocity success."); | ||
144 | - } | ||
145 | - | ||
146 | - //订阅相机角度 | ||
147 | - djiStat = DjiFcSubscription_SubscribeTopic(DJI_FC_SUBSCRIPTION_TOPIC_GIMBAL_ANGLES, DJI_DATA_SUBSCRIPTION_TOPIC_50_HZ,NULL);//订阅角度 | ||
148 | - if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
149 | - { | ||
150 | - USER_LOG_ERROR("Subscribe topic quaternion error."); | ||
151 | - return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; | ||
152 | - } | ||
153 | - | ||
154 | - | ||
155 | - //飞机自身角度 | ||
156 | - djiStat = DjiFcSubscription_SubscribeTopic(DJI_FC_SUBSCRIPTION_TOPIC_QUATERNION, DJI_DATA_SUBSCRIPTION_TOPIC_10_HZ, | ||
157 | - DjiTest_FcSubscriptionReceiveQuaternionCallback); | ||
158 | - if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
159 | - USER_LOG_ERROR("Subscribe topic quaternion error."); | ||
160 | - return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; | ||
161 | - } else { | ||
162 | - USER_LOG_DEBUG("Subscribe topic quaternion success."); | ||
163 | - } | ||
164 | - | ||
165 | - | ||
166 | - | ||
167 | - // //m30和m30t有高度锁 | ||
168 | - // if (aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M30 || aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M30T) | ||
169 | - // { | ||
170 | - // if (osalHandler->TaskCreate("Subscription_Height_Fusion_task", Subscription_Height_Fusion_task, | ||
171 | - // FC_SUBSCRIPTION_TASK_STACK_SIZE, NULL, &s_userFcSubscriptionThread) != | ||
172 | - // DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
173 | - // USER_LOG_ERROR("Height Fusion task create error."); | ||
174 | - // return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; | ||
175 | - // } | ||
176 | - // else { | ||
177 | - // USER_LOG_INFO("开启相对高度音量限制功能"); | ||
178 | - // } | ||
179 | - // } | ||
180 | - | ||
181 | - | ||
182 | - | ||
183 | - | ||
184 | -/********************** | ||
185 | - * | ||
186 | - * | ||
187 | - * 处理线程 | ||
188 | - * | ||
189 | - * *******************************************/ | ||
190 | - //gps处理线程 | ||
191 | - if (osalHandler->TaskCreate("user_GPSDeal_task",Subscription_GPS_DealTask, | ||
192 | - FC_SUBSCRIPTION_TASK_STACK_SIZE, NULL, &s_userFcSubscriptionThread) != | ||
193 | - DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
194 | - USER_LOG_ERROR("user data subscription task create error."); | ||
195 | - return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; | ||
196 | - } | ||
197 | - | ||
198 | - | ||
199 | - //飞机飞行状态回复线程 | ||
200 | - if (osalHandler->TaskCreate("user_subscription_task", Subscription_Velocity_ReplyTask, | ||
201 | - FC_SUBSCRIPTION_TASK_STACK_SIZE, NULL, &s_userFcSubscriptionThread) != | ||
202 | - DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
203 | - USER_LOG_ERROR("user data subscription task create error."); | ||
204 | - return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; | ||
205 | - } | ||
206 | - | ||
207 | - // //云台参数回复线程 | ||
208 | - // if (osalHandler->TaskCreate("Subscription_GimbalSub_Task", Subscription_GimbalSub_Task, | ||
209 | - // FC_SUBSCRIPTION_TASK_STACK_SIZE, NULL, &s_userFcSubscriptionThread) != | ||
210 | - // DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) | ||
211 | - // { | ||
212 | - // USER_LOG_ERROR("user data subscription task create error."); | ||
213 | - // return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; | ||
214 | - // } | ||
215 | - | ||
216 | - //如果飞机为需要飞机自带的相机进行云台联动的型号 | ||
217 | - // if (aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M30 | ||
218 | - // || aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M30T | ||
219 | - // || aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M3E | ||
220 | - // || aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M3T | ||
221 | - // || aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M3D | ||
222 | - // || aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M3TD | ||
223 | - // || aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M300_RTK | ||
224 | - // || aircraftInfoBaseInfo.aircraftType == DJI_AIRCRAFT_TYPE_M350_RTK | ||
225 | - // ) | ||
226 | - // { | ||
227 | - if (osalHandler->TaskCreate("Subscription_GimbalAngels_task", Subscription_GimbalAngels_task, | ||
228 | - FC_SUBSCRIPTION_TASK_STACK_SIZE, NULL, &s_userFcSubscriptionThread) != | ||
229 | - DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
230 | - USER_LOG_ERROR("user data Subscription_GimbalAngels_task create error."); | ||
231 | - return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; | ||
232 | - } | ||
233 | - //} | ||
234 | - | ||
235 | - | ||
236 | - | ||
237 | - return DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
238 | -} | ||
239 | - | ||
240 | -//取反标志位,是和阻塞函数里用到-------------------------------------------------------- | ||
241 | -T_DjiReturnCode DjiTest_FcSubscriptionDataShowTrigger(void) | ||
242 | -{ | ||
243 | - //标志位取反 | ||
244 | - s_userFcSubscriptionDataShow = !s_userFcSubscriptionDataShow; | ||
245 | - | ||
246 | - return DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
247 | -} | ||
248 | - | ||
249 | -//获取标志位到number------------------------------------------------------------------------ | ||
250 | -T_DjiReturnCode DjiTest_FcSubscriptionGetTotalSatelliteNumber(uint8_t *number) | ||
251 | -{ | ||
252 | - *number = s_totalSatelliteNumberUsed; | ||
253 | - | ||
254 | - return DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
255 | -} | ||
256 | - | ||
257 | -/* Private functions definition-----------------------------------------------*/ | ||
258 | -#ifndef __CC_ARM | ||
259 | -#pragma GCC diagnostic push | ||
260 | -#pragma GCC diagnostic ignored "-Wmissing-noreturn" | ||
261 | -#pragma GCC diagnostic ignored "-Wreturn-type" | ||
262 | -#endif | ||
263 | - | ||
264 | -/** | ||
265 | -* | ||
266 | -功能:判断经纬度是否在指定范围 | ||
267 | -参数:x 经度 y 纬度 | ||
268 | -返回值:1(中国) 0(国外) | ||
269 | - | ||
270 | -*/ | ||
271 | -static int check_GPS() | ||
272 | -{ | ||
273 | - //经度 | ||
274 | - int x = 0; | ||
275 | - | ||
276 | - //纬度 | ||
277 | - int y = 0; | ||
278 | - | ||
279 | - x = (int)gpsPosition.x; | ||
280 | - y = (int)gpsPosition.y; | ||
281 | - | ||
282 | - //USER_LOG_INFO("x:%f y:%f",x,y); | ||
283 | - | ||
284 | - x= x/10000000; | ||
285 | - y= y/10000000; | ||
286 | - | ||
287 | - //USER_LOG_INFO("x:%d y:%d",x,y); | ||
288 | - /** | ||
289 | - 中国经纬度粗划分,精度为 1 ,中国区域占比偏大 | ||
290 | - */ | ||
291 | - int gps_map[67][2]={ | ||
292 | - {0 ,0 },{ 0, 0},{ 0, 0},{0,0},{37,38},{36,41},{35,42},{35,42},{31,42},{30,45},//70-79 | ||
293 | - {29,45},{30,46},{29,47},{29,48},{28,48},{27,49},{27,50},{27,50},{27,49},{27,48},//80-89 | ||
294 | - {28,48},{27,46},{26,46},{27,45},{27,45},{27,45},{28,44},{23,43},{23,43},{21,43},//90-99 | ||
295 | - {21,43},{21,43},{22,42},{22,42},{22,42},{22,43},{22,43},{21,43},{21,43},{3,43},//100-109 | ||
296 | - {3,43},{3,45},{3,46},{4,45},{5,46},{6,49},{9,50},{10,50},{13,49},{25,51},//110-119 | ||
297 | - {19,53},{20,54},{22,54},{24,54},{25,54},{40,54},{41,53},{41,51},{41,50},{41,50},//120-129 | ||
298 | - {42,49},{42,48},{45,48},{45,49},{47,48},{48,49},{48,49}//130-136 | ||
299 | - }; | ||
300 | - | ||
301 | - if(x<73||x>136) //经度超范围 | ||
302 | - { | ||
303 | - g_WhetherInChina = 0;; | ||
304 | - } | ||
305 | - else | ||
306 | - { | ||
307 | - int getx=x-70; | ||
308 | - int gety=y; | ||
309 | - | ||
310 | - if(y>=gps_map[getx][0]&&y<=gps_map[getx][1]) //根据经纬度判断是否处于中国区域 | ||
311 | - g_WhetherInChina = 1; | ||
312 | - else | ||
313 | - g_WhetherInChina = 0; | ||
314 | - } | ||
315 | - | ||
316 | - | ||
317 | -} | ||
318 | -int Subscription_WhetherInChina() | ||
319 | -{ | ||
320 | - //USER_LOG_INFO("g_WhetherInChina:%d",g_WhetherInChina); | ||
321 | - //不在返回0 在返回1 | ||
322 | - return g_WhetherInChina; | ||
323 | -} | ||
324 | - | ||
325 | -//GPS订阅线程 | ||
326 | -static void *Subscription_GPS_DealTask(void *arg) | ||
327 | -{ | ||
328 | - //权柄 | ||
329 | - T_DjiReturnCode djiStat; | ||
330 | - T_DjiOsalHandler *osalHandler = DjiPlatform_GetOsalHandler(); | ||
331 | - | ||
332 | - //回调参数 | ||
333 | - T_DjiDataTimestamp timestamp = {0}; | ||
334 | - | ||
335 | - | ||
336 | - USER_UTIL_UNUSED(arg); | ||
337 | - | ||
338 | - while (1) | ||
339 | - { | ||
340 | - //时间 | ||
341 | - djiStat = DjiFcSubscription_GetLatestValueOfTopic(DJI_FC_SUBSCRIPTION_TOPIC_GPS_TIME, | ||
342 | - (uint8_t *) &gpsTime, | ||
343 | - sizeof(T_DjiFcSubscriptionGpsTime), | ||
344 | - ×tamp); | ||
345 | - if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
346 | - USER_LOG_ERROR("get value of topic gps position error."); | ||
347 | - } else { | ||
348 | - //USER_LOG_INFO("gpsTime = %d", gpsTime); | ||
349 | - } | ||
350 | - | ||
351 | - //日期 | ||
352 | - djiStat = DjiFcSubscription_GetLatestValueOfTopic(DJI_FC_SUBSCRIPTION_TOPIC_GPS_DATE, | ||
353 | - (uint8_t *) &gpsDate, | ||
354 | - sizeof(T_DjiFcSubscriptionGpsDate), | ||
355 | - ×tamp); | ||
356 | - if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
357 | - USER_LOG_ERROR("get value of topic gps position error."); | ||
358 | - } else { | ||
359 | - //USER_LOG_INFO("gpsDate = %d", gpsDate); | ||
360 | - } | ||
361 | - | ||
362 | - //地址 | ||
363 | - djiStat = DjiFcSubscription_GetLatestValueOfTopic(DJI_FC_SUBSCRIPTION_TOPIC_GPS_POSITION, | ||
364 | - (uint8_t *) &gpsPosition, | ||
365 | - sizeof(T_DjiFcSubscriptionGpsPosition), | ||
366 | - ×tamp); | ||
367 | - if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
368 | - USER_LOG_ERROR("get value of topic gps position error."); | ||
369 | - } else { | ||
370 | - //USER_LOG_INFO("gpsDate = %d", gpsDate); | ||
371 | - } | ||
372 | - | ||
373 | - //如果为海外版 | ||
374 | - if (FIRMWARE_ORIGIN == OVERSEAS_VERSION) | ||
375 | - { | ||
376 | - check_GPS(); | ||
377 | - //USER_LOG_INFO("海外"); | ||
378 | - } | ||
379 | - | ||
380 | - //USER_LOG_INFO("gps订阅"); | ||
381 | - //1s一次 | ||
382 | - | ||
383 | - T_JZsdkAttributeGpsPosition temp_GpsPosition; | ||
384 | - temp_GpsPosition.x = gpsPosition.x; | ||
385 | - temp_GpsPosition.y = gpsPosition.y; | ||
386 | - temp_GpsPosition.z = gpsPosition.z; | ||
387 | - Attribute_SetGpsPosition(temp_GpsPosition); | ||
388 | - | ||
389 | - T_JZsdkAttributeGpsTime temp_GpsTime; | ||
390 | - temp_GpsTime = gpsTime; | ||
391 | - Attribute_SetGpsTime(temp_GpsTime); | ||
392 | - | ||
393 | - T_JZsdkAttributeGpsDate temp_GpsDate; | ||
394 | - temp_GpsDate = gpsDate; | ||
395 | - Attribute_SetGpsDate(temp_GpsDate); | ||
396 | - | ||
397 | - osalHandler->TaskSleepMs(1000 / FC_SUBSCRIPTION_TASK_FREQ); | ||
398 | - | ||
399 | - } | ||
400 | - | ||
401 | - //5、结束订阅函数 | ||
402 | - djiStat = DjiFcSubscription_DeInit(); | ||
403 | - if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
404 | - USER_LOG_ERROR("Deinit fc subscription error."); | ||
405 | - } | ||
406 | -} | ||
407 | - | ||
408 | -static void *Subscription_Velocity_ReplyTask(void *arg) | ||
409 | -{ | ||
410 | - T_DjiReturnCode djiStat; | ||
411 | - T_DjiFcSubscriptionVelocity velocity = {0}; | ||
412 | - T_DjiDataTimestamp timestamp = {0}; | ||
413 | - T_DjiFcSubscriptionGpsPosition gpsPosition = {0}; | ||
414 | - T_DjiFcSubscriptionGpsDetails gpsDetails = {0}; | ||
415 | - T_DjiOsalHandler *osalHandler = NULL; | ||
416 | - | ||
417 | - USER_UTIL_UNUSED(arg); | ||
418 | - osalHandler = DjiPlatform_GetOsalHandler(); | ||
419 | - | ||
420 | -//飞机的运行情况打印 | ||
421 | - while (1) { | ||
422 | - //等待一秒 | ||
423 | - osalHandler->TaskSleepMs(1000 / FC_SUBSCRIPTION_TASK_FREQ); | ||
424 | - //主动获取数据 获取指定TOPIC的最新发布数据。 获取速度------------------------------------------------ | ||
425 | - djiStat = DjiFcSubscription_GetLatestValueOfTopic(DJI_FC_SUBSCRIPTION_TOPIC_VELOCITY, | ||
426 | - (uint8_t *) &velocity, | ||
427 | - sizeof(T_DjiFcSubscriptionVelocity), | ||
428 | - ×tamp); | ||
429 | - if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
430 | - USER_LOG_ERROR("get value of topic velocity error."); | ||
431 | - } | ||
432 | - //如果是阻塞标志位开启,就将速度打印出来 | ||
433 | - if (s_userFcSubscriptionDataShow == true) { | ||
434 | - USER_LOG_INFO("velocity: x %f y %f z %f, healthFlag %d.", velocity.data.x, velocity.data.y, | ||
435 | - velocity.data.z, velocity.health); | ||
436 | - } | ||
437 | - } | ||
438 | -} | ||
439 | - | ||
440 | -static void *Subscription_GimbalAngels_task(void *arg) | ||
441 | -{ | ||
442 | - T_DjiReturnCode djiStat; | ||
443 | - T_DjiVector3f gimbalangle = {0};//云台角度 | ||
444 | - T_DjiOsalHandler *osalHandler = NULL; | ||
445 | - T_DjiDataTimestamp timestamp = {0}; | ||
446 | - | ||
447 | - osalHandler = DjiPlatform_GetOsalHandler(); | ||
448 | - | ||
449 | - int LastGimbalPitch; | ||
450 | - int NowGimbalPitch; | ||
451 | - | ||
452 | - USER_LOG_INFO("相机云台联动线程已经启用"); | ||
453 | - | ||
454 | - while (1) {//一直在循环里面 | ||
455 | - //osalHandler->TaskSleepMs(1000 / FC_SUBSCRIPTION_TASK_FREQ); | ||
456 | - osalHandler->TaskSleepMs(1000 / 20); | ||
457 | - djiStat = DjiFcSubscription_GetLatestValueOfTopic(DJI_FC_SUBSCRIPTION_TOPIC_GIMBAL_ANGLES, | ||
458 | - (uint8_t *) &gimbalangle, | ||
459 | - sizeof(T_DjiVector3f), | ||
460 | - ×tamp); | ||
461 | - if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
462 | - USER_LOG_ERROR("get gimbal angle error."); | ||
463 | - } | ||
464 | - else | ||
465 | - { | ||
466 | - NowGimbalPitch = (int)gimbalangle.x * 10; | ||
467 | - //USER_LOG_INFO("NowGimbalPitch%d",NowGimbalPitch); | ||
468 | - | ||
469 | - //如果云台联动已经打开 | ||
470 | - if( (Get_Gimbal_linkage()== JZ_FLAGCODE_ON ) && (NowGimbalPitch != LastGimbalPitch) ) | ||
471 | - { | ||
472 | - //printf("消息订阅联动\n"); | ||
473 | - JZsdk_Psdk_Ui_io_Gimbal_PitchAngleControlMode(NowGimbalPitch); | ||
474 | - LastGimbalPitch = NowGimbalPitch; | ||
475 | - } | ||
476 | - | ||
477 | - } | ||
478 | - } | ||
479 | -} | ||
480 | - | ||
481 | - | ||
482 | -//获取相对高度音量限制线程 | ||
483 | -static void* Subscription_Height_Fusion_task(void* arg) | ||
484 | -{ | ||
485 | - T_DjiReturnCode djiStat; | ||
486 | - T_DjiFcSubscriptionHeightFusion height_fusion_value = {0};//融合相对高度 | ||
487 | - T_DjiOsalHandler* osalHandler = NULL; | ||
488 | - T_DjiDataTimestamp timestamp = { 0 }; | ||
489 | - | ||
490 | - osalHandler = DjiPlatform_GetOsalHandler(); | ||
491 | - | ||
492 | - //订阅相对融合高度 | ||
493 | - djiStat = DjiFcSubscription_SubscribeTopic(DJI_FC_SUBSCRIPTION_TOPIC_HEIGHT_FUSION, DJI_DATA_SUBSCRIPTION_TOPIC_10_HZ,NULL); | ||
494 | - if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
495 | - JZSDK_LOG_ERROR("融合高度订阅失败"); | ||
496 | - } | ||
497 | - else | ||
498 | - { | ||
499 | - JZSDK_LOG_INFO("融合高度订阅成功"); | ||
500 | - } | ||
501 | - | ||
502 | - while (1) {//一直在循环里面 | ||
503 | - osalHandler->TaskSleepMs(100); | ||
504 | - djiStat = DjiFcSubscription_GetLatestValueOfTopic(DJI_FC_SUBSCRIPTION_TOPIC_HEIGHT_FUSION, | ||
505 | - (uint8_t*)&height_fusion_value, | ||
506 | - sizeof(T_DjiFcSubscriptionHeightFusion), | ||
507 | - ×tamp); | ||
508 | - if (djiStat != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | ||
509 | - USER_LOG_ERROR("get height relativevalue error."); | ||
510 | - } | ||
511 | - | ||
512 | - else | ||
513 | - { | ||
514 | - //USER_LOG_INFO("融合相对高度为 = %f",height_fusion_value); | ||
515 | - g_height_value = height_fusion_value; | ||
516 | - | ||
517 | - //如果高度音量限制已打开,音量超过60,设置为60% | ||
518 | - if ( height_fusion_value <= 10) // && DeviceActivation_GetDebugMode() == 0) | ||
519 | - { | ||
520 | - height_Volume_lock = 1;//高度锁生效 | ||
521 | - if(JZsdk_Psdk_UI_io_GetWidgetVolume() >60 ) //高度音量锁e > 60 | ||
522 | - { | ||
523 | - JZsdk_Psdk_UI_io_SetVolume(1,60); | ||
524 | - } | ||
525 | - } | ||
526 | - else { | ||
527 | - height_Volume_lock = 0;//高度锁解锁 | ||
528 | - //高度音量锁 | ||
529 | - } | ||
530 | - } | ||
531 | - | ||
532 | - } | ||
533 | -} | ||
534 | - | ||
535 | -#ifndef __CC_ARM | ||
536 | -#pragma GCC diagnostic pop | ||
537 | -#endif | ||
538 | -//回调函数 | ||
539 | -static T_DjiReturnCode DjiTest_FcSubscriptionReceiveQuaternionCallback(const uint8_t *data, uint16_t dataSize, | ||
540 | - const T_DjiDataTimestamp *timestamp) | ||
541 | -{ | ||
542 | - T_DjiFcSubscriptionQuaternion *quaternion = (T_DjiFcSubscriptionQuaternion *) data; | ||
543 | - dji_f64_t pitch, yaw, roll; | ||
544 | - | ||
545 | - USER_UTIL_UNUSED(dataSize); | ||
546 | - //转换成 倾角 转角 | ||
547 | - pitch = (dji_f64_t) asinf(-2 * quaternion->q1 * quaternion->q3 + 2 * quaternion->q0 * quaternion->q2) * 57.3; | ||
548 | - roll = (dji_f64_t) atan2f(2 * quaternion->q2 * quaternion->q3 + 2 * quaternion->q0 * quaternion->q1, | ||
549 | - -2 * quaternion->q1 * quaternion->q1 - 2 * quaternion->q2 * quaternion->q2 + 1) * 57.3; | ||
550 | - yaw = (dji_f64_t) atan2f(2 * quaternion->q1 * quaternion->q2 + 2 * quaternion->q0 * quaternion->q3, | ||
551 | - -2 * quaternion->q2 * quaternion->q2 - 2 * quaternion->q3 * quaternion->q3 + 1) *57.3; | ||
552 | - | ||
553 | - | ||
554 | - //printf("回调:pitch%d\n",(int)pitch); | ||
555 | - | ||
556 | - //飞机自身角度 | ||
557 | - JZsdk_Psdk_Ui_io_Gimbal_PitchSelfangleMode( ( (int)pitch * 10)); | ||
558 | - | ||
559 | - return DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
560 | -} | ||
561 | - | ||
562 | -T_DjiReturnCode DjiTest_FcSubscriptionRunSample(void) | ||
563 | -{ | ||
564 | -} | ||
565 | - | ||
566 | -/****************** (C) COPYRIGHT DJI Innovations *****END OF FILE****/ |
1 | # cmake 最低版本要求 第三行名字不能动 | 1 | # cmake 最低版本要求 第三行名字不能动 |
2 | cmake_minimum_required(VERSION 2.8) | 2 | cmake_minimum_required(VERSION 2.8) |
3 | -project(JZ_H150T) | 3 | +project(JZ_U3) |
4 | 4 | ||
5 | #set(CMAKE_C_FLAGS "-pthread -std=gnu99 -lm -ldl -lstdc++") | 5 | #set(CMAKE_C_FLAGS "-pthread -std=gnu99 -lm -ldl -lstdc++") |
6 | #"-pthread":指定在编译时链接POSIX线程库,以支持多线程程序。 | 6 | #"-pthread":指定在编译时链接POSIX线程库,以支持多线程程序。 |
@@ -60,7 +60,7 @@ extern "C" { | @@ -60,7 +60,7 @@ extern "C" { | ||
60 | 60 | ||
61 | #if (DEVICE_VERSION == JZ_H1T || DEVICE_VERSION == JZ_H1E || DEVICE_VERSION == JZ_U3|| DEVICE_VERSION == JZ_U3S || DEVICE_VERSION == JZ_U3D || DEVICE_VERSION == JZ_U30) | 61 | #if (DEVICE_VERSION == JZ_H1T || DEVICE_VERSION == JZ_H1E || DEVICE_VERSION == JZ_U3|| DEVICE_VERSION == JZ_U3S || DEVICE_VERSION == JZ_U3D || DEVICE_VERSION == JZ_U30) |
62 | #define USER_BAUD_RATE "921600" | 62 | #define USER_BAUD_RATE "921600" |
63 | - #elif (DEVICE_VERSION == JZ_H150S || DEVICE_VERSION == JZ_H150T || DEVICE_VERSION == JZ_H10 || DEVICE_VERSION == JZ_C1) | 63 | + #elif (DEVICE_VERSION == JZ_H150S || DEVICE_VERSION == JZ_H150T || DEVICE_VERSION == JZ_H10 || DEVICE_VERSION == JZ_C1 || DEVICE_VERSION == JZ_ST) |
64 | #define USER_BAUD_RATE "230400" | 64 | #define USER_BAUD_RATE "230400" |
65 | #elif (DEVICE_VERSION == JZ_H10T) | 65 | #elif (DEVICE_VERSION == JZ_H10T) |
66 | #define USER_BAUD_RATE "115200" | 66 | #define USER_BAUD_RATE "115200" |
@@ -42,7 +42,7 @@ extern "C" { | @@ -42,7 +42,7 @@ extern "C" { | ||
42 | /*!< Attention: Select your hardware connection mode here. | 42 | /*!< Attention: Select your hardware connection mode here. |
43 | * */ | 43 | * */ |
44 | 44 | ||
45 | -#if (DEVICE_VERSION == JZ_H150S) || (DEVICE_VERSION == JZ_H150T) || (DEVICE_VERSION == JZ_C1) | 45 | +#if (DEVICE_VERSION == JZ_H150S) || (DEVICE_VERSION == JZ_H150T) || (DEVICE_VERSION == JZ_C1) || (DEVICE_VERSION == JZ_ST) |
46 | #define CONFIG_HARDWARE_CONNECTION DJI_USE_UART_AND_NETWORK_DEVICE | 46 | #define CONFIG_HARDWARE_CONNECTION DJI_USE_UART_AND_NETWORK_DEVICE |
47 | #elif (DEVICE_VERSION == JZ_U3 && ALLWINNER_CEDAR == VERSION_SWITCH_ON) | 47 | #elif (DEVICE_VERSION == JZ_U3 && ALLWINNER_CEDAR == VERSION_SWITCH_ON) |
48 | #define CONFIG_HARDWARE_CONNECTION DJI_USE_UART_AND_NETWORK_DEVICE | 48 | #define CONFIG_HARDWARE_CONNECTION DJI_USE_UART_AND_NETWORK_DEVICE |
@@ -72,7 +72,8 @@ | @@ -72,7 +72,8 @@ | ||
72 | 72 | ||
73 | /* Private constants ---------------------------------------------------------*/ | 73 | /* Private constants ---------------------------------------------------------*/ |
74 | #define DJI_LOG_PATH "/root/sdcard/Logs/" | 74 | #define DJI_LOG_PATH "/root/sdcard/Logs/" |
75 | -#define DJI_LOG_INDEX_FILE_NAME "/root/sdcard/Logs/latest" | 75 | +#define DJI_LOG_INDEX_FILE_NAME "/root/Logs/latest" |
76 | +#define DJI_LOG_SD_INDEX_FILE_NAME "/root/sdcard/Logs/latest" | ||
76 | #define DJI_LOG_FOLDER_NAME "Logs" | 77 | #define DJI_LOG_FOLDER_NAME "Logs" |
77 | #define DJI_LOG_PATH_MAX_SIZE (128) | 78 | #define DJI_LOG_PATH_MAX_SIZE (128) |
78 | #define DJI_LOG_FOLDER_NAME_MAX_SIZE (32) | 79 | #define DJI_LOG_FOLDER_NAME_MAX_SIZE (32) |
@@ -110,6 +111,8 @@ int work_mode=0;//0--->SDK模式 1------>串口模式 | @@ -110,6 +111,8 @@ int work_mode=0;//0--->SDK模式 1------>串口模式 | ||
110 | 111 | ||
111 | char Jz_SerialNumber[128]; //设备序列号 | 112 | char Jz_SerialNumber[128]; //设备序列号 |
112 | 113 | ||
114 | +static int g_DJI_LoginitFlag = JZ_FLAGCODE_OFF; | ||
115 | + | ||
113 | /* Exported functions definition ---------------------------------------------*/ | 116 | /* Exported functions definition ---------------------------------------------*/ |
114 | int main(int argc, char *argv[]) | 117 | int main(int argc, char *argv[]) |
115 | { | 118 | { |
@@ -120,11 +123,6 @@ int main(int argc, char *argv[]) | @@ -120,11 +123,6 @@ int main(int argc, char *argv[]) | ||
120 | T_DjiAircraftInfoBaseInfo aircraftInfoBaseInfo; | 123 | T_DjiAircraftInfoBaseInfo aircraftInfoBaseInfo; |
121 | T_DjiAircraftVersion aircraftInfoVersion; | 124 | T_DjiAircraftVersion aircraftInfoVersion; |
122 | T_DjiFirmwareVersion firmwareVersion = { | 125 | T_DjiFirmwareVersion firmwareVersion = { |
123 | - // .majorVersion = (MAJOR_VERSION >> 4) * 10 + (MAJOR_VERSION & 0x0F), | ||
124 | - // .minorVersion = (MINOR_VERSION >> 4) * 10 + (MINOR_VERSION & 0x0F), | ||
125 | - // .modifyVersion = (MODIFY_VERSION >> 4) * 10 + (MODIFY_VERSION & 0x0F), | ||
126 | - // .debugVersion = (DEBUG_VERSION >> 4) * 10 + (DEBUG_VERSION & 0x0F), | ||
127 | - | ||
128 | .majorVersion = MAJOR_VERSION , | 126 | .majorVersion = MAJOR_VERSION , |
129 | .minorVersion = MINOR_VERSION , | 127 | .minorVersion = MINOR_VERSION , |
130 | .modifyVersion = MODIFY_VERSION, | 128 | .modifyVersion = MODIFY_VERSION, |
@@ -222,7 +220,7 @@ int main(int argc, char *argv[]) | @@ -222,7 +220,7 @@ int main(int argc, char *argv[]) | ||
222 | 220 | ||
223 | if (DEVICE_VERSION == JZ_H1E) | 221 | if (DEVICE_VERSION == JZ_H1E) |
224 | { | 222 | { |
225 | - if (LanguageInfo == LANGUAGE_INFO_CHINESE) | 223 | + if (LanguageInfo == LANGUAGE_INFO_ENGLISH) |
226 | { | 224 | { |
227 | memcpy(psdk_name, "JZ-H1E", sizeof("JZ-H1E")); | 225 | memcpy(psdk_name, "JZ-H1E", sizeof("JZ-H1E")); |
228 | } | 226 | } |
@@ -237,7 +235,7 @@ int main(int argc, char *argv[]) | @@ -237,7 +235,7 @@ int main(int argc, char *argv[]) | ||
237 | } | 235 | } |
238 | else if (DEVICE_VERSION == JZ_U3) | 236 | else if (DEVICE_VERSION == JZ_U3) |
239 | { | 237 | { |
240 | - if (LanguageInfo == LANGUAGE_INFO_CHINESE) | 238 | + if (LanguageInfo == LANGUAGE_INFO_ENGLISH) |
241 | { | 239 | { |
242 | memcpy(psdk_name, "JZ-U3", sizeof("JZ-U3")); | 240 | memcpy(psdk_name, "JZ-U3", sizeof("JZ-U3")); |
243 | } | 241 | } |
@@ -263,7 +261,7 @@ int main(int argc, char *argv[]) | @@ -263,7 +261,7 @@ int main(int argc, char *argv[]) | ||
263 | 261 | ||
264 | else if (DEVICE_VERSION == JZ_H150S) | 262 | else if (DEVICE_VERSION == JZ_H150S) |
265 | { | 263 | { |
266 | - if (LanguageInfo == LANGUAGE_INFO_CHINESE) | 264 | + if (LanguageInfo == LANGUAGE_INFO_ENGLISH) |
267 | { | 265 | { |
268 | memcpy(psdk_name, "JZ-H150S", sizeof("JZ-H150S")); | 266 | memcpy(psdk_name, "JZ-H150S", sizeof("JZ-H150S")); |
269 | } | 267 | } |
@@ -282,7 +280,7 @@ int main(int argc, char *argv[]) | @@ -282,7 +280,7 @@ int main(int argc, char *argv[]) | ||
282 | } | 280 | } |
283 | else if (DEVICE_VERSION == JZ_H10) | 281 | else if (DEVICE_VERSION == JZ_H10) |
284 | { | 282 | { |
285 | - if (LanguageInfo == LANGUAGE_INFO_CHINESE) | 283 | + if (LanguageInfo == LANGUAGE_INFO_ENGLISH) |
286 | { | 284 | { |
287 | memcpy(psdk_name, "JZ-H10", sizeof("JZ-H10")); | 285 | memcpy(psdk_name, "JZ-H10", sizeof("JZ-H10")); |
288 | } | 286 | } |
@@ -395,7 +393,7 @@ int main(int argc, char *argv[]) | @@ -395,7 +393,7 @@ int main(int argc, char *argv[]) | ||
395 | // #endif | 393 | // #endif |
396 | // } else { | 394 | // } else { |
397 | #ifdef CONFIG_MODULE_SAMPLE_CAMERA_EMU_ON | 395 | #ifdef CONFIG_MODULE_SAMPLE_CAMERA_EMU_ON |
398 | - if (DEVICE_VERSION == JZ_H150S || DEVICE_VERSION == JZ_H150T || DEVICE_VERSION == JZ_C1) | 396 | + if (DEVICE_VERSION == JZ_H150S || DEVICE_VERSION == JZ_H150T || DEVICE_VERSION == JZ_C1 || DEVICE_VERSION == JZ_ST) |
399 | { | 397 | { |
400 | returnCode = DjiTest_CameraEmuBaseStartService(); | 398 | returnCode = DjiTest_CameraEmuBaseStartService(); |
401 | if (returnCode != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | 399 | if (returnCode != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { |
@@ -406,7 +404,7 @@ int main(int argc, char *argv[]) | @@ -406,7 +404,7 @@ int main(int argc, char *argv[]) | ||
406 | #endif | 404 | #endif |
407 | 405 | ||
408 | #ifdef CONFIG_MODULE_SAMPLE_CAMERA_MEDIA_ON | 406 | #ifdef CONFIG_MODULE_SAMPLE_CAMERA_MEDIA_ON |
409 | - if (DEVICE_VERSION == JZ_H150S || DEVICE_VERSION == JZ_H150T || DEVICE_VERSION == JZ_C1) | 407 | + if (DEVICE_VERSION == JZ_H150S || DEVICE_VERSION == JZ_H150T || DEVICE_VERSION == JZ_C1 || DEVICE_VERSION == JZ_ST) |
410 | { | 408 | { |
411 | returnCode = DjiTest_CameraEmuMediaStartService(0); | 409 | returnCode = DjiTest_CameraEmuMediaStartService(0); |
412 | if (returnCode != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | 410 | if (returnCode != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { |
@@ -722,7 +720,7 @@ static T_DjiReturnCode DjiUser_PrepareSystemEnvironment(void) | @@ -722,7 +720,7 @@ static T_DjiReturnCode DjiUser_PrepareSystemEnvironment(void) | ||
722 | 720 | ||
723 | if (DjiUser_LocalWriteFsInit(DJI_LOG_PATH) != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { | 721 | if (DjiUser_LocalWriteFsInit(DJI_LOG_PATH) != DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS) { |
724 | printf("file system init error"); | 722 | printf("file system init error"); |
725 | - return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; | 723 | + //return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; |
726 | } | 724 | } |
727 | 725 | ||
728 | returnCode = DjiLogger_AddConsole(&printConsole); | 726 | returnCode = DjiLogger_AddConsole(&printConsole); |
@@ -887,6 +885,12 @@ static T_DjiReturnCode DjiUser_LocalWrite(const uint8_t *data, uint16_t dataLen) | @@ -887,6 +885,12 @@ static T_DjiReturnCode DjiUser_LocalWrite(const uint8_t *data, uint16_t dataLen) | ||
887 | { | 885 | { |
888 | uint32_t realLen; | 886 | uint32_t realLen; |
889 | 887 | ||
888 | + if (g_DJI_LoginitFlag == JZ_FLAGCODE_OFF) | ||
889 | + { | ||
890 | + return DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS; | ||
891 | + } | ||
892 | + | ||
893 | + | ||
890 | if (s_djiLogFile == NULL) { | 894 | if (s_djiLogFile == NULL) { |
891 | return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; | 895 | return DJI_ERROR_SYSTEM_MODULE_CODE_UNKNOWN; |
892 | } | 896 | } |
@@ -917,7 +921,9 @@ static T_DjiReturnCode DjiUser_LocalWriteFsInit(const char *path) | @@ -917,7 +921,9 @@ static T_DjiReturnCode DjiUser_LocalWriteFsInit(const char *path) | ||
917 | return DJI_ERROR_SYSTEM_MODULE_CODE_SYSTEM_ERROR; | 921 | return DJI_ERROR_SYSTEM_MODULE_CODE_SYSTEM_ERROR; |
918 | } | 922 | } |
919 | 923 | ||
924 | + //检查是否存在日志文件 | ||
920 | if (access(DJI_LOG_FOLDER_NAME, F_OK) != 0) { | 925 | if (access(DJI_LOG_FOLDER_NAME, F_OK) != 0) { |
926 | + memset(folderName, 0, sizeof(folderName)); | ||
921 | sprintf(folderName, "mkdir %s", DJI_LOG_FOLDER_NAME); | 927 | sprintf(folderName, "mkdir %s", DJI_LOG_FOLDER_NAME); |
922 | ret = system(folderName); | 928 | ret = system(folderName); |
923 | if (ret != 0) { | 929 | if (ret != 0) { |
@@ -925,6 +931,23 @@ static T_DjiReturnCode DjiUser_LocalWriteFsInit(const char *path) | @@ -925,6 +931,23 @@ static T_DjiReturnCode DjiUser_LocalWriteFsInit(const char *path) | ||
925 | } | 931 | } |
926 | } | 932 | } |
927 | 933 | ||
934 | + //检查sd卡的日志文件夹 | ||
935 | + if (access(DJI_LOG_PATH, F_OK) != 0) { | ||
936 | + memset(folderName, 0, sizeof(folderName)); | ||
937 | + sprintf(folderName, "mkdir %s", DJI_LOG_PATH); | ||
938 | + ret = system(folderName); | ||
939 | + if (ret != 0) { | ||
940 | + return DJI_ERROR_SYSTEM_MODULE_CODE_SYSTEM_ERROR; | ||
941 | + } | ||
942 | + } | ||
943 | + | ||
944 | + //检查sd卡的内序号文件是否存在 | ||
945 | + if (access(DJI_LOG_SD_INDEX_FILE_NAME, F_OK) == 0) { | ||
946 | + memset(folderName, 0, sizeof(folderName)); | ||
947 | + sprintf(folderName, "rm %s", DJI_LOG_INDEX_FILE_NAME); | ||
948 | + ret = system(folderName); | ||
949 | + } | ||
950 | + | ||
928 | s_djiLogFileCnt = fopen(DJI_LOG_INDEX_FILE_NAME, "rb+"); | 951 | s_djiLogFileCnt = fopen(DJI_LOG_INDEX_FILE_NAME, "rb+"); |
929 | if (s_djiLogFileCnt == NULL) { | 952 | if (s_djiLogFileCnt == NULL) { |
930 | s_djiLogFileCnt = fopen(DJI_LOG_INDEX_FILE_NAME, "wb+"); | 953 | s_djiLogFileCnt = fopen(DJI_LOG_INDEX_FILE_NAME, "wb+"); |
@@ -962,6 +985,16 @@ static T_DjiReturnCode DjiUser_LocalWriteFsInit(const char *path) | @@ -962,6 +985,16 @@ static T_DjiReturnCode DjiUser_LocalWriteFsInit(const char *path) | ||
962 | 985 | ||
963 | fclose(s_djiLogFileCnt); | 986 | fclose(s_djiLogFileCnt); |
964 | 987 | ||
988 | + //将sd卡的索引值文件删除 | ||
989 | + memset(systemCmd, 0, sizeof(systemCmd)); | ||
990 | + sprintf(systemCmd, "rm %s", DJI_LOG_SD_INDEX_FILE_NAME); | ||
991 | + ret = system(systemCmd); | ||
992 | + | ||
993 | + //将索引值复制到sd卡 | ||
994 | + memset(systemCmd, 0, sizeof(systemCmd)); | ||
995 | + sprintf(systemCmd, "cp %s %s", DJI_LOG_INDEX_FILE_NAME, DJI_LOG_SD_INDEX_FILE_NAME); | ||
996 | + ret = system(systemCmd); | ||
997 | + | ||
965 | //filePath : /root/sdcard/Logs/_%04d_%04d%02d%02d_%02d-%02d-%02d.log | 998 | //filePath : /root/sdcard/Logs/_%04d_%04d%02d%02d_%02d-%02d-%02d.log |
966 | sprintf(filePath, "%s_%04d_%04d%02d%02d_%02d-%02d-%02d.log", path, currentLogFileIndex, | 999 | sprintf(filePath, "%s_%04d_%04d%02d%02d_%02d-%02d-%02d.log", path, currentLogFileIndex, |
967 | localTime->tm_year + 1900, localTime->tm_mon + 1, localTime->tm_mday, | 1000 | localTime->tm_year + 1900, localTime->tm_mon + 1, localTime->tm_mday, |
@@ -982,8 +1015,11 @@ static T_DjiReturnCode DjiUser_LocalWriteFsInit(const char *path) | @@ -982,8 +1015,11 @@ static T_DjiReturnCode DjiUser_LocalWriteFsInit(const char *path) | ||
982 | } | 1015 | } |
983 | } | 1016 | } |
984 | 1017 | ||
985 | - sprintf(systemCmd, "ln -sfrv %s " DJI_LOG_FOLDER_NAME "/latest.log", filePath); | 1018 | + sprintf(systemCmd, "ln -sfrv %s "DJI_LOG_FOLDER_NAME"/latest.log", filePath); |
986 | system(systemCmd); | 1019 | system(systemCmd); |
1020 | + | ||
1021 | + g_DJI_LoginitFlag = JZ_FLAGCODE_ON; | ||
1022 | + | ||
987 | return djiReturnCode; | 1023 | return djiReturnCode; |
988 | } | 1024 | } |
989 | 1025 |
@@ -52,6 +52,10 @@ extern "C" { | @@ -52,6 +52,10 @@ extern "C" { | ||
52 | #define LINUX_NETWORK_DEV "eth0" | 52 | #define LINUX_NETWORK_DEV "eth0" |
53 | #define USB_NET_ADAPTER_VID (0x0955) | 53 | #define USB_NET_ADAPTER_VID (0x0955) |
54 | #define USB_NET_ADAPTER_PID (0x7020) | 54 | #define USB_NET_ADAPTER_PID (0x7020) |
55 | +#elif DEVICE_VERSION == JZ_ST | ||
56 | + #define LINUX_NETWORK_DEV "end0" | ||
57 | + #define USB_NET_ADAPTER_VID (0x0000) | ||
58 | + #define USB_NET_ADAPTER_PID (0x0000) | ||
55 | #else | 59 | #else |
56 | #define LINUX_NETWORK_DEV "eth0" | 60 | #define LINUX_NETWORK_DEV "eth0" |
57 | #define USB_NET_ADAPTER_VID (0x0B95) | 61 | #define USB_NET_ADAPTER_VID (0x0B95) |
sh_file/2languadge_plane_pack.sh
0 → 100644
1 | +payload_name="$1" | ||
2 | +payload_mode="$2" | ||
3 | +payload_platform="$3" | ||
4 | +payload_version="$4" | ||
5 | +payload_special="$5" | ||
6 | + | ||
7 | +# 配置基本参数 | ||
8 | +chmod 777 Pack_param.sh | ||
9 | +./Pack_param.sh $payload_name \ | ||
10 | + $payload_mode \ | ||
11 | + $payload_platform \ | ||
12 | + $payload_version \ | ||
13 | + $payload_special | ||
14 | + | ||
15 | +# 编译 | ||
16 | +#二次压缩包的打包, 会得到一个完整版的UpgradePackage.tar.gz | ||
17 | +cd ShellPack | ||
18 | +./shellpack.sh | ||
19 | +cd ../ | ||
20 | + | ||
21 | +# 打包 | ||
22 | +# DOMESTIC为国内版,OVERSEAS为国外版,UNUSE不输入版本 | ||
23 | +chmod 777 Pack_complete.sh | ||
24 | +chmod 777 Pack_simple.sh | ||
25 | + | ||
26 | +############# 如果是以前会分开国内外的版本 ############# | ||
27 | +# 备注旧版本的大型包里会含有语言文件 | ||
28 | +# 注:飞机固件的小包里是含有语言文件信息的,但是串口固件的没有,因为psdk加载要看语言文件信息 | ||
29 | +# | ||
30 | +# | ||
31 | + | ||
32 | +domestic_bin_name=$payload_name"_"$payload_version".bin" | ||
33 | +domestic_bin_name_silm="${payload_name}_${payload_version}Silm.bin" | ||
34 | + | ||
35 | +replaced_payload_name=${payload_name//_/-} | ||
36 | +overseas_bin_name=$replaced_payload_name"_"$payload_version".bin" | ||
37 | +overseas_bin_name_silm="${replaced_payload_name}_${payload_version}Silm.bin" | ||
38 | + | ||
39 | +# 打包国内大型包 | ||
40 | +./Pack_complete.sh "DOMESTIC" ${domestic_bin_name} | ||
41 | + | ||
42 | +# 打包海外大型包 | ||
43 | +./Pack_complete.sh "OVERSEAS" ${overseas_bin_name} | ||
44 | + | ||
45 | +rm UpgradePackage.tar.gz | ||
46 | + | ||
47 | +#打包国内小型包 | ||
48 | +./Pack_simple.sh "DOMESTIC" ${domestic_bin_name_silm} | ||
49 | + | ||
50 | +# 打包海外小型包 | ||
51 | +./Pack_simple.sh "OVERSEAS" ${overseas_bin_name_silm} | ||
52 | + | ||
53 | +############################################################## | ||
54 | + |
sh_file/2languadge_uart_pack.sh
0 → 100644
1 | +payload_name="$1" | ||
2 | +payload_mode="$2" | ||
3 | +payload_platform="$3" | ||
4 | +payload_version="$4" | ||
5 | +payload_special="$5" | ||
6 | + | ||
7 | +# 配置基本参数 | ||
8 | +chmod 777 Pack_param.sh | ||
9 | +./Pack_param.sh $payload_name \ | ||
10 | + $payload_mode \ | ||
11 | + $payload_platform \ | ||
12 | + $payload_version \ | ||
13 | + $payload_special | ||
14 | + | ||
15 | +# 编译 | ||
16 | +#二次压缩包的打包, 会得到一个完整版的UpgradePackage.tar.gz | ||
17 | +cd ShellPack | ||
18 | +./shellpack.sh | ||
19 | +cd ../ | ||
20 | + | ||
21 | +# 打包 | ||
22 | +# DOMESTIC为国内版,OVERSEAS为国外版,UNUSE不输入版本 | ||
23 | +chmod 777 Pack_complete.sh | ||
24 | +chmod 777 Pack_simple.sh | ||
25 | + | ||
26 | +############# 双语言+串口的版本 ############# | ||
27 | +# 备注旧版本的大型包里会含有语言文件 | ||
28 | +# 注:飞机固件的小包里是含有语言文件信息的,但是串口固件的没有,因为psdk加载要看语言文件信息 | ||
29 | +# | ||
30 | +# | ||
31 | + | ||
32 | +domestic_bin_name=$payload_name"_"$payload_version".bin" | ||
33 | +domestic_bin_name_silm="${payload_name}_${payload_version}Silm.bin" | ||
34 | + | ||
35 | +replaced_payload_name=${payload_name//_/-} | ||
36 | +overseas_bin_name=$replaced_payload_name"_"$payload_version".bin" | ||
37 | +overseas_bin_name_silm="${replaced_payload_name}_${payload_version}Silm.bin" | ||
38 | + | ||
39 | +# 打包国内大型包 | ||
40 | +./Pack_complete.sh "DOMESTIC" ${domestic_bin_name} | ||
41 | + | ||
42 | +# 打包海外大型包 | ||
43 | +./Pack_complete.sh "OVERSEAS" ${overseas_bin_name} | ||
44 | + | ||
45 | +rm UpgradePackage.tar.gz | ||
46 | + | ||
47 | +#打包国内小型包 | ||
48 | +./Pack_simple.sh "UNUSE" ${domestic_bin_name_silm} | ||
49 | + | ||
50 | +# 打包海外小型包 | ||
51 | +./Pack_simple.sh "OVERSEAS" ${overseas_bin_name_silm} | ||
52 | + | ||
53 | +############################################################## | ||
54 | + |
sh_file/H1error
已删除
100644 → 0
1 | -./root/ATTENTION_APP --play_prompt_tts error; |
sh_file/H1start
已删除
100644 → 0
1 | -./root/ATTENTION_APP --play_prompt_tts start; |
sh_file/RepairSd.sh
0 → 100644
1 | +#!/bin/bash | ||
2 | + | ||
3 | +AUDIO_DIR="/root/sdcard/audio" | ||
4 | +MOUNT_POINT="/root/sdcard" | ||
5 | +JZLOG="/root/sdcard/JZLOG" | ||
6 | +LOG="/root/sdcard/Logs" | ||
7 | +DEVICE=$(mount | grep "$MOUNT_POINT" | awk '{print $1}') | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | +# 检查sd开文件系统是否可写 | ||
12 | +check_sdCard_filesystem_writable() { | ||
13 | + if ! touch "$MOUNT_POINT"/.test_write 2>/dev/null; then | ||
14 | + echo "文件系统已变成只读,尝试重新挂载..." | ||
15 | + mount -o remount rw "$MOUNT_POINT" || { | ||
16 | + echo "重新挂载失败,请检查文件系统!" | ||
17 | + exit 1 | ||
18 | + } | ||
19 | + return 1 | ||
20 | + fi | ||
21 | + return 0 | ||
22 | +} | ||
23 | + | ||
24 | +# 遍历audio下的所有文件,检查是否读取后是否能正常写入sd卡 | ||
25 | +# 检查音频文件 | ||
26 | +check_audio_files() { | ||
27 | + if [ -d "$AUDIO_DIR" ]; then | ||
28 | + echo "开始检查音频文件..." | ||
29 | + find "$AUDIO_DIR" -type f -print0 | while IFS= read -r -d '' file; do | ||
30 | + echo "检查到文件${file}" | ||
31 | + | ||
32 | + ffprobe "$file" > /dev/null 2>&1 | ||
33 | + | ||
34 | + # 检测sd卡还能否写入 | ||
35 | + if ! touch "$MOUNT_POINT"/.test_write 2>/dev/null; then | ||
36 | + echo "文件系统已变成只读,尝试重新挂载..." | ||
37 | + | ||
38 | + # 重新挂载 | ||
39 | + mount -o remount rw /root/sdcard | ||
40 | + | ||
41 | + # 删除损坏的文件 | ||
42 | + rm -f ${file} | ||
43 | + else | ||
44 | + echo "文件系统正常,继续检查下一个文件" | ||
45 | + fi | ||
46 | + done | ||
47 | + else | ||
48 | + echo "音频目录不存在: $AUDIO_DIR" | ||
49 | + fi | ||
50 | +} | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | +# 1、删除测试读取文件 | ||
55 | +rm -f "$MOUNT_POINT"/.test_write | ||
56 | + | ||
57 | +# 检查文件系统是否可写, 如果不可写,先恢复 | ||
58 | +check_sdCard_filesystem_writable | ||
59 | + | ||
60 | +# 检查音频文件 | ||
61 | +check_audio_files | ||
62 | + | ||
63 | +echo "检测完成!" |
sh_file/attention_pack.sh
0 → 100644
1 | +payload_name="$1" | ||
2 | +payload_mode="$2" | ||
3 | +payload_platform="$3" | ||
4 | +payload_version="$4" | ||
5 | +payload_special="$5" | ||
6 | + | ||
7 | +# 配置基本参数 | ||
8 | +chmod 777 Pack_param.sh | ||
9 | +./Pack_param.sh $payload_name \ | ||
10 | + $payload_mode \ | ||
11 | + $payload_platform \ | ||
12 | + $payload_version \ | ||
13 | + $payload_special | ||
14 | + | ||
15 | +# 编译 | ||
16 | +#二次压缩包的打包, 会得到一个完整版的UpgradePackage.tar.gz | ||
17 | +cd ShellPack | ||
18 | +./shellpack.sh | ||
19 | +cd ../ | ||
20 | + | ||
21 | +rm UpgradePackage.tar.gz |
sh_file/defeat
已删除
100644 → 0
1 | -./root/ATTENTION_APP --play_prompt_tts updefeat |
sh_file/plane_pack.sh
0 → 100644
1 | +payload_name="$1" | ||
2 | +payload_mode="$2" | ||
3 | +payload_platform="$3" | ||
4 | +payload_version="$4" | ||
5 | +payload_special="$5" | ||
6 | + | ||
7 | +# 配置基本参数 | ||
8 | +chmod 777 Pack_param.sh | ||
9 | +./Pack_param.sh $payload_name \ | ||
10 | + $payload_mode \ | ||
11 | + $payload_platform \ | ||
12 | + $payload_version \ | ||
13 | + $payload_special | ||
14 | + | ||
15 | +# 编译 | ||
16 | +#二次压缩包的打包, 会得到一个完整版的UpgradePackage.tar.gz | ||
17 | +cd ShellPack | ||
18 | +./shellpack.sh | ||
19 | +cd ../ | ||
20 | + | ||
21 | +# 打包 | ||
22 | +# DOMESTIC为国内版,OVERSEAS为国外版,UNUSE不输入版本 | ||
23 | +chmod 777 Pack_complete.sh | ||
24 | +chmod 777 Pack_simple.sh | ||
25 | + | ||
26 | +############# 如果是以前会分开国内外的版本 ############# | ||
27 | +# 备注旧版本的大型包里会含有语言文件 | ||
28 | +# 注:飞机固件的小包里是含有语言文件信息的,但是串口固件的没有,因为psdk加载要看语言文件信息 | ||
29 | +# | ||
30 | +# | ||
31 | + | ||
32 | +domestic_bin_name=$payload_name"_"$payload_version".bin" | ||
33 | +domestic_bin_name_silm="${payload_name}_${payload_version}Silm.bin" | ||
34 | + | ||
35 | +replaced_payload_name=${payload_name//_/-} | ||
36 | +overseas_bin_name=$replaced_payload_name"_"$payload_version".bin" | ||
37 | +overseas_bin_name_silm="${replaced_payload_name}_${payload_version}Silm.bin" | ||
38 | + | ||
39 | +# 打包大型包 | ||
40 | +./Pack_complete.sh "UNUSE" ${domestic_bin_name} | ||
41 | + | ||
42 | +rm UpgradePackage.tar.gz | ||
43 | + | ||
44 | +# 打包小型包 | ||
45 | +./Pack_simple.sh "UNUSE" ${domestic_bin_name_silm} | ||
46 | + | ||
47 | +############################################################## | ||
48 | + |
sh_file/uart_pack.sh
0 → 100644
1 | +payload_name="$1" | ||
2 | +payload_mode="$2" | ||
3 | +payload_platform="$3" | ||
4 | +payload_version="$4" | ||
5 | +payload_special="$5" | ||
6 | + | ||
7 | +# 配置基本参数 | ||
8 | +chmod 777 Pack_param.sh | ||
9 | +./Pack_param.sh $payload_name \ | ||
10 | + $payload_mode \ | ||
11 | + $payload_platform \ | ||
12 | + $payload_version \ | ||
13 | + $payload_special | ||
14 | + | ||
15 | +# 编译 | ||
16 | +#二次压缩包的打包, 会得到一个完整版的UpgradePackage.tar.gz | ||
17 | +cd ShellPack | ||
18 | +./shellpack.sh | ||
19 | +cd ../ | ||
20 | + | ||
21 | +# 打包 | ||
22 | +# DOMESTIC为国内版,OVERSEAS为国外版,UNUSE不输入版本 | ||
23 | +chmod 777 Pack_complete.sh | ||
24 | +chmod 777 Pack_simple.sh | ||
25 | + | ||
26 | +############# 单语言+串口的版本 ############# | ||
27 | +# 备注旧版本的大型包里会含有语言文件 | ||
28 | +# 注:飞机固件的小包里是含有语言文件信息的,但是串口固件的没有,因为psdk加载要看语言文件信息 | ||
29 | +# | ||
30 | +# | ||
31 | + | ||
32 | +domestic_bin_name=$payload_name"_"$payload_version".bin" | ||
33 | +domestic_bin_name_silm="${payload_name}_${payload_version}Silm.bin" | ||
34 | + | ||
35 | +# 打包大型包 | ||
36 | +./Pack_complete.sh "UNUSE" ${domestic_bin_name} | ||
37 | + | ||
38 | +rm UpgradePackage.tar.gz | ||
39 | + | ||
40 | +#打包小型包 | ||
41 | +./Pack_simple.sh "UNUSE" ${domestic_bin_name_silm} | ||
42 | + | ||
43 | +############################################################## | ||
44 | + |
sh_file/upsucces
已删除
100644 → 0
1 | -./root/ATTENTION_APP --play_prompt_tts upsucess; |
-
请 注册 或 登录 后发表评论