[Qt-creator] Installing Qt 4.6
Christophe Meessen
christophe at meessen.net
Sat May 8 10:24:08 CEST 2010
Hello,
I've installed Qt on Ubuntu 10.04 by downloading the LGPL SDK.for
Linux/X11 64 bit.
The installation process did integrate correctly Qt in the Gnome
desktop, but the installation process is not complete.
As a result, compilation will fail with an obscure message about qmake
not found and debugging will also fail because some libQtCore library
could not be found.
This is weird because one can start QtCreator and run it right out of
the box. So it should know the path to qmake and the libraries if the
SDK is used. I would expect a fresh install provides a fully working Qt
development environment.
To solve this, one has to add some paths to Qt directories in the PATH
environment variables. This is documented nowhere.
What is weird is that Qt knows the path to it self, so why can't it
deduce the path to qmake and set the tools option defaults accordingly
if valid ?
Once this is solved, the next problem we hit is the weird gdb error
message which prevents to debug a program. Note that inexperienced users
may give up trying at this stage with a bad impression of Qt. This is
wrong because Qt is an excellent IDE and SDK. The only problem is in the
configuration.
Digging into the problem I found out gdb could not access the Qt dynamic
libraries. This is solved by adding the path to LD_LIBRARY_PATH, right ?
Again, this is documented nowhere. But anyway, this doesn't work. The
programs started with the gnome launcher get the LD_LIBRARY_PATH
environment variable erased. I tried to define it in /etc/profile.d,
.bashrc or .profile. Check this "bug" report :
https://bugs.launchpad.net/ubuntu/+bug/366728 for more information about
this. So the only solution I found was to add the path in
/etc/ld.so.conf.d/. There should be a better solution that would not
require superuser access, but I couldn't find it and didn't spend more
time on the problem since my primary goal is to get my work done.
PS: I was just trying to share my experience and help Andree. Why this
condescend attitude ?
--
Bien cordialement,
Ch. Meessen
More information about the Qt-creator-old
mailing list