Skip to content

Usage troubles under Windows #183

Closed
Closed
@West14

Description

@West14

Hello!

I'm trying to use your library under Windows 10, but there are few problems that I can't figure out how to solve.

  1. "The printf check" fails. It can't find printf function.
An exception occurred: [FFI\Exception] Failed resolving C function 'printf' in src\addons\Bubuni\LibVips\vendor\jcupitt\vips\src\FFI.php on line 208
#0 src\addons\Bubuni\LibVips\vendor\jcupitt\vips\src\FFI.php(208): FFI::cdef('    int printf(...')
#1 src\addons\Bubuni\LibVips\vendor\jcupitt\vips\src\FFI.php(116): Jcupitt\Vips\FFI::init()
#2 src\addons\Bubuni\LibVips\vendor\jcupitt\vips\src\VipsOperation.php(80): Jcupitt\Vips\FFI::vips()
#3 src\addons\Bubuni\LibVips\vendor\jcupitt\vips\src\VipsOperation.php(225): Jcupitt\Vips\VipsOperation::newFromName('black')
#4 src\addons\Bubuni\LibVips\vendor\jcupitt\vips\src\Image.php(1290): Jcupitt\Vips\VipsOperation::callBase('black', NULL, Array)
#5 test.php(28): Jcupitt\Vips\Image::__callStatic('black', Array)
#6 {main}

When I comment it, things start to work.

I also want to ask: what is the latest supported libvips version? When i try 8.14. I get errors like this.
image
image

I tried 8.13, but it does not give the expected result (I'll attach reproduce example if needed).
libvips 8.9 seems to be fine.

PHP version:

PHP 7.4.27 (cli) (built: Dec 14 2021 19:52:13) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Xdebug v3.1.6, Copyright (c) 2002-2022, by Derick Rethans

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