设为首页  
联系我们  
加入收藏  
网页制作 冲浪宝典 图形图像 操作系统 软件教学 编程开发 认证考试 安全技术 站长专区 文学驿站 娱乐天地 游戏天地 办公软件
文章搜索
您的位置: 首页 >> 文章首页 >> 编程开发 >> 其他开发语言 >> 自己编译(升级)PHP5中的gd库中的jpeg、freetype2、png
精品推荐
其他开发语言点击TOP10
·数字小键盘指法练习
·用C语言编通讯录程序(初学者级别的)
·Modem 常用AT指令集
·单片机模拟I2C总线及24C02(I2C EEPROM)读写实例(源代码)
·C++经典电子书下载
·Thinking in C++ 简体中文第二版
·debug和release的区别
·error LNK2001: unresolved external symbol __ftol2 错误解决
·C库函数手册
·一个简单的C语言编译器
编程开发点击TOP10
·数字小键盘指法练习
·ASP.NET 程序中常用的三十三种代码
·用C语言编通讯录程序(初学者级别的)
·我写的Java学生成绩管理系统源代码
·CHK文件恢复工具
·Modem 常用AT指令集
·java笔试题
·异常java.sql.SQLException: Io exception:The Network Adapter could not establish connection
·单片机模拟I2C总线及24C02(I2C EEPROM)读写实例(源代码)
·C++经典电子书下载
精选专题

自己编译(升级)PHP5中的gd库中的jpeg、freetype2、png

作者: 来源:网络文章 时间:2005-12-17 20:54:51

PHP5中的gd库需要freetype、jpeg、libpng(need zlib)。

开始准备工作:到http://sourceforge.net/projects/freetypehttp://sourceforge.net/projects/libpngCS/jpeg/">ftp://192.48.96.9/graphics/jpeg/下载相关包并解压。

首先看看freetype的编译:进入F:\freetype-2.1.9\builds\win32\visualc用VC打开freetype.dsp编译win32 release。在objs得到freetype219.lib(这里是219版本),将其改名为freetype2.lib。拷贝到win32build/lib目录中覆盖。将include目录中的freetype.h、freetype目录、ft2build.h拷贝到win32build/include目录中覆盖。

其次看看libpng的编译:进入F:\libpng-1.2.6\projects\visualc6用VC打开libpng.dsp编译win32 release dll和lib。将得到的libpng.dll拷贝到win32build/lib/dll中覆盖,将得到的libpng.lib拷贝到win32build/lib中覆盖。将其目录下的png.h、pngconf.h拷贝到win32build/include目录中覆盖。

再来看看jpeg的编译,打开jpeg目录中的install.doc文件,里面有这样的说明:

To use:
1. Copy jconfig.vc to jconfig.h, makelib.ds to jpeg.mak, and
   makeapps.ds to apps.mak.  (Note that the renaming is critical!)
2. Click on the .mak files to constrUCt project workspaces.
   (If you are using DevStudio more recent than 4.2, you'll probably
   get a message saying that the makefiles are being updated.)
3. Build the library project, then the applications project.
4. Move the application .exe files from `app`\Release to an
   appropriate location on your path.
5. To perform the self-test, execute the command line
 NMAKE /f makefile.vc  test
这样将得到libjpeg.lib,将其拷贝到win32build/lib中覆盖。将其目录下的jconfig.h、jerror.h、jmorecfg.h、jpeglib.h拷贝到win32build/include中覆盖。

然后重新编译PHP5,你的GD库中的png、jpeg、freetype2就是最新的了。


自己编译(升级)PHP5中的gd库中的jpeg、freetype2、png 相关文章:
自己编译(升级)PHP5中的gd库中的jpeg、freetype2、png 相关软件:
特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
转载请注明来源:http://www.xgdown.com