I have manually edited all of the Makefiles to include libMagick.a,
-lMagick, and the appropriate path but I am still having
troubles. Everything appears to compile fine (no errors) but when I
try and execute the script below I get rgb output only. Also, I don't
have any options to 'save as jpeg' when using the gui.
Thanks for all the help so far... I think I may break down and plead with
the sysadmin to upgrade the copy of local copies of ImageMagick...
Randall
PS: In Peter's demo script he suggested I use 'AutoCamera' but when I
tried this dx complained that the function is not implemented?
---- dx script below ----
// Import the data
electrondensity = Import("watermolecule");
// Partition the data
electrondensity = Partition(electrondensity);
// Create a camera
camera = AutoCamera(electrondensity,width=3);
// Create an isosurface at a value of 0.3
isosurface = Isosurface(electrondensity,0.3);
// Create 2000 samples
samples = Sample(isosurface,200);
// Show the positions of the samples
samples = ShowPositions(samples);
Display(samples,camera);
// Compute the gradient of the data
gradient = Gradient(electrondensity);
// Map the gradient onto the samples
mapped = Map(samples,gradient);
A // Use AutoGlyph to visualize the gradient
glyphs = AutoGlyph(mapped);
Display(glyphs,camera);
r=Render(glyphs,camera);
WriteImage(r,"test.jpeg"); // or .jpg
>
> 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
> > > > >
> > > > >
> > >
>