Hi everyone! I am trying to build a new HAL implementation and service with Soong build. Even though the build process is successful while using Android.mk makefile, After converting this Android.mk file into Android.bp, the build process is failed with the error described as header file not found: ``` hardware/interfaces/hvuleds/2.0/default/Hvuleds.h:24:10: fatal error: 'linux/msm_mdp.h' file not found #include <linux/msm_mdp.h> ``` This is content of my Android.mk file with success and performing in device well: ``` #=============================================== # Makefile for compliling service binary #=============================================== LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS) LOCAL_MODULE_RELATIVE_PATH := hw LOCAL_PROPRIETARY_MODULE := true LOCAL_MODULE := [email protected] LOCAL_INIT_RC := [email protected] LOCAL_SRC_FILES := \ service.cpp \ LOCAL_SHARED_LIBRARIES := \ libcutils \ libdl \ libbase \ libutils \ libhardware \ libhidlbase \ libhidltransport \ [email protected] \ [email protected] \ include $(BUILD_EXECUTABLE) #================================================= # Makefile for compiling implementation shared library #================================================= LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := [email protected] LOCAL_SRC_FILES := Hvuleds.cpp LOCAL_SHARED_LIBRARIES := \ libbase \ liblog \ libhidlbase \ libhidltransport \ libhardware \ libutils \ [email protected] \ LOCAL_MODULE_TAGS := optional include $(BUILD_SHARED_LIBRARY) ``` And this is content of Android.bp file with fail. This file is converted automatically form Android.mk with ```androidmk``` tool: ``` //=============================================== // Makefile for compliling service binary //=============================================== cc_binary { relative_install_path: "hw", proprietary: true, name: "[email protected]", init_rc: ["[email protected]"], srcs: ["service.cpp"], shared_libs: [ "libcutils", "libdl", "libbase", "libutils", "libhardware", "libhidlbase", "libhidltransport", "[email protected]", "[email protected]", ], } //================================================= // Makefile for compiling implementation shared library //================================================= cc_library_shared { name: "[email protected]", srcs: ["Hvuleds.cpp"], shared_libs: [ "libbase", "liblog", "libhidlbase", "libhidltransport", "libhardware", "libutils", "[email protected]", ], } ``` Can anyone help and explain to me ! Thank all ! Best regards ! -- -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/4ae5370d-cb1a-4089-8cfc-810863c2a54e%40googlegroups.com.
