LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-05-2012, 10:24 PM   #1
zerohour
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
Building gtk+-3.2.3 on natty


I'm trying to install gtk+3.2.3 on Ubuntu natty but keep receiving errors. Please help.

First I installed the following with sudo apt-get install:
libffi-dev zlib1g-dev fam libdbus-1-dev libdbus-glib-1-dev gobject-introspection libxext-dev libxrender1-dbg colordiff libcairo2-dev libtiff4-dev libpng12-dev libxft-dev libxi-devel

I have the directory: /home/zerohour/gtk there I have these folders:
atk-2.1.5
gdk-pixbuf-2.24.1
glib-2.30.1
gtk+-3.2.3
pango-1.29.1

Then I do the following:
Code:
cd /home/zerohour/gtk/glib-2.30.1
./configure --prefix=/home/zerohour/gtk
make
rm -rf /home/zerohour/gtk/include/glib.h  /home/zerohour/gtk/include/gmodule.h  (glib INSTALL instructions)
make install
repeat for the other folders except without the rm, in the following order:
  1. atk-2.1.5
  2. gdk-pixbuf-2.24.1
  3. pango-1.29.1
  4. gtk+-3.2.3

Before running ./configure for gtk+-3.2.3 I enter the following in the terminal:
Code:
CPPFLAGS="-I/home/zerohour/gtk/include"
LDFLAGS="-L/home/zerohour/gtk/lib"
PKG_CONFIG_PATH="/home/zerohour/gtk/lib/pkgconfig"
export CPPFLAGS LDFLAGS PKG_CONFIG_PATH
LD_LIBRARY_PATH="/home/zerohour/gtk/lib"
PATH="/home/zerohour/gtk/bin:$PATH"
export LD_LIBRARY_PATH PATH
export PKG_CONFIG_PATH="/home/zerohour/gtk/lib/pkgconfig:$PKG_CONFIG_PATH"
I get the these errors when I run make on gtk+-3.2.3:
Code:
gdkwindow-x11.c: In function '_gdk_x11_moveresize_handle_event':
gdkwindow-x11.c:4301:9: error: 'XIEvent' undeclared (first use in this function)
gdkwindow-x11.c:4301:9: note: each undeclared identifier is reported only once for each function it appears in
gdkwindow-x11.c:4301:18: error: 'ev' undeclared (first use in this function)
gdkwindow-x11.c:4301:33: error: expected expression before ')' token
gdkwindow-x11.c:4302:9: error: 'XIDeviceEvent' undeclared (first use in this function)
gdkwindow-x11.c:4302:24: error: 'xev' undeclared (first use in this function)
gdkwindow-x11.c:4302:46: error: expected expression before ')' token
gdkwindow-x11.c:4306:16: error: 'XI_Motion' undeclared (first use in this function)
gdkwindow-x11.c:4308:13: warning: implicit declaration of function '_gdk_x11_device_xi2_translate_state'
gdkwindow-x11.c:4313:16: error: 'XI_ButtonRelease' undeclared (first use in this function)
make[4]: *** [gdkwindow-x11.lo] Error 1
make[4]: Leaving directory `/home/zerohour/gtk/gtk+-3.2.3/gdk/x11'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/zerohour/gtk/gtk+-3.2.3/gdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/zerohour/gtk/gtk+-3.2.3/gdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/zerohour/gtk/gtk+-3.2.3'
make: *** [all] Error 2
 
Old 01-06-2012, 10:50 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

I guess you miss some more X development packages. You may try to install at least libx11-dev and x11proto-input-dev, that are mentioned in libxi-dev package page and see if it solves your problem.

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
LXer: Natty Ubuntu - Natty Narwhal Inspired Theme for Nokia Smartphones LXer Syndicated Linux News 0 06-10-2011 10:30 AM
LXer: Set up Spice-Gtk-0.6 on Ubuntu 11.04 ( Natty Narwhal ) LXer Syndicated Linux News 0 05-23-2011 02:30 PM
error building gtk+-2.22.0 from source teel27 Slackware 2 01-05-2011 01:32 PM
Problem building gtk+ programs on Slack 12.2 intens Slackware 3 01-03-2009 10:39 AM
Building gtk+-2.10.8 but get a undefined reference to g_thread_gettime Haraldsh Linux - Software 5 03-13-2007 02:29 AM

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

All times are GMT -5. The time now is 07:51 PM.

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