You are not logged in.

#1 2012-04-24 06:00:23

ojensen5115
Member
From: Austin, TX
Registered: 2012-02-18
Posts: 22

[SOLVED] I would very much like to install HAL

I've been trying to get HAL installed for about a week now. I get that we're "not supposed" to use it anymore and that it's been deprecated and all that, but it's necessary for things like DRM flash video (i.e. Amazon Instant Video) and Google Talk-Plugin video (i.e. google+ hangouts, etc), so I'd really like to get it installed on my machine.

I managed to find it in the "kde-sunset" overlay, but it fails with

In file included from addon-generic-backlight.c:38:0:
/usr/include/glib-2.0/glib/gmain.h:21:2: error: #error "Only <glib.h> can be included directly."

Trying my luck on pretty much everything listed at http://gpo.zugaina.org/sys-apps/hal/ChangeLog either fails getting the gentoo patches when making the digest, or fails during compilation with the same error.

I'm pretty much at the end of my rope. How do I get this thing installed?

Last edited by ojensen5115 (2012-04-25 16:50:21)


If you would be
Unloved and forgotten
Be reasonable

Offline

#2 2012-04-25 16:50:08

ojensen5115
Member
From: Austin, TX
Registered: 2012-02-18
Posts: 22

Re: [SOLVED] I would very much like to install HAL

I got it installed in the end. For anyone else in my position (or who just really wants to watch amazon video streaming):

step 1: grab the code

git clone http://cgit.freedesktop.org/hal-info/
git clone http://cgit.freedesktop.org/hal/

step 2: install hal-info

cd hal-info
./autogen
make
make install

step 3: fix the compile errors
you need to replace all "#include <glib/gmain.h>" with "#include <glib.h>". You can do something like

find . -name "*.c" -print|xargs sed -i 's/#include <glib\/gmain\.h>/#include <glib\.h>/g'

do a quick 'grep -r "#include <glib/gmain.h>" *' -- for some reason the above command missed one so I fixed it manually

step 4: install it

./autogen.sh --disable-policy-kit
make && make install

step 5: copy over the dbus config files

cp hal.conf /etc/dbus-1/system.d/

step 6: run hald

hald

If you would be
Unloved and forgotten
Be reasonable

Offline

Board footer

Powered by FluxBB