[R-SIG-Mac] Probleme with libpng
Simon Urbanek
simon.urbanek at r-project.org
Tue Apr 5 16:02:01 CEST 2011
On Apr 5, 2011, at 9:49 AM, Guillaume Meurice wrote:
> Dear Simon,
>
> I have downloaded the binaries for mac os X :
>
> Cairo_1.4-8.tgz
>
> and tried to install the package locally. (by sourcing local package).
>
> During startup - Warning messages:
> 1: Setting LC_CTYPE failed, using "C"
> 2: Setting LC_TIME failed, using "C"
> 3: Setting LC_MESSAGES failed, using "C"
> * installing *binary* package 'Cairo' ...
>
> * DONE (Cairo)
>
>
> But when trying to load the package, I got this :
>
> > library(Cairo)
> Error: package 'Cairo' is not installed for 'arch=x86_64'
>
>
> That's why I was trying to compile from the source.
>
Fair enough - the 64-bit iconv has different symbols than at the time ft was built so the 64-bit build fails. So for now you'll have to stick with R --arch i386 for the Cairo binary. In the meantime I'll see if I can build a fresh set of static ft that will work with the current iconv - it's a bit convoluted as we need a build that won't use CF so Cairo can be forked (for multicore, Rserve etc.).
Cheers,
Simon
>
>>>
>>> I've tried to install the "Cairo" R package, but it fails, raising this error message :
>>>
>>> ##########################################################################
>>> configure: error: Cannot use cairo-ft backend, although cairo claims it is working. Please check your caito installation and/or update cairo if necessary or set CAIRO_CFLAGS/CAIRO_LIBS accordingly.
>>> ERROR: configuration failed for package 'Cairo'
>>> * removing '/Library/Frameworks/R.framework/Versions/2.13/Resources/library/Cairo'
>>> ##########################################################################
>>>
>>
>> Yes, so your freetype setup is broken as the message says. Any reason why your'e trying to compile this from sources when the binary is available from CRAN? I would suggest you use the binary unless you really know what you're doing (obviously you can replicate the CRAN setup but apparently you chose not to).
>>
>> Cheers,
>> Simon
>>
>>
>>>
>>>
>>>> You'll need to supply more details. What are you exactly doing? (reproducible example!) Which packages are you using? (sessionInfo()!)
>>>> Cheers,
>>>> Simon
>>>>
>>>>
>>>> On Mar 30, 2011, at 10:56 AM, Guillaume Meurice wrote:
>>>>
>>>>> Dear all,
>>>>>
>>>>> I've recently upgrade R to :
>>>>>
>>>>> R 2.12.2 GUI 1.36 Leopard build 64-bit (5691)
>>>>>
>>>>> But now, I can't drow any png image, since I have this error message :
>>>>>
>>>>> libpng warning: Application was compiled with png.h from libpng-1.2.26
>>>>> libpng warning: Application is running with png.c from libpng-1.4.1
>>>>> libpng warning: Incompatible libpng version in application and library
>>>>>
>>>>>
>>>>> What should I do ? Is there any macosX package compiled with libpng 1.4.1 ?
>>>>>
>>>>>
>>>>> Thanks by advance for any help you could provide.
>>>>> Best regards,
>>>>> --
>>>>> Guillaume Meurice - PhD
>>>>>
>>>>> _______________________________________________
>>>>> R-SIG-Mac mailing list
>>>>> R-SIG-Mac at r-project.org
>>>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>>>>
>>>>>
>>>>
>>>
>>
>
More information about the R-SIG-Mac
mailing list