PDA

View Full Version : uninstalling Qt 3.1 and loading qt4.4.3



Amrita Singh
14th October 2008, 07:06
hello members

I have preloaded Qt 3.1 coming free in red hat linux kernel 2.4.I want to load Qt 4.4.3.

a)how to uninstall Qt 3.1. I tried by

rpm -e qt-devel and related links to qt-designer,kdevelop

then i uninstalled and Qmake is not working.

b)how to load qt-x11-opensource-src-4.4.3.tar trial version downloaded from trolltech site.

c)names of packages to uninstall Qt3.1 in a better way.

please suggest better method to install and uninstall Qt .

regards Amrita

montylee
14th October 2008, 13:40
For uninstalling Qt 3, first try to find all installed rpms of Qt 3. You can use the following command to find Qt 3 rpms:


$ rpm -qa |grep -i qt

This will list all Qt rpms. Then you can use rpm -e option to uninstall the rpms.

For installing Qt 4.4.3, try to find a compile version of Qt from the internet. But it might be difficult to get a compiled version since you are using an old kernel and possibly a old version of Linux.

If you want to build it from source, then following the commands given below:

$ tar -xvf qt-x11-opensource-src-4.4.3.tar
Thi will create a folder named qt-x11-*

$ cd qt-x11*
$ ./configure
$ make
$ sudo make install

You might get some errors during configure or make. If you get any errors, it would be because of missing dependencies. So, you'll have to install the dependencies first and then try compilating Qt again.

Amrita Singh
15th October 2008, 06:29
hello

from trolltech.com i have downloaded
qt-x11-opensource-src-4.4.3.tar.gz
tar -zxvf qt-x11-opensource-src-4.4.3.tar.gz
untarred it .


./configure
make install
***********************************
it ended with following errors
n file included from /usr/include/openssl/ssl.h:179,
from ssl/qsslsocket_openssl_p.h:79,
from ssl/qsslsocket_openssl_symbols_p.h:64,
from ssl/qsslcertificate.cpp:116:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,
from ssl/qsslsocket_openssl_p.h:79,
from ssl/qsslsocket_openssl_symbols_p.h:64,
from ssl/qsslcertificate.cpp:116:
/usr/include/openssl/kssl.h:132: 'krb5_enctype' is used as a type, but is not
defined as a type.
/usr/include/openssl/kssl.h:134: parse error before `*' token
/usr/include/openssl/kssl.h:147: parse error before `*' token
/usr/include/openssl/kssl.h:151: parse error before `*' token
/usr/include/openssl/kssl.h:153: parse error before `*' token
/usr/include/openssl/kssl.h:155: parse error before `*' token
/usr/include/openssl/kssl.h:157: parse error before `*' token
/usr/include/openssl/kssl.h:159: `krb5_context' was not declared in this scope
/usr/include/openssl/kssl.h:159: parse error before `,' token
/usr/include/openssl/kssl.h:160: `krb5_context' was not declared in this scope
/usr/include/openssl/kssl.h:160: parse error before `,' token
/usr/include/openssl/kssl.h:163: `krb5_timestamp' was not declared in this
scope
/usr/include/openssl/kssl.h:163: parse error before `,' token
/usr/include/openssl/kssl.h:165: parse error before `*' token
/usr/include/openssl/kssl.h:167: `krb5_enctype' was not declared in this scope
/usr/include/openssl/kssl.h:167: parse error before `,' token
make[1]: *** [.obj/release-shared/qsslcertificate.o] Error 1
make[1]: Leaving directory `/usr/local/qt-x11-opensource-src-4.4.3/src/network'
make: *** [sub-network-install_subtargets-ordered] Error 2

************************************
Again i tried
gmake confclean

./configure -no-openssl

make install
ended with following error

g++ -c -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN
-DQT_GUI_
LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED
-I../../
../../mkspecs/linux-g++ -I. -I../../../../include/QtCore
-I../../../../include/Q
tCore -I../../../../include/QtGui -I../../../../include/QtGui
-I../../../../incl
ude -I.moc/release-shared -I.uic/release-shared -o
.obj/release-shared/qtiffhand
ler.o qtiffhandler.cpp
qtiffhandler.cpp: In member function `virtual bool
QTiffHandler::read(QImage*)':
qtiffhandler.cpp:148: `TIFFReadRGBAImageOriented' undeclared (first use this
function)
qtiffhandler.cpp:148: (Each undeclared identifier is reported only once for
each function it appears in.)
make[3]: *** [.obj/release-shared/qtiffhandler.o] Error 1
make[3]: Leaving directory
`/usr/local/qt-x11-opensource-src-4.4.3/src/plugins/i
mageformats/tiff'
make[2]: *** [sub-tiff-install_subtargets] Error 2
make[2]: Leaving directory
`/usr/local/qt-x11-opensource-src-4.4.3/src/plugins/i
mageformats'
make[1]: *** [sub-imageformats-install_subtargets] Error 2
make[1]: Leaving directory
`/usr/local/qt-x11-opensource-src-4.4.3/src/plugins'
make: *** [sub-plugins-install_subtargets-ordered] Error 2
***************************************

please let me know i should download an rpm ....where is the problem

thanks

Amrita

montylee
15th October 2008, 09:44
the 1st error you are getting is because of openssl.
2nd error message might be coming as you might not have libtiff installed. Try compiling and installing libtiff first.

You can try installing using rpms but i doubt any rpms will be available for your old red hat kernel. Even with rpms you have to install the dependencies first.

If you are not able to build it from source, i'll advise you to use a new version of Linux like Fedora Core 8 or 9 which comes with Qt 4. So, you can install Qt 4 and other dependencies while installing the OS itself.

If you have a working internet connection i'll advise you to use Ubuntu as in Ubuntu you can easily install software using internet. The best part is that it automatically downloads and installs all dependencies.

Amrita Singh
15th October 2008, 10:37
hello

i would search for libtiff.my problem is my test bed is not having internet connection

other drivers developed are till today on 2.4 linux kernel ,my job is to work with Qt...working under constraints but never mind ...i will search the library.

thanks
Amrita

johnsu
9th May 2010, 05:26
the 1st error you are getting is because of openssl.
2nd error message might be coming as you might not have libtiff installed. Try compiling and installing libtiff first.

You can try installing using rpms but i doubt any rpms will be available for your old red hat kernel. Even with rpms you have to install the dependencies first.

If you are not able to build it from source, i'll advise you to use a new version of Linux like Fedora Core 8 or 9 which comes with Qt 4. So, you can install Qt 4 and other dependencies while installing the OS itself.

If you have a working internet connection i'll advise you to use Ubuntu as in Ubuntu you can easily install software using internet. The best part is that it automatically downloads and installs all dependencies.

As you said,how can i slove the first question.PS:I am install the qt4-x11;thanx

montylee
9th May 2010, 12:08
As you said,how can i slove the first question.PS:I am install the qt4-x11;thanx

can you post the exact error you are getting? For resolving thr krb5.h error in openssl, try this link:
http://www.raditha.com/linux/krb5.h.php

johnsu
15th May 2010, 14:50
thanx,i have sloved it by -no-openssl