
You are not logged in.
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
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 installstep 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 installstep 5: copy over the dbus config files
cp hal.conf /etc/dbus-1/system.d/step 6: run hald
haldIf you would be
Unloved and forgotten
Be reasonable
Offline