Re: [ROOT] Unable to do anything with TASImage

From: Laurent Le Guillou (leguil@in2p3.fr)
Date: Wed Nov 06 2002 - 19:49:30 MET


On 6 Nov 2002, Fons Rademakers wrote:
> Hi Laurent,
>    make sure that during the ./configure of asimage all support libs for
> gif and jpg are found.
> What platform are you using? On linux use the following to configure
> afterimage:
> rm -f config.cache
> export CFLAGS="-fPIC -O"
> ./configure --enable-sharedlibs --with-ttf=no


	I have just recompiled libAfterImage with these flags, and
	installed it again, but I have the same errors.

root [0] gSystem->Load("libASImage.so")
(int)0
root [1]    TImage *img = TImage::Open("rose512.jpg");      
/users/snovae/leguil/usr/lib/root/bin/root.exe: error while loading shared
libraries: /users/snovae/leguil/usr/lib/libAfterImage.so.0: undefined
symbol: jpeg_std_error


	I tried also to load /usr/lib/libjpeg.so by myself :

	CINT/ROOT C/C++ Interpreter version 5.15.56, Sep 4 2002
	Type ? for help. Commands must be C++ statements.
	Enclose multiple statements between { }.
	root [0] gSystem->Load("libjpeg.so")                  
	(int)0
	root [1] gSystem->Load("libjpeg.so")
	Note: File "/usr/lib/libjpeg.so" already loaded
	(int)1
	root [2] gSystem->Load("libASImage.so")               
	(int)0
	root [3] TImage *img = TImage::Open("rose512.jpg");
	root [4] img->SetConstRatio(0);            
	root [5] img->SetImageQuality(TAttImage::kImgBest);
	root [6] img->Draw("N");    	
        *** Break *** segmentation violation

	Should I recompile root itself to enable the support of
	libAfterimage ? 
	
	(I am using root 3.03.09, on a Red Hat 7.1 box, with gcc 2.96,
	and I installed the binary version from 
	root_v3.03.09.Linux.RH7.2.gcc296.tar.gz)

	Cordialement,

	Laurent


  -------------------------------------------------------------------
    Laurent LE GUILLOU			            leguil@in2p3.fr
    ATER Paris 6 / LPNHE 	   Collaboration EROS / Projet SNLS
    LPNHE - Jussieu - Tour 33 rdc - Bureau 422 -  +33 1.44.27.41.66














 
> On Wed, 2002-11-06 at 16:31, Laurent Le Guillou wrote:
> > 
> > 
> > 	Hi Rooters,
> > 
> > 	I compiled and installed libAfterImage-0.92, in order
> > 	to be able to use TASImage.
> > 	Now I am trying to run examples ; but I am unable to
> > 	do anything : galaxy_image.C gives me segfaults 
> > 	(at this point "img->SetImage(*data, 401, palette);") :
> > 	and simple tests produce this :
> > 
> > 	gSystem->Load("libASImage.so") ;
> > 	TImage *img = TImage::Open("rose512.gif") ;
> > 	
> > 	/users/snovae/leguil/usr/lib/root/bin/root.exe: error while
> > 	loading shared libraries: /users/snovae/leguil/usr/lib/libAfterImage.so.0:
> > 	undefined symbol: DGifOpen
> > 
> > 
> > 	or,
> > 
> > 	gSystem->Load("libASImage.so") ;
> > 	TImage *img = TImage::Open("rose512.jpg") ;
> > 	
> > 	/users/snovae/leguil/usr/lib/root/bin/root.exe: error while
> > 	loading shared libraries: /users/snovae/leguil/usr/lib/libAfterImage.so.0:
> > 	undefined symbol: jpeg_std_error
> > 
> > 
> > 	and so on with other formats...
> > 
> > 	[gif and jpeg libraries are present on my linux box.]
> > 
> > 	Cordialement,
> > 
> > 	Laurent
> > 
> > 
> >   -------------------------------------------------------------------
> >     Laurent LE GUILLOU			            leguil@in2p3.fr
> >     ATER Paris 6 / LPNHE 	   Collaboration EROS / Projet SNLS
> >     LPNHE - Jussieu - Tour 33 rdc - Bureau 422 -  +33 1.44.27.41.66
> > 
> -- 
> Org:    CERN, European Laboratory for Particle Physics.
> Mail:   1211 Geneve 23, Switzerland
> E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
> WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:16 MET