GithubHelp home page GithubHelp logo

marforic / imagemagick_lib_iphone Goto Github PK

View Code? Open in Web Editor NEW
311.0 311.0 71.0 44.05 MB

Scripts and instructions to compile ImageMagick as a static library to use in any iOS project

Objective-C 1.66% C 94.81% C++ 1.53% Shell 1.99%

imagemagick_lib_iphone's People

Contributors

marforic avatar mgod avatar roozbeh avatar soarvermont avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

imagemagick_lib_iphone's Issues

Cocoapod compile warning "Unknown attribute '__alloc_size__' ignored"

I'm not sure if this is the right repository but I think so.

I have included the ios imagemagick pod (pod 'ImageMagick', '~> 6.8.8-9') in my project but I get a compile warning in Xcode 7, on 8 different lines in magick/memory_.h

for example one of the warnings in the build logs looks like this:

In file included from Pods/Headers/Private/wand/MagickWand.h:72:
In file included from Pods/Headers/Private/magick/MagickCore.h:120:
Pods/Headers/Private/magick/memory_.h:29:36: warning: unknown attribute '__alloc_size__' ignored [-Wunknown-attributes]
  *(*AcquireMemoryHandler)(size_t) magick_alloc_size(1),

BITCODE support

Existing Cocoapod installation indicates the library files are not compiled with BITCODE enabled. Temporarily, the workaround is to disable "ENABLE BITCODE" explicitly.

Build Report:

ld: '/Users/hollowaykeanho/Documents/code_development/hollowaykeanho/project/Pods/ImageMagick/libMagickCore.a(magick_libMagickCore_6_Q8_la-exception.o)' does not contain bitcode.
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Step to Reproduce

  1. Start a new XCode project.
  2. Ensure the "ENABLE BITCODE" is set to YES.
  3. Install ImageMagick through Cocoapod using:
pod "ImageMagick", "6.8.8-9"
  1. Pod install
  2. Build a simple app.
  3. Compile to an iPhone 5S physical target.

Severity

Right now bitcode is not enforced for iOS app upload but is mandatory for WatchOS and other devices. No guarantee on enforcement.

Workaround

Disable BITCODE.

Could you help me compile version 7.0.8 of Imagemagick for iOS

From where I need to find files mentioned in strcuture
./build/ImageMagick-VERSION/ <- ImageMagick top directory
./build/IMDelegates/ <- Some delegates: jpeg + png + tiff
./build/IMDelegates/jpeg-9a/ <- jpeg lib
./build/IMDelegates/libpng-1.6.10 <- png lib
./build/IMDelegates/tiff-4.0.3 <- tiff lib

Problem with arm64

I have successfully compiled the library with all.sh (it says something like "COMBINE armv7 armv7s arm64 i386 x86_64") and included the resulting files in my Xcode project.

But I get

Undefined symbols for architecture arm64:
"_TIFFTileRowSize", referenced from:
_TIFFWritePixels in libMagickCore.a(magick_libMagickCore_6_Q8_la-tiff.o)

Any idea what is wrong?

How to handle the sample project?

Hi all,
I have an issue with the sample project. Basically every time I recompile the library I update the project which ends up getting the new big binary libraries. I'm not concerned about github policies on big files, but it's just silly in my opinion to keep on pushing large files with minor changes.

Do you think I should remove the IM_Test folder and just keep the ZIP somewhere (e.g., on the ImageMagick FTP or my private one) and add a link in the read me? Or how best would you proceed?

Thanks for the feedback!

~C

BITCODE Support

Hi ,
i was trying to compile the script with bitcode support -fembed-bitcode ., it's so amazing i am able to compile the library from the source with your scripts but not able to make it with PNG support . would you please help me to get this binary with bitcode and png support . without bitcode support fat binary increases the binary sizes.

Thanks,
bear

Possible to do Command in iOS ImageMagick?

I have:

 MagickWandGenesis();
MagickWand *wand = NewMagickWand();
NSData *data = UIImagePNGRepresentation(self.originalImage);
MagickReadImageBlob(wand, [data bytes], [data length]);

int arg_count = 3;
char *args[] = { "-ordered", "-dither", "h4x4a", NULL};

ImageInfo *image_info = AcquireImageInfo();
ExceptionInfo *exception = AcquireExceptionInfo();

MagickBooleanType status = ConvertImageCommand(image_info, arg_count, args, NULL, exception);

if (exception->severity != UndefinedException)
{
    status = MagickTrue;
    CatchException(exception);
}

