MODULE.TARGET.SHARED_LIBRARIES.libjpeg already defined error

I am trying to create a kernel for AOSP 4.4.2 for a device. When I compile the kernel, I get

build/core/base_rules.mk:134: *** vendor/google/libs: MODULE.TARGET.SHARED_LIBRARIES.libjpeg already defined by external/jpeg. Stop. 

I understand that the generic libjpeg variable is already defined, and I need to delete one of them. It's right?

I tried looking into the external / jpeg folder, and I'm not sure which file I should look at. Can someone please tell me how to handle this situation.

+6
source share
2 answers

The error indicates that the shared libjpeg object is already defined in another google / libs module and you are trying to create it again. So just rename the Android.mk file to google / libs folder or to external / jpeg folder. He fixes the problem.

+6
source

I came across your error, but the solution was not to modify any Makefile or source. I just forgot to run the environment setup script (in May the AOSP tree: build/envsetup.sh ). After starting, there are no errors.

+2
source

Source: https://habr.com/ru/post/1201047/


All Articles