LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Some <.pc> files are missing...how to rebuild them? (https://www.linuxquestions.org/questions/linux-general-1/some-pc-files-are-missing-how-to-rebuild-them-674259/)

me_and_linux 10-04-2008 05:02 PM

Some <.pc> files are missing...how to rebuild them?
 
Can someone help me with this...I've downloaded video driver but I can't compile it since <configure> script is using pkg-config to determinate libraries and headers.


Code:

dakt:/home/darijo/downloads/src/xf86-video-intel-2.4.2# ./configure
.
.
.
.
checking for XORG... configure: error: Package requirements (xorg-server xproto fontsproto  xineramaproto randrproto renderproto xextproto x11 xextproto) were not met:

No package 'xproto' found
No package 'fontsproto' found
No package 'xineramaproto' found
No package 'randrproto' found
No package 'renderproto' found
No package 'xextproto' found
No package 'x11' found
No package 'xextproto' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

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.

Here is the list of <.pc> files in /usr/lib/pkgconfig

Code:

dakt:/home/darijo/downloads/src/xf86-video-intel-2.4.2# ls /usr/lib/pkgconfig/
autoopts.pc        gnome-doc-utils.pc      shared-mime-info.pc
deskbar-applet.pc  gnome-mime-data-2.0.pc  xbitmaps.pc
fontutil.pc        gnome-screensaver.pc    xml2po.pc
gdict-1.0.pc      gnome-system-tools.pc  xorg-server.pc

All requested packages exists, but there are no <.pc> files to let pkg-config know that.
So how to create these files, without reinstalling these huge packages?

weibullguy 10-04-2008 05:17 PM

Did you install all the missing packages from source? If so, where did you install them? The default is the /usr/local hierarchy, so if you didn't specify some other prefix look there for the metadata files.

If you installed them from your distro's package repository, you'll need to install the development package for each one. The development package will be named the same with either -dev or -devel appended. Of course, you could install the Intel driver using your package manager too.

The way to create the files is to reinstall the packages from source (assuming this is what you did in the first place). The biggest package that you're missing is libX11. The protocol headers are pretty small. On my Athlon 5600+ it takes about 165 seconds to build and install libX11, the protocol headers take about 5 seconds each.

me_and_linux 10-04-2008 05:41 PM

Quote:

Originally Posted by weibullguy (Post 3300381)
Did you install all the missing packages from source? If so, where did you install them? The default is the /usr/local hierarchy, so if you didn't specify some other prefix look there for the metadata files.

If you installed them from your distro's package repository, you'll need to install the development package for each one. The development package will be named the same with either -dev or -devel appended. Of course, you could install the Intel driver using your package manager too.

The way to create the files is to reinstall the packages from source (assuming this is what you did in the first place). The biggest package that you're missing is libX11. The protocol headers are pretty small. On my Athlon 5600+ it takes about 165 seconds to build and install libX11, the protocol headers take about 5 seconds each.

Thanks, that solved my problem (installing xorg-dev package)!
Now it requests OpenGL headers...so I guess I should visit 3dmesa.org?

weibullguy 10-05-2008 10:01 AM

Quote:

Originally Posted by me_and_linux (Post 3300390)
Now it requests OpenGL headers...so I guess I should visit 3dmesa.org?

Or install the development package from your distro's repository.


All times are GMT -5. The time now is 07:26 AM.