![]() |
dbus scratchbox problem
Hello, when trying to do a:
Code:
GtkWidget* OpenDialog; Code:
process 25084: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory Code:
Couldn't get main dbus connection: Failed to execute dbus-launch to autolaunch D-Bus session The error i get now is: Code:
qemu: Unsupported syscall: 264 The code works well on my n800 with os2008, I'm getting this problem only in scratchbox. Any idea how to solve this? Thank you very much :) |
Re: dbus scratchbox problem
How are you launching the app? Have you tried launching like this :
run-standalone.sh ./myapp I think that sets up some environment variables which dbus might be needing. |
Re: dbus scratchbox problem
yup, I'm lunching it with run-standalone.sh all the time :/
(OK, I tried without it, now, but it's acting the same) |
Re: dbus scratchbox problem
assume you also ran "af-sb-init.sh start" before you began?
|
Re: dbus scratchbox problem
Yes of course :)
As I said File->Open in MaemoPad under the emulator doesn't work either :/ Maybe the errors when starting it could help: Code:
[sbox-CHINOOK_ARMEL: ~] >export DISPLAY=:2 (I can see the GUI of the firmware and I can see the programs running fine, gtk works just fine, exept this :/ |
Re: dbus scratchbox problem
have you tried with the x86 target?
|
Re: dbus scratchbox problem
Quote:
Could you explain why it's so? Do I need to change targets all the time when compiling for the emulator or for the Nokia or dbus should normally work with an armel target too? Many thanks :) |
Re: dbus scratchbox problem
From what I understood, x86 target is supposed to work for pretty everything (that doesn't play with low level stuff) and is aimed at UI/Integration testing with the help of an IDE on your PC.
Armel qemu support is not sufficient (?) for running armel GUI apps on your PC. It's only good for building and sending to the device. For specific d-bus handling I don't know. D-bus by itself could work but everything around, I'm not sure. |
Re: dbus scratchbox problem
OK, thank you for the help and the explanation :)
|
Re: dbus scratchbox problem
Quote:
The difference is my app previously runing on Maemo 3.x well. When I update to maemo 4.0 chinook, modify something such as hildon lib..., compling successfully, but can't run-standalone with it. The error is: Code:
D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory Thanks, |
All times are GMT. The time now is 14:27. |
vBulletin® Version 3.8.8