Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android-magick.so #1

Open
vfichtner opened this issue Jan 16, 2012 · 7 comments
Open

android-magick.so #1

vfichtner opened this issue Jan 16, 2012 · 7 comments

Comments

@vfichtner
Copy link

Hi,

really great project. But I have problems to compile it.
I used the rebuild script to build the android-magick.so but it crashed
with the stacktrace below. After a short cosideration I saw there are alot of
absolute path in the Android.mk files (like Magick_Home := /Users/iphoneteam/sdk/ImageMagick-6.7.2).

Can you provide also the android-magick.so file or fix the paths or give me some hints.
I would really appreciate that.

Thank you!

Stacktrace:

Clean: MagickCore [armeabi]
Clean: android-magick [armeabi]
Clean: coders [armeabi]
Clean: filters [armeabi]
Clean: jpeg [armeabi]
Clean: stdc++ [armeabi]
Clean: tiff-shared [armeabi]
Clean: tiff-static [armeabi]
Clean: tiffinfo [armeabi]
Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Compile thumb : android-magick <= jmagick.c
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:7:24: error: magick/api.h: No such file or directory
In file included from /home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:8:
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.h:4:26: error: magick/image.h: No such file or directory
In file included from /home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:8:
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.h:26: error: expected ';', ',' or ')' before '' token
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.h:131: error: expected declaration specifiers or '...' before 'RectangleInfo'
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.h:151: error: expected declaration specifiers or '...' before 'PixelPacket'
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.h:165: error: expected declaration specifiers or '...' before 'Image'
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.h:198: error: expected declaration specifiers or '...' before 'ProfileInfo'
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.h:212: error: expected declaration specifiers or '...' before 'ProfileInfo'
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:38: error: expected ';', ',' or ')' before '
' token
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c: In function 'getHandle':
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:150: warning: cast to pointer from integer of different size
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c: In function 'setHandle':
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:204: warning: cast from pointer to integer of different size
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c: At top level:
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:586: error: expected declaration specifiers or '...' before 'RectangleInfo'
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c: In function 'getRectangle':
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:595: error: 'iRect' undeclared (first use in this function)
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:595: error: (Each undeclared identifier is reported only once
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:595: error: for each function it appears in.)
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c: At top level:
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:622: error: expected declaration specifiers or '...' before 'PixelPacket'
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c: In function 'getPixelPacket':
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:637: error: 'iPixelPacket' undeclared (first use in this function)
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:637: error: 'Quantum' undeclared (first use in this function)
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:637: error: expected ';' before 'red'
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:638: error: expected ';' before 'green'
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:639: error: expected ';' before 'blue'
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:640: error: expected ';' before 'opacity'
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c: At top level:
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:662: error: expected declaration specifiers or '...' before 'Image'
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c: In function 'newImageObject':
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:684: error: 'image' undeclared (first use in this function)
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c: At top level:
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:733: error: expected declaration specifiers or '...' before 'ProfileInfo'
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c: In function 'setProfileInfo':
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:746: error: 'profileInfo' undeclared (first use in this function)
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c: At top level:
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:768: error: expected declaration specifiers or '...' before 'ProfileInfo'
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c: In function 'getProfileInfo':
/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/jni/jmagick.c:795: error: 'profileInfo' undeclared (first use in this function)
make: *** [/home/vita/projects/lilac-Android-ImageMagick-5f1c8b5/obj/local/armeabi/objs-debug/android-magick/jmagick.o] Fehler 1

@puelocesar
Copy link

On Android.mk jni:

Replace Magick_Home with something like /Users/paulo/Downloads/lilac-Android-ImageMagick-5f1c8b5/ndk-modules/ImageMagick-6.7.3-0

And make this modification:
LOCAL_C_INCLUDES += $(Magick_Home)

Now at least it starts compiling, but in the middle of it, it crashes asking for freetype and libtiff

@puelocesar
Copy link

Also, you can get libandroid-magick.so using git

@pinkeshsethi
Copy link

Hi,

Not able to generate the .so file by the above steps. Can you please share it.

I am getting following error in last few lines :

jni/../ndk-modules/ImageMagick-6.7.3-0/magick/annotate.c:1482: error: 'GlyphInfo' has no member named 'origin'
jni/../ndk-modules/ImageMagick-6.7.3-0/magick/annotate.c:1483: error: 'GlyphInfo' has no member named 'image'
jni/../ndk-modules/ImageMagick-6.7.3-0/magick/annotate.c:1483: error: 'GlyphInfo' has no member named 'origin'
jni/../ndk-modules/ImageMagick-6.7.3-0/magick/annotate.c:1484: error: 'GlyphInfo' has no member named 'image'
jni/../ndk-modules/ImageMagick-6.7.3-0/magick/annotate.c:1485: error: expected expression before ')' token
jni/../ndk-modules/ImageMagick-6.7.3-0/magick/annotate.c:1486: error: expected ';' before 'glyph'
jni/../ndk-modules/ImageMagick-6.7.3-0/magick/annotate.c:1491: error: 'GlyphInfo' has no member named 'image'
/cygdrive/c/android-ndk-r7b/build/core/build-binary.mk:240: recipe for target `obj/local/armeabi/objs-debug/MagickCore/annotate.o' failed
make: *** [obj/local/armeabi/objs-debug/MagickCore/annotate.o] Error 1

@puelocesar
Copy link

Hi pinkeshsethi, after some time making this work, I uploaded my results in this repository: https://github.com/puelocesar/android-lib-magick

@pinkeshsethi
Copy link

Hi Puelocesar,

Its working like a charm for "Jpg". Do we have support for ".tiff/.tif" images in the ImageMagick. As i have tried to open a tif image but application got crash in that case.

@puelocesar
Copy link

Don't know, I'm just working with jpegs. See, I didn't took a time to
properly compile it and understand it, I just got lilac libmagick.so and
created that fakeawt so Magick.java package stopped giving me errors...

On 2 March 2012 06:04, pinkeshsethi <
[email protected]

wrote:

Hi Puelocesar,

Its working like a charm for "Jpg". Do we have support for ".tiff/.tif"
images in the ImageMagick. As i have tried to open a tif image but
application got crash in that case.


Reply to this email directly or view it on GitHub:
#1 (comment)

Paulo Cesar
User Interface Developer
http://puelocesar.wordpress.com
http://www.faberludens.com.br/pt-br/blog/285

@vashisthg
Copy link

Hi all
I tried to generate .so files myself but failed so used the puelocesar's repo, but i need to use png images. I guess would have to add some library for png support. Any Ideas folks???

@github-staff github-staff deleted a comment from litty-tt Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@puelocesar @vfichtner @pinkeshsethi @vashisthg and others