Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

utils/Compat.h: No such file or directory

236 views
Skip to first unread message

Jose Vidal

unread,
Feb 10, 2014, 2:58:06 PM2/10/14
to
Hi everyone,

I have a question

Where is "utils/Compat.h" ?

During building, I have the next error message:

frameworks/base/include/androidfw/Asset.h:27:26: fatal error: utils/Compat.h: No such file or directory


I hope your help.

Thanks in advance.

Regards.

jvidalsm

Andreas Pehrson

unread,
Feb 10, 2014, 4:03:08 PM2/10/14
to Jose Vidal, dev-b2g
I have one at frameworks/base/include/utils/Compat.h.

Can't help you much with the porting though. Sorry.

*Andreas Pehrson *--- Software Engineer

(+47) 959 60 374 | peh...@comoyo.com | www.comoyo.com
> _______________________________________________
> dev-b2g mailing list
> dev...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-b2g
>

Jose Vidal

unread,
Feb 10, 2014, 4:26:54 PM2/10/14
to
Hi,

I have compared between b2g_jb_3.2 and b2g_ics_1.2 from the www.codeaurora.org repo site (platform/frameworks/base)

For example, in the first repo (b2g_jb_3.2) the "utils" directory there is not, but the "#include <utils/Compat.h>" is called from "androidfw/Asset.h".
And, there is more than one.

How is that possible ?

What can I do. ?

I my case, I' working with b2g_jb_3.2.

I hope your help.

Regards.


jvidalsm

Dave Hylands

unread,
Feb 10, 2014, 4:34:11 PM2/10/14
to Jose Vidal, dev...@lists.mozilla.org
Running:

find . -name Compat.h

on my nexus 4 tree (which is JB based) yields:

./frameworks/native/include/utils/Compat.h

On my ICS based unagi tree, it yields:

./frameworks/base/include/utils/Compat.h

Comparing the 2 files, it looks like they moved the file.

Dave Hylands

Jose Vidal

unread,
Feb 10, 2014, 4:50:47 PM2/10/14
to
OK,

I see.

But, How I can solve if my first error during build is:

frameworks/base/tools/aapt/Main.h:9:23: fatal error: utils/Log.h: No such file or directory

I mean, "utils/Log.h" is called from "tools/aapt/Main.h"

It is sufficient with to copy (or move) the "utils" directory from "native" to "base" ?

Jose Vidal

unread,
Feb 10, 2014, 5:06:52 PM2/10/14
to
Hi Dave,

I copied "utils" and "android" folders from "frameworks/native/include" to "frameworks/base/include". All is ok.

Now, I have a new error:


frameworks/base/tools/aapt/StringPool.cpp:12:35: fatal error: cutils/qsort_r_compat.h: No such file or directory

The question is: Where is the "cutils" folder ?

Thanks in advance.

jvidalsm
0 new messages