From: Tamas Papp
Subject: couldn't install cl-cairo
Date: 
Message-ID: <87fy68vbth.fsf@pu100877.student.princeton.edu>
Hi,

I am trying to install cl-cairo using asdf, but ran into problems.  I
am a newbie, so I could be doing something wrong...  I included the
error messages below, if you can, please help me figure this out.  I
am using the latest CMUCL.

I have contacted the author, but received no reply so far.

I have set up asdf and asdf-install following the instructions on Cliki.  

My ~/.cmucl-init.lisp looks like this:

(require :asdf)
(pushnew "/home/tpapp/.asdf-install-dir/systems/" 
	 asdf:*central-registry* :test #'equal)
#-:asdf-install (asdf:operate 'asdf:load-op :asdf-install)

; I used this once:
;(asdf:operate 'asdf:compile-op :asdf-install)
;(asdf:operate 'asdf:load-op :asdf-install)

Thanks,

Tamas

debug:

Error in function LISP::UNPARSE-UNIX-FILE:
   Cannot specify a directory separator in a pathname name: "Drawing/cairo_t"
   [Condition of type SIMPLE-ERROR]

Restarts:
  0: [RETRY] Retry performing #<ASDF:COMPILE-OP NIL {58A7ACDD}> on #<ASDF:CL-SOURCE-FILE "Drawing/cairo_t" {58F488C5}>.
  1: [ACCEPT] Continue, treating #<ASDF:COMPILE-OP NIL {58A7ACDD}> on #<ASDF:CL-SOURCE-FILE "Drawing/cairo_t" {58F488C5}> as having been successful.
  2: [RETRY] Retry installation
  3: [ABORT-REQUEST] Abort handling SLIME request.
  4: [ABORT] Return to Top-Level.

Backtrace:
  0: (LISP::UNPARSE-UNIX-FILE #P(:DIRECTORY (:ABSOLUTE "home" "tpapp" ".asdf-install-dir" "site" ...) :NAME "Drawing/cairo_t" :TYPE ...))
  1: (LISP::UNPARSE-UNIX-NAMESTRING #P(:DIRECTORY (:ABSOLUTE "home" "tpapp" ".asdf-install-dir" "site" ...) :NAME "Drawing/cairo_t" :TYPE ...))
  2: (NAMESTRING #P(:DIRECTORY (:ABSOLUTE "home" "tpapp" ".asdf-install-dir" "site" ...) :NAME "Drawing/cairo_t" :TYPE ...))
  3: (COMPILE-FILE #P(:DIRECTORY (:ABSOLUTE "home" "tpapp" ".asdf-install-dir" "site" ...) :NAME #1="Drawing/cairo_t" :TYPE ...) :OUTPUT-FILE #P(:DIRECTORY (:ABSOLUTE "var" "cache" "common-lisp-controller" "1000" ...) :NAME #1# :TYPE ...) :ERROR-FILE ...)
  4: ((METHOD ASDF:PERFORM NIL (ASDF:COMPILE-OP ASDF:CL-SOURCE-FILE)) (#(7 6) . #(# #)) #<unused-arg> #<ASDF:COMPILE-OP NIL {58A7ACDD}> #<ASDF:CL-SOURCE-FILE "Drawing/cairo_t" {58F488C5}>)
  5: ("LAMBDA (G1567 G1568 G1569)" #<#1=unused-arg> #<#1#> #<ASDF:COMPILE-OP NIL {58A7ACDD}> #<ASDF:CL-SOURCE-FILE "Drawing/cairo_t" {58F488C5}>)
  6: ((FLET #:G0 ASDF:OPERATE))
  7: (ASDF:OPERATE ASDF:LOAD-OP ASDF-INSTALL::|cl-cairo-tests|)
  8: (ASDF:OPERATE 2 ASDF:LOAD-OP ASDF-INSTALL::|cl-cairo-tests|)[:EXTERNAL]
  9: ((LABELS ASDF-INSTALL::ONE-ITER ASDF-INSTALL:INSTALL) ("/tmp/cl-cairo-latest.tar.gz"))
 10: (ASDF-INSTALL:INSTALL "/tmp/cl-cairo-latest.tar.gz" :PROPAGATE NIL :WHERE ...)
 11: (SWANK::EVAL-REGION "(asdf-install:install \"/tmp/cl-cairo-latest.tar.gz\")
" T)
 12: ("DEFSLIMEFUN LISTENER-EVAL")
 13: (SWANK::CALL-WITH-BUFFER-SYNTAX #<Closure Over Function "DEFSLIMEFUN LISTENER-EVAL" {588EFF29}>)
 14: ("DEFUN EVAL-FOR-EMACS")
 15: ("DEFINTERFACE CALL-WITH-DEBUGGER-HOOK" #<Function SWANK:SWANK-DEBUGGER-HOOK {58423AC1}> #<Closure Over Function "DEFUN EVAL-FOR-EMACS" {588EFE11}>)
 16: ("DEFUN HANDLE-REQUEST")
 17: ("DEFINTERFACE CALL-WITH-DEBUGGER-HOOK" #<Function SWANK:SWANK-DEBUGGER-HOOK {58423AC1}> #<Function "DEFUN HANDLE-REQUEST" {58C9DDA1}>)
 18: (SWANK::CALL-WITH-REDIRECTED-IO #<SWANK::CONNECTION {585EDF9D}> #<Closure Over Function "DEFUN CALL-WITH-CONNECTION" {588EEAA9}>)
 19: (SWANK::CALL-WITH-CONNECTION #<SWANK::CONNECTION {585EDF9D}> #<Function "DEFUN HANDLE-REQUEST" {58C9DDA1}>)
 20: (SWANK::HANDLE-REQUEST #<SWANK::CONNECTION {585EDF9D}>)
 21: (SWANK::PROCESS-AVAILABLE-INPUT #<Stream for descriptor 6> #<Closure Over Function "DEFUN INSTALL-SIGIO-HANDLER" {588EEA59}>)
 22: ((FLET SWANK::HANDLER SWANK::INSTALL-SIGIO-HANDLER))
 23: (SWANK-BACKEND::SIGIO-HANDLER #<#1=unused-arg> #<#1#> #<#1#>)
 24: ("call_into_lisp+#x8C [#x805560C] /usr/bin/lisp")
 25: ("funcall3+#x32 [#x8055422] /usr/bin/lisp")
 26: ("interrupt_handle_now+#x105 [#x8050940] /usr/bin/lisp")
 27: ("NIL+#x8050E07 [#x8050E07] /usr/bin/lisp")
 28: ("__kernel_sigreturn+#x0 [#xB7F3E420] ")
 29: (SYSTEM:WAIT-UNTIL-FD-USABLE 0 :INPUT NIL)
 30: (LISP::DO-INPUT #<Stream for Standard Input>)
 31: (LISP::INPUT-CHARACTER #<Stream for Standard Input> NIL (LISP::*EOF*))
 32: (LISP::SYNONYM-IN #<Synonym Stream to SYSTEM:*STDIN*> NIL (LISP::*EOF*))
 33: (LISP::TWO-WAY-IN #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>, Output = #<Synonym Stream to SYSTEM:*STDOUT*>> NIL (LISP::*EOF*))
 34: (READ-CHAR #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>, Output = #<Synonym Stream to SYSTEM:*STDOUT*>> NIL (LISP::*EOF*) NIL)
 35: (LISP::READ-PRESERVING-WHITESPACE-INTERNAL #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>, Output = #<Synonym Stream to SYSTEM:*STDOUT*>> NIL (:EOF) T)
 36: (LISP::READ-PRESERVING-WHITESPACE-INTERNAL #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>, Output = #<Synonym Stream to SYSTEM:*STDOUT*>> NIL (:EOF) NIL)
 37: (LISP::READ-PRESERVING-WHITESPACE-INTERNAL 4 #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>, Output = #<Synonym Stream to SYSTEM:*STDOUT*>> NIL (:EOF) ...)[:EXTERNAL]
 38: (LISP::READ-INTERNAL #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>, Output = #<Synonym Stream to SYSTEM:*STDOUT*>> NIL (:EOF) NIL)
 39: (READ #<Two-Way Stream, Input = #<Synonym Stream to SYSTEM:*STDIN*>, Output = #<Synonym Stream to SYSTEM:*STDOUT*>> NIL (:EOF) NIL)
 40: (LISP::%TOP-LEVEL)
 41: ((LABELS LISP::RESTART-LISP SAVE-LISP))

What I do:

CL-USER> (asdf-install:install "/tmp/cl-cairo-latest.tar.gz")
Install where?
1) System-wide install: 
   System in /usr/local/asdf-install/site-systems/
   Files in /usr/local/asdf-install/site/ 
2) Personal installation: 
   System in /home/tpapp/.asdf-install-dir/systems/
   Files in /home/tpapp/.asdf-install-dir/site/ 
0) Abort installation.
 --> 2
cl-cairo-latest/
cl-cairo-latest/AUTHORS
cl-cairo-latest/types.lisp
cl-cairo-latest/cl-cairo.asd
cl-cairo-latest/Surfaces/
cl-cairo-latest/Surfaces/Glitz_Surfaces.lisp
cl-cairo-latest/Surfaces/cairo_surface_t.lisp
cl-cairo-latest/Surfaces/Image_Surfaces.lisp
cl-cairo-latest/Surfaces/PNG_Support.lisp
cl-cairo-latest/Surfaces/SVG_Surfaces.lisp
cl-cairo-latest/Surfaces/PDF_Surfaces.lisp
cl-cairo-latest/Surfaces/XLib_Surfaces.lisp
cl-cairo-latest/Surfaces/PostScript_Surfaces.lisp
cl-cairo-latest/Surfaces/Win32_Surfaces.lisp
cl-cairo-latest/test.png
cl-cairo-latest/Drawing/
cl-cairo-latest/Drawing/Patterns.lisp
cl-cairo-latest/Drawing/cairo_t.lisp
cl-cairo-latest/Drawing/Paths.lisp
cl-cairo-latest/Drawing/Text.lisp
cl-cairo-latest/Drawing/Transformations.lisp
cl-cairo-latest/tests/
cl-cairo-latest/tests/test.lisp
cl-cairo-latest/tests/gtk.lisp
cl-cairo-latest/tests/pdf.lisp
cl-cairo-latest/tests/font-test.lisp
cl-cairo-latest/tests/ps.lisp
cl-cairo-latest/package.lisp
cl-cairo-latest/README
cl-cairo-latest/tools.lisp
cl-cairo-latest/cl-cairo-tests.asd
cl-cairo-latest/Fonts/
cl-cairo-latest/Fonts/Font_Options.lisp
cl-cairo-latest/Fonts/Scaled_Fonts.lisp
cl-cairo-latest/Fonts/FreeType_Fonts.lisp
cl-cairo-latest/Fonts/cairo_font_face_t.lisp
cl-cairo-latest/Utilities/
cl-cairo-latest/Utilities/Types.lisp
cl-cairo-latest/Utilities/cairo_matrix_t.lisp
cl-cairo-latest/Utilities/Version_Information.lisp
cl-cairo-latest/Utilities/Error_handling.lisp
cl-cairo-latest/cl-cairo.lisp
cl-cairo-latest/TODO
;;; ASDF-INSTALL: Found system definition: /home/tpapp/.asdf-install-dir/site/cl-cairo-latest/cl-cairo-tests.asd
;;; ASDF-INSTALL: Found system definition: /home/tpapp/.asdf-install-dir/site/cl-cairo-latest/cl-cairo.asd
;;; ASDF-INSTALL: Loading system ASDF-INSTALL::|cl-cairo-tests| via ASDF.
; loading system definition from
; /home/tpapp/.asdf-install-dir/site/cl-cairo-latest/cl-cairo-tests.asd
; into #<The ASDF0 package>
; Loading #P"/home/tpapp/.asdf-install-dir/site/cl-cairo-latest/cl-cairo-tests.asd".
; registering #<SYSTEM CL-CAIRO-TESTS {58A4AF95}> as CL-CAIRO-TESTS
; loading system definition from
; /home/tpapp/.asdf-install-dir/site/cl-cairo-latest/cl-cairo.asd into
; #<The ASDF0 package>
; Loading #P"/home/tpapp/.asdf-install-dir/site/cl-cairo-latest/cl-cairo.asd".
; registering #<SYSTEM CL-CAIRO {58A6547D}> as CL-CAIRO
; loading system definition from /usr/share/common-lisp/systems/cffi.asd
; into #<The ASDF0 package>
; Loading #P"/usr/share/common-lisp/source/cl-cffi/cffi.asd".
; registering #<SYSTEM CFFI {58A88915}> as CFFI
; Compiling LAMBDA (.PV-CELL. .NEXT-METHOD-CALL. O C): 
; Compiling Top-Level Form: 
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/cairo_t"
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/cairo_t"
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/cairo_t"
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/Paths"
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/Paths"
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/Paths"
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/Patterns"
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/Patterns"
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/Patterns"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Drawing/Transformations"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Drawing/Transformations"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Drawing/Transformations"
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/Text"
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/Text"
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/Text"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Fonts/cairo_font_face_t"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Fonts/cairo_font_face_t"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Fonts/cairo_font_face_t"
Warning:  Silly argument for a unix PATHNAME-NAME: "Fonts/Scaled_Fonts"
Warning:  Silly argument for a unix PATHNAME-NAME: "Fonts/Scaled_Fonts"
Warning:  Silly argument for a unix PATHNAME-NAME: "Fonts/Scaled_Fonts"
Warning:  Silly argument for a unix PATHNAME-NAME: "Fonts/Font_Options"
Warning:  Silly argument for a unix PATHNAME-NAME: "Fonts/Font_Options"
Warning:  Silly argument for a unix PATHNAME-NAME: "Fonts/Font_Options"
Warning:  Silly argument for a unix PATHNAME-NAME: "Fonts/FreeType_Fonts"
Warning:  Silly argument for a unix PATHNAME-NAME: "Fonts/FreeType_Fonts"
Warning:  Silly argument for a unix PATHNAME-NAME: "Fonts/FreeType_Fonts"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Surfaces/cairo_surface_t"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Surfaces/cairo_surface_t"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Surfaces/cairo_surface_t"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Surfaces/Image_Surfaces"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Surfaces/Image_Surfaces"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Surfaces/Image_Surfaces"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Surfaces/Glitz_Surfaces"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Surfaces/Glitz_Surfaces"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Surfaces/Glitz_Surfaces"
Warning:  Silly argument for a unix PATHNAME-NAME: "Surfaces/PDF_Surfaces"
Warning:  Silly argument for a unix PATHNAME-NAME: "Surfaces/PDF_Surfaces"
Warning:  Silly argument for a unix PATHNAME-NAME: "Surfaces/PDF_Surfaces"
Warning:  Silly argument for a unix PATHNAME-NAME: "Surfaces/PNG_Support"
Warning:  Silly argument for a unix PATHNAME-NAME: "Surfaces/PNG_Support"
Warning:  Silly argument for a unix PATHNAME-NAME: "Surfaces/PNG_Support"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Surfaces/PostScript_Surfaces"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Surfaces/PostScript_Surfaces"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Surfaces/PostScript_Surfaces"
Warning:  Silly argument for a unix PATHNAME-NAME: "Surfaces/SVG_Surfaces"
Warning:  Silly argument for a unix PATHNAME-NAME: "Surfaces/SVG_Surfaces"
Warning:  Silly argument for a unix PATHNAME-NAME: "Surfaces/SVG_Surfaces"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Surfaces/Win32_Surfaces"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Surfaces/Win32_Surfaces"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Surfaces/Win32_Surfaces"
Warning:  Silly argument for a unix PATHNAME-NAME: "Surfaces/XLib_Surfaces"
Warning:  Silly argument for a unix PATHNAME-NAME: "Surfaces/XLib_Surfaces"
Warning:  Silly argument for a unix PATHNAME-NAME: "Surfaces/XLib_Surfaces"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Utilities/cairo_matrix_t"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Utilities/cairo_matrix_t"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Utilities/cairo_matrix_t"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Utilities/Error_handling"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Utilities/Error_handling"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Utilities/Error_handling"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Utilities/Version_Information"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Utilities/Version_Information"
Warning:
   Silly argument for a unix PATHNAME-NAME: "Utilities/Version_Information"
Warning:  Silly argument for a unix PATHNAME-NAME: "tests/test"
Warning:  Silly argument for a unix PATHNAME-NAME: "tests/test"
Warning:  Silly argument for a unix PATHNAME-NAME: "tests/test"
; Loading #P"/var/cache/common-lisp-controller/1000/cmucl/cl-cffi/src/utils.x86f".
; Loading #P"/var/cache/common-lisp-controller/1000/cmucl/cl-cffi/src/features.x86f".
; Loading #P"/var/cache/common-lisp-controller/1000/cmucl/cl-cffi/src/cffi-cmucl.x86f".
; Loading #P"/var/cache/common-lisp-controller/1000/cmucl/cl-cffi/src/package.x86f".
; Loading #P"/var/cache/common-lisp-controller/1000/cmucl/cl-cffi/src/libraries.x86f".
; Loading #P"/var/cache/common-lisp-controller/1000/cmucl/cl-cffi/src/early-types.x86f".
; Loading #P"/var/cache/common-lisp-controller/1000/cmucl/cl-cffi/src/types.x86f".
; Loading #P"/var/cache/common-lisp-controller/1000/cmucl/cl-cffi/src/enum.x86f".
; Loading #P"/var/cache/common-lisp-controller/1000/cmucl/cl-cffi/src/strings.x86f".
; Loading #P"/var/cache/common-lisp-controller/1000/cmucl/cl-cffi/src/functions.x86f".
; Loading #P"/var/cache/common-lisp-controller/1000/cmucl/cl-cffi/src/foreign-vars.x86f".
; Loading #P"/var/cache/common-lisp-controller/1000/cmucl/local/home/tpapp/.asdf-install-dir/site/cl-cairo-latest/package.x86f".
; Loading #P"/var/cache/common-lisp-controller/1000/cmucl/local/home/tpapp/.asdf-install-dir/site/cl-cairo-latest/tools.x86f".
; Loading #P"/var/cache/common-lisp-controller/1000/cmucl/local/home/tpapp/.asdf-install-dir/site/cl-cairo-latest/cl-cairo.x86f".
; Loading #P"/var/cache/common-lisp-controller/1000/cmucl/local/home/tpapp/.asdf-install-dir/site/cl-cairo-latest/types.x86f".
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/cairo_t"
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/cairo_t"
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/cairo_t"
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/cairo_t"
Warning:  Silly argument for a unix PATHNAME-NAME: "Drawing/cairo_t"

-- 
Posted via a free Usenet account from http://www.teranews.com

From: Richard M Kreuter
Subject: Re: couldn't install cl-cairo
Date: 
Message-ID: <87mz0g8rd6.fsf@tan-ru.localdomain>
Tamas Papp <······@gmail.com> writes:

> I am trying to install cl-cairo using asdf, but ran into problems.
> I am a newbie, so I could be doing something wrong...  I included
> the error messages below, if you can, please help me figure this
> out.  I am using the latest CMUCL.
<snip>
> Error in function LISP::UNPARSE-UNIX-FILE:
>    Cannot specify a directory separator in a pathname name: "Drawing/cairo_t"
>    [Condition of type SIMPLE-ERROR]

You haven't done anything wrong.  The .asd file is written
incorrectly.  Specifically, names of components in an asdf system are
supposed to "be a suitable value for the `:name' initarg to
`make-pathname' in whatever filesystem the system is to be found"
(asdf manual, section 3.2.1.1), but the cl-cairo.asd file has
components whose names contain slashes.

I'd suggest contacting the author(s) of cl-cairo and notifying him/her
about this.

--
RmK
From: levy
Subject: Re: couldn't install cl-cairo
Date: 
Message-ID: <1178611003.665412.307570@e65g2000hsc.googlegroups.com>
Alternatively take a look at http://common-lisp.net/project/fetter/
and generate the binding by loading cairo headers. There is a binding
for cairo and a sample at
http://common-lisp.net/cgi-bin/darcsweb/darcsweb.cgi?r=fetter-verrazano;a=headblob;f=/testsuite/cairo.lisp.

levy
From: Christian Haselbach
Subject: Re: couldn't install cl-cairo
Date: 
Message-ID: <f1qvr6$3o9$1@online.de>
Tamas Papp wrote:
> I am trying to install cl-cairo using asdf, but ran into problems.  I
> am a newbie, so I could be doing something wrong...  I included the
> error messages below, if you can, please help me figure this out.  I
> am using the latest CMUCL.

As Richard M Kreuter already pointed out, there is a problem with the 
.asd. Last time I looked at cl-cairo, I had to adapt the path to the 
cairo library.

However, I have written my own bindings to cairo. They are not 
cleaned-up, yet and not asdf installable. Still, using them should be as 
easy as loading the main lisp file (at least in sbcl).

X11, Windows specific things, and the Freetype related methods are 
missing, though.

If you are interested, I can send you the source.

Regards,
Christian
From: Tamas Papp
Subject: Re: couldn't install cl-cairo
Date: 
Message-ID: <87zm4eojv9.fsf@pu100877.student.princeton.edu>
Christian Haselbach <······@muon.de> writes:

> Tamas Papp wrote:
>> I am trying to install cl-cairo using asdf, but ran into problems.  I
>> am a newbie, so I could be doing something wrong...  I included the
>> error messages below, if you can, please help me figure this out.  I
>> am using the latest CMUCL.
>
> As Richard M Kreuter already pointed out, there is a problem with the
> .asd. Last time I looked at cl-cairo, I had to adapt the path to the
> cairo library.
>
> However, I have written my own bindings to cairo. They are not
> cleaned-up, yet and not asdf installable. Still, using them should be
> as easy as loading the main lisp file (at least in sbcl).
>
> X11, Windows specific things, and the Freetype related methods are
> missing, though.
>
> If you are interested, I can send you the source.
>
> Regards,
> Christian

Hi Christian,

I would be more interested in combining my effort with others and
making a version of cl-cairo that works.  I actually cleaned up the
asdf file and contacted the authors of cl-cairo, but none of them
replied so far.  cl-cairo seems to be using an earlier version of
cairo, and the project seems dead or at least dormant.

I think that the best route would be automatically generating the FFI.
The Verrazano/Fetter page explicitly mentions cairo, I will try to
have a look at it soon.  Advice about other utilities to automatically
generate bindings for C libraries is welcome, I don't know much about
these things.

Thanks,

Tamas

-- 
Posted via a free Usenet account from http://www.teranews.com
From: Christian Haselbach
Subject: Re: couldn't install cl-cairo
Date: 
Message-ID: <f1t13r$hiq$1@online.de>
Tamas Papp wrote:
> I would be more interested in combining my effort with others and
> making a version of cl-cairo that works.  I actually cleaned up the
> asdf file and contacted the authors of cl-cairo, but none of them
> replied so far.  cl-cairo seems to be using an earlier version of
> cairo, and the project seems dead or at least dormant.

I can see your point. (I hope to clean it up and put it somewhere public 
someday, nonetheless.)

> I think that the best route would be automatically generating the FFI.

I am not so sure that this really is the best way, because I doubt that 
automatically generated bindings can really embrace certain aspects of 
the target language.E.g., you want to abstract away certain pointer 
usage and output parameters.

However, I hope that Verrazano makes good progress. :)

Oh, and one probably should mention cl-vectors, a pure lisp library for 
vector rasterization. Haven't tried it yet, though.

Regards,
Christian
From: Tamas Papp
Subject: Re: couldn't install cl-cairo
Date: 
Message-ID: <874pmiop5l.fsf@pu100877.student.princeton.edu>
Christian Haselbach <······@muon.de> writes:

> Tamas Papp wrote:
>> I would be more interested in combining my effort with others and
>> making a version of cl-cairo that works.  I actually cleaned up the
>> asdf file and contacted the authors of cl-cairo, but none of them
>> replied so far.  cl-cairo seems to be using an earlier version of
>> cairo, and the project seems dead or at least dormant.
>
> I can see your point. (I hope to clean it up and put it somewhere
> public someday, nonetheless.)
>
>> I think that the best route would be automatically generating the FFI.
>
> I am not so sure that this really is the best way, because I doubt
> that automatically generated bindings can really embrace certain
> aspects of the target language.E.g., you want to abstract away certain
> pointer usage and output parameters.
>
> However, I hope that Verrazano makes good progress. :)
>
> Oh, and one probably should mention cl-vectors, a pure lisp library
> for vector rasterization. Haven't tried it yet, though.
>
> Regards,
> Christian

Hi Christian (and others interested in Cairo),

After learning a bit of SWIG I was able to generate the bindings for
cairo2 and draw a simple line from Lisp (small step for mankind, but a
giant leap for me ;)

I am planning to post my code after I figured out a few things.
Following cl-cairo, I plan to wrap the SWIG-generated functions that
take the cairo device from a global variable (specifying it at every
step is tedious), and also coerce arguments automatically.

I don't have a server to post my code.  If someone has a server with
subversion or darcs that could host cl-cairo2, please contact me.

Thanks,

Tamas

-- 
Posted via a free Usenet account from http://www.teranews.com
From: Christian Haselbach
Subject: Re: couldn't install cl-cairo
Date: 
Message-ID: <f23t6s$blr$1@online.de>
Tamas Papp wrote:
> I don't have a server to post my code.  If someone has a server with
> subversion or darcs that could host cl-cairo2, please contact me.

As Lars suggested, you could ask the people at common-lisp.org to host 
your project.

Regards,
Christian
From: Lars Rune Nøstdal
Subject: Re: couldn't install cl-cairo
Date: 
Message-ID: <46423817$0$29071$c83e3ef6@nn1-read.tele2.net>
On Tue, 08 May 2007 21:39:54 -0400, Tamas Papp wrote:

> Christian Haselbach <······@muon.de> writes:
> 
>> Tamas Papp wrote:
>>> I am trying to install cl-cairo using asdf, but ran into problems.  I
>>> am a newbie, so I could be doing something wrong...  I included the
>>> error messages below, if you can, please help me figure this out.  I
>>> am using the latest CMUCL.
>>
>> As Richard M Kreuter already pointed out, there is a problem with the
>> .asd. Last time I looked at cl-cairo, I had to adapt the path to the
>> cairo library.
>>
>> However, I have written my own bindings to cairo. They are not
>> cleaned-up, yet and not asdf installable. Still, using them should be
>> as easy as loading the main lisp file (at least in sbcl).
>>
>> X11, Windows specific things, and the Freetype related methods are
>> missing, though.
>>
>> If you are interested, I can send you the source.
>>
>> Regards,
>> Christian
> 
> Hi Christian,
> 
> I would be more interested in combining my effort with others and
> making a version of cl-cairo that works.  I actually cleaned up the
> asdf file and contacted the authors of cl-cairo, but none of them
> replied so far.  cl-cairo seems to be using an earlier version of
> cairo, and the project seems dead or at least dormant.
> 
> I think that the best route would be automatically generating the FFI.
> The Verrazano/Fetter page explicitly mentions cairo, I will try to
> have a look at it soon.  Advice about other utilities to automatically
> generate bindings for C libraries is welcome, I don't know much about
> these things.
> 
> Thanks,
> 
> Tamas
>

if someone want to create a cl-cairo project on common-lisp.org for
instance (mailing lists are included there) do so .. i do not have time to
maintain cl-cairo, or anything else really

-- 
Lars Rune Nøstdal
http://nostdal.org/
From: Christian Haselbach
Subject: Re: couldn't install cl-cairo
Date: 
Message-ID: <f22olt$3nv$1@online.de>
Lars Rune Nøstdal wrote:
> 
> if someone want to create a cl-cairo project on common-lisp.org for
> instance (mailing lists are included there) do so .. i do not have time to
> maintain cl-cairo, or anything else really
> 

Well, I might ask to get the project hosted on common-lisp.org. For now, 
everyone interested can download the current version of cffi-cairo here:
http://tngtech.com/~tngc028/cffi-cairo-0.1.tgz
It is now asdf installable. Documentation is completely missing right 
now, but there is an example (which uses SDL, but can be easily modified 
to output into PNG).

Comments are welcome. I do not guarantee that this is useful at all nor 
that it will do no damage. I have only tested it with some simple 
functions under sbcl/i386 (FreeBSD).

Regards,
Christian