Problem with configure and libqt-mt

Problem with configure and libqt-mt

Post by cryptopi » Mon, 13 May 2002 12:06:46



I am having problems with compiling any program for KDE3. I am using the Red
Hat rpms on a Red Hat 7.1 system.
Any help is appreciated.

This is the error I get during a configure...
checking for Qt... configure: error: Qt (>= Qt 3.0.2) (library qt-mt) not
found. Please check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!

"ldconfig --verbose" produces the following
/usr/lib/qt-3.0.3/lib:
        libqxt.so.0 -> libqxt.so.0.3.0
        libqui.so.1 -> libqui.so.1.0.0
        libqt.so.3 -> libqt.so.3.0.3
        libqt-mt.so.3 -> libqt-mt.so.3.0.3
        libeditor.so.1 -> libeditor.so.1.0.0
/usr/lib/qt2/lib:
        libqxt.so.0 -> libqxt.so.0.3.0
        libqutil.so.1 -> libqutil.so.1.0.0
        libqt.so.2 -> libqt.so.2.3.1
        libqt-mt.so.2 -> libqt-mt.so.2.3.1

 
 
 

Problem with configure and libqt-mt

Post by ne.. » Mon, 13 May 2002 22:31:11



> I am having problems with compiling any program for KDE3. I am using the Red
> Hat rpms on a Red Hat 7.1 system.
> Any help is appreciated.

> This is the error I get during a configure...
> checking for Qt... configure: error: Qt (>= Qt 3.0.2) (library qt-mt) not
> found. Please check your installation!
> For more details about this problem, look at the end of config.log.
> Make sure that you have compiled Qt with thread support!

> "ldconfig --verbose" produces the following
> /usr/lib/qt-3.0.3/lib:
>         libqxt.so.0 -> libqxt.so.0.3.0
>         libqui.so.1 -> libqui.so.1.0.0
>         libqt.so.3 -> libqt.so.3.0.3
>         libqt-mt.so.3 -> libqt-mt.so.3.0.3
>         libeditor.so.1 -> libeditor.so.1.0.0

Stab in the dark. What does your QTDIR and LD_LIBRARY_PATH
look like?

[...]
--
Registered Linux User # 125653 (http://counter.li.org)
Certified: 40% bastard, 22% of which is tard.
http://www.thespark.com/bastardtest

 
 
 

Problem with configure and libqt-mt

Post by cryptopi » Tue, 14 May 2002 01:20:35



>> This is the error I get during a configure...
>> checking for Qt... configure: error: Qt (>= Qt 3.0.2) (library qt-mt) not
>> found. Please check your installation!
>> For more details about this problem, look at the end of config.log.
>> Make sure that you have compiled Qt with thread support!

>> "ldconfig --verbose" produces the following
>> /usr/lib/qt-3.0.3/lib:
>>         libqxt.so.0 -> libqxt.so.0.3.0
>>         libqui.so.1 -> libqui.so.1.0.0
>>         libqt.so.3 -> libqt.so.3.0.3
>>         libqt-mt.so.3 -> libqt-mt.so.3.0.3
>>         libeditor.so.1 -> libeditor.so.1.0.0
> Stab in the dark. What does your QTDIR and LD_LIBRARY_PATH
> look like?

QTDIR=/usr/lib/qt3 (which is a symbolic link to qt-3.0.3)
LD_LIBRARY_PATH is blank
 
 
 

Problem with configure and libqt-mt

Post by ne.. » Tue, 14 May 2002 02:01:15




>>> This is the error I get during a configure...
>>> checking for Qt... configure: error: Qt (>= Qt 3.0.2) (library qt-mt) not
>>> found. Please check your installation!
>>> For more details about this problem, look at the end of config.log.
>>> Make sure that you have compiled Qt with thread support!

>>> "ldconfig --verbose" produces the following
>>> /usr/lib/qt-3.0.3/lib:
>>>         libqxt.so.0 -> libqxt.so.0.3.0
>>>         libqui.so.1 -> libqui.so.1.0.0
>>>         libqt.so.3 -> libqt.so.3.0.3
>>>         libqt-mt.so.3 -> libqt-mt.so.3.0.3
>>>         libeditor.so.1 -> libeditor.so.1.0.0
>> Stab in the dark. What does your QTDIR and LD_LIBRARY_PATH
>> look like?

> QTDIR=/usr/lib/qt3 (which is a symbolic link to qt-3.0.3)
> LD_LIBRARY_PATH is blank

Even tho ldconfig has /usr/lib/qt-3.0.3/lib, I would set
LD_LIBRARY_PATH so that it has /usr/lib/qt-3.0.3/lib.

--
Registered Linux User # 125653 (http://counter.li.org)
Certified: 40% bastard, 22% of which is tard.
http://www.thespark.com/bastardtest

 
 
 

Problem with configure and libqt-mt

Post by Germain Garan » Tue, 14 May 2002 06:42:12


before compiling :

export QTDIR=/usr/lib/qt-3.0.3
export KDEDIR=/your/kde3/root/dir

or

./configure --prefix=/your/kde3/root --with-qt-dir=/usr/lib/qt-3.0.3

 
 
 

Problem with configure and libqt-mt

Post by cryptopi » Tue, 14 May 2002 12:00:25



