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.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Applications > GTK+ won't compile. Can't find XOpenDisplay!

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

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 03-25-2006   #1 (permalink)
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)
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)
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

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

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 06:46 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2