Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
this afternoon i attempted to install some new software. promptly, ./configure fell over and told me --
checking for Qt... configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. Please check your installation!
boioioioing!!!! i was quite sure that qt2.2.2 would be installed with my system (it's mandrake 9). but alas. i went looking for the appropriate packages and i must confess i'm not sure what i'm looking for -- i found a qt3 rpm and a libqt3 rpm (i'm not that experienced) and allowed my package manager to install them. it worked.
i went back, deleted config.cache and ran ./configure again. no luck. i removed the qt2 rpms and added the path to the libqt-mt libraries in my /etc/ld.so.conf file. ran ./configure again. no luck.
so how the heck do i properly install QT? someone told me to change QTPATH etc. can anyone clarify/elaborate?
thanks a bunch ... i'm looking forward to being skilled enough to help others!
Mandrake 9.0 installs Qt-3.something to your system. The problem is that Qt-3.* and Qt-2.* are not binary compatible, so whatever software requires Qt-2.* won't run with Qt-3.*. The solution is the following:
Get qt-x11-2.2.2.tar.gz from ftp.trolltech.com/qt/source and put it into /usr/lib directory. Gunzip it, untar it (it should create some qt-x11-2.2.2 directory, or something like that) and compile it (I think it would be a good idea to compile it as static library, not a shared one). Sorry, I know this takes time, but I recommend not to install Qt-2.2.2 through RPM, since it will complain about Qt-3 already installed. After Qt-2 is compiled, set the QTDIR variable to point to /usr/lib/qt-x11-2.2.2 directory (or whatever was created when untarred) (use export QTDIR=/usr/lib/qt-x11-2.2.2/ ) and try to compile your application again. Don't make QTDIR permanently to point to this directory, otherwise other applications that use Qt-3 won't work. Good luck.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.