参照https://device.harmonyos.com/cn/docs/documentation/guide/driver-hdf-sample-0000001052078177
编写用户程序和驱动交互代码
BUILD.gn包含如下
deps = [
"//drivers/adapter/uhdf/manager:hdf_core",
"//drivers/adapter/uhdf/posix:hdf_posix_osal",
]
编译的时候出现如下错误,请问这个错误应该如何解决。
ERROR at //build/lite/ndk/ndk.gni:32:5: Undefined identifier
if (ohos_build_compiler == "clang") {
^------------------
See //base/hiviewdfx/hilog_lite/frameworks/featured/BUILD.gn:15:1: whence it was imported.
import("//build/lite/ndk/ndk.gni")
^--------------------------------
See //drivers/adapter/uhdf/manager/BUILD.gn:44:5: which caused the file to be included.
"//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
^-------------------------------------------------------------