LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   gtk+ 3.2.3 compilation! (https://www.linuxquestions.org/questions/programming-9/gtk-3-2-3-compilation-932520/)

elalexluna83 03-03-2012 10:24 AM

gtk+ 3.2.3 compilation!
 
Hi Everybody, when i was compiling gtk+ 3.2.3 i got the following error after i ran make ( ./configure went well)

CC libgail_la-gtktreeviewaccessible.lo
gtktreeviewaccessible.c: In function 'refresh_cell_index':
gtktreeviewaccessible.c:3262: warning: 'index' may be used uninitialized in this function
CC libgail_la-gtkwidgetaccessible.lo
CC libgail_la-gtkwindowaccessible.lo
gtkwindowaccessible.c:41: error: expected ')' before '*' token
gtkwindowaccessible.c: In function '_gtk_window_accessible_get_type':
gtkwindowaccessible.c:43: error: 'atk_window_interface_init' undeclared (first use in this function)
gtkwindowaccessible.c:43: error: (Each undeclared identifier is reported only once
gtkwindowaccessible.c:43: error: for each function it appears in.)
gtkwindowaccessible.c:43: error: 'ATK_TYPE_WINDOW' undeclared (first use in this function)
gtkwindowaccessible.c: At top level:
gtkwindowaccessible.c:389: error: expected ')' before '*' token
make[4]: *** [libgail_la-gtkwindowaccessible.lo] Error 1
make[4]: Leaving directory `/home/alexrl/Desktop/GTK3/gtk+-3.2.3/gtk/a11y'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/alexrl/Desktop/GTK3/gtk+-3.2.3/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/alexrl/Desktop/GTK3/gtk+-3.2.3/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/alexrl/Desktop/GTK3/gtk+-3.2.3'
make: *** [all] Error 2

complete output ( http://pastebin.com/st5WaxdW )
I really appreciate any help. Thanks in advance.

BTW, here are variables i have defined

export CPPFLAGS=-I/usr/local/include:$CPPFLAGS
export LDFLAGS=-L/usr/local/lib:$LDFLAGS
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export BASE_DEPENDENCIES_CFLAGS="-I/usr/local/include"
export BASE_DEPENDENCIES_LIBS="-L/usr/local/lib"

weibullguy 03-03-2012 10:35 AM

Do you have the correct version of gtk+ dependencies installed?

knudfl 03-03-2012 11:20 AM

"gtk+-3.2.3" seems to be bug free. Should compile OK.

Ref. post #2 :
Fedora 16 lists 26 "BuildRequires" in the src.rpm.
Debian : 36 ( Some are for building a .deb package )
http://packages.debian.org/source/sid/gtk+3.0

P.S. : Example Fedora 16 - 64bits, gcc-4.6.2, no errors with gtk+-3.2.3.

.

elalexluna83 03-03-2012 08:03 PM

alexrl@oc5745244553 $ pkg-config --modversion glib
1.2.10
alexrl@oc5745244553 $ pkg-config --modversion pango
1.28.4
alexrl@oc5745244553 $ pkg-config --modversion gdk-pixbuf-2.0
2.24.1
alexrl@oc5745244553 $ pkg-config --modversion atk
2.0.1

alexrl@oc5745244553 ~ $ rpm -qa | grep gcc
libgcc-4.4.6-3.el6.i686
gcc-4.4.6-3.el6.x86_64
gcc-c++-4.4.6-3.el6.x86_64
libgcc-4.4.6-3.el6.x86_64

NevemTeve 03-04-2012 04:00 AM

> gtkwindowaccessible.c:389: error: expected ')' before '*' token

Check the line in question, it contains a type-name which is unknown for the compiler.

elalexluna83 03-04-2012 03:04 PM

Hi, I have installed gtk+3.2.3, the error was related to atk, i had 2.0.1 version, i installed 2.2.0 and finally i could completed the installation.

alexrl@oc5745244553 $ pkg-config --modversion gtk+-3.0
3.2.3
alexrl@oc5745244553 $ pkg-config --modversion pango
1.29.4
alexrl@oc5745244553 $ pkg-config --modversion glib-2.0
2.30.2
alexrl@oc5745244553 $ pkg-config --modversion atk
2.2.0
alexrl@oc5745244553 $ pkg-config --modversion gdk-pixbuf-2.0
2.24.1

Regards


All times are GMT -5. The time now is 02:58 AM.