Re: Problem compiling ROOT v5-33-02b

From: Chiara Zampolli <Chiara.Zampolli_at_bo.infn.it>
Date: Tue, 15 May 2012 10:33:00 +0200


One more information: I found some tiff and jpeg library in /opt/local/lib:

Chiara_at_pb-d-128-141-34-143~/SOFT/ROOT/v5-33-02b$ ls -altr /opt/local/lib/*tiff*

-rwxr-xr-x  1 root  admin     998 Jul 27  2011 /opt/local/lib/libtiffxx.la
lrwxr-xr-x  1 root  admin      17 Jul 27  2011 /opt/local/lib/libtiffxx.dylib -> libtiffxx.3.dylib
-rw-r--r--  1 root  admin    8968 Jul 27  2011 /opt/local/lib/libtiffxx.a
-rwxr-xr-x  1 root  admin   15136 Jul 27  2011 /opt/local/lib/libtiffxx.3.dylib
-rwxr-xr-x  1 root  admin     960 Jul 27  2011 /opt/local/lib/libtiff.la
lrwxr-xr-x  1 root  admin      15 Jul 27  2011 /opt/local/lib/libtiff.dylib -> libtiff.3.dylib
-rw-r--r--  1 root  admin  530080 Jul 27  2011 /opt/local/lib/libtiff.a
-rwxr-xr-x  1 root  admin  410776 Jul 27  2011 /opt/local/lib/libtiff.3.dylib

Chiara_at_pb-d-128-141-34-143~/SOFT/ROOT/v5-33-02b$ ls -altr /opt/local/lib/*jpeg*
-rwxr-xr-x  1 root  admin     909 May 16  2011 /opt/local/lib/libjpeg.la
-rw-r--r--  1 root  admin  305408 May 16  2011 /opt/local/lib/libjpeg.a
-rwxr-xr-x  1 root  admin  243336 May 16  2011 /opt/local/lib/libjpeg.8.dylib
lrwxr-xr-x  1 root  admin      15 May 16  2011 /opt/local/lib/libjpeg.dylib -> libjpeg.8.dylib
Chiara_at_pb-d-128-141-34-143~/SOFT/ROOT/v5-33-02b$

But apparently they are not the right ones…

Cheers,

        Chiara

On May 15, 2012, at 10:25 AM, Chiara Zampolli wrote:

> Dear all,
>
> I have a problem compiling ROOT v5-33-02b (on a MACOSx, Snow Leopard). Apparently the libtiff.so and libjpeg.so are not there:
>
> ==> lib/libMemStat.so done
> g++ -dynamiclib -single_module -Wl,-dead_strip_dylibs -install_name @rpath/libASImage.so -O2 -m64 -mmacosx-version-min=10.6 -o lib/libASImage.so graf2d/asimage/src/TASImage.o graf2d/asimage/src/TASPluginGS.o graf2d/asimage/src/G__ASImage.o -ldl -Llib -lGraf -lMathCore lib/libAfterImage.a -L/opt/local/lib -lfreetype -lz -L/usr/X11/lib -lpng -lz -L/usr/X11R6/lib -lXpm -L/usr/X11R6/lib -lXext -lX11 -Llib -lCore -lCint
> Undefined symbols:
> "_jpeg_read_header", referenced from:
> _jpeg2ASImage in libAfterImage.a(import.o)
> "_jpeg_stdio_dest", referenced from:
> _ASImage2jpeg in libAfterImage.a(export.o)
> "_jpeg_set_defaults", referenced from:
> _ASImage2jpeg in libAfterImage.a(export.o)
> "_jpeg_start_decompress", referenced from:
> _jpeg2ASImage in libAfterImage.a(import.o)
> "_jpeg_destroy_decompress", referenced from:
> _jpeg2ASImage in libAfterImage.a(import.o)
> _jpeg2ASImage in libAfterImage.a(import.o)
> "_jpeg_stdio_src", referenced from:
> _jpeg2ASImage in libAfterImage.a(import.o)
> "_jpeg_CreateCompress", referenced from:
> _ASImage2jpeg in libAfterImage.a(export.o)
> "_jpeg_abort_decompress", referenced from:
> _jpeg2ASImage in libAfterImage.a(import.o)
> "_jpeg_finish_compress", referenced from:
> _ASImage2jpeg in libAfterImage.a(export.o)
> "_jpeg_set_quality", referenced from:
> _ASImage2jpeg in libAfterImage.a(export.o)
> "_jpeg_finish_decompress", referenced from:
> _jpeg2ASImage in libAfterImage.a(import.o)
> "_jpeg_CreateDecompress", referenced from:
> _jpeg2ASImage in libAfterImage.a(import.o)
> "_jpeg_read_scanlines", referenced from:
> _jpeg2ASImage in libAfterImage.a(import.o)
> "_jpeg_start_compress", referenced from:
> _ASImage2jpeg in libAfterImage.a(export.o)
> "_jpeg_destroy_compress", referenced from:
> _ASImage2jpeg in libAfterImage.a(export.o)
> "_jpeg_write_scanlines", referenced from:
> _ASImage2jpeg in libAfterImage.a(export.o)
> _ASImage2jpeg in libAfterImage.a(export.o)
> "_jpeg_std_error", referenced from:
> _ASImage2jpeg in libAfterImage.a(export.o)
> _jpeg2ASImage in libAfterImage.a(import.o)
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make: *** [lib/libASImage.so] Error 1
> Chiara_at_pb-d-128-141-34-143~/SOFT/ROOT/v5-33-02b$
>
> and the compilation does not work. In fact, when I configure ROOT with the script attached, I get:
>
> Checking for libjpeg ... no
> Checking for libtiff … no
>
> I tried to install them with MacPorts, and it seems it worked:
>
> Chiara_at_pb-d-128-141-34-143~/SOFT/ROOT/v5-33-02b$ port -v installed tiff
> Warning: port definitions are more than two weeks old, consider using selfupdate
> The following ports are currently installed:
> tiff @3.9.4_0 platform='darwin 10' archs='x86_64'
> tiff @3.9.5_0 (active) platform='darwin 10' archs='x86_64'
> Chiara_at_pb-d-128-141-34-143~/SOFT/ROOT/v5-33-02b$ port -v installed jpeg
> Warning: port definitions are more than two weeks old, consider using selfupdate
> The following ports are currently installed:
> jpeg @8b_0 platform='darwin 10' archs='x86_64'
> jpeg @8c_0 (active) platform='darwin 10' archs='x86_64'
> Chiara_at_pb-d-128-141-34-143~/SOFT/ROOT/v5-33-02b$
>
> but the configuration of root does not see libjpeg and libtiff yet. Any suggestion about what I could do? Should I use Fink? <rootConfig_alien04032012.sh>
>
> Thanks, and Regards,
>
> Chiara
Received on Tue May 15 2012 - 10:33:14 CEST

This archive was generated by hypermail 2.2.0 : Tue May 15 2012 - 17:50:01 CEST