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!
 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
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
Free Network Mapping Tool for Microsoft® Office Visio® Professional 2007 Users
Don't map your network by hand – let LANsurveyor Express for Microsoft Visio Professional 2007 automatically create network diagrams for you.
subscribe
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say.
subscribe

Safe, Secure Backup


All times are GMT. The time now is 03:44 AM.






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

Content Relevant URLs by vBSEO 3.3.0 RC2