Hello Everyone,
I'm working on porting an image conversion tool from Windows to the Mac, but I'm having a horrible time getting the ImageMagick libraries to link with my project. I'm fairly unfamiliar with XCode, but I don't think the problem lies with how I'm adding the libs to my project. I think I'm building the libraries incorrectly.
When I attempt to build my project, during the Linking phase I get the following warnings: "ld: warning: in /Users/Kit/Documents/NewSidewalk/libMagick++.a, file is not of required architecture" and "ld: warning: in /Users/Kit/Documents/NewSidewalk/libMagickCore.a, file is not of required architecture". These warnings immediately proceed nearly a hundred instances of the following error "Undefined Symbol '[symbol_name]' referenced from: [function_name] in [object_file_name.o]". [symbol_name] will be an ImageMagick function. [function_name] will be the name of the function I'm referencing the [symbol_name] from and is found in the [object_file_name.o] source file.
I'm running OS X 10.6 on an Intel-based Mac. I'm building for the project for 10.5, i386 machines. To build ImageMagick libraries, I'm following the instructions found on this page: http://imagemagick.com/script/advanced- ... lation.php. I'm using the following command to configure the build:
./configure --enable-static --disable-shared --disable-dependency-tracking --build=i386-apple-darwin-10.0.0
I've tried using --build=i386-apple-darwin-10.6.0, --target=i386-apple-darwin-10.5.0, and variations thereof to build it in the correct architecture, but have had no success. I've tried --enable-osx-universal-binary, which seemed to make no difference.
What parameters are necessary to build the ImageMagick libraries as static libraries for the i386 architecture? Do I have a parameter wrong? Or am I taking the wrong approach all together?
Thank you in advance for any help. Let me know if any more information is required.
[Magick++] Building libraries for i386 architecture on OS X
Re: [Magick++] Building libraries for i386 architecture on OS X
Did you ever get this solved? I'm fighting a similar issue now. I had it working under 10.5 but going to 10.6 is proving troublesome.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: [Magick++] Building libraries for i386 architecture on OS X
I don't know if this is relevant, but you might contact the author of this topic viewtopic.php?f=1&t=14568&p=51275#p51275