[Top][All Lists]

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

Re: Problem with Libplot

From: Ben Pfaff
Subject: Re: Problem with Libplot
Date: Sun, 01 Feb 2009 14:03:30 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Michel Boaventura <address@hidden> writes:

> I'm trying to compile pspp to windows again, but now using gentoo,
> instead of windows itself.
> I'm having a little problem with libplot on the last stable snapshot
> (pspp-stable-20090129).
> The configure script doesn't find it, and the log says:
> But if I run it myself, passing the argument "-lpng" to gcc, it
> compiles without problems. Seems like libplot can't find libpng
> without this argument.
> Is this a problem of configure script or my enviroment?

It is a bug in the configure script.  The plotutils manual
mentions that -lpng -lz might be necessary, but we don't check
for it.

Do you want to file a bug report?  It would be helpful.

The plotutils description of how to link against it is awfully

       To link your application with GNU `libplot', you would use the
    appropriate `-l' option(s) on the command line when compiling it.  You
    would use

         -lplot -lXaw -lXmu -lXt -lXext -lX11 -lpng -lz -lm

    or, in recent releases of the X Window System,

         -lplot -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lpng -lz -lm

    These linking options assume that your version of `libplot' has been
    compiled with PNG support; if not, you would omit the `-lpng -lz'

       As an alternative to the preceding, you may need to use `-lplot -lXm
    -lXt -lXext -lX11 -lpng -lz -lm', `-lplot -lXm -lXt -lXext -lX11 -lpng
    -lz -lm -lc -lgen', or `-lplot -lXm -lXt -lXext -lX11 -lpng -lz -lm -lc
    -lPW', on systems that provide Motif widgets instead of Athena widgets.
    In recent releases of the X Window System, you would insert `-lSM
    -lICE'.  Recent releases of Motif require `-lXp' and possibly `-lXpm'
    as well.)

       On some platforms, the directories in which `libplot' or the other
    libraries are stored must be specified on the command line.
    For example, the options `-lXaw -lXmu -lXt -lSM -lICE -lXext -lX11',
    which specify X Window System libraries, may need to be preceded by an
    option like `-L/usr/X11/lib'.

"But hey, the fact that I have better taste than anybody else in the
 universe is just something I have to live with. It's not easy being
--Linus Torvalds

reply via email to

[Prev in Thread] Current Thread [Next in Thread]