Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile under windows #8

Open
stealth35 opened this issue Apr 26, 2011 · 13 comments
Open

Cannot compile under windows #8

stealth35 opened this issue Apr 26, 2011 · 13 comments

Comments

@stealth35
Copy link

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

@chobie
Copy link
Member

chobie commented Apr 27, 2011

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
Copy link
Author

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

;)

@chobie
Copy link
Member

chobie commented Apr 27, 2011

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
Copy link
Author

@chobie
Copy link
Member

chobie commented Apr 29, 2011

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
Copy link
Author

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

@stealth35
Copy link
Author

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
Copy link
Member

chobie commented May 4, 2011

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
Copy link
Author

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
Copy link

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

@chobie
Copy link
Member

chobie commented Aug 15, 2012

@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
Copy link

Some news around compiling under windows?

@abhayprakash
Copy link

any help for phpize in windows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants