OK... I thought I had it beat. Alas, I cannot save a jpeg (the option
isn't even there and libMagick is not being used).
The system I'm on has libMagick.so files both in /usr/X11R6/lib and
/usr/local/lib and both are 5.0.x. The one I am trying to use is in
${HOME}/local/lib but I am unsure how to find it using the configuration
script.
My LD_LIBRARY_PATH variable is set to search ${HOME}/local/lib first and
/usr/X11R6/lib last. Likewise, my LDFLAGS and CPPFLAG variables are set
in the same way. I had thought that I would find my local copy first in
this case but it seems not.
What I would really like to do is somehow hardwire the configure script to
use the correct version of libMagick.a or at least try and determine which
version I am currently compiling with.
Any thoughts?
Randall
CPPFLAGS=-I/home/dougal/aopp/rhskelto/local/include
-I/home/dougal/aopp/rhskelto/local/include/freetype
-I/home/dougal/aopp/rhskelto/local/include/libxml -I/usr/include
-I/usr/local/include -I/usr/X11R6/include
LDFLAGS=-L/home/dougal/aopp/rhskelto/local/lib -L/usr/lib -L/lib
-L/usr/local/lib -L/usr/X11R6/lib
LD_LIBRARY_PATH=/home/dougal/aopp/rhskelto/local/lib:
/home/dougal/aopp/rhskelto/local/LessTif/libXm:
/home/dougal/aopp/rhskelto/local/LessTif/libMrm:
/home/dougal/aopp/rhskelto/local/pgsql/lib:
/usr/X11R6/lib:/usr/lib:/lib:/usr/local/lib:/usr/local/PACK/FCC/lib
On Mon, 6 Nov 2000, Peter Daniel Kirchner wrote:
> Date: Mon, 06 Nov 2000 16:18:22 -0500
> From: Peter Daniel Kirchner <[EMAIL PROTECTED]>
> Reply-To: [email protected]
> To: [email protected]
> Subject: Re: [opendx-dev] Indeed I do have two copies...
>
> You're welcome. You might try saving a .jpeg e.g.
>
> dx -script
> v=Import("watermolecule.dx");
> i=Isosurface(v);
> c=Autocamera(i);
> r=Render(i,c);
> WriteImage(r, "/tmp/water.jpeg", "Image Magick supported format" );
>
> Pete
>
> Randall Skelton wrote:
>
> > Thanks Peter,
> >
> > In fact there are two other copies of libMagick floating around on this
> > system. Editing the makefile by hand has fixed things.
> >
> > Just to be sure, how does one go about testing dx to ensure the
> > ImageMagick features are indeed working? (I just compiled this, and I
> > must admit that I have never actually used it yet...)
> >
> > Thanks in advance,
> >
> > Randall
> >
> > PS: please ignore my last message regarding libMagick 5.2.5 not being
> > backwards compatable with opendx...
> >
> > On Mon, 6 Nov 2000, Peter Daniel Kirchner wrote:
> >
> > > Date: Mon, 06 Nov 2000 13:27:09 -0500
> > > From: Peter Daniel Kirchner <[EMAIL PROTECTED]>
> > > Reply-To: [email protected]
> > > To: [email protected]
> > > Subject: Re: [opendx-dev] configure script question
> > >
> > > I suspect you have two Image Magick libs running around, one in
> > > /usr/X11R6/lib
> > > (the old one), part of some runtime package, and one in /usr/local/lib
> > > (part of
> > > the development package). My next guess is that your link flags pick up
> > > the
> > > wrong one first ( /usr/X11R6/lib). In any case, try hiding the
> > > /usr/X11R6/lib/libMagick* . Some adjustment to LD_LIBRARY_PATH might
> > > also be
> > > necessary/appropriate.
> > >
> > > Pete
> > >
> > > Randall Skelton wrote:
> > >
> > > > As with most things today... Moments after posting the question below I
> > > > found an offending character in my LD_LIBRARY_PATH variable. Once I
> > > > fixed
> > > > that I was able to configure-make-install with none of the flags below
> > > > :)
> > > >
> > > > Now, on to the next question:
> > > >
> > > > I have installed ImageMagick and it successfully runs the 'display'
> > > > program but when I run configure for open-dx, I get the following:
> > > >
> > > > checking for ImageMagick support ...
> > > > checking for magick/magick.h... yes
> > > > checking for GetImageInfo in -lMagick... no
> > > > checking if ImageMagick package is complete... no -- some components
> > > > failed test
> > > >
> > > > When I check libMagick.a I find:
> > > > ~bah> nm libMagick.a | grep GetImageInfo
> > > > 0000023c T GetImageInfoAttribute
> > > > 00004f74 T GetImageInfo
> > > > U GetImageInfoAttribute
> > > >
> > > > Any help is again appreciated!
> > > >
> > > > Randall
> > > >
> > > > On Mon, 6 Nov 2000, Randall Skelton wrote:
> > > >
> > > > > Date: Mon, 6 Nov 2000 15:41:27 +0000 (GMT)
> > > > > From: Randall Skelton <[EMAIL PROTECTED]>
> > > > > Reply-To: [email protected]
> > > > > To: [email protected]
> > > > > Subject: [opendx-dev] configure script question
> > > > >
> > > > > Hello all, this is probably a very simple question but for the life
> > > > > of me
> > > > > I cannot get the configure script to work. I have multiple locations
> > > > > for
> > > > > the X11R6 directory as I have motif in my user account only (have no
> > > > > root
> > > > > access) so I am using the --x-includes and --x-libraries flags for
> > > > > configure. For some reason, when I try to include more than one path
> > > > > in
> > > > > --x-includes of --x-libraries the configure script can no longer find
> > > > > the
> > > > > path.
> > > > >
> > > > > i.e.
> > > > >
> > > > > configure --x-includes=/usr/opt/X11R6/includes \
> > > > > --x-libraries=/usr/opt/X11R6/lib
> > > > >
> > > > > --> works for most:
> > > > > checking for XCreateGC in -lX11... yes
> > > > > checking for XtMalloc in -lXt... yes
> > > > > checking for XextAddDisplay in -lXext... yes
> > > > > checking for XmGetDestination in -lXm... no
> > > > >
> > > > > configure --x-includes=${HOME}/local/X11R6/includes \
> > > > > --x-libraries=${HOME}/local/X11R6/lib
> > > > >
> > > > > --> works for MOTIF:
> > > > > checking for XCreateGC in -lX11... no
> > > > > checking for XtMalloc in -lXt... no
> > > > > checking for XextAddDisplay in -lXext... no
> > > > > checking for XmGetDestination in -lXm... yes
> > > > >
> > > > > configure
> > > > > --x-includes=/usr/opt/X11R6/include:/${HOME}/local/X11R6/include\
> > > > > --x-libraries=/usr/opt/X11R6/lib:${HOME}/local/X11R6/lib
> > > > >
> > > > > --> works for none:
> > > > > checking for XCreateGC in -lX11... no
> > > > > checking for XtMalloc in -lXt... no
> > > > > checking for XextAddDisplay in -lXext... no
> > > > > checking for XmGetDestination in -lXm... no
> > > > >
> > > > > I have tried every permutation of punctuation to get multiple
> > > > > patches working but I am at a loss! Does anyone know how to do this?
> > > > >
> > > > > I am on Linux (RH 6+) intel hardware. Everything build from raw
> > > > > sources.
> > > > >
> > > > > Any and all help is greatly appreciated
> > > > >
> > > > > Randall
> > > > >
> > > > >
> > >
>