X development libraries!!! EMERGENCY!!!

checking for X... no
configure: error: X development libraries not found

I'm on a mac, trying to install GTK+. got the error above.

could someone please let me know for x development libraries, what do i really need specifically????

this is sorta emergency because if i don't sort this out soon, my supervisor will pretty much kill me next week :frowning:

thanks in advance!!!

What version of Mac OS?

Have you installed Xcode?

What is at /usr/X11R6/include/X11?

Mac OS X 10.4.10

yeah I have installed xcode. but have never used it yet...

at /usr/x11r6/include/x11, i've got:

xxxx:/usr/x11r6/include/x11 xxxx$ ls
bitmaps
xxxx:/usr/x11r6/include/x11 xxxx$ cd bitmaps
xxxx:/usr/x11r6/include/x11/bitmaps xxxx$ ls
1x1 boxes grid2 menu12 terminal
2x2 calculator grid4 menu16 tie_fighter
Dashes cntr_ptr grid8 menu6 vlines2
Down cntr_ptrmsk hlines2 menu8 vlines3
Excl cross_weave hlines3 noletters weird_size
FlipHoriz dimple1 icon opendot wide_weave
FlipVert dimple3 keyboard16 opendotMask wingdogs
Fold dot ldblarrow plaid woman
Left dropbar7 left_ptr rdblarrow xfd_icon
Right dropbar8 left_ptrmsk right_ptr xlogo11
RotateLeft escherknot letters right_ptrmsk xlogo16
RotateRight flagdown light_gray root_weave xlogo32
Stippler flagup mailempty scales xlogo64
Term flipped_gray mailemptymsk sipb xsnow
Up gray mailfull star
black gray1 mailfullmsk starMask
black6 gray3 mensetmanus stipple
box6 grid16 menu10 target
xxxx:/usr/x11r6/include/x11/bitmaps xxxx$

also, i found a similar problem online and they mentioned xFree86:

gtk installation problems configure: error: X development libraries not

however i couldn't find the mac version of xFree86...

Is xFree86 what i need? shall i install something else or configure my computer?

Thanx very much!!!!!!

Is there anything in /usr/include/X11?

As the message says, you don't have the X11 development environment installed.

I suggest you dig out the Xcode installer.

What are you trying to build anyway, most open source code that does anything with shared libraries collapses in a heap when trying to compile on Darwin.

I suggest you look at Fink or similar for patches to build code on Darwin.

Hi porter, could you please give me a bit more information on what I should do as I'm absolutely stupid on this...

I installed fink but like, it couldn't install anything, whatever I tried to install it just gave me thousands of compiling errors... So I gave up on fink, but still got the same problem of not having x11 development environment... where can i find it???

Thanks so much for your time:D

In Jaguar it was a completely separate product.

Have you tried Configuring and Running X11 Applications on Mac OS X

Hi porter! Thank you very much for your help. I have read through that instruction and installed XFree86 successfully following the instruction on Installation Details for XFree86� 4.5.0.

But after I downloaded the X11.app and tried to install X11 on my computer, it gave me:

"you cannot install X11 on this volume, newer software already exists on your computer."

I tried to install gtk+ again, instead of the previous error, it gave me something else:

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

Any ideas??? Thanks very very very very very much!!!!!!!!!!!!!!!!!!!!!