Click to See Complete Forum and Search --> : why can't compile the php on windows


Anon
12-07-2001, 01:03 AM
when i built extensions of php
i found some of it lacked the header file
of those extensions,for example,
the php_java.dll lacked the jni.h
so i can't build it to dll
where can i find those headers?
and vc++ 6 still could not find the libjpeg.lib when i built the php_gd function
how can i build the code to php_gd.dll?
no one know it?

igebert
12-07-2001, 06:53 AM
Some of the PHP extensions use libraries of other projects not being part of PHP -- which subsequently do not necessarily fall under the PHP license. Therefore you won't find any of this "third-party" material included in the PHP source code.

Instead you will have to get the sources from their authors and compile the according libraries on your own (now you really start to love the binaries).

-ingmar

zhaoxin
12-07-2001, 11:07 AM
thank u
but for example,
i want to compile the php gd to php_gd.dll
but how to get the libaraies,ex.libjpeg.lib?
compile it from source code?
where can i find these libaraies' source code or binary file?

igebert
12-07-2001, 12:57 PM
A good point to start is the homepage of the author of the extension, which can be found out from the PHP manual www.php.net/manual/en/.

In case of GD it is www.boutell.com/gd/. There you should find further information about the necessary libraries.

-ingmar

zhaoxin
12-08-2001, 03:59 AM
i could not visit the libpng website until get a proxy server.because the china telecom have blocked that site's ip.after visit there i got all libaraies need for gd.but when i compiled it i count odd problems.
the compiler show a message like that
"defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library"
because of that show a lot of error like that
"gd.obj : error LNK2001: unresolved external symbol _gdNewDynamicCtx"
what's wrong?
and i copied the gd library 2.0.1 but i couldn't build the php_gd as gd-win32 Realase_TS GD2,just can as GD1,why?

igebert
12-08-2001, 06:51 AM
I have never compiled GD under win32, so I can't help you. But the guys over at www.php4win.com have done so with development sources, which is some months ahead of the regular win32 releases from www.php.net. The current release is 4.0.8.dev and should include some documentation how they have done it, at least it says so in the faq. Except for that there is not much documentation out there.

If I understand right you just want to use gd2 under your win32 PHP ?! Maybe gd2 is already included in the package mentioned above or in the new "official" PHP release 4.1.0 which is about to be released very soon. You should find out from PHP homepage or www.zend.com (or maybe someone could help me out here).

-ingmar

zhaoxin
12-08-2001, 07:05 AM
thank u very much.i had sent the message to php4 the day before yesterday.but they aren't reply it until now.
i want to write some new functions for php.
some of it have to use the gd libaray.so i have know how to make it work under win32.