fatal error happens when I'm trying to include header files

91 views
Skip to first unread message

임정민

unread,
Mar 20, 2020, 2:46:43 AM3/20/20
to Android Building
I want to include install/install.h at blockimg.cpp
but It returns always

bootable/recovery/updater/blockimg.cpp: fatal error: 'install/install.h' file not found
#include "install/install.h"
^~~~~~~~~~~~~~~~~~~

I think this is related with Android.bp

[ 35% 45930/130598] //bootable/recovery/updater:libupdater_core clang++ install.cpp
FAILED: out/soong/.intermediates/bootable/recovery/updater/libupdater_core/linux_glibc_x86_64_static/obj/bootable/recovery/updater/blockimg.o
-Ibootable/recovery/edify/include 
-Ibootable/recovery/otautil/include 

there is no -Ibootable/recovery/install/include

could you guide for me how to include install.h properly

Dan Willemsen

unread,
Mar 20, 2020, 4:06:15 AM3/20/20
to Android Building
libupdater_core (which builds blockimg.cpp) does not depend on libinstall. It gets edify/include and otautil/include through the libedify and libotautil static libraries listed in libupdater_static_libs:


Adding libinstall to that list would get you access to the header files, but I don't think the code would be compiled into the updater binary. That's still in make, so you'd have to add it to this list:


That being said, I don't know anything about this code, so I don't know if it's valid to use libinstall within the updater executable, since it's normally in the recovery executable.

- 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/09e2f0aa-d4b6-47af-aa86-2ed6057485eb%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages