Re: Problem compiling ROOT v5-33-02b

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


Ciao Chris,

        I am already installing ROOT outside Macports - if I understand what you mean at least. I am simply taking ROOT from svn, and then build it.

        Cheers,

                Chiara

On May 15, 2012, at 1:03 PM, Chris Jones wrote:

> Hi,
> 
> Your issue is you are mixing up MacPorts libraries with non-MacPorts ones. This is causing version conflicts etc.
> 
> You need to go fully one way or the other, either fully use MacPorts, so install the MacPorts root version, which works just fine. This isn't v5-33-02b but the v5.32.02 - Is this not new enough ?
> 
> Or... Build root yourself outside Macports, but don't take anything from /opt/local/lib
> 
> Chris
> 
> 
> On 15/05/12 09:25, 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?
>>
>>
>>
>>
>>
>> Thanks, and Regards,
>>
>> Chiara

> Received on Tue May 15 2012 - 14:10:57 CEST

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