Jump to content

Recommended Posts

Hi guys,

 

I need to compile xDebug from the Master Git Repository for PHP 5.4.0RC8 for Windows x86.

 

I can find next to no information for loading this project into a VC9 IDE, and then compiling the result.

The source comes with a makefile batch program but does not contain the mak files themselves.

 

Any help would be greatly appreciated!

Thanks

 

PS: xDebug Source - https://github.com/derickr/xdebug

PHP5.4.0RC8 Binary/Source: http://windows.php.net/qa/

using Visual Studio 2010. And nMake 1.5.

(Windows 7)

 

Tried;

http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/

then tried running the makefile with nmake to find .mak files missing.

 

UPDATE:

Just caught this link: http://bugs.xdebug.org/view.php?id=730

Seems someone knows how to do it :). Will review this case and see if I can get it to build.

 

Link to comment
https://forums.phpfreaks.com/topic/257814-compiling-xdebug-from-source/
Share on other sites

UPDATE:

 

So I followed "https://wiki.php.net/internals/windows/stepbystepbuild" to the letter. All successful.

Then I try o compile the xdebug extension separately as required.

 

Steps:

 

1. Unpack xdebug (c:\xdebug)

2. run phpize (from inside xdebug - success)

3. run configure --with-xdebug ! Failure !

 

Here is the console output:

c:\php-sdk\php54a\vc9\x86\php540rc8-xyz>cd c:\xdebug

c:\xdebug>C:\php-sdk\php54a\vc9\x86\php540rc8-xyz\Release_TS\php-5.4.0RC8-devel-
VC9-x86\phpize.bat
Rebuilding configure.js
C:\php-sdk\php54a\vc9\x86\php540rc8-xyz\Release_TS\php-5.4.0RC8-devel-VC9-x86
module ...
Now run 'configure --help'

c:\xdebug>configure --with-xdebug
Saving configure options to config.nice.bat
Checking for cl.exe ...  <in default path>
  Detected compiler MSVC9 (Visual C++ 2008)
  Detected 32-bit compiler
Checking for link.exe ...  C:\Program Files\Microsoft Visual Studio 9.0\VC\Bin
Checking for nmake.exe ...  <in default path>
Checking for lib.exe ...  <in default path>
Checking for bison.exe ...  <in default path>
Checking for re2c.exe ...  <in default path>
  Detected re2c version 0.13.5
Checking for zip.exe ...  <in default path>
Checking for lemon.exe ...  <not found>
Checking for mc.exe ...  C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin
Checking for mt.exe ...  C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin

Build dir: Release_TS
PHP Core:  php5ts.dll and php5ts.lib

Enabling extension C:\xdebug [shared]
c:\xdebug\configure.js(1254, 3) Microsoft JScript runtime error: 'PHP_PGI' is un
defined


c:\xdebug>nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : fatal error U1064: MAKEFILE not found and no target specified
Stop.

 

Note: During the configure process:

Enabling extension C:\xdebug [shared]

c:\xdebug\configure.js(1254, 3) Microsoft JScript runtime error: 'PHP_PGI' is undefined

I checked the JS file and that constant sure enough is not mentioned apart from 2 lines that try to read it. Along with 'PHP_PGO'. It is though, the same routines that are in the original configure.js for compiling PHP itself, which runs perfectly well without any changes. I am baffled as to why I am stuck at this point. Perhaps something is not being included as it should be.. ?

 

Thanks for any input you may have regarding this :).

I thought I would share the fact that I finally compiled it!

 

Basically you compile as a PECL extension (duh) - Not the way xdebug documentation suggests.

 

I now have apache 2.4.1/PHP5.4.0 and Xdebug (2.2) running with netbeans perfectly (ok 1 problem..).

 

Only problem I think is from xdebug: Max Execution Time is exceeded when debugging, just set max_execution_time in php.ini to 0 or a higher number (not sure if the web service you use will timeout also, most have 300 sec limits).

 

Thanks again :D

  • 6 months later...

If you just want XDebug, and don't need special compile flags or to directly match the compilation of a production server, you can always just grab WAMP

 

http://www.wampserver.com/en/

 

Apache 2.22, MySQL 5.5, PHP 5.4, XDebug 2.1 is available as a nice, managed package.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.