Hello -
I am trying to install FreeImage on OSX 10.5 and am having trouble. I have tried both via mac ports as well as source install and can't get it to work. Also, I have installed dev sdk tools from the Leopard disc, and see them in my HD 10.4u and 10.5. I have checked out several posts and have tried several fixes but to no avail. I am at my wits end and wondering if anyone can notice what I may be doing wrong.
Any help greatly appreciated.
Thanks, Angel
Here are some clippets - Port attempt:
s-macbook:FreeImage --$ sudo port install freeimage Password: ---> Building freeimage with target all Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_freeimage/ work/FreeImage" && make all " returned error 2 Command output: Source/FreeImage/BitmapAccess.cpp:896: error: expected `;' before 'TAGMAP' Source/FreeImage/BitmapAccess.cpp:904: error: 'strcmp' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:908: error: 'FreeImage_GetTagCount' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:908: error: 'WORD' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:908: error: 'FreeImage_TagDataWidth' cannot be used as a function Source/FreeImage/BitmapAccess.cpp:908: error: 'FreeImage_GetTagLength' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:922: error: 'WORD' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:941: error: 'TAGMAP' is not a class or namespace Source/FreeImage/BitmapAccess.cpp:941: error: 'iterator' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:941: error: expected `;' before 'i' Source/FreeImage/BitmapAccess.cpp:942: error: 'i' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:952: error: 'TAGMAP' is not a class or namespace Source/FreeImage/BitmapAccess.cpp:952: error: 'iterator' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:952: error: expected `;' before 'i' Source/FreeImage/BitmapAccess.cpp:952: error: 'i' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:957: error: type '<type error>' argument given to 'delete', expected pointer Source/FreeImage/BitmapAccess.cpp: In function 'BOOL FreeImage_GetMetadata(FREE_IMAGE_MDMODEL, FIBITMAP*, const char*, FITAG**)': Source/FreeImage/BitmapAccess.cpp:970: error: 'TAGMAP' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:970: error: 'tagmap' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:974: error: 'METADATAMAP' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:974: error: 'metadata' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:974: error: 'struct FREEIMAGEHEADER' has no member named 'metadata' Source/FreeImage/BitmapAccess.cpp: In function 'unsigned int FreeImage_GetMetadataCount(FREE_IMAGE_MDMODEL, FIBITMAP*)': Source/FreeImage/BitmapAccess.cpp:995: error: 'TAGMAP' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:995: error: 'tagmap' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:998: error: 'METADATAMAP' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:998: error: 'metadata' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:998: error: 'struct FREEIMAGEHEADER' has no member named 'metadata' make[1]: *** [Source/FreeImage/BitmapAccess.o-ppc] Error 1 make: *** [all] Error 2
Error: Status 1 encountered during processing. s-macbook:FreeImage --$
Source attempt:
s-macbook:FreeImage --$ make make -f Makefile.osx g++-4.0 -Wno-ctor-dtor-privacy -Os -fexceptions -fvisibility=hidden - arch ppc -I. -ISource -ISource/Metadata -ISource/FreeImageToolkit - ISource/LibJPEG -ISource/LibMNG -ISource/LibPNG -ISource/LibTIFF - ISource/ZLib -ISource/LibOpenJPEG -ISource/OpenEXR -ISource/OpenEXR/ Half -ISource/OpenEXR/Iex -ISource/OpenEXR/IlmImf -ISource/OpenEXR/ IlmThread -ISource/OpenEXR/Imath -isysroot /Developer/SDKs/ MacOSX10.3.9.sdk -c Source/FreeImage/BitmapAccess.cpp -o Source/ FreeImage/BitmapAccess.o-ppc Source/FreeImage/BitmapAccess.cpp:30:20: error: stdlib.h: No such file or directory In file included from Source/FreeImage/BitmapAccess.cpp:35: Source/FreeImage.h:55:51: error: wchar.h: No such file or directory Source/FreeImage.h:152:22: error: inttypes.h: No such file or directory In file included from Source/FreeImage/BitmapAccess.cpp:37: Source/Utilities.h:31:18: error: math.h: No such file or directory Source/Utilities.h:33:20: error: memory.h: No such file or directory Source/Utilities.h:34:19: error: stdio.h: No such file or directory Source/Utilities.h:35:20: error: string.h: No such file or directory Source/Utilities.h:36:20: error: stdarg.h: No such file or directory Source/Utilities.h:37:19: error: ctype.h: No such file or directory Source/Utilities.h:38:20: error: assert.h: No such file or directory Source/Utilities.h:40:18: error: string: No such file or directory Source/Utilities.h:41:16: error: list: No such file or directory Source/Utilities.h:42:15: error: map: No such file or directory Source/Utilities.h:43:15: error: set: No such file or directory Source/Utilities.h:44:18: error: vector: No such file or directory Source/Utilities.h:45:17: error: stack: No such file or directory Source/Utilities.h:46:19: error: sstream: No such file or directory Source/Utilities.h:47:21: error: algorithm: No such file or directory ....and many more lines of errors ... ... Source/FreeImage/BitmapAccess.cpp:998: error: 'struct FREEIMAGEHEADER' has no member named 'metadata' make[1]: *** [Source/FreeImage/BitmapAccess.o-ppc] Error 1 make: *** [default] Error 2