if (status == MagickFalse)
{
    NSLog(@"FAIL");
}

size_t my_size;
unsigned char * my_image = MagickGetImageBlob(wand, &my_size);
NSData *outData = [[NSData alloc] initWithBytes:my_image length:my_size];
free(my_image);

self.imageView.image = [[UIImage alloc] initWithData:outData];

image_info=DestroyImageInfo(image_info);
exception=DestroyExceptionInfo(exception);
DestroyMagickWand(wand);
MagickWandTerminus();

And it doesn't work. Have tried everything, was wondering if there is an example somewhere.

Unable to compile magick++

On final stage

# join libMagick++
	joinlibs=$(check_for_archs $LIB_DIR/$LIBNAME_magickpp)
	if [ $joinlibs == "OK" ]; then
		echo "[|- COMBINE $ARCHS]"
		accumul=""
		for i in $ARCHS; do
			accumul="$accumul -arch $i $LIB_DIR/$LIBNAME_magickpp.$i"
		done
		# combine the static libraries
		try lipo $accumul -create -output $LIB_DIR/libMagick++.a
		echo "[+ DONE]"
	fi

get this error

fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: specifed architecture type (i386) for file (/Users/a.pshenkin/git/experimental/imagemagick_lib_iphone/target/im_libs/libMagick++-6.Q8.a.i386) does not match its cputype (16777223) and cpusubtype (3) (should be cputype (7) and cpusubtype (3))

Can you please help me to solve this issue? Have no idea how to solve it.

Here is my logfile https://drive.google.com/open?id=0B-9Ht-YXSa-BVzJvaC1BY19zUG8

BTW, if remove building for i386, everything is fine

Adding Delegates to newer ImageMagick versions.

Hi, I've managed to add libWebp delegate with your scripts to version 6.8.8 (which i believe is closer to the one you developed the scripts with), however, my ultimate goal is to use 6.9.11 as this has support for libHeic and greater support for Raw images via libRaw. However, it appears with your compile_im.sh script I can't get it to find compiled raw and webp libs.....

When compiling 6.8.8, these are the set IM config as per the attached log. Webp is seen and included
6.8.8.log

-------------------------------------------------------------
checking for WEBP... 
checking webp/decode.h usability... yes
checking webp/decode.h presence... yes
checking for webp/decode.h... yes
checking for WebPPictureInitInternal in -lwebp... yes
checking if WEBP package is complete... yes
-------------------------------------------------------------

compiling flags:

Options used to compile and link:
  PREFIX          = /Users/paulasiimwe/Workspace/IM/target/imagemagick
  EXEC-PREFIX     = /Users/paulasiimwe/Workspace/IM/target/imagemagick
  VERSION         = 6.8.8
  CC              = /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
  CFLAGS          = -arch arm64 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=13.6 -O3 -DTARGET_OS_IPHONE -Wall -fexceptions -D_FORTIFY_SOURCE=0 -D_THREAD_SAFE -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=8
  CPPFLAGS        = -I/Users/paulasiimwe/Workspace/IM/target/imagemagick/include/ImageMagick-6
  PCFLAGS         = -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=8
  DEFS            = -DHAVE_CONFIG_H
  LDFLAGS         = -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=13.6 -L/Users/paulasiimwe/Workspace/IM/target/im_libs/jpeg_arm64_dylib/ -L/Users/paulasiimwe/Workspace/IM/target/im_libs/png_arm64_dylib/ -L/Users/paulasiimwe/Workspace/IM/target/im_libs/tiff_arm64_dylib/ -L/Users/paulasiimwe/Workspace/IM/target/im_libs/webp_arm64_dylib/ -L/Users/paulasiimwe/Workspace/IM/target/im_libs/raw_arm64_dylib/ -L/Users/paulasiimwe/Workspace/IM/target/im_libs
  MAGICK_LDFLAGS  = -L/Users/paulasiimwe/Workspace/IM/target/imagemagick/lib -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=13.6 -L/Users/paulasiimwe/Workspace/IM/target/im_libs/jpeg_arm64_dylib/ -L/Users/paulasiimwe/Workspace/IM/target/im_libs/png_arm64_dylib/ -L/Users/paulasiimwe/Workspace/IM/target/im_libs/tiff_arm64_dylib/ -L/Users/paulasiimwe/Workspace/IM/target/im_libs/webp_arm64_dylib/ -L/Users/paulasiimwe/Workspace/IM/target/im_libs/raw_arm64_dylib/ -L/Users/paulasiimwe/Workspace/IM/target/im_libs
  LIBS            = -ltiff -ljpeg -lpng -lwebp -lz -lm
  CXX             = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
  CXXFLAGS        = -arch arm64 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=13.6 -miphoneos-version-min=13.6 -D_THREAD_SAFE -pthread
  FEATURES        = DPC
  DELEGATES       = mpeg jng jpeg png tiff webp zlib

