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

Windows (10) Testing #6

Closed
crispy-computing-machine opened this issue Aug 3, 2022 · 9 comments
Closed

Windows (10) Testing #6

crispy-computing-machine opened this issue Aug 3, 2022 · 9 comments

Comments

@crispy-computing-machine
Copy link

crispy-computing-machine commented Aug 3, 2022

Ref: #4

Install using:

  1. Install: https://www.mingw-w64.org/

  2. Install https://www.gtk.org/docs/installations/windows/
    pacman -S mingw-w64-x86_64-gtk4

  3. Gtk::getInstance('C:\msys64\mingw64\bin\libgtk-4-1.dll');

Fatal error: Uncaught FFI\Exception: Failed resolving C function 'g_signal_connect'

Had a go at updating header files with snippets from here but with no joy

@kmaestro
Copy link
Contributor

kmaestro commented Aug 4, 2022

This is a function and won't work in php g_signal_connect instead I use g_signal_connect_data

@crispy-computing-machine
Copy link
Author

Apologies, I had changed some header files to try and get it to work.

Reverting the header files to the ones in this repository, I get:

PHP Fatal error: Uncaught FFI\Exception: Failed resolving C function 'g_main_context_iteration

@kmaestro
Copy link
Contributor

kmaestro commented Aug 4, 2022

What did you change?

@crispy-computing-machine
Copy link
Author

I have reverted it all now, so with the code as-is in this repository that is the error I get

@kmaestro
Copy link
Contributor

kmaestro commented Aug 4, 2022

Next time if you change something, please send me what you changed.

@crispy-computing-machine
Copy link
Author

Just to confirm, I have not made any changes to your code and the error running the hello_world example returns:

PHP Fatal error: Uncaught FFI\Exception: Failed resolving C function 'g_main_context_iteration

Any Ideas how to get past this? I'm going to guess its a Windows bug if its working for you on Linux?

@kmaestro
Copy link
Contributor

kmaestro commented Aug 4, 2022

Everything works on Linux. Check if you have installed the GLIB library.
It's just that these functions that cause these errors are related to gobject

@kmaestro
Copy link
Contributor

kmaestro commented Aug 4, 2022

There is another option, try compiling gtk yourself.

@crispy-computing-machine
Copy link
Author

I will keep testing!, cheers 👍

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

2 participants