Closed electricface closed 10 years ago
export GTK_VERSION=${GTK_VERSION:=GTK_3_10}
You have failed your export I think since gtk use -DGTK_3_12
. Try GTK_VERSION=GTK_3_10
Is there any way to fix this permanently? It is a real pain to have to copy and paste the export ...
line every time I open a new terminal.
@oakes, could you please try https://github.com/buster/rgtk/tree/glue-use-installed-gtk and tell if this works? It should get the GTK version from pkg-config.. works on my GTK3.14 machine, but i can't test on GTK3.10
I get the same error, unfortunately. How can I install a newer version of GTK? I'm on Ubuntu 14.04 and installed directly from apt-get.
Did you run "make clean" and "./configure" ? What is the output of cargobuild.sh? It prints the GTK_VERSION in between..
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether make sets $(MAKE)... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK3... yes
checking for GDK3... yes
checking for GLIB... yes
checking for GOBJECT... yes
checking for CAIRO... yes
configure: creating ./config.status
config.status: creating Makefile
GTK_3_12
cc -DGTK_3_12 -g -c gtk_glue/gtk_glue.c -pthread -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng12 -o target/deps/librgtk_glue.o -lgtk-3 -lgdk-3 -latk-1.0 -lgio-2.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lcairo -lgobject-2.0 -lglib-2.0 -fPIC
gtk_glue/gtk_glue.c:455:1: error: unknown type name ‘GtkFlowBox’
GtkFlowBox* cast_GtkFlowBox(GtkWidget* widget) {
^
gtk_glue/gtk_glue.c: In function ‘cast_GtkFlowBox’:
gtk_glue/gtk_glue.c:456:5: warning: return makes pointer from integer without a cast [enabled by default]
return GTK_FLOW_BOX(widget);
^
gtk_glue/gtk_glue.c: At top level:
gtk_glue/gtk_glue.c:459:1: error: unknown type name ‘GtkFlowBoxChild’
GtkFlowBoxChild* cast_GtkFlowBoxChild(GtkWidget* widget) {
^
gtk_glue/gtk_glue.c: In function ‘cast_GtkFlowBoxChild’:
gtk_glue/gtk_glue.c:460:5: warning: return makes pointer from integer without a cast [enabled by default]
return GTK_FLOW_BOX_CHILD(widget);
^
gtk_glue/gtk_glue.c: At top level:
gtk_glue/gtk_glue.c:463:1: error: unknown type name ‘GtkActionBar’
GtkActionBar* cast_GtkActionBar(GtkWidget* widget) {
^
gtk_glue/gtk_glue.c: In function ‘cast_GtkActionBar’:
gtk_glue/gtk_glue.c:464:5: warning: return makes pointer from integer without a cast [enabled by default]
return GTK_ACTION_BAR(widget);
^
make: *** [target/deps/librgtk_glue.o] Error 1
Can you confirm you checked out my branch on https://github.com/buster/rgtk/tree/glue-use-installed-gtk , please? Could you please paste the output of "pkg-info --modversion gtk+-3.0" and "env"?
You are right; sorry. I checked out your branch and it works.
Great, there is a pull request for this, so if it gets pulled in, you'll have no worries regarding this anymore
$ make