Hi Laurent, It looks like the version of libAfterImage that you are using is different from the one with which we have built the libraries. Could you import ftp://root.cern.ch/root/libAfterImage.tar.gz and compare the signature of the functions create_asvisual_for_id in asimage.h Rene Brun On Tue, 12 Nov 2002, Laurent Le Guillou wrote: > On 7 Nov 2002, Fons Rademakers wrote: > > Yes, you have to first compile and install libAfterImage and then > > re-install ROOT. Check in the ./configure output that libAfterImage is > > correctly found. If not add a --with-asimage-incdir and libdir to > > configure. > > Cheers, Fons. > > > I installed libAfterImage, and compiled root from > root_v3.03.09.source.tar.gz ; but the compilation > of TASImage module failed : > > g++ -O -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude > -D_REENTRANT -I/users/snovae/leguil/usr/include/libAfterImage/ -o > asimage/src/TASImage.o -c asimage/src/TASImage.cxx > asimage/src/TASImage.cxx: In function `Bool_t TASImage::InitVisual ()': > asimage/src/TASImage.cxx:1276: cannot convert `Colormap' to `ASVisual > *' for argument `5' to `create_asvisual_for_id (Display *, int, int, > long unsigned int, ASVisual *)' > gmake: *** [asimage/src/TASImage.o] Erreur 1 > > What is wrong ? > > Cordialement, > > Laurent > > > > > On Wed, 2002-11-06 at 19:49, Laurent Le Guillou wrote: > > > > > > 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 > > > > > > > > > > > > -- > > 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:17 MET