>>> Stab in the dark. What does your QTDIR and LD_LIBRARY_PATH
>>> look like?

>> QTDIR=/usr/lib/qt3 (which is a symbolic link to qt-3.0.3)
>> LD_LIBRARY_PATH is blank
> Even tho ldconfig has /usr/lib/qt-3.0.3/lib, I would set
> LD_LIBRARY_PATH so that it has /usr/lib/qt-3.0.3/lib.

Well, I tried that and it didn't work. So, I downloaded the source and
compiled it myself. Everything is working now. Strange that the rpm didn't
just wouldn't do it for me. I hadn't found any evidence of anybody else
having a problem.
 
 
 

Problem with configure and libqt-mt

Post by Rolf Magnu » Tue, 14 May 2002 20:26:57



> Well, I tried that and it didn't work. So, I downloaded the source and
> compiled it myself. Everything is working now. Strange that the rpm didn't
> just wouldn't do it for me. I hadn't found any evidence of anybody else
> having a problem.

Sure that you didn't forget to install the devel package?
 
 
 

Problem with configure and libqt-mt

Post by Sinan Kara » Wed, 15 May 2002 15:12:44




> > Well, I tried that and it didn't work. So, I downloaded the source and
> > compiled it myself. Everything is working now. Strange that the rpm didn't
> > just wouldn't do it for me. I hadn't found any evidence of anybody else
> > having a problem.

> Sure that you didn't forget to install the devel package?

I am getting the exact same message. I am using SuSE 8.0.

At first I was using the stock g++, unfortunately, I could not get
exceptions to work, no matter how I configured
the project options. So I decided to try g++3.0. And it started
complaining about lib qt-mt.

 All the libraries are there. /usr/lib/qt3 points 3.0.3 and libqt-mt.so
points to libqt-mt.so.3 ....
QT_VERSION is 3.0.3 in the qglobal.h file. and there is no other QT_VERSION
anywhere else.

 Yet, it complains that (lib)qt-mt is not found.....

 I am at a loss....

sinan

 
 
 

Problem with configure and libqt-mt

Post by Germain Garan » Thu, 16 May 2002 02:26:45



> At first I was using the stock g++, unfortunately, I could not get
> exceptions to work, no matter how I configured
> the project options. So I decided to try g++3.0.

beware that if you use a different compiler than stock, you must recompile
ALL your c++ libraries/applications from scratch.
C++ ABIs aren't compatible from one compiler version to
another.
 
 
 

Problem with configure and libqt-mt

Post by Sinan Kara » Thu, 16 May 2002 13:10:42




[...]
> beware that if you use a different compiler than stock, you must recompile
> ALL your c++ libraries/applications from scratch.
> C++ ABIs aren't compatible from one compiler version to
> another.

Yep, that's what I found out today. Compiled and installed qt from sources.
Everything compiled but link didn't work with SuSE KDE 3.

 So I am back to stock everything. I guess I have to figure out why
exceptions don't work...

 Sinan

 
 
 

Problem with configure and libqt-mt

Post by Rolf Magnu » Thu, 16 May 2002 18:53:15



> Yep, that's what I found out today. Compiled and installed qt from
> sources. Everything compiled but link didn't work with SuSE KDE 3.

>  So I am back to stock everything. I guess I have to figure out why
> exceptions don't work...

Are you trying to use exceptions in self-written KDE or Qt programs? KDE
programs are by default compiled with -no-g++-exceptions, because neither
Qt not KDE uses them and because they're damn expensive wrt memory usage.
 
 
 

Problem with configure and libqt-mt

Post by Sinan Kara » Fri, 17 May 2002 06:16:14




> > Yep, that's what I found out today. Compiled and installed qt from
> > sources. Everything compiled but link didn't work with SuSE KDE 3.

> >  So I am back to stock everything. I guess I have to figure out why
> > exceptions don't work...

> Are you trying to use exceptions in self-written KDE or Qt programs? KDE
> programs are by default compiled with -no-g++-exceptions, because neither
> Qt not KDE uses them and because they're damn expensive wrt memory usage.

 It was self-written  on Solaris using pccts/antlr. It is about
300,000 lines of code ( with about a 30 meg executable. ) . Original
code was not gui driven, but
command line. It is a huge tree traversal based code. So exceptions
are very heavily used ( so is pthreads). Originally I had also used
Rogue Wave tools.h++
however that I've already converted to stl and boost.

Sinan

 
 
 

Problem with configure and libqt-mt

Post by cryptopi » Sat, 18 May 2002 05:54:21




>> Well, I tried that and it didn't work. So, I downloaded the source and
>> compiled it myself. Everything is working now. Strange that the rpm
>> didn't just wouldn't do it for me. I hadn't found any evidence of anybody
>> else having a problem.

> Sure that you didn't forget to install the devel package?

Yes.


qt2-Xt-2.3.1-2
qt-ODBC-3.0.3-5
qt-3.0.3-5
qt2-2.3.1-2
qt-MySQL-3.0.3-5
qt-static-3.0.3-5
qt2-static-2.3.1-2
qt2-devel-2.3.1-2
qt-designer-3.0.3-5
qt-PostgreSQL-3.0.3-5
qt2-designer-2.3.1-2
qt-devel-3.0.3-5     <<<< There it is
qt-Xt-3.0.3-5