LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   issues with qt when installing kile (https://www.linuxquestions.org/questions/linux-software-2/issues-with-qt-when-installing-kile-60382/)

adriaanbw 05-17-2003 09:58 PM

issues with qt when installing kile
 
hi everyone,
linux n00bie here and really need your help.

i have redhat 8 running, and am trying to install kile (http://soliton.science.uva.nl/~wijnhout/Kite/). I can't find any rh8 rpm's that work so i thought i would give the src a go.

so, the INSTALL file tells me to type:
./configure --prefix=path to KDE3 (/usr or /opt/kde3 generally) --with-qt-dir=path to the QT3 library (/usr/lib/qt3 generally)

which i think translates to:
./configure --prefix=/usr --with-qt-dir=/usr/lib/qt3

I get the following error message:
configure: error: Qt (>= Qt 3.0.3) (headers and libraries) not found.

so i navigated to /usr/lib/ and i find that i have qt-3.0.5.
so what is the go with that?? how can i fix this issue?

PS. i have had this same problem with other programs (which i still cannot get to work) except that needed qt-2.2.1

thanks

bulliver 05-17-2003 10:31 PM

But is the library in /usr/lib/qt3? Perhaps it is /usr/lib/qt .
What is the output of 'ls /usr/lib/q*'

Try 'echo $QTDIR' and use the result (with '/lib' tacked on) as the argument to --with-qt-dir=

adriaanbw 05-17-2003 11:03 PM

ok the output of 'ls /usr/lib/q*' is:

/usr/lib/qt2:
lib

/usr/lib/qt-2.3.1:
lib

/usr/lib/qt3:
bin etc lib plugins

/usr/lib/qt-3.0.5:
bin etc lib plugins

/usr/lib/qt3-gcc3.2:
bin etc lib plugins

i have tried tacking the /lib part on but its still fails!!
so infuriating. it also tells me to looking in config.log for further details, which contains this at the bottom (sorry, large dump - i have placed ********* in front of the lines i think might be causing the issue):

configure:21147: checking for Qt
configure: 21214: /usr/lib/qt3/lib/include/qstyle.h
configure: 21214: /usr/lib/qt3/include/qstyle.h
configure: 21214: /usr/lib/qt3/qstyle.h
configure: 21214: /usr/lib/qt/include/qstyle.h
configure: 21214: /usr/lib/qt/qstyle.h
configure: 21214: /usr/local/qt/include/qstyle.h
configure: 21214: /usr/include/qt/qstyle.h
configure: 21214: /usr/include/qstyle.h
configure: 21214: /usr/X11R6/include/X11/qt/qstyle.h
configure: 21214: /usr/X11R6/include/qt/qstyle.h
configure: 21214: /usr/X11R6/include/qt2/qstyle.h
configure: 21214: /usr/X11R6/include/qstyle.h
configure:21324: rm -rf SunWS_cache; g++ -o conftest -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -INO -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -L/usr/lib/qt3/lib/lib -L/usr/X11R6/lib conftest.cc -lqt-mt -lpng -lz -lm -ljpeg -ldl -lXext -lX11 -lSM -lICE -lresolv -lpthread 1>&5
conftest.cc:2:21: qglobal.h: No such file or directory
conftest.cc:3:26: qapplication.h: No such file or directory
conftest.cc:4:21: qcursor.h: No such file or directory
conftest.cc:5:27: qstylefactory.h: No such file or directory
conftest.cc:6:34: private/qucomextra_p.h: No such file or directory
***************conftest.cc:7:8: warning: "QT_VERSION" is not defined
conftest.cc:8:2: #error 1
conftest.cc: In function `int main()':
conftest.cc:12: `QStyleFactory' undeclared (first use this function)
conftest.cc:12: (Each undeclared identifier is reported only once for each
function it appears in.)
conftest.cc:12: parse error before `::' token
conftest.cc:13: `QCursor' undeclared (first use this function)
configure:21327: $? = 1
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qcursor.h>
#include <qstylefactory.h>
#include <private/qucomextra_p.h>
***************#if ! (QT_VERSION >= 303)
#error 1


what do you make of this???
can i simply set a variable called QT_VERSION to something like 305 to match my version number??
how do i do this??

bulliver 05-17-2003 11:22 PM

You have 5 different versions of qt installed? Or are some symlinks? It seems to be confusing the ./configure script, because it's finding multiple copies of the same file. I would remove all the older versions of qt. It also appears that you don't have the headers (there is no /include subdirectory in qt-3.05)

try /usr/lib/qt-3.0.5/lib if you haven't already
try QTDIR=/usr/lib/qt-3.0.5/ ; export $QTDIR
try QT_VERSION=305; export $QT_VERSION

May do nothing, who knows? Other than that, I don't know what to tell you.

adriaanbw 05-18-2003 03:53 AM

Quote:

Originally posted by bulliver

try /usr/lib/qt-3.0.5/lib if you haven't already
try QTDIR=/usr/lib/qt-3.0.5/ ; export $QTDIR
try QT_VERSION=305; export $QT_VERSION


/usr/lib/qt-3.0.5/lib --- tried that already, but thanks

ok so i assume that i am typing that QTDIR and export stuff in the shell. i also noticed (after i typed 'export' on its own) that you need a " " around the number, for it to be recognised.

anyways, thanks for you help but that still did not work.
perhaps if you can't provide further help on this problem, what about this:

do you know of any other LaTeX editors for linux that can output PDF from LaTeX?? (or editors that recognise the syntax and provide highlight and coloring)

thanks

whansard 05-18-2003 05:44 AM

it sure looks like you just have a binary install of qt,
you don't have the include dir

ls -l /usr/lib/qt-
qt-1.45 qt-2.1.1 qt-2.3.2 qt-3.0.4
/# ls -l /usr/lib/qt-3.0.4/
total 123
1 drwxr-xr-x 7 gdm users 456 Apr 25 06:45 .
37 drwxr-xr-x 83 root root 37696 May 2 15:43 ..
4 -rw-r--r-- 1 root root 698 Aug 6 2002 .qmake.cache
8 -rw-r--r-- 1 gdm users 7580 Apr 26 2002 FAQ
4 -rw-r--r-- 1 gdm users 694 Apr 26 2002 MANIFEST
4 -rw-rw-r-- 1 gdm users 2410 Mar 17 2002 Makefile
4 -rw-r--r-- 1 gdm users 1375 Apr 26 2002 PLATFORMS
4 -r--r--r-- 1 gdm users 3025 Apr 22 2002 README
4 -rw-r--r-- 1 gdm users 860 Apr 26 2002 README.QT
1 drwxr-xr-x 2 gdm users 376 Apr 25 06:45 bin
8 -rw-rw-r-- 1 gdm users 6742 Apr 25 2002 changes-3.0.4
4 -rwxr-xr-x 1 root root 169 Aug 6 2002 config.status
28 -rwxrwxr-x 1 gdm users 26292 Apr 22 2002 configure
11 drwxr-xr-x 3 gdm users 10576 Apr 25 06:45 include
1 drwxr-xr-x 2 gdm users 784 Apr 25 06:45 lib
1 drwxr-xr-x 3 gdm users 80 Aug 6 2002 mkspecs
1 drwxr-xr-x 3 gdm users 72 Aug 6 2002 plugins
/#

adriaanbw 05-18-2003 06:39 AM

sorry to those following this thread, i forget myself sometimes.

i have solved the issue and posted a new thread:
http://www.linuxquestions.org/questi...threadid=60419

whansard 05-19-2003 04:27 PM

i don't like the way compiling of compiling qt. you have
to have environment variables and crap. then when you
want to install it, it's a little hard to know what all files
you need to put in your qtdir, or if you installed it in place,
what stuff you can delete. it's not that hard, i just don't like
it. if i did it more than once a couple of years, i would have
a script for it. oh well, just nagging.


All times are GMT -5. The time now is 10:50 AM.