MODULE.TARGET.SHARED_LIBRARIES.libjpeg already defined error

ChanChow picture ChanChow · Aug 25, 2014 · Viewed 12.6k times · Source

I am trying to build 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 shared variable libjpeg is already defined and I need to remove one of them. Is that correct?

I tried looking in external/jpeg folder and I am not sure which file I have to look into. Could some one please tell me how to deal with this situation.

Answer

DOSKrupp picture DOSKrupp · Oct 21, 2014

The error states that the Shared object libjpeg is already defined in other module google/libs and you are again trying to create it. So just try to rename the Android.mk file in google/libs folder or in external/jpeg folder. It fixes the issue.