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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-17-2003, 10:58 PM
|
#1
|
Member
Registered: May 2003
Location: Brisbane, Australia
Distribution: Fedora Core 4 with XFCE
Posts: 128
Rep:
|
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
|
|
|
05-17-2003, 11:31 PM
|
#2
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
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=
|
|
|
05-18-2003, 12:03 AM
|
#3
|
Member
Registered: May 2003
Location: Brisbane, Australia
Distribution: Fedora Core 4 with XFCE
Posts: 128
Original Poster
Rep:
|
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??
|
|
|
05-18-2003, 12:22 AM
|
#4
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
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-18-2003 at 12:24 AM.
|
|
|
05-18-2003, 04:53 AM
|
#5
|
Member
Registered: May 2003
Location: Brisbane, Australia
Distribution: Fedora Core 4 with XFCE
Posts: 128
Original Poster
Rep:
|
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
|
|
|
05-18-2003, 06:44 AM
|
#6
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,305
Rep:
|
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
/#
|
|
|
05-18-2003, 07:39 AM
|
#7
|
Member
Registered: May 2003
Location: Brisbane, Australia
Distribution: Fedora Core 4 with XFCE
Posts: 128
Original Poster
Rep:
|
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
|
|
|
05-19-2003, 05:27 PM
|
#8
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,305
Rep:
|
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 01:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|