LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-03-2012, 10:24 AM   #1
elalexluna83
Member
 
Registered: Mar 2012
Posts: 55

Rep: Reputation: Disabled
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"
 
Old 03-03-2012, 10:35 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Do you have the correct version of gtk+ dependencies installed?
 
1 members found this post helpful.
Old 03-03-2012, 11:20 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
"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.

.

Last edited by knudfl; 03-04-2012 at 05:05 AM.
 
Old 03-03-2012, 08:03 PM   #4
elalexluna83
Member
 
Registered: Mar 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-04-2012, 04:00 AM   #5
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

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

Check the line in question, it contains a type-name which is unknown for the compiler.
 
1 members found this post helpful.
Old 03-04-2012, 03:04 PM   #6
elalexluna83
Member
 
Registered: Mar 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] GTK+ 2.16.2 Compilation Error EmrldDrgn Linux - Software 9 08-03-2009 02:19 AM
gtk compilation problem cool_riyou Linux - Newbie 5 02-11-2008 02:15 PM
GTK compilation. shendeswanand Programming 4 01-29-2006 11:48 AM
Compilation problem with gtk+-2.4.0 Kanaflloric Linux - Software 2 06-17-2004 10:43 PM
GTK-1.2 C compilation error GabeF Programming 2 05-12-2003 08:24 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration