maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   HAL trouble on scratchbox/SDK (https://talk.maemo.org/showthread.php?t=34523)

hqh 2009-11-15 12:56

HAL trouble on scratchbox/SDK
 
I'm having trouble getting a connection to HAL on scratchbox/Maemo5 SDK...

There is an example at http://www.share-linux.com/hal1.php (very similar to the one in the Maemo5 developer's guide).
When run, it fails at libhal_ctx_init with error message (null) on my scratchbox (x86 target) but works fine when compiled and run directly on the host ubuntu9.10.

The HAL daemon is supposed to work on the SDK, right? I even reinstalled scratchbox and the SDK (didn't help) after finding no search results about similar problems.
It seems that the daemon might have some trouble connecting to dbus... However, dbus itself seems to work as I am able to connect and send signals over it (to targets other than hal). Can anyone else get the above mentioned example to work or is it just me not mastering this?

hqh 2009-11-15 20:12

Re: HAL trouble on scratchbox/SDK
 
Anyone?

Seems that the code example mentioned earlier has nothing (?) to do with this. The hal daemon simply refuses to start.

Code:

[sbox-FREMANTLE_X86: ~] > fakeroot hald --daemon=no --verbose=yes
22:09:11.547 [I] hald.c:680: hal 0.5.12
22:09:11.547 [I] hald.c:681: using child timeout 250s
22:09:11.547 [I] hald.c:746: Will not daemonize
22:09:11.547 [I] hald_dbus.c:5421: local server is listening at unix:abstract=/var/run/hald/dbus-xcRBrabKnC,guid=984c376816a40995254e0e350000005b
22:09:11.547 [E] hald_dbus.c:5787: dbus_bus_get(): Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.


code177 2009-11-15 20:15

Re: HAL trouble on scratchbox/SDK
 
I have this same problem.

danielwilms 2009-11-17 07:56

Re: HAL trouble on scratchbox/SDK
 
Hi,

unfortunately HAL is not supposed to run inside scratchbox.

Cheers Daniel


All times are GMT. The time now is 11:56.

vBulletin® Version 3.8.8