Build of Qt 4.8.0 RC1 fails to produce libQtDBus
-
Hello,
I'm stuck on this one... I downloaded the source code for Qt 4.8.0 RC1 and followed the online instructions to build and install it. As far as I can see, there were no errors, and the libraries were installed into /usr/local/Trolltech/Qt-4.8.0/lib. But when I tried to recompile my application, I received this error:
/usr/lib/i386-linux-gnu/libQtDBus.so.4:-1: error: undefined reference to `QMetaCallEvent::QMetaCallEvent(int, QObject const*, int, int, int*, void**, QSemaphore*)'
The linker is evidently trying to link an older, incompatible version of libQtDBus. This is because it is not finding libQtDBus.so.4.8.0, which is missing from /usr/local/Trolltech/Qt-4.8.0/lib. Apparently this library was not generated when I built Qt 4.8.0.
I am running Qt Creator 2.3.1 on Ubuntu 11.10.
I would appreciate any suggestions about how to get libQtDBus.so.4.8.0 to be generated properly when I build 4.8.0.
Thanks
-
Hello,
I have the same problem. Any idea?
Thanks
-
Yes: I analyzed the compiler output and found that it was missing the header files for DBus (dbus.h, etc.). So, I used apt-get to install the package libdbus-1-dev, and that installed the header files into /usr/include/dbus-1.0/dbus/. I think I had to add that path to the include paths for the project, but I forget exactly what I did; it was a couple weeks ago, before my system crashed and I lost that work, so I will have to do it again to relearn the exact steps I used. I will post an update when I get back to where I was a couple weeks ago.
-
Ok, I have libdbus-1-dev installed but the Makefile does not include the correct paths. When I add the paths manually I get other compile errors. I think something else is missing,
-
Some other packages were missing on my system. I got the list of packages needed to build Qt from the control file in the qt4-x11 4.8.0 source package from the debian experimental release