How to compile Ice/Php-TS?

DoadinDoadin AtlantaMember Josh BrownOrganization: PersonalProject: Test Comms

Hello, so I started working on this project a while ago, and when I started php-ts builds of the module where included in the ice installer. Now for some reason it appears it is no longer included. I had successfully compiled ice-php before however now trying to update I am not having success. I have compile php, ice-cpp, however ice-php is giving me issues. It says php.h not found. I have tried included the path to php.h in %PATH% and %INCLUDE% .

Whole Build system is as follows:
win 7 Utl x64
VS 2017 x64
php 7.2.7
ice from source https://github.com/zeroc-ice/ice/commit/b3763409f91afc54bf8f014d6e92772d6fc34dcb

Best Answers

  • xdmxdm La Coruña, SpainJose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    edited July 2018 Accepted Answer

    Hi Josh,

    I have updated sources to allow build with PHP 7.2 see , it only support to build with PHP 7.1 on Windows before

    To build TS module with PHP 7.2 you should open a Visual Studio 2017 command prompt and run

    cd php
    msbuild msbuild/ice.proj /p:BuildWithPhpVersion=7.2 /p:Configuration=Release /p:Platform=x64
    

    Cheers,
    José

  • xdmxdm La Coruña, SpainJose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Accepted Answer

    No you don't need to build PHP or install PHP sources, the build downloads our NuGet PHP dev packages that contains the required PHP libraries and headers.

    We add this two packages for 7.2 builds and there are similar ones for 7.1

    https://www.nuget.org/packages/php-7.2-ts/
    https://www.nuget.org/packages/php-7.2-nts/

Answers

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    edited July 2018 Accepted Answer

    Hi Josh,

    I have updated sources to allow build with PHP 7.2 see , it only support to build with PHP 7.1 on Windows before

    To build TS module with PHP 7.2 you should open a Visual Studio 2017 command prompt and run

    cd php
    msbuild msbuild/ice.proj /p:BuildWithPhpVersion=7.2 /p:Configuration=Release /p:Platform=x64
    

    Cheers,
    José

  • DoadinDoadin AtlantaMember Josh BrownOrganization: PersonalProject: Test Comms

    o ok, thanks, and does it actually require compiling php from source? I thought I remembered that being needed before.

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Accepted Answer

    No you don't need to build PHP or install PHP sources, the build downloads our NuGet PHP dev packages that contains the required PHP libraries and headers.

    We add this two packages for 7.2 builds and there are similar ones for 7.1

    https://www.nuget.org/packages/php-7.2-ts/
    https://www.nuget.org/packages/php-7.2-nts/

  • DoadinDoadin AtlantaMember Josh BrownOrganization: PersonalProject: Test Comms

    nice, thanks!

Sign In or Register to comment.