Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Applications
Reload this Page GTK+ won't compile. Can't find XOpenDisplay!
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Applications I cant get "X" app to work... also discussion about linux programs.

Closed Thread
 
Thread Tools Display Modes
Old 03-25-2006   #1 (permalink)
acsmith
Just Joined!
 
Join Date: May 2005
Location: Kokomo, IN
Posts: 58
Send a message via AIM to acsmith
GTK+ won't compile. Can't find XOpenDisplay! [SOLVED]

Alright, I've been working on this for longer than I can remember. I can't get GTK+-2.8.16 to compile because it says libX11 isn't found when it is compiled and installed on my machine. I am using the --x-libraries and --x-includes flags pointing to the install dir of libX11. Here's the exact error:

checking for XOpenDisplay... no
configure: error: *** libX11 not found. Check 'config.log' for more details.

This is the command I passed:

# ./configure --x-libraries=/to/libs --x-includes=/to/includes

Of course /to/whatever are my actual directories.

I know it's finding X because when it checks for X it finds my libraries and headers:

checking for X... libraries /to/libraries, header /to/includes

It also finds ICE, just not XOpenDisplay. Is there some kind of dependency libX11 needs to compile with XOpenDisplay that I don't have? I'm really confused and tired. Sorry if I don't make sense. Thanks to anyone who puts up with me.
acsmith is offline  
Old 03-25-2006   #2 (permalink)
acsmith
Just Joined!
 
Join Date: May 2005
Location: Kokomo, IN
Posts: 58
Send a message via AIM to acsmith
When going through the config.log I noticed it was looking for xext just before it errored out. It turns out you need to have libXext installed before trying to compile GTK+.
acsmith is offline  
Old 04-20-2007   #3 (permalink)
nazgul77
Just Joined!
 
Join Date: Apr 2007
Location: Munich, Germany
Posts: 1
Thumbs up

thank you for posting the solution. indeed it requires the libxext-dev package (on ubuntu). this is not obvious since I had libX11-dev installed, too.
nazgul77 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 04:28 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0