[ubuntu-x] Can't build libgl1-mesa-dri from source?

Martin Olsson mnemo at minimum.se
Sat Feb 28 11:39:07 GMT 2009


Timo Aaltonen wrote:
> You are likely missing some build dependencies. Either use debuild which 
> should tell you what's missing. Then use 'apt-get build-dep mesa' to 
> install them. Or use pbuilder which uses a chroot to build, so you don't 
> have to mess with your installed system.


Thanks a lot Timo, I got it to work now (or at least the build process
runs a lot longer this time).

I think the build-depends on the packages are in fact broken. I ran
the apt-get build-dep command on both "mesa" and "libgl1-mesa-dri"
and it said I had everything (see verbatim log from my terminal below).
However, once I ran debuild as you said it did point out that I was
missing lesstif2-dev. After installing the lesstif2-dev package my
got past the nasty error.

----

mnemo at kingfish:~/src/mesa_debian_git/mesa$ sudo apt-get build-dep mesa
[sudo] password for mnemo:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mnemo at kingfish:~/src/mesa_debian_git/mesa$ sudo apt-get build-dep
libgl1-mesa-dri
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mnemo at kingfish:~/src/mesa_debian_git/mesa$ debuild -us -uc -b
  dpkg-buildpackage -rfakeroot -D -us -uc -b
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package mesa
dpkg-buildpackage: source version 7.0.3-7
dpkg-buildpackage: source changed by Julien Cristau <jcristau at debian.org>
dpkg-buildpackage: host architecture amd64
dpkg-checkbuilddeps: Unmet build dependencies: lesstif2-dev
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied;
aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1329:
dpkg-buildpackage -rfakeroot -D -us -uc -b failed
mnemo at kingfish:~/src/mesa_debian_git/mesa$



More information about the Ubuntu-x mailing list