"MODULE already defined" when compiling Android 4.3 source code
Asked Answered
S

1

8

I downloaded the newest Android source code with repo, and attempted to compile it. An error message printed when I ran make -j4. Detail following:

build/core/base_rules.mk:130: *** external/webrtc/src/system_wrappers/source: MODULE.TARGET.STATIC_LIBRARIES.libwebrtc_system_wrappers already defined by external/webrtc/src/system_wrappers/source. Stop.

Sonometer answered 4/8, 2013 at 3:49 Comment(1)
If @mitchtech answer is correct, you must accept it. I am pretty sure it is correct because it worked for me. Thx.Rowell
K
15

Apparently there is a bug in the webrtc makefiles that causes it to ignore including STL if the NDK_ROOT environmental variable is previously defined (by ~/.bashrc, in my case). So just make sure NDK_ROOT is not defined at all when building. You can temporarily unset it with this command:

unset NDK_ROOT
Knutson answered 12/8, 2013 at 2:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.