[Android Software/Hacking General [Developers Only]] gege2061:
Hello,

I try to compile AOSP for HTC Desire Z but I have an error :

device/htc/vision/libsensors/AkmSensor.cpp:25:27: error: linux/akm8975.h: No such file or directory

I used android-2.3.4_r0.9[1] with some CyanogenMod modules :

CyanogenMod/android_device_htc_vision

CyanogenMod/android_device_htc_msm7x30-common

CyanogenMod/android_packages_apps_Superuser

I found the missing file in kernel/common[2] but how to include it in the android sources ?

I also try compile CyanogenMod (Compile CyanogenMod for Vision[3]), but i have another error :

$ . build/envsetup.sh && brunch vision
...
target SharedLib: libcameraservice (out/target/product/vision/obj/SHARED_LIBRARIES/libcameraservice_intermediates/LINKED/libcameraservice.so)
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/vision/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::getCameraInfo(int, android::CameraInfo*):frameworks/base/services/camera/libcameraservice/CameraService.cpp:128: error: undefined reference to 'HAL_getCameraInfo'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/vision/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::CameraService():frameworks/base/services/camera/libcameraservice/CameraService.cpp:94: error: undefined reference to 'HAL_getNumberOfCameras'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/vision/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::CameraService():frameworks/base/services/camera/libcameraservice/CameraService.cpp:94: error: undefined reference to 'HAL_getNumberOfCameras'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/vision/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::connect(android::sp<android::ICameraClient> const&, int):frameworks/base/services/camera/libcameraservice/CameraService.cpp:167: error: undefined reference to 'HAL_openCameraHardware'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/vision/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::connect(android::sp<android::ICameraClient> const&, int):frameworks/base/services/camera/libcameraservice/CameraService.cpp:173: error: undefined reference to 'HAL_getCameraInfo'
collect2: ld returned 1 exit status
make: *** [out/target/product/vision/obj/SHARED_LIBRARIES/libcameraservice_intermediates/LINKED/libcameraservice.so] Erreur 1
make: *** Attente des tâches non terminées....

Any help is welcome.

Thank's in advance.

[1] android.git.kernel.org/?p=platform/manifest.git;a=shortlog;h=refs/heads/android-2.3.4_r0.9

[2] android.git.kernel.org/?p=kernel/common.git;a=summary

[3] wiki.cyanogenmod.com/index.php?title=Compile_CyanogenMod_for_Vision