Can't compile

111 views
Skip to first unread message

moritz....@gmail.com

unread,
Oct 3, 2019, 12:40:49 PM10/3/19
to CEF2go
Even though all neccessary dependencies are installed and I followed the "Getting started on Linux" instructions step-by-step, I always end up with this error:

src/gtk/gtk.go: In function TerminationSignal’:
src
/gtk/gtk.go:14:39: warning: implicit declaration of function cef_quit_message_loop’; did you mean g_dbus_message_lock’? [-Wimplicit-function-declaration]
 
void TerminationSignal(int signatl) { cef_quit_message_loop(); }
                                       
^~~~~~~~~~~~~~~~~~~~~
                                       g_dbus_message_lock
src
/gtk/gtk.go: In function DestroySignal’:
src
/gtk/gtk.go:20:5: warning: implicit declaration of function _GoDestroySignal’; did you mean DestroySignal’? [-Wimplicit-function-declaration]
     _GoDestroySignal
(widget, data);
     
^~~~~~~~~~~~~~~~
     
DestroySignal
go install cef
# cef
In file included from /home/moritz/cef2go/include/internal/cef_types.h:46:0,
                 
from /home/moritz/cef2go/include/capi/cef_base_capi.h:43,
                 
from /home/moritz/cef2go/include/capi/cef_app_capi.h:45,
                 
from src/cef/cef.go:27:
/home/moritz/cef2go/include/internal/cef_types_linux.h:38:10: fatal error: gtk/gtk.h: No such file or directory
 
#include <gtk/gtk.h>
         
^~~~~~~~~~~
compilation terminated
.
Makefile:34: recipe for target 'Linux' failed
make
[1]: *** [Linux] Error 2
make
[1]: Leaving directory '/home/moritz/cef2go'
Makefile:31: recipe for target 'detect_os' failed
make
: *** [detect_os] Error 2

I have tried compiling on archlinux and Ubuntu, but no luck. Is there anything I can do to get it to build?
Best regards!

czarek....@gmail.com

unread,
Oct 3, 2019, 6:17:06 PM10/3/19
to CEF2go
You have to install GTK dev package. See https://github.com/cztomczak/cef2go#getting-started-on-linux

moritz....@gmail.com

unread,
Oct 3, 2019, 8:04:24 PM10/3/19
to CEF2go
libgtk2.0-dev and gtk2.0 are both installed

$ pkg-config --modversion gtk+-2.0
2.24.32

/usr/include/gtk-2.0 looks like this

Reply all
Reply to author
Forward
0 new messages