编译环境:ubuntu18.04
软件版本:全志SDK,安卓版本8.1.0,linux-4.9.0
移植蓝牙时遇到一个报错,现已解决,提供解决过程及方法如下:
[2/2] bootstrap out/soong/.minibootstrap/build.ninja.in
[1/1] out/soong/.bootstrap/bin/minibp out/soong/.bootstrap/build.ninja
[43/44] glob system/bt/vendor_libs/test_vendor_lib/Android.bp
[1/8] compile out/soong/.bootstrap/soong-bluetoothhidl/pkg/android/soong/bluetoothhidl.a
FAILED: out/soong/.bootstrap/soong-bluetoothhidl/pkg/android/soong/bluetoothhidl.a
GOROOT='./prebuilts/go/linux-x86' ./prebuilts/go/linux-x86/pkg/tool/linux_amd64/compile -o out/soong/.bootstrap/soong-bluetoothhidl/pkg/android/soong/bluetoothhidl.a -p android/soong/bluetoothhidl -complete -I out/soong/.bootstrap/blueprint-parser/pkg -I out/soong/.bootstrap/blueprint-deptools/pkg -I out/soong/.bootstrap/blueprint-pathtools/pkg -I out/soong/.bootstrap/blueprint-proptools/pkg -I out/soong/.bootstrap/blueprint/pkg -I out/soong/.bootstrap/soong/pkg -I out/soong/.bootstrap/blueprint-bootstrap-bpdoc/pkg -I out/soong/.bootstrap/blueprint-bootstrap/pkg -I out/soong/.bootstrap/soong-env/pkg -I out/soong/.bootstrap/soong-android/pkg -I out/soong/.bootstrap/soong-cc-config/pkg -I out/soong/.bootstrap/soong-shared/pkg -I out/soong/.bootstrap/soong-genrule/pkg -I out/soong/.bootstrap/soong-cc/pkg -pack hardware/interfaces/bluetooth/1.0/default/bluetoothhidl.go
hardware/interfaces/bluetooth/1.0/default/bluetoothhidl.go:46: ctx.DeviceConfig().BtConfigVendor undefined (type android.DeviceConfig has no field or method BtConfigVendor)
[2/8] compile out/soong/.bootstrap/soong-fluoride/pkg/android/soong/fluoride.a
FAILED: out/soong/.bootstrap/soong-fluoride/pkg/android/soong/fluoride.a
GOROOT='./prebuilts/go/linux-x86' ./prebuilts/go/linux-x86/pkg/tool/linux_amd64/compile -o out