Tensor: PECL Windows Build Fails (Missing Dependencies on Build Server)
All versions fail to compile
fatal error C1083: Cannot open include file: 'cblas.h': No such file or directory
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 32 (13 by maintainers)
Commits related to this issue
- Link against libopenblas.lib on Windows Without a respective lib, linking would inevitably fail. We also add a check for cblas.h, and if either is not found, disable ext/tensor with a respective war... — committed to cmb69/Tensor by cmb69 3 years ago
- Link against libopenblas.lib on Windows (#24) Without a respective lib, linking would inevitably fail. We also add a check for cblas.h, and if either is not found, disable ext/tensor with a respec... — committed to RubixML/Tensor by cmb69 3 years ago
- Switching to a pure workflow process. In the investigation of the build failures I came across this issue. https://github.com/RubixML/Tensor/issues/22 In that issue user federicoemartinez was able t... — committed to jb-lopez/php-extensions-windows by jb-lopez 2 years ago
- Switching to a pure workflow process. In the investigation of the build failures I came across this issue. https://github.com/RubixML/Tensor/issues/22 In that issue user federicoemartinez was able t... — committed to jb-lopez/php-extensions-windows by jb-lopez 2 years ago
It seems this extension requires several libraries, but these dependencies are not checked during configuration on Windows (in config.w32). These checks would fail for PECL builds, though, since these libs are not available at https://windows.php.net/downloads/pecl/deps/. I’ll see what I can do.
I’ve tried them on Windows 10, PHP 8.0.10, it seems to be OK. Thank you.
I’ve managed to build it for php 7.4 nts x64 for windows: https://github.com/federicoemartinez/Tensor/releases/tag/3.0.1 I don’t know if I can help you somehow so you can build it again.
Hey @takielias I’m not sure if you ever got it to build. It took me many tries and a few days, but I did get it to work.
https://github.com/jb-lopez/php-extensions-windows/releases/tag/Tensor
I’ll try, but I’m going on vacations right now so it will have to wait.
@federicoemartinez Thanks a lot. solved the issue by using nts version of PHP 7.4. Could you please make a ts version of the tensor build for windows please?
Oh sorry about that, I’ll have to find a way to allow comments on merged PRs. Thanks for the explanation, it really helps alot! We still need to figure a way to patch the
config.w32file after Zephir compiles it. It shoudn’t be too hard now that I have a better idea as to what’s going on.