Re: Re: Build with More Debug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anything SDK below SDK 6.1 is not supported to compile PHP 5.3 with
Visual Studio 2008 (VC9). So you have to use SDK 6.1 or later.

Btw, you don't need Visual Studio at all if all you want is to compile
your extensions. The SDKs include the compiler tools.

On Tue, Nov 2, 2010 at 6:55 PM, Tommy Pham <tommyhp2@xxxxxxxxx> wrote:
>> -----Original Message-----
>> From: Steven Scott [mailto:chowarmaan@xxxxxxxxx]
>> Sent: Tuesday, November 02, 2010 10:39 AM
>> To: Tommy Pham
>> Cc: Pierre Joye; RQuadling@xxxxxxxxxxxxxx; php-windows
>> Subject: Re:  Re: Build with More Debug
>>
>> On Tue, Nov 2, 2010 at 12:10 PM, Tommy Pham <tommyhp2@xxxxxxxxx>
>> wrote:
>> >> -----Original Message-----
>> >> From: Tommy Pham [mailto:tommyhp2@xxxxxxxxx]
>> >> Sent: Tuesday, November 02, 2010 8:53 AM
>> >> To: 'Steven Scott'
>> >> Cc: 'Pierre Joye'; 'RQuadling@xxxxxxxxxxxxxx'; 'php-windows'
>> >> Subject: RE:  Re: Build with More Debug
>> >>
>> >> > -----Original Message-----
>> >> > From: Steven Scott [mailto:chowarmaan@xxxxxxxxx]
>> >> > Sent: Tuesday, November 02, 2010 5:59 AM
>> >> > To: Tommy Pham
>> >> > Cc: Pierre Joye; RQuadling@xxxxxxxxxxxxxx; php-windows
>> >> > Subject: Re:  Re: Build with More Debug
>> >> >
>> >> > On Tue, Nov 2, 2010 at 8:34 AM, Steven Scott
>> <chowarmaan@xxxxxxxxx>
>> >> > wrote:
>> >> > > On Tue, Nov 2, 2010 at 12:39 AM, Tommy Pham
>> <tommyhp2@xxxxxxxxx>
>> >> > wrote:
>> >> > >>> -----Original Message-----
>> >> > >>> From: Pierre Joye [mailto:pierre.php@xxxxxxxxx]
>> >> > >>> Sent: Wednesday, October 27, 2010 12:25 PM
>> >> > >>> To: Steven Scott
>> >> > >>> Cc: RQuadling@xxxxxxxxxxxxxx; php-windows
>> >> > >>> Subject:  Re: Build with More Debug
>> >> > >>>
>> >> > >>> version of the SDK?
>> >> > >>>
>> >> > >>> What else did you install?
>> >> > >>>
>> >> > >>> SDK 6.1 or 7.x work just fine here, by default, no magic...
>> >> > >>>
>> >> > >>> On Wed, Oct 27, 2010 at 9:24 PM, Steven Scott
>> >> > <chowarmaan@xxxxxxxxx>
>> >> > >>> wrote:
>> >> > >>> > On Wed, Oct 27, 2010 at 2:51 PM, Pierre Joye
>> >> > >>> > <pierre.php@xxxxxxxxx>
>> >> > >>> wrote:
>> >> > >>> >> On Wed, Oct 27, 2010 at 8:15 PM, Steven Scott
>> >> > >>> >> <chowarmaan@xxxxxxxxx>
>> >> > >>> wrote:
>> >> > >>> >>
>> >> > >>> >>> Interesting, but I do not see an include for WinNT.h in the
>> >> > >>> >>> info.c file.  It is in my code too, but I do not see a
>> >> > >>> >>> reference to it in the source code on this machine.
>> >> > >>> >>
>> >> > >>> >> What do you use to compile php?
>> >> > >>> >>
>> >> > >>> >> SDK Console?
>> >> > >>> >>
>> >> > >>> >>
>> >> > >>> >> Cheers
>> >> > >>> >> --
>> >> > >>> >> Pierre
>> >> > >>> >>
>> >> > >>> >> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>> >> > >>> >>
>> >> > >>> >
>> >> > >>> > Windows 2003 Server, 32 Bit
>> >> > >>> > Start / Microsoft Windows SDK / CMD Shell
>> >> > >>> >
>> >> > >>>
>> >> > >>>
>> >> > >>>
>> >> > >>> --
>> >> > >>> Pierre
>> >> > >>>
>> >> > >>> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>> >> > >>>
>> >> > >>
>> >> > >> I also don't have any problems with SDK 6.1 or 7 on Win08.  Just
>> >> > >> a bit curious since I don't remember if you mentioned you
>> >> > >> configure it or
>> >> > not...
>> >> > >> did you configure the Visual Studio with the SDK using the
>> >> > >> 'Windows SDK Configuration Tool' ?
>> >> > >>
>> >> > >> Regards,
>> >> > >> Tommy
>> >> > >>
>> >> > >>
>> >> > >
>> >> > > I did set the default include and library paths in Visual Studio,
>> >> > > but did not actually run a Windows SDK Configuration Tool, short
>> >> > > of the Registry setup.
>> >> > >
>> >> >
>> >> > Not sure what the Configuration Tool is, but I did follow the
>> >> > instructions in the menu item shown in the attached screen shot.
>> >>
>> >> From that screen shot, it looks like Windows 2003 Platform SDK, IIRC.
>> >> I
>> > think
>> >> that could be why you're having problem since I don't think that
>> > particular
>> >> version of SDK supports VC++ 2008 (I could be wrong).  What's your
>> >> target OS?  Why not use SDK 6.1 or 7.0?  Any particular reason not
>> >> to?  According
>> > to
>> >> this link [1], seems like Win2003 SDK has been retired.
>> >>
>> >> Regards,
>> >> Tommy
>> >>
>> >> [1] http://msdn.microsoft.com/en-us/windows/ff851942.aspx
>> >
>> > My mistake, the version you have is Microsoft® Windows® Software
>> > Development Kit Update for Windows Vista.  Here's the note from [2]
>> > which explains your problem using it with VC++ 2008.
>> >
>> > "NOTE: An updated version of the Windows SDK that supports Windows
>> > Server 2008, .NET Framework 3.5, as well as Windows Vista is now
>> > available and also contains the Visual Studio 2008 C++ command line
>> > compiler. The updated Windows SDK is available as either a
>> >
>> >    * Web Install or
>> >    * DVD ISO image
>> >
>> >
>> > NOTE: The C++ compilers in this SDK release are the same that shipped
>> > with Visual Studio 2005 Service Pack 1, however it does not support
>> > the /analyze switch. If you need that capability and do not wish to
>> > upgrade to the latest Windows SDK, you can obtain that functionality
>> > by installing the C++ compiler from the older Microsoft Windows
>> > Software Development Kit for Windows Vista and .NET Framework 3.0
>> Runtime Components."
>> >
>> > [2]
>> >
>> http://www.microsoft.com/downloads/en/details.aspx?FamilyID=4377F86D
>> -C
>> > 913-4B
>> > 5C-B87E-EF72E5B4E065&displaylang=en
>> >
>> >
>> >
>>
>> The VMWare image I had as a base is Windows 2003 Server.  That is why I
>> was there.  I will try to get a Windows 7 image and use that to try to do
> the
>> build then with the newer ISO images you mentioned.
>>
>> Thanks for the advice.
>>
>> Steven Scott
>
> Steven,
>
> You don't need Windows 7.  You could still use Windows 2003.  Just make sure
> that you have the updated dotNet framework version and SDK.  I suggest you
> to use either 6.1 or 7.  The version you have in the screen shot is 6.0.
> IIRC, 6.0a comes with VS2008 (non-express version).  I haven't tried for
> XP/2003 target yet, but I didn't have any problems compiling for target 2008
> (both x86 & x64).
>
> Regards,
> Tommy
>
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux