[R-SIG-Mac] Compiling Cairo

Simon Urbanek simon.urbanek at r-project.org
Thu Apr 9 03:31:44 CEST 2015


On Apr 8, 2015, at 7:27 PM, O'Hanlon, Simon J <simon.ohanlon at imperial.ac.uk> wrote:

> I'm trying to compile Cairo on OS X 10.10.2 and R 3.1.3. ./configure seems to run ok, but I get a compilation error about a symbol not being found, namely _FT_Done_Face. The details are:
> 
> Error : .onLoad failed in loadNamespace() for 'Cairo', details:
>  call: dyn.load(file, DLLpath = DLLpath, ...)
>  error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.1/Resources/library/Cairo/libs/Cairo.so':
>  dlopen(/Library/Frameworks/R.framework/Versions/3.1/Resources/library/Cairo/libs/Cairo.so, 6): Symbol not found: _FT_Done_Face
>  Referenced from: /Library/Frameworks/R.framework/Versions/3.1/Resources/library/Cairo/libs/Cairo.so
>  Expected in: flat namespace
> in /Library/Frameworks/R.framework/Versions/3.1/Resources/library/Cairo/libs/Cairo.so
> Error: loading failed
> Execution halted
> 

That's not a compilation error but rather a run-time error.


> Am I missing some dependency or something?
> 

My guess would be that you have multiple versions of FreeType and the wrong one is picked up. It seems as if you have an odd mix of homebrew and X11 which may be the problem. Did you compile everything from source (including R)? If not, you'll have a hard time cleaning things up to work with the system libraries, R and homebrew -- I'd recommend staying away from trying to mix all three together (i.e., use either CRAN or homebrew but not both).

Cheers,
Simon


> So as not to clog the post, my sessionInfo() is available at: http://pastebin.com/raw.php?i=kQFiY699
> And the output of ./configure is available at: http://pastebin.com/raw.php?i=wCUGtbBZ
> 
> Thanks,
> 
> Simon
> 
> 
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> 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