LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-17-2003, 09:58 PM   #1
adriaanbw
Member
 
Registered: May 2003
Location: Brisbane, Australia
Distribution: Fedora Core 4 with XFCE
Posts: 128

Rep: Reputation: 16
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
 
Old 05-17-2003, 10:31 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
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=
 
Old 05-17-2003, 11:03 PM   #3
adriaanbw
Member
 
Registered: May 2003
Location: Brisbane, Australia
Distribution: Fedora Core 4 with XFCE
Posts: 128

Original Poster
Rep: Reputation: 16
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??
 
Old 05-17-2003, 11:22 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
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.

Last edited by bulliver; 05-17-2003 at 11:24 PM.
 
Old 05-18-2003, 03:53 AM   #5
adriaanbw
Member
 
Registered: May 2003
Location: Brisbane, Australia
Distribution: Fedora Core 4 with XFCE
Posts: 128

Original Poster
Rep: Reputation: 16
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
 
Old 05-18-2003, 05:44 AM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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
/#
 
Old 05-18-2003, 06:39 AM   #7
adriaanbw
Member
 
Registered: May 2003
Location: Brisbane, Australia
Distribution: Fedora Core 4 with XFCE
Posts: 128

Original Poster
Rep: Reputation: 16
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
 
Old 05-19-2003, 04:27 PM   #8
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kile installation hari78 Linux - Software 5 12-13-2006 03:35 AM
Problem installing Kile 1.8 solarize Linux - Software 2 06-03-2005 11:56 AM
kile and latex feetyouwell Linux - Software 0 01-12-2005 04:13 PM
Kile Log File loke137 Linux - Software 2 04-30-2004 08:26 AM
Can't get Kile to work with latex timetourist Linux - Software 2 07-17-2003 05:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration