Archived

This forum has been archived. Please start a new discussion on GitHub.

How to compile Ice/Php-TS?

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

Comments

  • xdm
    xdm La Coruña, Spain
    edited July 2018

    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é

  • Doadin
    Doadin Atlanta

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

  • xdm
    xdm La Coruña, Spain

    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/

  • Doadin
    Doadin Atlanta

    nice, thanks!