Bill Allombert on Mon, 19 May 2003 15:26:38 +0200

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: plotQt.c

On Thu, May 15, 2003 at 04:41:21PM +0200, Karim BELABAS wrote:
> Nils Skoruppa [pari-dev-2701] wrote:
> > if someone would like to try plotQt.c, an alternative to plotX.c,
> > plotgnuplot.c and in particular to plotnull.c, which uses Trolltech's Qt
> > lib, you can download the file at
> >
> Hi,
>   I've committed the above and a preliminary integration in
> Configure to CVS. Use
>    Configure --graphic=qt,
> or
>    Configure --with-qt,
> or
>    Configure --with-qt=QTDIR,
> It seems to work flawlessly under Linux.

Well here a new patch that make get_Qt more robust.
Debian/unstable has both a /usr/lib/qt3 and a /usr/share/qt3,
but /usr/lib/qt3 hold only qt plugin.

This patch check for a bin subdirectory (needed for moc).

It seems the header file qarray.h is deprecated in QT3 since it is
put the QT2 compatibility stuff.

The doc state that
                     QArray Class Reference (obsolete)
#include <qarray.h>

   The QArray class has been renamed QMemArray in Qt 3.0.


Index: config/get_Qt
RCS file: /home/megrez/cvsroot/pari/config/get_Qt,v
retrieving revision 1.2
diff -u -r1.2 get_Qt
--- config/get_Qt	2003/05/17 15:22:45	1.2
+++ config/get_Qt	2003/05/19 13:14:58
@@ -6,13 +6,16 @@
   case "$with_qt" in
-     pth="/usr/local/lib /usr/local/share /usr/lib /usr/share"
-     QTDIR=`locatedir qt $pth`
+     pth="/usr/local/share /usr/local/lib /usr/share /usr/lib"
+     QTDIR=`locatedir qt/bin $pth`
      if test -z "$QTDIR"; then
-       QTDIR=`locatedir qt3 $pth`
+       QTDIR=`locatedir qt3/bin $pth`
        if test -z "$QTDIR"; then
-         QTDIR=`locatedir qt2 $pth`
+         QTDIR=`locatedir qt2/bin $pth`
+     fi
+     if test -n "$QTDIR"; then
+       QTDIR=`dirname $QTDIR`
   *) if test ! -d "$with_qt"; then
       echo "### Qt directory '$with_qt' not found"