Error X11/xlib.h No Such File Or Directory Mountain Lion
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us x11/xlib.h' file not found ubuntu Learn more about Stack Overflow the company Business Learn more about hiring developers x11/xlib.h' file not found xcode or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack x11 xlib h file not found el capitan Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “X11/Xlib.h”: no such file or directory on x11/xlib.h windows mac os x mountain lion up vote 9 down vote favorite 1 I came across this when I was compiling a simple program: #include
Hgraf.c:73:10: Fatal Error: 'x11/xlib.h' File Not Found
command. c x11 osx-mountain-lion share|improve this question asked Jan 14 '13 at 15:08 jasonkim 4081619 1 Does xQuartz come with headers? You might need to install those separately. –Fred Foo Jan 14 '13 at 15:11 Did you install the 'command line tools' package for XCode? The headers in /usr/include/X11 may well be distributed with that. –Jonathan Leffler Jan 14 '13 at 15:24 add a comment| 3 Answers 3 active oldest votes up vote 10 down vote accepted you need to compile with: g++ -o ex ex.cpp -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 the X11 headers are installed with xQuartz, but you need to reference them explicitly If you install xQuartz it installs into /opt/X11, and /usr/X11 and /usr/X11R6 are symlinks to this location share|improve this answer answered Jan 14 '13 at 16:21 Petesh 51.6k35174 add a comment| up vote 17 down vote You may need to add symbolic link to X11 folder by: sudo ln -s /opt/X11/include/X11 /usr/local/include/X11 In my case, I had to make include directory under usr/local. share|improve this answer answered Sep 25 '13 at 22:43 skndmx 18114 Awesome! This did it for me. Thanks for posting. –Malcolm Apr 30 '15 at 21:55
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about
#include X11/xlib.h Windows
Stack Overflow the company Business Learn more about hiring developers or posting ads with "ld: library not found for -lx11" us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer install x11 on mac enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the http://stackoverflow.com/questions/14321038/x11-xlib-h-no-such-file-or-directory-on-mac-os-x-mountain-lion top Trouble installing `wmctrl` up vote 2 down vote favorite It seems that wmctrl is not installed on my system (Mac OS 10.8), but when I try to install it by cloning a git repo and following the instructions (./configure, make, make install), running make results in a bunch of errors, the first few of which look like this: main.c:33:22: error: X11/Xlib.h: No such file or directory main.c:34:23: error: X11/Xatom.h: No http://superuser.com/questions/496633/trouble-installing-wmctrl such file or directory main.c:35:28: error: X11/cursorfont.h: No such file or directory main.c:36:29: error: X11/Xmu/WinUtil.h: No such file or directory Does the wmctrl directory need to be somewhere else? osx installation unix osx-mountain-lion wmctrl share|improve this question asked Oct 31 '12 at 0:20 Will 30349 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote I got it using homebrew brew install homebrew/x11/wmctrl from https://github.com/Homebrew/homebrew-x11 share|improve this answer answered Feb 7 '15 at 4:54 Harry Moreno 1214 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged osx installation unix osx-mountain-lion wmctrl or ask your own question. asked 3 years ago viewed 579 times active 1 year ago Related 1Windows 7 has trouble installing software with Visual C++ 2005 & 2008-1Having troubles with unRarX0Trouble installing gawk2trouble installing yesod0Can you install Mac OS X on an ExFat formatted disk?0MySQL server [Version 5.0.96] installation fails on Mac Mountain Lion1Trouble Installing SoX2Is the
instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not https://sourceforge.net/p/scid/mailman/message/30718826/ be possible with some types of ads) More information about our ad policies X You seem to have CSS turned off. Please don't fill out this field. You http://forums.libsdl.org/viewtopic.php?t=8329&sid=c764257f6e8e265609bf851496f3f68a seem to have CSS turned off. Please don't fill out this field. Briefly describe the problem (required): Upload screenshot of ad (required): Select a file, or drag & not found drop file here. ✔ ✘ Please provide the ad click URL, if possible: Home Browse Scid Mailing Lists Scid Brought to you by: arwagner, fulvioscid, jthart Summary Files Reviews Support Wiki Code Tickets ▾ Bugs Patches Feature Requests Cvs (old) Mailing Lists scid-users Re: [Scid-users] compiling 4.4 on Mac Re: [Scid-users] compiling 4.4 on Mac From: file not found Ben St-Pierre
After installing 10.8 today and doing all of the apple suggested updates to Xcode, I cleaned my Xcode SDL2 project (based off of the testgl2 example project) and it gave me this error: In SDL_platform.h:75, 'AvailablityMacros.h' file not found. I don't appear to have that file on my computer. (I ran my project to build the iOS version and that worked fine.) I thought perhaps an SDL2 update had been released to fix this issue, so I downloaded the latest today from mercurial. (Turns out I had to reinstall mercurial first.) I tried to run the demo project testgl2. It found one error, which was in SDL_syswm.h:68, 'X11/Xlib.h' file not found. I reinstalled X11 from http://xquartz.macosforge.org/landing/ After reinstalling X11, I compiled the SDL2 project, and the old error was gone and there are two new errors: From SDL_cocoamodes.m:105, Use of undeclared identifer 'kCGErrorNameTooLong' From SDL_cocoamodes.m:117, Use of undeclared identifer 'kCGErrorNoCurrentPoint' I believe those two used to be defined in CGError.h, but they seem not to be defined in MacOSC10.8>Frameworks>CoreGraphics.framework>CGError.h Has anyone else encountered issues with SDL2 and 10.8? Should I just compile against 10.7 instead of 10.8, or is there a better fix? Trevor Powell Joined: 11 Mar 2012 Posts: 12 Posted: Sat Jul 28, 2012 1:48 am I ran into those same two issues in SDL_cocoamodes.m under 10.8. (And after "solving" those issues by commenting them out, I received a further error: /Users/trevor/src/SDL2/src/video/x11/SDL_x11sym.h:110:30: Conflicting types for 'XextAddDisplay' ) (if SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY is defined, it compiles properly. Not sure where that's supposed to be being set from; don't see any references in the code or project) SDL2 does build for me after hacking my way past those three errors. Trev Joined: 07 Nov 2011 Posts: 63 Posted: Sat Jul 28, 2012 2:55 am I tried commenting them out too, and came across the same subsequent error. I decided to stop there since it seems like I was entering the rabbit hole, but if you report that things seem fixed after the last fix, I guess I'll just try doing that until a proper (i.e., official