Skip to content

cairoDevice.dll error, but it exists..?

4 messages · zubin, Brian Ripley, Duncan Murdoch

#
Most likely you did not install the dependent DLLs: you need Gtk2 
(aka GTk+) installed *and in your path*.

That message does not say that 'cairoDevice.dll' cannot be loaded, but 
a DLL it specified: in interactive use on recent versions of Windows 
you normally get a pop-up with more information.

The CRAN windows/contrib/2.9 ReadMe says

   Package RGtk2 requires an installed version of Gtk2 with version
   number >= 2.10.11.

and I believe something similar is true of cairoDevice by the same 
author.  A good source of a pre-compiled Gtk2 is
http://downloads.sourceforge.net/gladewin32/ , and I guess you need
gtk-2.12.9-win32-2.exe from gtk+-win32-runtime.

If you insist on using a toolkit designed for Unix on Windows you can 
expect a rough ride: even when all the Gtk2 components are installed 
there are lots of issues with fonts.
On Mon, 25 May 2009, zubin wrote:

            

  
    
#
On 5/25/2009 9:43 AM, zubin wrote:
Don't you get a popup error dialog?  I do, and it says that 
libgdk-win32-2.0-0.dll was not found.  Only when I click on okay does it 
return to the console to tell me about the cairoDevice failure.  So I 
think the real problem is with the libgdk not being present, and that 
causes the cairoDevice dll to fail to load.  Windows doesn't tell R 
about the reason, it just says it failed.

The reason that library was not installed is that I didn't have RGtk2 
installed properly.  Try library(RGtk2), and make sure it works (and let 
it install GTK if it wants), and things should be fine.

Duncan Murdoch
#
Duncan, thx - installing GTK fixed the issue :)

-zubin
Duncan Murdoch wrote: