[Openchrome-users] ubuntu compiling problem

Michael Wang mwang
Sun Dec 23 12:39:56 PST 2007


Jonas tried compile openchrome experimental branch, but get
an error that certain packages are not found.

I had the same problem. I figured out that the
the packages is checked in the configure file by this command:

  # pkg-config --exists --print-errors \
    "xorg-server xproto xvmc fontsproto libdrm"

This command will return zero if ALL the packages are found,
and 1 if one or more packages are not found.

Alternatively, one can use "pkg-config --list-all" commands
to find what packages are installed, and what are not.

The "pkg-config packages", in the lack of better words, are different
from RPM packages. I could not figure out what RPM packages that
provide these packages that I need to install, if some one knows,
please share it with me.

But by trial and errors, I am able to install the right RPM packages.
Once the packages are in the system, I can find the correlation
between the two packages. The steps are follows:

(1) The /usr/lib/pkgconfig/*.pc /usr/share/pkgconfig/*.pc
record what "pkg-config packages" are installed, this is what
pkg-config reads. Find the *.pc file that has the "pkg-config package".
For example:

  # grep -il "Name: xorg-server" /usr/lib/pkgconfig/*.pc   \
                                 /usr/share/pkgconfig/*.pc
  /usr/lib/pkgconfig/xorg-server.pc

(2) Use rpm command to find what package provides the file:

  # rpm -q -f /usr/lib/pkgconfig/xorg-server.pc
  xorg-x11-server-sdk-1.3.0.0-36.fc8

The results are as follows:

xorg-server => /usr/lib/pkgconfig/xorg-server.pc
               xorg-x11-server-sdk-1.3.0.0-36.fc8

xproto      => /usr/share/pkgconfig/xproto.pc
               xorg-x11-proto-devel-7.3-3.fc8

xvmc        => /usr/lib/pkgconfig/xvmc.pc
               libXvMC-devel-1.0.4-3.fc8

fontsproto  => /usr/share/pkgconfig/fontsproto.pc
               xorg-x11-proto-devel-7.3-3.fc8

libdrm      => /usr/lib/pkgconfig/libdrm.pc
               libdrm-devel-2.3.0-7.fc8

I am on Fedora 8. I hope the results can bring you one step
closer to the truth.

PS: Since I am here already, I have a off topic on xine. Has anyone
compiled a working version of xine on Fedora 8?

I compiled and installed xine-lib-1.1.8, compiled and installed
xine-ui-0.99.5 on Fedora 8, but the resulting xine binary can not play any
videos. The error message is "there is no input plugin to handle ...".

The steps I used is the same as on Fedora 6 where it works. I installed
xine package from livna which also works. The steps I used is documented
below, I wonder what could be the cause.

echo "** install xine-lib **"

bzip2 -dc xine-lib-1.1.8.tar.bz2 | tar -xf -
(
cd xine-lib-1.1.8
./configure --prefix=/apps01/xine
make
make install
)

echo "** install xine-ui **"

gzip -dc xine-ui-0.99.5.tar.gz | tar -xf -
(
cd xine-ui-0.99.5
./configure --prefix=/apps01/xine PKG_CONFIG_PATH=/apps01/xine/lib/pkgconfig
perl -i.old -pe "s:-L/apps01/xine/lib -lxine:-L/apps01/xine/lib -Wl,-R,/apps01/xine/lib -lxine:" src/aaui/Makefile src/fb/Makefile src/xitk/Makefile
make
make install
)




More information about the Openchrome-users mailing list