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
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
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
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
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
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
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
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/
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