eroen edited this page Nov 30, 2013 · 28 revisions

How to install glc


If you don't have layman installed, you should emerge and configure it:

emerge layman
echo "source /usr/portage/local/layman/make.conf" >> /etc/make.conf

Official overlay

For gentoo users there is an official portage overlay hosted on github. To install it, use layman:

layman -f -a glc -o ''

Currently (2012-07-08) the xml description points to what appears to be a defunct mirror of the same overlay (at git:// In addition, all of the non-live ebuilds point to a non-existant source file mirror ( & c.), which causes fetching failures.

Unofficial overlay

An unofficial, user maintained fork of the overlay, which is up to date as of 2012-07-08 but might become out of sync at any time, can similarly be installed with layman:

layman -f -a glc -o ""

If you are not running the testing branch globally, you need to accept unstable keywords for glc, packetstream and elfhacks:

echo "media-video/glc
dev-libs/elfhacks" >> /etc/portage/package.accept_keywords

Finally, you can emerge glc just like any other package:

emerge glc

Arch Linux

There are regular release and live git packages for glc.

Arch Linux 64bit

Install the following dependencies to allow the install of the 32bit libraries as root or sudo:

pacman -S gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-glibc

Then install from build script for non-gentooers (again as root or sudo):

chmod a+x

to ensure glc will successfully run after reboot include the following line in you .bashrc file in your home folder:

export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/lib64:/usr/lib32"

Other distributions

There is a build script for non-gentooers:

chmod a+x

Once you have installed glc you might want to know how to Capture.

Ubuntu (and derivatives)


A ppa with packages for glc and the required libraries are available at

you can install it with:

  • sudo add-apt-repository ppa:arand/ppa
  • sudo apt-get update
  • sudo apt-get install glc

Source for packaging is available at

(Report packaging bugs there ;)

From source

Ubuntu users need following packages installed in order to compile glc:

sudo apt-get install build-essential cmake libx11-dev libxxf86vm-dev libgl1-mesa-dev libasound2-dev libpng12-dev

Additionally on 64-bit systems following commands are necessary:

sudo apt-get install gcc-multilib
sudo ln -s /usr/lib32/ /usr/lib32/
sudo ln -s /usr/lib32/ /usr/lib32/
sudo ln -s /usr/lib32/ /usr/lib32/
sudo ln -s /usr/lib32/ /usr/lib32/
sudo ln -s /usr/lib32/ /usr/lib32/

Note that as of Ubuntu 11.10 64-bit (possibly before), you only need to do - the others are already existing files/links.

After Building

In newer versions (11.10, possibly before), you must link the /usr/lib64 versions of the built libraries (or lib32, if you're trying to run the 32-bit version - I did not test this, so I'm not sure it's necessary on 32-bit) to /usr/lib as follows (substitute path for wherever you built them, I built them in the /usr tree):

sudo ln -s /usr/lib64/ /usr/lib/
sudo ln -s /usr/lib64/ /usr/lib/
sudo ln -s /usr/lib64/ /usr/lib/
sudo ln -s /usr/lib64/ /usr/lib/
sudo ln -s /usr/lib64/ /usr/lib/
sudo ln -s /usr/lib64/ /usr/lib/
sudo ln -s /usr/lib64/ /usr/lib/
sudo ln -s /usr/lib64/ /usr/lib/
sudo ln -s /usr/lib64/ /usr/lib/
sudo ln -s /usr/lib64/ /usr/lib/
sudo ln -s /usr/lib64/ /usr/lib/
sudo ln -s /usr/lib64/ /usr/lib/

glc-play looks for the .so.0 variants, while glc-capture looks for the plain .so variants.

This could probably be avoided with the right linker flags (seems to be hardcoded to lib rather than lib64 and lib32 as on 64-bit *buntu), but I (Yushatak) am not proficient enough with C/C++ compilation to solve it myself.


For Pardus 2011 users there is a custom repo which contains glc, elfhacks, and packetstream. To use this repo and install glc:

sudo pisi ar happy-kitty
sudo pisi em glc

Fedora x86_64

Some additional tricks were required to get glc compiling correctly under Fedora 64-bit. Firstly, you'll need to get the system to stop complaining about gcc-multilib. Multilib should already be installed and working on Fedora, but you'll probably need the 32-bit development tools for the script to compile correctly. The command:

yum install glibc-devel.i686

should take care of that.

You'll need to make a couple changes to the build script, firstly by changing the GIT_CLONE and GIT_PULL variables under the gitfetch() function (line 39 or so) to this:

 GIT_CLONE=`git clone`
 GIT_PULL=`git pull`

Which skips using the nonincluded dashed syntax variants of the git command. Then, edit the line around 117:

GIT_CLONE=`which git-clone 2> /dev/null`

to this:

GIT_CLONE=`which git 2> /dev/null`

which will prevent the script from failing due to the lack of the git-clone command.

Then, you'll need to grab the 32-bit dependencies listed above in the Ubuntu section; my method was to simply execute:

yum provides */

Or similar for each of the unlocatable dependencies shown after attempting to compile (and shown above) and install the corresponding .i686 package to provide 32-bit variants of the necessary files. Depending on which package you get you might need to add an extra symbolic link or two (I had to for the nvidia version of that I grabbed) so check the /usr/lib folder to make sure everything is in its correct place. If you used a non-default installation directory be sure to listen to the installer and add the export lines to your .bashrc so you can run glc from anywhere easily.

Slackware 32/64

Like the above instructions, download the script.


In the same directory you downloaded the create a file called diff-glc-build. Cut and paste the following into that file.

Because the code tags suck, the diff has been placed on pastebin for your convenience. :D

Alternatively you can download it like this as well.

wget -O diff-glc-build

Now to patch the file with the diff.

patch -p1 < diff-glc-build

Pastebin wasn't letting me have the linebreak that is at the end of the actual diff file i created so you will get patch warnings.

(Stripping trailing CRs from patch.)
patching file
Hunk #12 succeeded at 337 with fuzz 1.

Ignore the above errors and execute the build script.

chmod a+x

This will create a slackware package and put it in the /tmp directory. Go ahead and install like you normally would!

upgradepkg --reinstall --install-new /tmp/glc-git-0.5.8-x86_64-1_AC.tgz

Enjoy using glc!

**Feel free to make a slackbuild for this, I was just too lazy. :D -agentc0re