2 Ocak 2013 Çarşamba

282. Mesa 9.0.1 (64 bit) on debian wheezy

To contact us Click HERE

This post is intended as a step towards building wine with libOSmesa. Apparently any version of libOSmesa lower than 9 is no good, and debian wheezy currently have version 8.

Unfortunately building the 32 bit version turns out to be more complex than just requesting it via --enable-32-bit, so I'll be making a post on a chrooted build of the missing wine libraries later. I've also noticed that libOSMesa is just a small part of Mesa -- this build overlaps a lot with mesa-common-dev as well.

Finally, I don't really have a good grasp over graphics on linux -- which means that I'm still confused by OpenGl, CL, Mesa etc.

As usual: I have a lot of packages installed on my standard compile node, so there are probably a lot of packages which are needed which I didn't notice. But here we go:


First you need to build e.g. libdrm 2.4.40 since wheezy and sid currently have v2.4.33 and you need 2.4.39 or newer.

sudo apt-get install libpciaccess-dev checkinstallwget http://cgit.freedesktop.org/mesa/drm/snapshot/libdrm-2.4.40.tar.gztar xvf libdrm-2.4.40.tar.gzcd libdrm-2.4.40/./autogen makesudo checkinstall

When you're asked for a description, type 'libdrm 2.4.40' and it should get the version number right.
(you could also build with --prefix and install it somewhere else but that makes things trickier later)

Make sure it installed correctly:
aptitude show libdrmPackage: libdrm                          New: yesState: installedAutomatically installed: noVersion: 2.4.40-1Priority: extraSection: checkinstallMaintainer: root@berylliumArchitecture: amd64Uncompressed Size: 733 kDescription: libdrm 2.4.40


Build OS mesa v.9.0.1.

sudo apt-get install flex bison libdrm-dev xutils-dev x11proto-gl-dev x11proto-dri2-dev libx11-xcb-dev libxcb-glx0-dev libxcb-dri2-0-dev libxcb-xfixes0-dev llvmcd ~/tmpwget ftp://ftp.freedesktop.org/pub/mesa/9.0.1/MesaLib-9.0.1.tar.gztar xvf MesaLib-9.0.1.tar.gzcd Mesa-9.0.1/./autogen.sh --enable-osmesamakesudo checkinstall
This package will be built according to these values: 0 -  Maintainer: [ root@beryllium ]1 -  Summary: [ Mesa 9.0.1 64 bit]2 -  Name:    [ mesa ]3 -  Version: [ 9.0.1 ]4 -  Release: [ 1 ]5 -  License: [ GPL ]6 -  Group:   [ checkinstall ]7 -  Architecture: [ amd64 ]8 -  Source location: [ Mesa-9.0.1 ]9 -  Alternate source location: [  ]10 - Requires: [  ]11 - Provides: [ mesa ]12 - Conflicts: [  ]13 - Replaces: [  ]
Some notes:
xutils-dev contains makedepend; x11proto-gl-dev is GLPROTO, x11proto-dri2-dev is DRI2PROTO
LLVM is needed for one step in the build process (gallium). I'm sure you can get around it, but I'm not too bothered.



Hiç yorum yok:

Yorum Gönder