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

Can't figure out how to build on windows #6

Open
kamcknig opened this issue Jun 17, 2014 · 0 comments
Open

Can't figure out how to build on windows #6

kamcknig opened this issue Jun 17, 2014 · 0 comments

Comments

@kamcknig
Copy link

Hi!

Trying to get this to work on android, working in a windows environment. getting some errors on the ndk-build command.

Here is the output:

C:\Android-ImageMagick\jni>ndk-build
Android NDK: WARNING:C:\Android-ImageMagick\ndk-modules/ImageMagick-6.7.3-0/magick/Android.mk:M
agickCore: LOCAL_LDLIBS is always ignored for static libraries
Android NDK: WARNING:C:\Android-ImageMagick\ndk-modules/ImageMagick-6.7.3-0/magick/Android.mk:M
agickCore: non-system libraries in linker flags: -lfreetype -lpng
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES

Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING:C:/Android-ImageMagick//jni/Android.mk:android-magick: non-system librarie
s in linker flags: -lfreetype -lpng
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES

Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING:C:\Android-ImageMagick\ndk-modules/ImageMagick-6.7.3-0/coders/Android.mk:c
oders: LOCAL_LDLIBS is always ignored for static libraries
Android NDK: WARNING:C:\Android-ImageMagick\ndk-modules/ImageMagick-6.7.3-0/coders/Android.mk:c
oders: non-system libraries in linker flags: -ltiff
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES

Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING:C:\Android-ImageMagick\ndk-modules/ImageMagick-6.7.3-0/filters/Android.mk:
filters: LOCAL_LDLIBS is always ignored for static libraries
Android NDK: WARNING:C:\Android-ImageMagick\ndk-modules/tiff/Android.mk:tiff-static: LOCAL_LDLI
BS is always ignored for static libraries
[armeabi] Compile thumb : android-magick <= jmagick.c
C:/Android-ImageMagick//jni/jmagick.c:7:24: fatal error: magick/api.h: No such file or director
y
compilation terminated.
make.exe: *** [C:/Android-ImageMagick//obj/local/armeabi/objs/android-magick/jmagick.o] Error 1

As you can see it says that magick/api.h doesn't exist but it doesn. I'm new to using hte android ndk and .mk files so I'm not really sure what to change to get it to look in the right place. I've updated the NDK_MODULE_PATH variable, and in Android.mk I see a Magick_Home variable, but I'm not sure what to set it to. To the source dir of Image magick that i've downloaded? To the Image Magick directory in the ndk-modules path of this project? Sorry, but I jsut don't get it :/

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

1 participant