[Mono-list] compiling libgdiplus

gcreme at ncsadvantage.com gcreme at ncsadvantage.com
Wed Feb 8 10:23:19 EST 2006


I am trying to compile libgdiplus on redhat enterprise linux 3.   I have already compiled and installed the latest mono from svn.  When I type ./configure in the libgdiplus source directory, I get the following:  

configure: configuring in cairo
configure: running /bin/sh ./configure --prefix=/usr/local  --cache-file=/dev/null --srcdir=.
./configure: ./configure: No such file or directory
configure: error: /bin/sh ./configure failed for cairo


I have downloaded the cairo 1.0.2 source code and placed it in the same directory as the libgdiplus source (ie.  they are both in the directory called trunk so the path is /trunk/libgdiplus and /trunk/cairo-1.0.2)  

When I change to the cairo directory and run ./configure, I get the following: 

cairo will be compiled with the following surface backends:
  Xlib: yes
  Quartz: no
  XCB: no
  Win32: no
  PostScript: no
  PDF: no
  glitz: no
 
the following font backends:
  FreeType: no
  Win32: no
  ATSUI: no
 
and the following features:
  PNG functions: no
configure: error: Cairo requires at least one font backend.
                  Please install freetype and fontconfig, then try again:
                  http://freetype.org/  http://fontconfig.org/



I went to freetype.org to download the code - grabbed freetype-2.1.10 and compiled and installed it.  When I run.configure again for cairo, I get the same error message.  

SO, I went back and downloaded the fontconfig.org file - fontconfig-2.3.2, and compiled and installed it.  Finally, it says that freetype is installed when I run ./configure  in the cairo directory.  

So, I went back to the libgdiplus directory and ran ./configure again.  I get the same error message: 
configure: configuring in cairo
configure: running /bin/sh ./configure --prefix=/usr/local  --cache-file=/dev/null --srcdir=.
./configure: ./configure: No such file or directory
configure: error: /bin/sh ./configure failed for cairo

I even tried to run ./autogen.sh and it gave me: 
configure: configuring in cairo
configure: running /bin/sh ./configure --prefix=/usr/local  '--enable-maintainer -mode' '--enable-compile-warnings' --cache-file=/dev/null --srcdir=.
./configure: ./configure: No such file or directory
configure: error: /bin/sh ./configure failed for cairo

So, finally, I thought that if I just installed Cairo, it might work without having to do this, so I ran make and make install in the cairo directory and tried again.  No luck.  

Can someone tell me what I am missing to get this to compile and install?  I am trying to get this done and working for a proof of concept for a client on Friday to show them that Mono on Linux is a feasible option, but am not having any luck with it so far.  

Thanks, 
Greg


More information about the Mono-list mailing list