pdo_snowflake icon indicating copy to clipboard operation
pdo_snowflake copied to clipboard

SNOW-251526: Cannot Build on Windows

Open daffyduck25 opened this issue 4 years ago • 1 comments

Windows 10 x64 PHP V 7.3.0 VS2017

Hello. I am trying to build the .dll from instructions here: https://github.com/snowflakedb/pdo_snowflake#building-the-driver-on-windows on a Windows machine.

I bypassed the php build instructions as I already have PHP on my machine.

When I get to this section:

.\scripts\run_build_pdo_snowflake.bat <full PHP version> <path to PHP SDK>

After the files are copied I receive an error the 'buildconf' is not recognizable.

Did I incorrectly assume that I could skip the php build section? Or is there something else I should be doing?

Thank you.

image

daffyduck25 avatar Dec 23 '20 21:12 daffyduck25

We had same issues tryin to compile for PHP 7.4.15 and ran into the buildconf error. We got around that by copying the PHP 7.4.15 source into the PHP SDK library that was built in a previous step: C:\php-sdk\phpmaster\vc15\x64\php-src

This solved our problem with building the php_pdo_snowflake.dll. However, we couldn't load it into our PHP instance. We were able to get the dll loaded into the PHP 7.4.15 instance that was compiled during the snowflake dll build. We're thinking there must be some PHP build issues between the Snowflake PHP build and the pre-built dlls from the PHP site we're using.

Keith-Wade avatar Feb 03 '22 23:02 Keith-Wade

@Keith-Wade another option would be to run the .\scripts\run_setup_php.bat x64 Release VS16 8.2.3 c:\php-sdk command, at least this worked for me.

yoramdelangen avatar Mar 03 '23 08:03 yoramdelangen

We have builds on Windows running on GH actions and they are working fine. Additionally PHP <8 is not supported currently.

sfc-gh-dprzybysz avatar Nov 30 '23 07:11 sfc-gh-dprzybysz