FreeImage
所属分类:图形图像处理
开发工具:Visual C++
文件大小:3002KB
下载次数:350
上传日期:2009-05-25 10:11:56
上 传 者:
jiandanren
说明: 关于freeimage的一些实例代码,对学习freeimage很有帮助
(about freeimage )
文件列表:
FreeImage\clean.bat (1352, 2007-07-19)
FreeImage\clean.sh (1483, 2007-04-30)
FreeImage\Dist\delete.me (0, 2004-05-01)
FreeImage\Examples\Generic\BatchLoad.cpp (6507, 2007-01-10)
FreeImage\Examples\Generic\CloneMultiPage.cpp (3413, 2004-08-24)
FreeImage\Examples\Generic\CreateAlpha.cpp (5650, 2007-01-10)
FreeImage\Examples\Generic\FIFImportExport.cpp (5016, 2004-08-24)
FreeImage\Examples\Generic\FIIO_Mem.cpp (3832, 2004-07-09)
FreeImage\Examples\Generic\FIIO_Mem.h (2629, 2007-05-08)
FreeImage\Examples\Generic\LoadFromHandle.cpp (4265, 2007-01-10)
FreeImage\Examples\Generic\LoadFromMemory-classified.cpp (2966, 2004-03-17)
FreeImage\Examples\Generic\LoadFromMemory.cpp (2760, 2004-03-17)
FreeImage\Examples\Generic\ShowMetadata.cpp (10081, 2007-01-10)
FreeImage\Examples\Linux\linux-gtk.c (2135, 2005-10-11)
FreeImage\Examples\Linux\linux-svgalib.c (1599, 2005-10-11)
FreeImage\Examples\Linux\Makefile (520, 2004-03-17)
FreeImage\Examples\Plugin\PluginCradle.cpp (9455, 2004-07-09)
FreeImage\Examples\Plugin\PluginCradle.h (1546, 2007-05-08)
FreeImage\fipMakefile.srcs (10244, 2007-08-11)
FreeImage\FreeImage.2003.sln (6786, 2007-06-30)
FreeImage\FreeImage.2003.vcproj (12325, 2007-11-15)
FreeImage\FreeImage.2005.sln (6457, 2007-07-19)
FreeImage\FreeImage.2005.vcproj (13659, 2007-11-12)
FreeImage\FreeImage.rc (2549, 2007-05-17)
FreeImage\genfipsrclist.sh (887, 2007-08-11)
FreeImage\gensrclist.sh (958, 2007-08-11)
FreeImage\license-fi.txt (17577, 2004-03-17)
FreeImage\license-gpl.txt (18353, 2004-06-27)
FreeImage\Makefile (555, 2006-12-14)
FreeImage\Makefile.cygwin (1529, 2005-11-26)
FreeImage\Makefile.fip (1686, 2007-08-25)
FreeImage\Makefile.gnu (1536, 2007-08-25)
FreeImage\Makefile.osx (2873, 2007-08-25)
FreeImage\Makefile.solaris (1442, 2005-04-12)
FreeImage\Makefile.srcs (17475, 2007-11-13)
FreeImage\Source\CacheFile.h (2571, 2007-05-08)
... ...
Release Notes
--------------
This version of the library has been tested under OSX 10.3.9 PPC and OSX 10.4.8 Intel.
While the makefiles will make a .dylib and a .a, it is recommended to simply staticly link with the .a file.
FreeImage is now built as a Universal Binary and targets the 10.3.9 SDK for PPC and the 10.4u SDK for i386.
This means that you must have both of these SDKs installed and that you must be running on OSX 10.4+ to build FreeImage.
The library will run on 10.3 PPC, but probably not 10.2 or below anymore. wchar.h did not exist on 10.2.
FreeImage is now built with gcc 4.0 and will thus only run on 10.3.9 or above (some libraries may not exist on 10.3.8 and below).
The FreeImage makefile makes use of the gcc "-fvisibility=hidden" in order to avoid incompatibilities between
internal third party libraries and the OS libraries. This feature is available with gcc 4 or greater.
Ryan Rubley
Building the Library
--------------------
Makefile detects the environment by calling 'uname'. Assuming this reports 'Darwin' on your system, Makefile will automatically
defer commands to Makefile.osx. If this doesn't work, type 'make -f Makefile.osx' in place of just 'make'
The build process is as simple as this:
1) Enter the FreeImage directory
2) Build the distribution:
make
3) The libraries and header will be in the Dist directory when the build is finished
To install FreeImage in the /usr/local/lib and /usr/local/include directories (not recommended):
make install
To clean all files produced during the build process:
make clean
Additional notes
----------------
Building on Mac OS X Leopard :
1)
Install the xcode dev tools from the Leopard disk.
When installing the dev tools make sure to have installed 10.3.9 SDK (it's not selected by default).
2)
change in Makefile.osx this:
LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk
LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk
to this
LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk/usr/lib
LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk/usr/lib
近期下载者:
相关文件:
收藏者: