Re: [libharu] Digest for libharu@googlegroups.com - 1 Message in 1 Topic

72 views
Skip to first unread message

karim duran

unread,
Jul 19, 2011, 2:40:12 PM7/19/11
to lib...@googlegroups.com
Yes. Building libharu with ndk is quite easy because it's ISO/ANSI C. But libharu is just a library. You have to create application that use it. Regards. Karim Duran.

libharu...@googlegroups.com a écrit :

>=============================================================================
>Today's Topic Summary
>=============================================================================
>
>Group: lib...@googlegroups.com
>Url: http://groups.google.com/group/libharu/topics
>
> - libHaru for Android [1 Update]
> http://groups.google.com/group/libharu/t/7a36ae2315963d83
>
>
>=============================================================================
>Topic: libHaru for Android
>Url: http://groups.google.com/group/libharu/t/7a36ae2315963d83
>=============================================================================
>
>---------- 1 of 1 ----------
>From: Alfonso <alfonso...@gmail.com>
>Date: Jul 17 01:34PM -0700
>Url: http://groups.google.com/group/libharu/msg/1775b77fff3132f5
>
>Is there any port of this library to Android using the NDK? It looks
>like a possible way to solve a big problem in Android: write pdf
>files, is really strange that anybody would make it before. Are there
>known problems on this?
>
>Thanks you very much.
>
>
>
>
>--
>---
>libHaru.org development mailing list
>To unsubscribe, send email to libharu-u...@googlegroups.com

Alfonso

unread,
Jul 24, 2011, 2:07:21 PM7/24/11
to lib...@googlegroups.com
Thanks for your answer, Karim, it would be nice if someone would make
an example (a proof of concept). Do you know about some thing like
this on the Internet?

2011/7/19 karim duran <karim...@gmail.com>:

karim33

unread,
Jul 26, 2011, 7:55:25 PM7/26/11
to libHaru
Hi, Alfonso,

Excuse me for the delay...
If i have time, i try to build LibHaru on Android. And i send you
feedback. I'm very busy now with Google projects.

1) First you must well understand JNI java native interface, maybe you
already know about it....Because Android application are java based.
So you need a java class to wrap native C libharu library calls.

2) LibHaru is a library, so you must well understand shared library
concept, and how to build them on a standard UNIX environment.
( Android is a UNIX derived OS as you know )

3) Google provide to you a way to build a native library with the NDK.
Makefiles are full commented and documented as it is usual with Google.
( Google = very high quality softwares + very high quality
documentations). You have specific examples for shared library.

4) LibHaru will be built in user space privilege. I mean packaged with
your android application, typically in "jni" subfolder of your APK. It
won't be a system library ( except if you are root on your device and
you move libharu in "/System/lib" with root privilege). In such case,
your application won't work on devices where "libharu.so" isn't
installed and system-registered.

5) libharu on it's own, don't provide any support for JAVA. ( support
are available for Pascal, Perl, PHP, C#.... ). So you have to develop
the layer of the JAVA wrapper. ( reading C# source can really help
you, because C# and JAVA are closed syntaxic languages)

As you see, it's not so easy. I don't know what do you want to do.
But, in my opinion, you have work to do.
When i need a PDF document, i connect my SAMSUNG to google.com, goto
documents, then i build my document on web interface, and export to
PDF from Google web site. As i have Adobe reader on my mobile, i can
read my document. SO SIMPLE !!!!

Google is always the more simple and efficient solution....

I hope it helps you.

regards
Karim Duran

On 24 juil, 20:07, Alfonso <alfonsocris...@gmail.com> wrote:
> Thanks for your answer, Karim, it would be nice if someone would make
> an example (a proof of concept). Do you know about some thing like
> this on the Internet?
>
> 2011/7/19 karim duran <karim.du...@gmail.com>:
>
> > Yes. Building libharu with ndk is quite easy because it's ISO/ANSI C. But libharu is just a library. You have to create application that use it. Regards. Karim Duran.
>
> > libharu...@googlegroups.com a écrit :
>
> >>=============================================================================
> >>Today's Topic Summary
> >>=============================================================================
>
> >>Group: lib...@googlegroups.com
> >>Url:http://groups.google.com/group/libharu/topics
>
> >>  - libHaru for Android [1 Update]
> >>    http://groups.google.com/group/libharu/t/7a36ae2315963d83
>
> >>=============================================================================
> >>Topic: libHaru for Android
> >>Url:http://groups.google.com/group/libharu/t/7a36ae2315963d83
> >>=============================================================================
>
> >>---------- 1 of 1 ----------
> >>From: Alfonso <alfonsocris...@gmail.com>

Alfonso

unread,
Jul 27, 2011, 1:14:55 PM7/27/11
to lib...@googlegroups.com
Hi Karim,

don´t worry. I´ve built libharu succesfully on Android. You must
include the Zlib and the Libpng libraries, but It compiles fine and I
have tried some examples through JNI, all of them work fine. I´m very
busy now, too, but when I get some time I´ll clean and document the
project to upload it.

Best regards

2011/7/27 karim33 <karim...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages