libgit2 / php-git

PHP bindings for libgit2
http://libgit2.github.com
MIT License
565 stars 118 forks source link

Cannot compile under windows #8

Open stealth35 opened 13 years ago

stealth35 commented 13 years ago

Hi, I create a config.w32 but unfortunately many syntax errors appear.

chobie commented 13 years ago

Hi, thank you for reporting.

I'll attempt to supporting windows environment. but perhaps it takes a little long time. (because i don't know how to compile in windows environment atm.)

stealth35 commented 13 years ago

Hi, you can view the PR #9 here is the step build for windows : https://wiki.php.net/internals/windows/stepbystepbuild

;)

chobie commented 13 years ago

Hi, thank you for your information. hmm, binary tools couldn't download atm.http://pecl2.php.net/downloads/php-windows-builds/php-libs/binary-tools.zip.

I'll merge your request when i setup my windows develop environment. give me a moment :D

stealth35 commented 13 years ago

I'have a copy ;) http://stealth35.github.com/downloads/binary-tools.zip

chobie commented 13 years ago

Hey, i appreciate your help :D

can you teach me how to compile php-git on windows? i tried it, but it's difficult for me.

i want to compile like a linux-system phpize,configure,nmake if possible.

following lines are my current process.

  1. create php-5.3.6 build tree. moved php-git v0.1.0 to ext dir.
  2. i put libgit2 headers and library into deps directory.
  3. buildconf && configure --disable--all --enable-cli --enable-git
  4. nmake <= here. but many errors.

    C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(168) : warning C4005: 'UINTMAX_C' : macro redefinition .\win32/php_stdint.h(239) : see previous definition of 'UINTMAX_C' c:\php-sdk\php53dev\vc9\x86\deps\include\common.h(38) : warning C4005: 'snprintf ' : macro redefinition c:\php-sdk\php53dev\vc9\x86\php-5.3.6\main\snprintf.h(107) : see previou s definition of 'snprintf' main\internal_functions.c(43) : error C2059: syntax error : ';' main\internal_functions.c(43) : error C2059: syntax error : ',' main\internal_functions.c(54) : warning C4034: sizeof returns 0

i could compile php without php-git. i'm not sure about windows compile environment. so, perhaps it takes a little long time.

stealth35 commented 13 years ago

there is no phpize under windows :-( normaly you need to compile with Visual Studio 2008

stealth35 commented 13 years ago

I successful to compile extension, but I have now a dll sxs probleme, I think it'll be nice to create each .h files.

chobie commented 13 years ago

thank you for your work!

probably we can use phpize.bat & configure.bat under windows develop environment. i'm looking for better compile process and good coding style under windows.

so, can you give me a more time? i promiss windows support :D

stealth35 commented 13 years ago

For using phpize under windows you should take the dev pack : http://downloads.php.net/pierre/ (php-devel-pack-5.3.5-dev-Win32-VC9-x86.zip)

:-)

inri13666 commented 12 years ago

Hello))) maybe anyone can write stepbystep guide for building "php-git" for windows))

chobie commented 12 years ago

@inri13666 sorry, windows does not support yet as I changed drastically and I broke this PR. I'll try to support it in this month.

schneidermichal commented 10 years ago

Some news around compiling under windows?

abhayprakash commented 8 years ago

any help for phpize in windows?