WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: how compile php with GD  (Read 2778 times)

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
how compile php with GD
« on: November 13, 2009, 06:31:19 AM »
hi
how we can comile php in tc with gd?
compile php with gd need : gd , libpng , libjpeg
>>>> Ony Tiny Core <<<<

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: how compile php with GD
« Reply #1 on: November 13, 2009, 07:59:05 AM »
I don't know what "gd" is, but you can get the headers and so on for jpeg, png and all the base libs by loading the base-devs extension

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
Re: how compile php with GD
« Reply #2 on: November 13, 2009, 09:58:24 AM »
GD is an open source code library for the dynamic creation of images by programmers
http://php.net/manual/en/image.installation.php
but not work on tc
>>>> Ony Tiny Core <<<<

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: how compile php with GD
« Reply #3 on: November 13, 2009, 03:05:12 PM »
hi
how we can comile php in tc with gd?
compile php with gd need : gd , libpng , libjpeg
For libpng and libjpeg it looks like you'll need base-devs.tcz (As juanito already pointed out).

You'll also need libgd too. I've just created an extension for it, and am about to submit it.
Edit: Not submitting my gd.tcz. Not really able to test it and make sure it works properly atm.
« Last Edit: November 13, 2009, 03:11:17 PM by althalus »

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: how compile php with GD
« Reply #4 on: November 13, 2009, 04:02:15 PM »
hi
how we can comile php in tc with gd?
compile php with gd need : gd , libpng , libjpeg
For libpng and libjpeg it looks like you'll need base-devs.tcz (As juanito already pointed out).

You'll also need libgd too. I've just created an extension for it, and am about to submit it.
Edit: Not submitting my gd.tcz. Not really able to test it and make sure it works properly atm.
There already is a libgd extension.

PHP took over the development of gd and it is packaged within the PHP source.
libpng and libjpeg are in the base and the base-devs was used to build PHP (since it would be required). So it should be working unless I missed a switch during configure.

There will be an update to the php extension as soon as v5.3.1 is released.

The build script can be found in the extension source repository.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: how compile php with GD
« Reply #5 on: November 13, 2009, 09:20:14 PM »
There already is a libgd extension.
Huh. I didn't see it. Must be going blind.
Quote
PHP took over the development of gd and it is packaged within the PHP source.
libpng and libjpeg are in the base and the base-devs was used to build PHP (since it would be required). So it should be working unless I missed a switch during configure.
And that shows how out of the loop I am. But then I don't do much with PHP anymore.
According to the docs, you do need to specifically enable gd. Haven't looked at the build script or installed php in TC so dunno whether it's there or not.