For 6.9.11, webp and raw aren't seen :
6.9.11.log

checking for libraw_r >= 0.14.8... no
-------------------------------------------------------------
checking for libwebp... no
checking for libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0... no

RAW               --with-raw=yes 	   	no
WEBP              --with-webp=yes		no

Compiling flags, different from 6.8.8 yet compile_im.sh file stays the same:

Options used to compile and link:
  PREFIX          = /Users/paulasiimwe/Workspace/IM/target/imagemagick
  EXEC-PREFIX     = /Users/paulasiimwe/Workspace/IM/target/imagemagick
  VERSION         = 6.9.11
  CC              = /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
  CFLAGS          =     -Wall -arch arm64 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk -miphoneos-version-min=13.7 -O3 -DTARGET_OS_IPHONE -fexceptions -D_FORTIFY_SOURCE=0 -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=8
  CPPFLAGS        =  -I/Users/paulasiimwe/Workspace/IM/target/im_libs/include/jpeg -I/Users/paulasiimwe/Workspace/IM/target/im_libs/include/png -I/Users/paulasiimwe/Workspace/IM/target/im_libs/include/tiff -I/Users/paulasiimwe/Workspace/IM/target/im_libs/include/webp -I/Users/paulasiimwe/Workspace/IM/target/im_libs/include/raw -I/Users/paulasiimwe/Workspace/IM/target/imagemagick/include/ImageMagick-6 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=8
  PCFLAGS         = 
  DEFS            = -DHAVE_CONFIG_H
  LDFLAGS         = -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk -miphoneos-version-min=13.7 -L/Users/paulasiimwe/Workspace/IM/target/im_libs/jpeg_arm64_dylib/ -L/Users/paulasiimwe/Workspace/IM/target/im_libs/png_arm64_dylib/ -L/Users/paulasiimwe/Workspace/IM/target/im_libs/tiff_arm64_dylib/ -L/Users/paulasiimwe/Workspace/IM/target/im_libs/webp_arm64_dylib/ -L/Users/paulasiimwe/Workspace/IM/target/im_libs/raw_arm64_dylib/ -L/Users/paulasiimwe/Workspace/IM/target/im_libs
  LIBS            =    -ltiff   -ljpeg                           -lxml2  -lz     -lm    -lpthread 
  CXX             = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
  CXXFLAGS        = -arch arm64 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk -miphoneos-version-min=13.7 -miphoneos-version-min=13.7 -pthread
  FEATURES        = DPC Cipher
  DELEGATES       = mpeg jpeg tiff xml zlib
==============================================================================

Where might the problem lie? I've attached the scripts here.

compile_raw.txt
compile_webp.txt
compile_im.txt

Code broken with the latest commits

Hello,

We're using ImageMagick for a magic wand operation in our code. Everything was working fine until the latest cocoapods version but then, after the commit that added support for i386 architecture, things broke.

Here is our code:

PixelIterator* iterator = NULL;
PixelWand** pixels = NULL;
size_t x;
iterator = NewPixelRegionIterator(magick_wand, _touchCoords.x*scale, _touchCoords.y*scale, 1, 1);
pixels = PixelGetNextIteratorRow(iterator,&x);
bc_wand = pixels[0];

Here, iterator always comes up NULL, any ideas why this might be happening?

"No decode delegate for this image format" while running test project

I'm running the test app on iPhone 5 without any changes to code.

When the button is pressed, the IM exception is thrown. Here's the log:

ImageMagick 6.8.8-9 Q8 arm 2014-03-25 http://www.imagemagick.org

Application windows are expected to have a root view controller at the end of application launch

we're using JPEG compression

