完善资料让更多小伙伴认识你,还能领取20积分哦,立即完善>
adevicerockchipcommonBoardConfig.mk
+++ bdevicerockchipcommonBoardConfig.mk #for 3G/4G modem dongle support -BOARD_HAVE_DONGLE := false +BOARD_HAVE_DONGLE := true 然后编译报错 ============================================== PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION= 11 TARGET_PRODUCT = rk3568_r TARGET_BUILD_VARIANT = userdebug TARGET_BUILD_TYPE =释放 TARGET_ARCH = arm64 TARGET_ARCH_VARIANT = armv8-一个 TARGET_CPU_VARIANT =皮质-A55 TARGET_2ND_ARCH =手臂 TARGET_2ND_ARCH_VARIANT = armv8-2a TARGET_2ND_CPU_VARIANT =皮质-A55 HOST_ARCH = x86_64的 HOST_2ND_ARCH = 86 HOST_OS = Linux的 HOST_OS_EXTRA=Linux-5.4.0-91-generic-x86_64-Ubuntu-18.04.6-LTS HOST_CROSS_OS=windows HOST_CROSS_ARCH=x86 HOST_CROSS_2ND_ARCH=x86_64 HOST_BUILD_TYPE=发布 BUILD_ID=RQ3A.210705.001 OUT_DIR=out ========= ==================================== [ 30% 283/935] 目标 C++: u***_dongle <= external/ u***_modeswitch/u***_dongle/Misc.cpp 失败:out/target/product/rk3568_r/obj/EXECUTABLES/u***_dongle_intermediates/Misc.o /bin/bash -c "(prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang-tidy -warnings-as-errors=clang-analyzer-security*,cert-* -quiet -extra-arg -before=-fno-caret-diagnostics -extra-arg-before=-D__clang_analyzer__ -extra-arg-before=-Xclang -extra-arg-before=-analyzer-config -extra-arg-before=-Xclang -extra- arg-before=c++-temp-dtor-inlining=false -checks=-*,clang-diagnostic-unused-command-line-argument,google*,-google-build-using-namespace,-google-default-arguments, -google-explicit-constructor,-google-readability*,-google-runtime-int,-google-runtime-references,-*,clang-analyzer-security*,cert-*,-cert-err34-c,-cert -err58-cpp,-cert-env33-c 外部/u***_modeswitch/u***_dongle/Misc。cpp -- -I external/u***_modeswitch/u***_dongle -I out/target/product/rk3568_r/obj/EXECUTABLES/u***_dongle_intermediates -I out/target/product/rk3568_r/gen/EXECUTABLES/u***_dongle_intermediates -Isystem/core/libsysutils/include -Isystem /core/libsysutils/include -Iframeworks/native/libs/binder/include -Isystem/core/base/include -Isystem/core/libcutils/include_vndk -Isystem/core/libutils/include -Isystem/core/libbacktrace/include -Isystem /core/liblog/include_vndk -Isystem/core/libsystem/include -Isystem/core/libprocessgroup/include -Iout/soong/.intermediates/frameworks/native/libs/binder/libbinder/android_vendor。30_arm64_armv8-a_cortex-a55_shared/gen/aidl -Isystem/core/libcutils/include_vndk -Isystem/core/libprocessgroup/include -Isystem/core/libcutils/include -Isystem/core/liblog/include_vndk -Iexternal/selinux/libselinux/include - Isystem/core/libutils/include -Isystem/core/libbacktrace/include -Isystem/core/liblog/include_vndk -Isystem/core/libsystem/include -Isystem/core/libcutils/include_vndk -Isystem/core/libprocessgroup/include -Isystem/ core/base/include -Iexternal/fmtlib/include -Isystem/libhwbinder/include -Isystem/libhwbinder/include -Iexternal/libcxx/include -Iexternal/libcxxabi/include -isystem out/soong/.intermediates/bionic/libc/libc。 llndk/android_vendor。30_arm64_armv8-a_cortex-a55_shared/gen/include -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/ asm-arm64 -Iexternal/libcxxabi/include -isystem out/target/product/rk3568_r/obj/include -c -Werror=implicit-function-declaration -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit -self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -Werror=date-time -Werror=pragma-pack -Werror=pragma -pack-suspicious-include -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -Werror=int-conversion -fexperimental-new-pass-manager -Wno-reserved-id-macro -Wno -unused-command-line-argument -fcolor-diagnostics -Wno-sign-compare -Wno-defaulted-function-deleted-Wno-inconsistent-missing-override -Wno-c99-designator -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non -virtual-dtor -Werror=address -Werror=sequence-point -Werror=format-security -nostdlibinc -march=armv8-a -mcpu=cortex-a55 -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android -4。9/aarch64-linux-android/bin -Wsign-promo -Wimplicit-fallthrough -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-gnu-include-next -fvisibility-inlines-hidden -std=gnu++17 -fno-rtti -Werror -Wall -Wno -missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Werror=format -DUSE_USB_MODE_SWITCH -D__ANDROID_VNDK__ -fPIE -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-null-dereference -Wno-pointer-compare -Wno-xor-used-as-pow -Wno-final-dtor-non-final-class -target aarch64-linux-android30 -Werror=int-to-pointer- cast -Werror=pointer-to-int-cast -Werror=fortify-source -Werror=临时地址 -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare - Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-int-in-bool-context -Wno-sizeof-array-div-Wno-tautological-overlap-compare -Wno-deprecated-copy -Wno-range-loop-construct -Wno-misleading-indentation -Wno-zero-as-null-pointer-constant -Wno-deprecated-anon-enum-enum -conversion -Wno-deprecated-enum-enum-conversion -Wno-string-compare -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-pessimizing-move) &&(PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r383902b1/bin/clang++ -I external/u***_modeswitch/u***_dongle -I out/target/product/rk3568_r/obj/EXECUTABLES/u***_dongle_intermediates -I out/target/product/rk3568_r/gen/EXECUTABLES/u***_dongle_intermediates -Isystem/core/libsysutils/include -Isystem/core/libsysutils/include -Iframeworks/native/libs/binder/include -Isystem/core/base/include -Isystem/核心/libcutils/include_vndk -Isystem/core/libutils/include -Isystem/core/libbacktrace/include -Isystem/core/liblog/include_vndk -Isystem/core/libsystem/include -Isystem/core/libprocessgroup/include -Iout/soong/ .intermediates/frameworks/native/libs/binder/libbinder/android_vendor。30_arm64_armv8-a_cortex-a55_shared/gen/aidl -Isystem/core/libcutils/include_vndk -Isystem/core/libprocessgroup/include -Isystem/core/libcutils/include -Isystem/core/liblog/include_vndk -Iexternal/selinux/libselinux/include - Isystem/core/libutils/include -Isystem/core/libbacktrace/include -Isystem/core/liblog/include_vndk -Isystem/core/libsystem/include -Isystem/core/libcutils/include_vndk -Isystem/core/libprocessgroup/include -Isystem/ core/base/include -Iexternal/fmtlib/include -Isystem/libhwbinder/include -Isystem/libhwbinder/include -Iexternal/libcxx/include -Iexternal/libcxxabi/include -isystem out/soong/.intermediates/bionic/libc/libc。 llndk/android_vendor。30_arm64_armv8-a_cortex-a55_shared/gen/include -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/ asm-arm64 -Iexternal/libcxxabi/include -isystem out/target/product/rk3568_r/obj/include -c -Werror=implicit-function-declaration -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit -self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -Werror=date-time -Werror=pragma-pack -Werror=pragma -pack-suspicious-include -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -Werror=int-conversion -fexperimental-new-pass-manager -Wno-reserved-id-macro -Wno -unused-command-line-argument -fcolor-diagnostics -Wno-sign-compare -Wno-defaulted-function-deleted-Wno-inconsistent-missing-override -Wno-c99-designator -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non -virtual-dtor -Werror=address -Werror=sequence-point -Werror=format-security -nostdlibinc -march=armv8-a -mcpu=cortex-a55 -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android -4。9/aarch64-linux-android/bin -Wsign-promo -Wimplicit-fallthrough -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-gnu-include-next -fvisibility-inlines-hidden -std=gnu++17 -fno-rtti -Werror -Wall -Wno -missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Werror=format -DUSE_USB_MODE_SWITCH -D__ANDROID_VNDK__ -fPIE -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-null-dereference -Wno-pointer-compare -Wno-xor-used-as-pow -Wno-final-dtor-non-final-class -target aarch64-linux-android30 -Werror=int-to-pointer- cast -Werror=pointer-to-int-cast -Werror=fortify-source -Werror=临时地址 -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare - Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-int-in-bool-context -Wno-sizeof-array-div-Wno-tautological-overlap-compare -Wno-deprecated-copy -Wno-range-loop-construct -Wno-misleading-indentation -Wno-zero-as-null-pointer-constant -Wno-deprecated-anon-enum-enum -conversion -Wno-deprecated-enum-enum-conversion -Wno-string-compare -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-pessimizing-move -MD -MF out/target/product/ rk3568_r/obj/EXECUTABLES/u***_dongle_intermediates/Misc.d -o out/target/product/rk3568_r/obj/EXECUTABLES/u***_dongle_intermediates/Misc.o external/u***_modeswitch/u***_dongle/Misc.cpp)" 错误:声明使用标识符“_FORTIFY_SOURCE”,这是一个保留标识符 [cert-dcl37-c,-warnings-as-errors] 错误:声明使用标识符“_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS”,这是一个保留标识符 [cert-dcl37-c,- warnings-as-errors] 注意:此修复将不会应用,因为它与另一个修复 错误重叠:声明使用标识符“__ANDROID_VNDK__”,这是一个保留标识符 [cert-dcl37-c,-warnings-as-errors] 注意:此修复将不会应用,因为它与另一个修复 错误重叠:声明使用标识符“__clang_analyzer__”,这是一个保留标识符 [cert-dcl37-c,-warnings-as-errors] 注意:此修复将不会应用,因为它与另一个修复重叠 错误:声明使用标识符“__compiler_offsetof”,这是一个保留标识符 [cert-dcl37-c,-warnings-as-errors] 注意:此修复将不会应用,因为它与另一个修复重叠 错误:声明使用标识符“_FORTIFY_SOURCE” ,这是一个保留标识符 [cert-dcl51-cpp,-warnings-as-errors] 错误:声明使用标识符 '_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS',这是一个保留标识符 [cert-dcl51-cpp,-warnings-as-errors] 注意:此修复将不会应用,因为它与另一个修复 错误重叠:声明使用标识符“__ANDROID_VNDK__”,这是一个保留标识符 [cert-dcl51-cpp,-warnings-as-errors] 注意:此修复将不会应用,因为它与另一个修复重叠 错误:声明使用标识符“__clang_analyzer__”,这是一个保留标识符 [cert-dcl51-cpp,-warnings-as-errors] 注意:此修复将不会应用,因为它与另一个修复重叠 错误:声明使用标识符“__compiler_offsetof” ,这是一个保留标识符 [cert-dcl51-cpp,-warnings-as-errors] 注意:此修复将不会被应用,因为它与另一个修复重叠 ............ 错误:声明使用标识符“_FORTIFY_SOURCE”,这是一个保留标识符 [cert-dcl37-c,-warnings-as-errors] 错误:声明使用标识符“_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS”,这是一个保留标识符 [cert-dcl37-c,-warnings- as-errors] 注意:此修复将不会应用,因为它与另一个修复重叠 错误:声明使用标识符“__ANDROID_VNDK__”,这是一个保留标识符 [cert-dcl37-c,-warnings-as-errors] 注意:此修复将不会应用,因为它与另一个修复重叠 错误:声明使用标识符“__clang_analyzer__” ,这是一个保留标识符 [cert-dcl37-c,-warnings-as-errors] 注意:此修复将不会应用,因为它与另一个修复 错误重叠:声明使用标识符'__compiler_offsetof',这是一个保留标识符 [cert -dcl37-c,-warnings-as-errors] 注意:此修复将不会应用,因为它与另一个修复 错误重叠:声明使用标识符“_FORTIFY_SOURCE”,这是一个保留标识符 [cert-dcl51-cpp,-warnings-作为错误] 错误:声明使用标识符“_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS”,这是一个保留标识符 [cert-dcl51-cpp,-warnings-as-errors] 注意:此修复将不会被应用,因为它与另一个修复 错误:声明使用标识符“__ANDROID_VNDK__” ,这是一个保留标识符 [cert-dcl51-cpp,-warnings-as-errors] 注意:此修复将不会应用,因为它与另一个修复 错误重叠:声明使用标识符 '__clang_analyzer__',这是一个保留标识符 [cert -dcl51-cpp,-warnings-as-errors] 注意:此修复将不会被应用,因为它与另一个修复 错误重叠:声明使用标识符“__compiler_offsetof”,这是一个保留标识符 [cert-dcl51-cpp,-warnings-作为错误] 注意:此修复将不会应用,因为它与另一个修复重叠 15:58:06 ninja failed with: exit status 1 #### failed to build some targets (01:38 (mm:ss)) #### 修改:externalu***_modeswitchu***_dongleAndroid.mk LOCAL_PATH:= $(call my-dir) common_src_files := NetlinkManager.cpp NetlinkHandler.cpp MiscManager.cpp Misc.cpp G3Dev.cpp common_shared_libraries := libsysutils libbinder libcutils liblog libselinux libutils libbase libhwbinder common_cflags := -Werror -Wall -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -common_local_tidy_flags := -warnings-as-errors=clang-analyzer-security*,cert-* + # common_local_tidy_flags := -warnings-as-errors=clang-analyzer-security*,cert-* common_local_tidy_checks := -*,clang-analyzer-security*,cert-*,-cert-err34-c,-cert-err58-cpp common_local_tidy_checks += ,-cert-env33-c 包括 $(CLEAR_VARS) LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk LOCAL_MODULE := u***_dongle LOCAL_PROPRIETARY_MODULE := true LOCAL_CLANG := true LOCAL_TIDY := true LOCAL_TIDY_FLAGS_flaGS_gSDYs) $( := $(common_local_tidy_checks) LOCAL_SRC_FILES := main.cpp $(common_src_files) LOCAL_INIT_RC := u***_dongle.rc LOCAL_CFLAGS := $(common_cflags) LOCAL_CFLAGS += -Werror=format LOCAL_CFLAGS += -DUSE_USB_MODE_SWITCH LOCAL_SHARED_LIBRARIES := $( common_shared_ex_libraries ) common_local_flags 这一个 就可以掉编译通过了。 |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
rk1126实现BT601输入,输入不带IIC接口的驱动程序
1715 浏览0 评论
1476 浏览1 评论
2641 浏览3 评论
RK3568 Android11让系统ntp校准时间生效,需要设置些什么
3300 浏览1 评论
5348 浏览2 评论
小黑屋|手机版|Archiver|德赢Vwin官网(湘ICP备2023018690号)
GMT+8, 2024-8-25 14:30, Processed in 0.630727 second(s), Total 67, Slave 55 queries .
Powered by德赢Vwin官网 网
© 2015bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号