Session 4 – Gtk with C

First we have to install gtk dependencies to compile the file and also run the file. So you have to install with this comand

sudo dnf install gtk3-devel gstreamer-devel clutter-devel libgda-devel gobject-introspection-devel

then we are going to install webkit dependencies to compile our file

7.png

At the moment of compile we had an error

1.png

That’s because the name of the package is not the same as the package that we download before, so we have to find it in /usr/lib64

2

And here at the end we have the webkit2gtk-4.0

3.png

So we have to do a modification to compile it replace  webkit3.0 for wetkit2gtk-4.0

4.png

But there is another error because we have to do a modification in the file that contains our code, so open the file to modificate it

5

just add 2 at the final of webkit, like this

6.png

now we can compile it without errors 😀

7.png

finally we can run the code 🙂8.png

You can check the code here.

Anuncios

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión /  Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )

Conectando a %s