LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Trouble Compiling Xorg Libraries (https://www.linuxquestions.org/questions/linux-from-scratch-13/trouble-compiling-xorg-libraries-4175412590/)

holdencaulfield 06-21-2012 12:24 AM

Trouble Compiling Xorg Libraries
 
Hello,

I believe that I have exhausted all options, and can't figure out the solution on my own. I'm having trouble compiling the xorg libraries on LFS 7.1. Specifically the compile fails with the following on libX11-1.5.0:

http://pastebin.com/xMcmJbfD

I've installed all the dependencies and followed the book as required, so I'm not sure what the problem is. Thanks for any help!

weibullguy 06-21-2012 07:07 AM

keysymdef.h is provided by the xproto package. Are you sure it installed (correctly)? Where is keysymdef.h on your system?

holdencaulfield 06-21-2012 12:23 PM

I'm not positive that xproto was installed correctly (this is my first time compiling xorg), but I know that I installed it. I'm seeing keysymdef.h in two locations:

/usr/local/include/X11/keysymdef.h
/usr/include/X11/keysymdef.h

I'm using /usr/X11 as my xorg prefix if it helps. Thank you.

stoat 06-21-2012 10:10 PM

Quote:

Originally Posted by holdencaulfield

/usr/local/include/X11/keysymdef.h
/usr/include/X11/keysymdef.h

Nothing for X11 should be in /usr/local, IMO. And that second one is the location for it when the standard /usr prefix is used. It's where mine is anyway, and I use /usr for XORG_PREFIX.

Quote:

Originally Posted by holdencaulfield

I'm using /usr/X11 as my xorg prefix if it helps.

Well, there is nothing wrong with choosing a non-standard Xorg prefix, I guess. But there is some extra work to do in the "Setting up the Xorg Build Environment" section of the introduction to Xorg. Did you do that extra stuff? I recommend taking a moment to check all of it.
Code:

echo $XORG_PREFIX
echo $XORG_CONFIG
cat /etc/profile.d/xorg.sh
cat /etc/ld.so.conf


holdencaulfield 06-22-2012 01:49 AM

I checked and everything looked correct for my previous prefix, however I still could not get anything to work. I decided to attempt to compile xorg with the prefix of /usr and have successfully compiled everything. Thank you all for you time. However 'startx' reveals 'no screens found' error. I have a nvidia card and trying to use the proprietary driver, I'm not sure what the problem is, because I used the same xorg.conf I have on another distro that works for this computer.

stoat 06-22-2012 06:56 AM

Video stuff, especially nvidia drivers, is something I don't have much experience with. I've never needed it since things always "just worked" for me, and I've never had to use proprietary video drivers. I used to tinker with xorg.conf like most everybody else, but not in the last several years or so. Anyway...

I would first try starting without any xorg.conf at all. Did you even try that? You might be surprised. And if that still doesn't work, then try generating one the old-fashioned way and adjusting it.

Next, and I don't know if it matters or not, the xorg.conf thing now seems to be broken up into separate .conf files that reside in /etc/X11/xorg.conf.d. Explore that some.

If you still got nowhere, at least I legitimately bumped your thread. Maybe a video expert will come along shortly.

holdencaulfield 06-22-2012 01:40 PM

stoat: Surprisingly what you suggested worked! Thank you so much! I deleted my xorg.conf which I need on Gentoo, and everything just worked. However, xft fonts either look horrible or are not working haha.

EDIT: Figured out the fonts, somehow missed it in the book. Thanks again for the help!


All times are GMT -5. The time now is 11:37 PM.