Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3921 closed defect (fixed)

1.5.0-0rc1 fails to find qt 4 library

Reported by: jcb@… Owned by: lasgouttes
Priority: high Milestone: 1.5.0
Component: configure Version: 1.5.0svn
Severity: normal Keywords:
Cc: j.spitzmueller@…

Description

Description of Problem:

LyX 1.5.0 0rc1 cannot find the qt 4 library during compilation.

All of the following as root.

qt-x11-opensource-src-4.1.5.tar.gz installed and configured as
specified by Trolltech results in /usr/local/Trolltech/Qt-4.1.5/
with /usr/local/Trolltech/Qt-4.1.5/lib

Added "PATH=/usr/local/Trolltech/Qt-4.1.5/bin:$PATH" to /etc/profile

With lyx-1.5.0rc1.tar.bz2 in /usr/local/LyX150
gunzip and tar results in /usr/local/LyX150/lyx-1.5.0rc1
Added "--with-qt-dir=/usr/local/Trolltech/Qt-4.1.5" to configure
Running ./configure aborts with error message

" qt 4 library not found"

If "--with-extra-lib=/usr/local/Trolltech/Qt-4.1.5/lib" is added
to configure, the error message starts with

"Linker user flags: -L/usr/local/Trolltech/Qt-4.1.5/lib"

followed by the the same error message.

My system has an Intel D865GBF board with a Pentium 4 processor
and 1 GB memory.
The problem occurs with both Fedora Core 4 and 6.
It occurs also with qt 4.2.3 and 4.3.0

My system configures Lyx 1.4.4 correctly.

Steps to reproduce the problem:

  1. Several repetitions of above steps. Same result.
  2. Installed clean version of Fedora 4. Same result.
  3. Installed Fedora 6 to see if OS was the cause. Same result.

Actual Results: Compiling aborts with above error message

Expected Results: Compilation should complete, as happens
with LyX 1.4.4 on the same system.

How often does this happen? Every time

Additional Information: I have no idea why it "works" for you,
but not for me. I've been using LyX since at least 1.3.6 with no trouble.
There is always the possiblity that I've made a stupid mistake.
If so, I would very much appreciate it if you could you point me
in the right direction.

Change History (7)

comment:1 by jcb@…, 18 years ago

Owner: changed from nobody@… to lasgouttes
Severity: normalblocker

13 July 2007 same problem with 1.5.0-0rc2
The Windows equivalent came up quickly and correctly in Windows XP.
Changed Severity to blocker.

comment:2 by Juergen Spitzmueller, 18 years ago

Cc: j.spitzmueller@… added

try to configure
--with-qt4-dir=/usr/local/Trolltech/Qt-4.1.5 --with-qt4-includes=/usr/local/Trolltech/Qt-4.1.5/include

(note that it's qt4, not qt)

comment:3 by Juergen Spitzmueller, 18 years ago

Resolution: worksforme
Severity: blockernormal
Status: newclosed

I've corrected the misleading instructions in INSTALL (in revision 19075).
Please reopen if the instructions in comment 2 do not solve your problem.

comment:4 by jcb@…, 18 years ago

Resolution: worksforme
Status: closednew

Jurgen - Thank you. Works also with Qt-4.3.0
Minor additional comments.

(1) With an rpm for LyX150 created with checkinstall:

If qt4 is installed as specified by Trolltech,
then rpm -ihv lyx ... stops with

libQtCore.so.4 is needed by lyx-1.5.0rc2-1.i386
lib QtGui.so.4 "

I've found two ways to avoid this error messge:

rpm -ihv --nodeps ...

and (better)
First create an rpm for qt4,run it, then rpm -ihv lyx ...

(2) LyX150 INSTALL, item 0) says one needs qt and qt-devel

packages ...
Trolltech provides only one package, e.g., for 4.3.0
I could find no separate development package.

(3) I downloaded the 0rc2 bz2 package today (18 July).INSTALL

was unchanged. I have no idea how to access revision 19075.

comment:5 by Juergen Spitzmueller, 18 years ago

I don't understand why you reopened the bug if it works for you. I have no idea
about poit 1, but point 2: the separation for qt and qt-devel holds for most
rpm packages of qt, not for the source file, of course. To point 3: you have to
use SVN to access revision 19075 (or wait for 1.5.0).

comment:6 by Uwe Stöhr, 18 years ago

Milestone: 1.5.0
Resolution: fixed
Status: newclosed
Version: unspecified1.5.0svn

The misleading instructions have been fixed, the qt-devel problematic is no a
LyX one.

Marking as fixed, reopen if you still cannot compile current SVN or the final
LyX 1.5.0 when it was released.

comment:7 by Juergen Spitzmueller, 18 years ago

However, there's still the problem with the rpm generation.
John, could you ask about this on the devel list? I'm sure, someone there is
able to help you.

Note: See TracTickets for help on using tickets.