Compiling the source code on Debian

Compiling from source on Debian Etch


"This is a serious work in progress."

Also have a look at https://help.ubuntu.com/community/OpenChrome

Compiling the modular driver


These packages will probably already be installed by default:

subversion
build-essential
gcc

You'll need the following packages installed to get the build scripts to configure:

automake1.9
libtool
pkg-config
libxvmc-dev
xserver-xorg-dev
x11proto-fonts-dev
x11proto-randr-dev
x11proto-render-dev
x11proto-xf86dri-dev
libdrm-dev

Ensure that you are using automake1.9 - otherwise you will get errors later:
update-alternatives --config automake

And then a couple OpenGL-related dependencies will pop up during compilation:

x11proto-gl-dev
libgl1-mesa-dev

To keep everything clean, I highly recommend that you use GNU stow:

stow


For extra super lazy convenience, say this:
sudo aptitude install $(cat)
and then cut and paste the above lists into your terminal and hit enter, followed by CTRL-D.

To check out and compile the code:
mkdir openchrome
cd openchrome
svn co http://svn.openchrome.org/svn/trunk
cd trunk
BUILD_DATE=$(date +%Y%m%d)
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig/ ./autogen.sh --prefix=/usr/stow/openchrome-trunk-$BUILD_DATE
make

Go make some tea! I like licorice, cardamom, and cayenne!

sudo make install
cd /usr/stow
sudo stow openchrome-trunk-$BUILD_DATE

Huzzah!


stow conflict?

Note: if you had a previous version of the driver installed prior to this compilation procedure (e.g. the via driver that shipped with your etch xorg server) then stow may complain about conflicting files. (It won't overwrite the original driver libraries). To fix this, you'll have to move the conflicting files out of the way (or rm them if you're brave). You can use the -c option to list all the conflicting files. (See "man stow")


Again, this is a "HUGE" work in progress.
health insurance quotes auto insurance quotes insurance price quotes
online doctor reviews
criminal justice online

Created by: goatcheese last modification: Thursday 19 of August, 2010 [18:46:20 UTC] by tammyl

The original document is available at http://wiki.openchrome.org/tikiwiki/tiki-index.php?page=Compiling%20the%20source%20code%20on%20Debian