PDA

View Full Version : Problem compiling php5 in visual studio



nattsurf123
17-03-10, 10:53 AM
I'm trying to compile php-5.3.2 on a vista 64 using visual studio 2008.
So I downloaded this package where i added an existing .dsp file to my project that was converted
to VS2008.
I’m just in the beginning of this phase.
Something that is a bit strange is that they added the file getopt.c and this file is
not found in ‘php-5.3.2\sapi\cgi’ where it is pointing to from the project.
If it is there for a reason then why is it not found in the folder where it is supposed to be?
The error I get is:
Error 21 fatal error C1083: Cannot open source file: '..\sapi\cgi\getopt.c': No such file or directory c1 php5
Grateful for any help on this.

StickyIcky
17-03-10, 10:42 PM
Why bother compile it when you can download the bin directly from php.com?

nattsurf123
18-03-10, 10:35 AM
WigSplitta: Thanks for asking. This is because it seams that you need the php compile package in order to make a new extension. I'm just following online tutorials and have no clue yet why I need the whole package.

StickyIcky
21-03-10, 06:33 PM
Use WAMPSERVER, if you have mysql installed already, just disable the mysql service in wamp...

Then read a tutorial on how to use custom extensions for that.

Much easier imho.

nattsurf123
22-03-10, 12:43 PM
Use WAMPSERVER, if you have mysql installed already, just disable the mysql service in wamp...

Then read a tutorial on how to use custom extensions for that.

Much easier imho.

Are we on the same page? Should I not have a VC++ environment in order to be able to compile my own extensions?

StickyIcky
24-03-10, 10:47 AM
But you don't need to compile it into php?