LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What is my QT version ? (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-my-qt-version-139381/)

massai 01-27-2004 06:31 PM

QT error when trying to use ./configure. (was: What is my QT version ?)
 
Everyone seems to know what their QT version is. How do you people do that ?

What is the official way of checking for versions of something such as QT ?

Also when I try to instal (compile) a theme from kde-look.org the "./configure" command fails with an error:
Code:

checking for Qt... configure: error: Qt (>= Qt 3.0) (headers and libraries) not found
Hense, I am trying to figure my version of QT.

Any ideas ?

Many thanks


P.S. I am running KDE 3.1.5

jailbait 01-27-2004 07:02 PM

"Everyone seems to know what their QT version is. How do you people do that ?"

If you are using a rpm based distribution then try:
rpm -qi qt

Also you can look for /use/share/doc/qt* and the directory name should contain the version number.

"checking for Qt... configure: error: Qt (>= Qt 3.0) (headers and libraries) not found"
You may not have the corresponding qt-devel installed.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

massai 01-27-2004 09:16 PM

I am running Knoppix/Debian....
....as I am checking the directories it seems that there are two:
/usr/share/qt
/usr/share/qt3

Quote:

"checking for Qt... configure: error: Qt (>= Qt 3.0) (headers and libraries) not found"
You may not have the corresponding qt-devel installed.
After doing a search in Kpackage ther are several files with a name close to qt-xx-dev (or similar), but I do not see an exact match "qt-devel"

Does this mean that my QT is broken?
It is my understanding that QT comes as part of KDE (and these two go hand in hand). Should I be worried?
What would be the right steps to make sure QT is in tact and in harmony with KDE ?

Please go easy.... I am a newbie.


Thanks

mikshaw 01-27-2004 09:21 PM

I just means that you don't have qt3-devel installed. It's a separate package that is needed for compiling qt applications, but it's not necessary to run the base system.

massai 01-27-2004 09:47 PM

Ok I found a way to check the QT version.
...so this is what is installed right now:

Code:

root@ThisKnoppixBox:/# dpkg -l | grep qt
ii  gtk-engines-qt 0.26-1        QtPixmap GTK1.x theming engine
ii  libqt2        2.3.2-14      Qt GUI Library (runtime version)
ii  libqt3-compat- 3.2.3-2        Qt 1.x and 2.x compatibility includes
ii  libqt3-headers 3.2.3-2        Qt3 header files
ii  libqt3c102-mt  3.2.3-2        Qt GUI Library (Threaded runtime version)
ii  libqthreads-12 1.6.4-4        QuickThreads library for Guile
ii  qt3-designer  3.2.3-2        Qt3 Designer
ii  qt3-dev-tools  3.2.3-2        Qt3 development tools
ii  qtparted      0.3.2-1        A parted frontend using QT

where can I find and install the "qt-devel" ?

mikshaw 01-27-2004 10:40 PM

It looks like it's already installed...qt3 header files and Qt3 development tools?

Try "env | grep QTDIR" ....does anything come up?

massai 01-27-2004 11:21 PM

Quote:

Originally posted by mikshaw
It looks like it's already installed...qt3 header files and Qt3 development tools?

Try "env | grep QTDIR" ....does anything come up?

Yes, this is what happens:

Code:

root@ThisKnoppixBox:/# env | grep QTDIR
QTDIR=/usr/share/qt3
root@ThisKnoppixBox:/#

But, this only happens not because it wanted to, but because sometime earlier (while troubleshooting) I typed "export QTDIR=/usr/share/qt3"

However, the package still fails to compile:
"checking for Qt... configure: error: Qt (>= Qt 3.0) (headers and libraries) not found"

massai 01-28-2004 12:25 AM

UPDATE:

Did "apt-get instal libqt-dev"

The QT package list now looks like this:

Code:

ii  gtk-engines-qt 0.26-1        QtPixmap GTK1.x theming engine
ii  libqt-dev      2.3.2-14      Qt GUI development files
ii  libqt-mt-dev  2.3.2-14      Qt GUI development files (Threaded version)
ii  libqt2        2.3.2-14      Qt GUI Library (runtime version)
ii  libqt2-mt      2.3.2-14      Qt GUI Library (runtime threaded version)
ii  libqt3-compat- 3.2.3-2        Qt 1.x and 2.x compatibility includes
ii  libqt3-headers 3.2.3-2        Qt3 header files
ii  libqt3c102-mt  3.2.3-2        Qt GUI Library (Threaded runtime version)
ii  libqthreads-12 1.6.4-4        QuickThreads library for Guile
ii  qt2-dev-tools  2.3.2-14      Qt2 development tools
ii  qt3-designer  3.2.3-2        Qt3 Designer
ii  qt3-dev-tools  3.2.3-2        Qt3 development tools
ii  qt3-dev-tools- 3.2.3-2        Conversion utilities for Qt3 development
ii  qtparted      0.3.2-1        A parted frontend using QT

there is still an error when trying to use "./configure"
"checking for Qt... configure: error: Qt (>= Qt 3.0) (library qt-mt) not found"


If I reinstall KDE from scratch is this going to be resolved ?

If so, what is the cleanest way of re-installing KDE ?

massai 01-28-2004 01:15 PM

UPDATE:

I did "apt-get" for every qt3 package listed in the Debian page.
There was a point where "apt" decided to remove the whole KDE (I think because there were like 100 packages in the remove list)

Then I reinstalled KDE with "apt-get install KDE"

Now the QT seems resolved. The compiler no longer complains about QT.


All times are GMT -5. The time now is 02:32 PM.