How to compile libfuse for android?

591 views
Skip to first unread message

Ruini Xue

unread,
May 22, 2010, 1:12:28 PM5/22/10
to android-d...@googlegroups.com, android-...@googlegroups.com
Hello,

   I want to use FUSE in android. It's easy to compile the kernel part by enabling FUSE in .config, but how to compile libfuse.a/.so?
  I tried to put it in <platform>/external/ and create an Android.mk according to fuse's Makefile.am. However, lots of header files are missed, such as <sys/statvfs.h>.
  anyone has tried it?


Best

-- ruini

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

ChrisSoyars

unread,
May 24, 2010, 11:52:26 AM5/24/10
to android-platform
You would need to add the missing headers to bionic.

hedwin

unread,
May 29, 2010, 2:41:59 PM5/29/10
to android-...@googlegroups.com
Adding the missing header would indeed be the first start.
Only after that you would be able to determine whether or not it will be possible building libfuse using bionic.
You could also think about using a static libfuse library that way you would not depend on bionic etc.
Drawback is that the lib could be a bit bloated.   

Ruini Xue

unread,
May 31, 2010, 10:47:30 PM5/31/10
to android-...@googlegroups.com
On Sun, May 30, 2010 at 2:41 AM, hedwin <hedwin...@gmail.com> wrote:
Adding the missing header would indeed be the first start.

I just copied several missed headers from my ubuntu box, and there are lots of definition conflicts, redefinitions.
I am not sure whether the headers from desktop is ok or not, or where should I get the proper headers defined for arm?

-- ruini
 

hedwin

unread,
Jun 1, 2010, 9:03:51 AM6/1/10
to android-...@googlegroups.com
There are some architecture dependent headers files so I would be carefull copying desktop (x86) header files and use this
in lets say an ARM context.

Ruini Xue

unread,
Jun 3, 2010, 8:06:42 AM6/3/10
to android-...@googlegroups.com
On Tue, Jun 1, 2010 at 9:03 PM, hedwin <hedwin...@gmail.com> wrote:
There are some architecture dependent headers files so I would be carefull copying desktop (x86) header files and use this
in lets say an ARM context.
 
I found that openmoko's toolchain[1] contains all the headers, hope this is a better starting point.

[1]. http://wiki.openmoko.org/wiki/Toolchain
 
-- ruini

Reply all
Reply to author
Forward
0 new messages