.../IM_Test/Classes/IM_TestViewController.m -[IM_TestViewController posterizeImageWithCompression] 148 no decode delegate for this image format `' @ error/blob.c/BlobToImage/359

Not working on Mavericks (OS X 10.9)

I'm trying to compile on Mavericks and things aren't working. I tried setting ARCH_SIM="x86_64", but that doesn't work.

Also, what would need to be done to compile this as a static lib for Mac OS instead of iOS? I would use MagickWand directly in my mac project, but there is a collision with the struct "_ExceptionInfo" between Foundation and ImageMagick. I figure if I compile it statically myself, I can rename _ExceptionInfo to avoid the collision.

Here's the log:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i686-apple-darwin10-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i686-apple-darwin10-gcc... /usr/bin/clang
checking whether the C compiler works... no
configure: error: in /Users/brad/Desktop/cross_compile/ImageMagick-6.8.7-6/IMDelegates/libpng-1.6.4': configure: error: C compiler cannot create executables Seeconfig.log' for more details
make: *** No targets specified and no makefile found. Stop.
make: Nothing to be done for install'. make: *** No rule to make targetdistclean'. Stop.
checking build system type... x86_64-apple-darwin13.0.0
checking host system type... i686-apple-darwin10
checking target system type... i686-apple-darwin10
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i686-apple-darwin10-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i686-apple-darwin10-gcc... /usr/bin/clang
checking whether the C compiler works... no
configure: error: in /Users/brad/Desktop/cross_compile/ImageMagick-6.8.7-6/IMDelegates/jpeg-9': configure: error: C compiler cannot create executables Seeconfig.log' for more details
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target install'. Stop. make: *** No rule to make targetdistclean'. Stop.
checking build system type... i386-apple-darwin13.0.0
checking host system type... i686-apple-darwin10
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i686-apple-darwin10-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i686-apple-darwin10-gcc... /usr/bin/clang
checking whether the C compiler works... no
configure: error: in /Users/brad/Desktop/cross_compile/ImageMagick-6.8.7-6/IMDelegates/tiff-4.0.3': configure: error: C compiler cannot create executables Seeconfig.log' for more details
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target install'. Stop. make: *** No rule to make targetdistclean'. Stop.
configuring ImageMagick 6.8.7-6
checking build system type... x86_64-apple-darwin13.0.0
checking host system type... i686-apple-darwin10
checking target system type... i686-apple-darwin10
checking whether build environment is sane... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for i686-apple-darwin10-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for i686-apple-darwin10-gcc... /usr/bin/clang
checking whether the C compiler works... no
configure: error: in /Users/brad/Desktop/cross_compile/ImageMagick-6.8.7-6': configure: error: C compiler cannot create executables Seeconfig.log' for more details
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target install'. Stop. make: *** No rule to make targetclean'. Stop.

And, here's the config.log in libpng:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by libpng configure 1.6.4, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure prefix=/Users/brad/Desktop/cross_compile/tmp_target/libpng CC=/usr/bin/clang --enable-shared --enable-static --host=i686-apple-darwin10

---------

Platform.

---------

hostname = Brads-MacBook-Air.local
uname -m = x86_64
uname -r = 13.0.0
uname -s = Darwin
uname -v = Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
4 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3
Primary memory available: 8.00 gigabytes
Default processor set: 181 tasks, 805 threads, 4 processors
Load average: 1.44, Mach factor: 2.54
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /opt/X11/bin

-----------

Core tests.

-----------

configure:2282: checking for a BSD-compatible install
configure:2350: result: /usr/bin/install -c
configure:2361: checking whether build environment is sane
configure:2416: result: yes
configure:2475: checking for i686-apple-darwin10-strip
configure:2505: result: no
configure:2515: checking for strip
configure:2531: found /usr/bin/strip
configure:2542: result: strip
configure:2567: checking for a thread-safe mkdir -p
configure:2606: result: ./install-sh -c -d
configure:2613: checking for gawk
configure:2643: result: no
configure:2613: checking for mawk
configure:2643: result: no
configure:2613: checking for nawk
configure:2643: result: no
configure:2613: checking for awk
configure:2629: found /usr/bin/awk
configure:2640: result: awk
configure:2651: checking whether make sets $(MAKE)
configure:2673: result: yes
configure:2702: checking whether make supports nested variables
configure:2719: result: yes
configure:2802: checking whether to enable maintainer-specific portions of Makefiles
configure:2811: result: no
configure:2851: checking for i686-apple-darwin10-gcc
configure:2878: result: /usr/bin/clang
configure:3147: checking for C compiler version
configure:3156: /usr/bin/clang --version >&5
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
configure:3167: $? = 0
configure:3156: /usr/bin/clang -v >&5
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
configure:3167: $? = 0
configure:3156: /usr/bin/clang -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3167: $? = 1
configure:3156: /usr/bin/clang -qversion >&5
clang: error: no input files
configure:3167: $? = 1
configure:3187: checking whether the C compiler works
configure:3209: /usr/bin/clang -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/usr/lib/gcc/i686-apple-darwin10/4.2.1/include/ -arch x86_64 conftest.c >&5
ld: warning: ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/crt1.o, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/crt1.o (5 slices)ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/libSystem.dylib, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/libSystem.dylib (3 slices)

ld: dynamic main executables must link with libSystem.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:3213: $? = 1
configure:3251: result: no
configure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME "libpng"
| #define PACKAGE_TARNAME "libpng"
| #define PACKAGE_VERSION "1.6.4"
| #define PACKAGE_STRING "libpng 1.6.4"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "libpng"
| #define VERSION "1.6.4"
| /
end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3256: error: in /Users/brad/Desktop/cross_compile/ImageMagick-6.8.7-6/IMDelegates/libpng-1.6.4': configure:3258: error: C compiler cannot create executables Seeconfig.log' for more details

----------------

Cache variables.

----------------

ac_cv_env_CCASFLAGS_set=
ac_cv_env_CCASFLAGS_value=
ac_cv_env_CCAS_set=
ac_cv_env_CCAS_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/bin/clang
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/usr/lib/gcc/i686-apple-darwin10/4.2.1/include/ -arch x86_64'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=set
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PNG_COPTS_set=
ac_cv_env_PNG_COPTS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-apple-darwin10
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_CC=/usr/bin/clang
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes

-----------------

Output variables.

-----------------

ACLOCAL='${SHELL} /Users/brad/Desktop/cross_compile/ImageMagick-6.8.7-6/IMDelegates/libpng-1.6.4/missing aclocal-1.13'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH=''
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AS=''
AUTOCONF='${SHELL} /Users/brad/Desktop/cross_compile/ImageMagick-6.8.7-6/IMDelegates/libpng-1.6.4/missing autoconf'
AUTOHEADER='${SHELL} /Users/brad/Desktop/cross_compile/ImageMagick-6.8.7-6/IMDelegates/libpng-1.6.4/missing autoheader'
AUTOMAKE='${SHELL} /Users/brad/Desktop/cross_compile/ImageMagick-6.8.7-6/IMDelegates/libpng-1.6.4/missing automake-1.13'
AWK='awk'
CC='/usr/bin/clang'
CCAS=''
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS='-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/usr/lib/gcc/i686-apple-darwin10/4.2.1/include/ -arch x86_64'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DFNCPP=''
DLLTOOL=''
DO_PNG_PREFIX_FALSE=''
DO_PNG_PREFIX_TRUE=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
HAVE_LD_VERSION_SCRIPT_FALSE=''
HAVE_LD_VERSION_SCRIPT_TRUE=''
HAVE_SOLARIS_LD_FALSE=''
HAVE_SOLARIS_LD_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /Users/brad/Desktop/cross_compile/ImageMagick-6.8.7-6/IMDelegates/libpng-1.6.4/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='./install-sh -c -d'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='libpng'
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='libpng'
PACKAGE_STRING='libpng 1.6.4'
PACKAGE_TARNAME='libpng'
PACKAGE_URL=''
PACKAGE_VERSION='1.6.4'
PATH_SEPARATOR=':'
PNGLIB_MAJOR='1'
PNGLIB_MINOR='6'
PNGLIB_RELEASE='4'
PNGLIB_VERSION='1.6.4'
PNG_ARM_NEON_FALSE=''
PNG_ARM_NEON_TRUE=''
PNG_COPTS=''
PNG_PREFIX=''
POW_LIB=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
SYMBOL_PREFIX=''
VERSION='1.6.4'
ac_ct_AR=''
ac_ct_CC=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
binconfigs=''
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-apple-darwin10'
host_alias='i686-apple-darwin10'
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/brad/Desktop/cross_compile/ImageMagick-6.8.7-6/IMDelegates/libpng-1.6.4/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgconfigdir=''
prefix='/Users/brad/Desktop/cross_compile/tmp_target/libpng'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

-----------

confdefs.h.

-----------

/* confdefs.h */

define PACKAGE_NAME "libpng"

define PACKAGE_TARNAME "libpng"

define PACKAGE_VERSION "1.6.4"

define PACKAGE_STRING "libpng 1.6.4"

define PACKAGE_BUGREPORT "[email protected]"

define PACKAGE_URL ""

define PACKAGE "libpng"

define VERSION "1.6.4"

configure: exit 77

Update Script to Compile for arm64

Hello,

If this project could be updated for arm64, that'd be great! This would be good for iPhone 5S. I'd be willing to work on this, if someone could point me in the direction of what tweaks need to be made.

  • alleyrat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.