Quote:
Originally Posted by _linux_newbie_
I did the command:
find / -name xorg-server.pc
and the output was:
/usr/lib/pkgconfig/xorg-server.pc
So that probably means I have the package on this system?
Thank you
|
Yes, I think that does mean it is installed.
Ok, try this. Open your .bashrc and add a line that reads
Code:
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig
which, as far as I know IS this:
Quote:
Package xorg-server was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-server.pc'
to the PKG_CONFIG_PATH environment variable
|
then save the .bashrc and re-open your terminal so the new .bashrc gets parsed.
Now try and ./configure again.
If it still doesn't work, you can try and find the location of the xorg libraries by opening the xorg-server.pc and looking for a Cflags and Libs line.
Take whatever you find in these Cflags and Libs lines, and try and copy that content into a XORG_CFLAGS and XORG_LIBS line in your .bashrc.
Note thought that the .pc file may use symbols. E. g. on my system "xtrans.pc" looks like this:
Code:
prefix=/usr
exec_prefix=/usr
libdir=/usr/share
includedir=/usr/include
Name: XTrans
Description: Abstract network code for X
Version: 1.2.2
Cflags: -I${includedir} -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT
Libs:
Requires:
which means my "correct" cflags are in fact
Code:
-I/usr/include -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT
since includedir is defined as "/usr/include" - so look out for something similar in your .pc file.
Do the same with the "libs" line for your xorg-server.pc file - watch out for symbols.
Then put what you find in those lines into lines in your .bashrc:
Code:
XORG_LIBS="whatever you find in the libs line in your xorg-server.pc file"
export XORG_LIBS
XORG_CFLAGS ="whatever you find in the cflags line in your xorg-server.pc file"
export XORG_CFLAGS
which IS:
Quote:
Alternatively, you may set the environment variables XORG_CFLAGS
and XORG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
|
then close your terminal and re-open it to make it parse the new .bashrc file.
Try configuring again to see if it works.
If it still does not, you can also try to make a symlink to the xorg-server.pc file from /usr/share/pkgconfig - I checked, and on my FC11 system, most of my .pc Package Config files are in /usr/share/pkconfig - so maybe the configure script you are trying to run to get the driver compiled is simply looking in the wrong location.
So in a terminal, as root, do
Code:
# cd /usr/share/pkgconfig
# ln -s /usr/lib/pkgconfig/xorg-server.pc xorg-server.pc
this will "point" /usr/share/pkgconfig/xorg-server.pc "to" /usr/lib/pkgconfig/xorg-server.pc
which means that IF the configure script does look in "/usr/share/pkgconfig" ONLY for xorg-server.pc, it will now "find" it - while it actually finds only a "symlink" to /usr/lib/pkgconfig/xorg-server.pc
Hopefully some of this helps...!
Note though that the most of the above is Fedora centric, so it might not work on your system, or might not work at all, period. Your mileage may vary.