Well, I'm really stumped by this one. :P
After getting the "Can't find X includes..." error while compiling, I tried urpmi to install the missing devel packages. I heard of a package called "xorg-x11-devel," so I attempted to install that, but urpmi reported that there was no such package.
I then Googled around a bit and found a package called "libxorg-x11-devel," (not sure if that's even relevant) so I tried to install that. It complained of other missing packages which then led to more dependency problems so I just ditched trying that.
If anyone has any ideas, please help me out.
Thanks in advance.
Edit: I'm using Mandrake 10.1 Official by the way.