Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can it run on Windows? #15

Open
54huige opened this issue Dec 6, 2018 · 4 comments
Open

Can it run on Windows? #15

54huige opened this issue Dec 6, 2018 · 4 comments

Comments

@54huige
Copy link

54huige commented Dec 6, 2018

Can it run on Windows?

@dstogov
Copy link
Owner

dstogov commented Dec 6, 2018

It should.

@SerafimArts
Copy link

I'm not sure. I tried on several different libraries, everywhere one and the same error

Fatal error: Uncaught FFI\Exception: Failed loading 'xxxx.dll'

While on the Internet I found only one single example that worked before, but now it is impossible to reproduce: https://hotexamples.com/ru/examples/-/FFI/-/php-ffi-class-examples.html

PHP 7.4.0-dev (cli) (built: Jul  8 2019 01:26:59) ( NTS Visual C++ 2019 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0-dev, Copyright (c) Zend Technologies

@stefanak-michal
Copy link

stefanak-michal commented Nov 14, 2019

Same issue here, not working on windows. I've tried to FFI::load() on ".h" file and also I tried to use FFI::cdef() on ".dll" file.

Result is always FFI\Exception "Failed loading <path>".

PHP 7.4.0-dev (cli) (built: Nov 13 2019 05:33:53) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0-dev, Copyright (c) Zend Technologies

@ghostjat
Copy link

ghostjat commented Nov 14, 2019

It is working on my system for following DLLs
Scintilla
Gtk
Tk
Opencv

Your dll dir must be define in system path.
As well as the main dll must be in php root dir
Eg.
Php
|_dll_libs/
|_php.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants