How to build 32bit version on OS X?
Posted: 2016-02-24T05:40:31-07:00
Hi:
I need a 32bit version ImageMagick on OS X, but I found there's only x86_64 version on the download page. My OS X is 10.11.3. Xcode is 7.2.1,
So I tried to use Homebrew to install, with "brew install imagemagick", also I tried to use "brew install imagemagick --build-from-source",
It always install the x86_64 version.
Then I tried to build it from source code, I download the imagemagick-6.9.3-0.tar.xz from the website, but when I run ./configure, I got this error,
coders/msl.c:101:12: fatal error: 'libxml/parser.h' file not found
# include <libxml/parser.h>
^
1 error generated.
Then I tried to modify the home-brew 's ruby script, because the brew install it from source successful, here is the script
https://github.com/Homebrew/homebrew/bl ... emagick.rb
First I tried to set --host=i386-apple-darwin, it still make x86_64 version, I add --target=i386-apple-darwin, and --build=i386-apple-darwin,
it's still not work,
Then I read here http://www.imagemagick.org/script/advan ... lation.php, find this option --enable-osx-universal-binary, add it and
try again, I got a error,
checking size of long double... configure: error: in `/Library/Caches/Homebrew/ImageMagick-6.9.3-0':
configure: error: cannot compute sizeof (long double)
See `config.log' for more details,
About this option I searched on the discusses, I found this viewtopic.php?t=22406, but there's no answer.
Also I tried add CFLAGS=-m32, it still not work, and come with this error
checking for libltdl...
checking ltdl.h usability... yes
checking ltdl.h presence... yes
checking for ltdl.h... yes
checking for lt_dlinit in -lltdl... no
checking if libltdl package is complete... no -- some components failed test
configure: error: in `/private/tmp/imagemagick20160224-33062-1hzq8r/ImageMagick-6.9.3-0':
configure: error: libltdl is required for modules build
See `config.log' for more details
Please anyone can help me? I just want a 32bit imagemagick,
I need a 32bit version ImageMagick on OS X, but I found there's only x86_64 version on the download page. My OS X is 10.11.3. Xcode is 7.2.1,
So I tried to use Homebrew to install, with "brew install imagemagick", also I tried to use "brew install imagemagick --build-from-source",
It always install the x86_64 version.
Then I tried to build it from source code, I download the imagemagick-6.9.3-0.tar.xz from the website, but when I run ./configure, I got this error,
coders/msl.c:101:12: fatal error: 'libxml/parser.h' file not found
# include <libxml/parser.h>
^
1 error generated.
Then I tried to modify the home-brew 's ruby script, because the brew install it from source successful, here is the script
https://github.com/Homebrew/homebrew/bl ... emagick.rb
First I tried to set --host=i386-apple-darwin, it still make x86_64 version, I add --target=i386-apple-darwin, and --build=i386-apple-darwin,
it's still not work,
Then I read here http://www.imagemagick.org/script/advan ... lation.php, find this option --enable-osx-universal-binary, add it and
try again, I got a error,
checking size of long double... configure: error: in `/Library/Caches/Homebrew/ImageMagick-6.9.3-0':
configure: error: cannot compute sizeof (long double)
See `config.log' for more details,
About this option I searched on the discusses, I found this viewtopic.php?t=22406, but there's no answer.
Also I tried add CFLAGS=-m32, it still not work, and come with this error
checking for libltdl...
checking ltdl.h usability... yes
checking ltdl.h presence... yes
checking for ltdl.h... yes
checking for lt_dlinit in -lltdl... no
checking if libltdl package is complete... no -- some components failed test
configure: error: in `/private/tmp/imagemagick20160224-33062-1hzq8r/ImageMagick-6.9.3-0':
configure: error: libltdl is required for modules build
See `config.log' for more details
Please anyone can help me? I just want a 32bit imagemagick,