Re: DBus daemon not starting
It might be missing some libraries that were present in the previous directory.
Re: DBus daemon not starting
Thanks for taking the time to read through and respond, however, that does not solve the problem.
Subsequently, i tried copying the entire qt bin directory to another location and start it from there, still unsuccessfully.
There might be some settings, dependencies, etc. which i'm not aware of?
Re: DBus daemon not starting
If not the libs, then maybe it needs some plugins?
Re: DBus daemon not starting
Quote:
Originally Posted by
Khal Drogo
Thanks for taking the time to read through and respond, however, that does not solve the problem.
Subsequently, i tried copying the entire qt bin directory to another location and start it from there, still unsuccessfully.
There might be some settings, dependencies, etc. which i'm not aware of?
Did you try using a dependency walker?
Quote:
Originally Posted by
jacek
If not the libs, then maybe it needs some plugins?
I don't think DBus has any (mandatory) plugins.
Re: DBus daemon not starting
Yes i've tried using a dependancy walker, everything needed was there.
(btw. the port is here: http://winkde.org/pub/kde/ports/win3...ory/win32libs/ )
Maybe someone who used DBus under windows can tell me what are the must-needed files to run dbus-daemon from command prompt from a particular location? eg. E:/Deploy/PR1
I would appreciate it very much.
I have another DBus related question. Please advise whether i should make a new thread about this.
I intend to use a signal like the following with DBus:
Code:
void start
(int id,
const QString &name, Stuff stuff
);
The structure Stuff:
Code:
typedef struct
{
MY_TYPE type;
} Stuff;
I used dbusxml2cpp to achieve my needed interface and adaptor files. My problem is, that the slot connected to this signal does not get called. The problem must lie somewhere in the marshalling of my custom type, because the signal-slot mechanism through DBus works perfectly with Qt types.
I declared my struct and enum with Q_DECLARE_METATYPE. I also registered them on the DBus:
Code:
qDBusRegisterMetaType<Stuff>();
qDBusRegisterMetaType<MY_TYPE>();
I've also overridden the QDBusArgument << and >> operators, thusly:
Code:
{
arg.beginStructure();
arg << stuff.a << stuff.b << stuff.type;
arg.endStructure();
return arg;
}
{
arg.beginStructure();
arg << static_cast<int>(ct);
arg.endStructure();
return arg;
}
Similarly, the other way around.
I am trying to emit a signal the following way:
Code:
msg
= QDBusMessage::createSignal("/Pr1",
"com.trolltech.pr1",
"start");
msg << m_ID;
msg << m_name;
msg <<
QVariant::fromValue<Stuff>
(m_stuff
);
The slot in my other process doesn't get called.
What did i miss/done wrong?
Thanks in advance, there isn't an abundance of info or examples for using custom types with DBus, so i would appreciate any assistance.