Skip to content

Cannot compile under windows #8

Open

Description

@stealth35

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

Activity

  1. chobie commented on Apr 27, 2011

    @chobie
    Member

    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.)

  2. stealth35 commented on Apr 27, 2011

    @stealth35
    Author

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

    ;)

  3. chobie commented on Apr 27, 2011

    @chobie
    Member

    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

  4. stealth35 commented on Apr 27, 2011

    @stealth35
    Author
  5. chobie commented on Apr 29, 2011

    @chobie
    Member

    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.

  6. stealth35 commented on Apr 29, 2011

    @stealth35
    Author

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

  7. stealth35 commented on Apr 29, 2011

    @stealth35
    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.

  8. chobie commented on May 4, 2011

    @chobie
    Member

    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

  9. stealth35 commented on May 4, 2011

    @stealth35
    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)

    :-)

  10. inri13666 commented on Aug 15, 2012

    @inri13666

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

  11. chobie commented on Aug 15, 2012

    @chobie
    Member

    @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.

  12. schneidermichal commented on Oct 20, 2014

    @schneidermichal

    Some news around compiling under windows?

  13. abhayprakash commented on Nov 29, 2015

    @abhayprakash

    any help for phpize in windows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions