Module missing dependencies.

4,072 views
Skip to first unread message

Vasile Robert

unread,
Nov 5, 2019, 10:01:00 AM11/5/19
to Android Building
Hello, i'm trying to convert an existing makefile into a .bp file and i keep getting some dependencies issues:

echo "module ModuleName missing dependencies: companylib (and all the files that are in the include_dirs)

Now the module before this "ModuleName" doesn't seem to have any issue and the code for it is the same except for having a "relative_install_path" . but also adding it to this ModuleName didn't fix the issue.

Before it i had the same issue with another .bp file, but there using local_include_dirs instead of just "include_dirs" fixed the issue, here it persists.

Couldn't find anything about this online so can anyone help me understand what the problem could be?

The module in the .bp file looks like this:

cc_binary {
    vendor:true
    name:: "ModuleName"
    cppflags: CPPFLAGS //a variable with the flags needed
    include_dirs: CPPINCLUDES //again a variable referenced
    local_include_dirs: ["dir2" , "dir3" , "dir3/dir4" , "dir1/dir3" , "dir0/dir5" ],  //not the actual names
    srcs: ["dir/file1.cpp" , "dir/file2.cpp"],
    static_libs: ["companylib"],
    shared_libs: ["lib1" , "lib2" , "lib3" , "lib4" , "lib5" , "lib6" , "lib7" , "lib8" , "lib9",], //again numbers don't mean anything
}
 

Dan Willemsen

unread,
Nov 5, 2019, 1:29:18 PM11/5/19
to Android Building
Is "companylib" defined in Android.bp or Android.mk? All dependencies from Android.bp files must be defined in Android.bp, not make.

It also seems that you probably have ALLOW_MISSING_DEPENDENCIES=true in your environment or configs -- you should get faster and better errors by removing that flag.

- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/cc197fa4-a2d5-445c-a2ba-ff083c7879b6%40googlegroups.com.

Vasile Robert

unread,
Nov 6, 2019, 10:40:19 AM11/6/19
to Android Building
It is defined in Android.mk , i see, thank you for the info.

For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages