d1s tina 配置里添加dbus 之后编译出现了报错不知道怎么解决
-
在 make menuconfig 里添加了 这个 之后就开始编译报错
np_scene_utils.c: In function 'SetBootLock': np_scene_utils.c:121:19: error: 'CPU0LOCK' undeclared (first use in this function); did you mean 'F_ULOCK'? return setConfig(CPU0LOCK, bootlock); ^~~~~~~~ F_ULOCK np_scene_utils.c:121:19: note: each undeclared identifier is reported only once for each function it appears in np_scene_utils.c: In function 'SetRoomage': np_scene_utils.c:126:19: error: 'ROOMAGE' undeclared (first use in this function) return setConfig(ROOMAGE, roomage); ^~~~~~~ np_scene_utils.c: In function 'SetCpuFreq': np_scene_utils.c:173:32: error: 'CPUFREQ_AVAIL' undeclared (first use in this function) if(!GetActualFreq(actualfreq, CPUFREQ_AVAIL)) ^~~~~~~~~~~~~ np_scene_utils.c:175:12: error: 'CPUFREQ_MAX' undeclared (first use in this function) setConfig(CPUFREQ_MAX, actualfreq); ^~~~~~~~~~~ np_scene_utils.c:176:12: error: 'CPUFREQ_MIN' undeclared (first use in this function) setConfig(CPUFREQ_MIN, actualfreq); ^~~~~~~~~~~ np_scene_utils.c: In function 'SetCpuFreqMax': np_scene_utils.c:183:19: error: 'CPUFREQ_MAX' undeclared (first use in this function) return setConfig(CPUFREQ_MAX, cpu_freq_max); ^~~~~~~~~~~ np_scene_utils.c: In function 'SetCpuFreqMin': np_scene_utils.c:188:19: error: 'CPUFREQ_MIN' undeclared (first use in this function) return setConfig(CPUFREQ_MIN, cpu_freq_min); ^~~~~~~~~~~ np_scene_utils.c: In function 'GetCpuFreq': np_scene_utils.c:193:19: error: 'CPUFREQ' undeclared (first use in this function) return getConfig(CPUFREQ, buf, len); ^~~~~~~ np_scene_utils.c: In function 'GetCpuOnline': np_scene_utils.c:198:19: error: 'CPUONLINE' undeclared (first use in this function); did you mean 'CPU_SCENE'? return getConfig(CPUONLINE, buf, len); ^~~~~~~~~ CPU_SCENE np_scene_utils.c: In function 'GetCpuGov': np_scene_utils.c:203:19: error: 'CPU0GOV' undeclared (first use in this function) return getConfig(CPU0GOV, buf, len); ^~~~~~~ np_scene_utils.c: In function 'SetCpuGov': np_scene_utils.c:208:19: error: 'CPU0GOV' undeclared (first use in this function) return setConfig(CPU0GOV, cpu_gov); ^~~~~~~ np_scene_utils.c: In function 'SetCpuHot': np_scene_utils.c:213:19: error: 'CPUHOT' undeclared (first use in this function) return setConfig(CPUHOT, cpu_hot); ^~~~~~ np_scene_utils.c: In function 'SetCpuOnline': np_scene_utils.c:218:14: error: 'CPU_NUM_MAX' undeclared (first use in this function); did you mean 'UINT8_MAX'? char online[CPU_NUM_MAX]; ^~~~~~~~~~~ UINT8_MAX np_scene_utils.c: In function 'SetDramFreqAdaptive': np_scene_utils.c:260:19: error: 'DRAMMODE' undeclared (first use in this function); did you mean 'O_ACCMODE'? return setConfig(DRAMMODE, pause); ^~~~~~~~ O_ACCMODE np_scene_utils.c: In function 'SetDramFreq': np_scene_utils.c:268:32: error: 'DRAMFREQ_AVAIL' undeclared (first use in this function) if(!GetActualFreq(actualfreq, DRAMFREQ_AVAIL)) ^~~~~~~~~~~~~~ np_scene_utils.c:272:12: error: 'DRAMFREQ_MAX' undeclared (first use in this function); did you mean 'RAND_MAX'? setConfig(DRAMFREQ_MAX, actualfreq); ^~~~~~~~~~~~ RAND_MAX np_scene_utils.c:273:12: error: 'DRAMFREQ_MIN' undeclared (first use in this function) setConfig(DRAMFREQ_MIN, actualfreq); ^~~~~~~~~~~~ np_scene_utils.c: In function 'SetDramFreqMax': np_scene_utils.c:280:19: error: 'DRAMFREQ_MAX' undeclared (first use in this function); did you mean 'RAND_MAX'? return setConfig(DRAMFREQ_MAX, dram_freq_max); ^~~~~~~~~~~~ RAND_MAX np_scene_utils.c: In function 'SetDramFreqMin': np_scene_utils.c:285:19: error: 'DRAMFREQ_MIN' undeclared (first use in this function) return setConfig(DRAMFREQ_MIN, dram_freq_min); ^~~~~~~~~~~~ np_scene_utils.c: In function 'GetDramFreq': np_scene_utils.c:290:19: error: 'DRAMFREQ' undeclared (first use in this function); did you mean 'DRAM_SCENE'? return getConfig(DRAMFREQ, buf, len); ^~~~~~~~ DRAM_SCENE np_scene_utils.c: At top level: np_scene_utils.c:320:16: warning: initialization of 'int (*)(char *, int)' from incompatible pointer type 'int (*)(char *, size_t)' {aka 'int (*)(char *, long unsigned int)'} [-Wincompatible-pointer-types] .GetGpuFreq = GetGpuFreq, ^~~~~~~~~~ np_scene_utils.c:320:16: note: (near initialization for 'gpu_ops.GetGpuFreq') make[4]: *** [libscenemanager.so] Error 1 make[4]: Leaving directory `/home/yuwei/linux/D1s/d1_sdk_v2.0_repo_sync_local/tina_d1_open_v2/out/d1s-mq/compile_dir/target/nativepower/libscenemanager' make[3]: *** [/home/yuwei/linux/D1s/d1_sdk_v2.0_repo_sync_local/tina_d1_open_v2/out/d1s-mq/compile_dir/target/nativepower/.built] Error 2 make[3]: Leaving directory `/home/yuwei/linux/D1s/d1_sdk_v2.0_repo_sync_local/tina_d1_open_v2/package/allwinner/nativepower' make[2]: *** [package/allwinner/nativepower/compile] Error 2 make[2]: Leaving directory `/home/yuwei/linux/D1s/d1_sdk_v2.0_repo_sync_local/tina_d1_open_v2' make[1]: *** [/home/yuwei/linux/D1s/d1_sdk_v2.0_repo_sync_local/tina_d1_open_v2/out/d1s-mq/staging_dir/target/stamp/.package_compile] Error 2 make[1]: Leaving directory `/home/yuwei/linux/D1s/d1_sdk_v2.0_repo_sync_local/tina_d1_open_v2' make: *** [world] 错误 2 [4]+ 已完成 $T/tools/build/buildserver --path $T 2> /dev/null 1>&2 #### make failed to build some targets (14 seconds) #### root@yuwei-VirtualBox:/home/yuwei/linux/D1s/d1_sdk_v2.0_repo_sync_local/tina_d1_open_v2#
不知道什么情况 有没有大佬帮忙看一下
-
感觉这个包可能是 for arm only,
你看下源码, 看样子可能里面有 arm 的汇编代码。
-
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号