Deepankar Sharma | 15 Dec 2007 20:19
Picon

Problem building cl-opengl

I was recently trying to build cl-opengl on sbcl 1.0.12 / ubuntu amd64. I am using the trunk version of cffi - and some errors pop up while installing cl-opengl.

1) In the file gl/types.lisp  - the translate-p keywords for defctype do not seem to be supported anymore in cffi.
2) In the file funcs.lisp cffi::lisp-function-name is used. This is not an available function anymore. Can you please fix this.

Another related question is - should i be using the cffi 0.9.2 available on the cffi website ?

Regards,
Deepankar

_______________________________________________
cl-opengl-devel mailing list
cl-opengl-devel <at> common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cl-opengl-devel
Mikael Lax | 16 Dec 2007 02:35

Re: Problem building cl-opengl

On Sat, 15 Dec 2007 14:19:44 -0500
"Deepankar Sharma" <deepankar.sharma <at> gmail.com> wrote:

> I was recently trying to build cl-opengl on sbcl 1.0.12 / ubuntu amd64. I am
> using the trunk version of cffi - and some errors pop up while installing
> cl-opengl.
> 
> 1) In the file gl/types.lisp  - the translate-p keywords for defctype do not
> seem to be supported anymore in cffi.
> 2) In the file funcs.lisp cffi::lisp-function-name is used. This is not an
> available function anymore. Can you please fix this.

Hi, it sounds like you're using cl-opengl "classic". Try getting cl-opengl-thomas from darcs at http://common-lisp.net/~loliveira/darcs/cl-opengl-thomas

> Another related question is - should i be using the cffi 0.9.2 available on
> the cffi website ?

Personally I'm using the version from darcs without problems, but I dunno about the differences between
that and the official download.

Sincerely,
Mikael Lax
Deepankar Sharma | 16 Dec 2007 21:32
Picon

Re: cl-opengl-devel Digest, Vol 19, Issue 1

Hello Mikael,

Thanks for the pointers. I will try installing cffi and cl-opengl both from darcs. Is there any reason why the darcs version isnt moved into the official cl-opengl darcs repository ?

Regards,
Deepankar

On Dec 16, 2007 12:01 PM, <cl-opengl-devel-request <at> common-lisp.net> wrote:
Send cl-opengl-devel mailing list submissions to
       cl-opengl-devel <at> common-lisp.net

To subscribe or unsubscribe via the World Wide Web, visit
        http://common-lisp.net/cgi-bin/mailman/listinfo/cl-opengl-devel
or, via email, send a message with subject or body 'help' to
       cl-opengl-devel-request <at> common-lisp.net

You can reach the person managing the list at
        cl-opengl-devel-owner <at> common-lisp.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of cl-opengl-devel digest..."


Today's Topics:

  1. Problem building cl-opengl (Deepankar Sharma)
  2. Re: Problem building cl-opengl (Mikael Lax)


----------------------------------------------------------------------

Message: 1
Date: Sat, 15 Dec 2007 14:19:44 -0500
From: "Deepankar Sharma" < deepankar.sharma <at> gmail.com>
Subject: [cl-opengl-devel] Problem building cl-opengl
To: cl-opengl-devel <at> common-lisp.net
Message-ID:
       <f5e6a4360712151119r1d01df12md2795511c1579af4 <at> mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I was recently trying to build cl-opengl on sbcl 1.0.12 / ubuntu amd64. I am
using the trunk version of cffi - and some errors pop up while installing
cl-opengl.

1) In the file gl/types.lisp  - the translate-p keywords for defctype do not
seem to be supported anymore in cffi.
2) In the file funcs.lisp cffi::lisp-function-name is used. This is not an
available function anymore. Can you please fix this.

Another related question is - should i be using the cffi 0.9.2 available on
the cffi website ?

Regards,
Deepankar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://common-lisp.net/pipermail/cl-opengl-devel/attachments/20071215/c3ffa0d9/attachment.html

------------------------------

Message: 2
Date: Sun, 16 Dec 2007 02:35:38 +0100
From: Mikael Lax < mikael.lax <at> bredband.net>
Subject: Re: [cl-opengl-devel] Problem building cl-opengl
To: cl-opengl-devel <at> common-lisp.net
Message-ID: < 20071216023538.c665a5b0.mikael.lax <at> bredband.net>
Content-Type: text/plain; charset=US-ASCII

On Sat, 15 Dec 2007 14:19:44 -0500
"Deepankar Sharma" < deepankar.sharma <at> gmail.com> wrote:

> I was recently trying to build cl-opengl on sbcl 1.0.12 / ubuntu amd64. I am
> using the trunk version of cffi - and some errors pop up while installing
> cl-opengl.
>
> 1) In the file gl/types.lisp  - the translate-p keywords for defctype do not
> seem to be supported anymore in cffi.
> 2) In the file funcs.lisp cffi::lisp-function-name is used. This is not an
> available function anymore. Can you please fix this.

Hi, it sounds like you're using cl-opengl "classic". Try getting cl-opengl-thomas from darcs at http://common-lisp.net/~loliveira/darcs/cl-opengl-thomas

> Another related question is - should i be using the cffi 0.9.2 available on
> the cffi website ?

Personally I'm using the version from darcs without problems, but I dunno about the differences between that and the official download.

Sincerely,
Mikael Lax


------------------------------

_______________________________________________
cl-opengl-devel mailing list
cl-opengl-devel <at> common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cl-opengl-devel


End of cl-opengl-devel Digest, Vol 19, Issue 1
**********************************************

_______________________________________________
cl-opengl-devel mailing list
cl-opengl-devel <at> common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cl-opengl-devel
Mikael Lax | 17 Dec 2007 03:26

Re: Re: cl-opengl-devel Digest, Vol 19, Issue 1

On Sun, 16 Dec 2007 15:32:34 -0500
"Deepankar Sharma" <deepankar.sharma <at> gmail.com> wrote:

> Is there any reason why the darcs version isnt moved into the
> official cl-opengl darcs repository ?

No technical reason as far as I know, just lack of time on the part of developers and maintainers.

Sincerely,
Mikael Lax
Deepankar Sharma | 19 Dec 2007 05:46
Picon

disable glut main loop

I am writing a simple game using cl-opengl (a pacman clone) and would like to have my game event loop call the rendering loop. I know freeglut enables a notion like this with glutMainLoopEvent. Is there any way to do the equivalent in cl-opengl ? I did run across the special variable *run-main-loop-after-display* - but it doesnt seem to take any effect. setting this variable to nil still causes the quad in render-to-texture to rotate - am i missing something ?

_______________________________________________
cl-opengl-devel mailing list
cl-opengl-devel <at> common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cl-opengl-devel
Luís Oliveira | 19 Dec 2007 08:14
Picon
Gravatar

Re: disable glut main loop

On 19/12/2007, Deepankar Sharma <deepankar.sharma <at> gmail.com> wrote:
> I did run across the special variable
> *run-main-loop-after-display* - but it doesnt seem to take any effect.
> setting this variable to nil still causes the quad in render-to-texture to
> rotate - am i missing something ?

(let ((glut:*run-main-loop-after-display* nil))
  (cl-glut-examples:gears))

This works for me. Can you try that?

--

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
Luís Oliveira | 19 Dec 2007 13:59
Picon
Gravatar

Re: Fun GPLed Common Lisp OpenGL Molecule Viewer

Hello Doug,

Sorry for the very late reply.

On 04/09/2007, doug <at> hcsw.org <doug <at> hcsw.org> wrote:
> I was wondering if anyone can confirm this works
> for them on whatever environments or has any other
> comments. Also, cl-opengl-devel: feel free to
> include it as an example with the bindings if you
> feel it will help anyone!

Works for me with SBCL/1.0.12 running on OSX/ppc. I only had to make a
minor adjustment due to a minor incompatibility between current
cl-opengl and the cl-opengl-thomas branch I'm using. The first comment
that pops to my mind is: finally, a cl-opengl program that is actually
useful. (I have only done redbook examples and a silly game so far.
:-))

I've added your program to the examples directory. We probably should
give it some sort of licence. Is BSD (the same as the rest of
cl-opengl) OK with you?

> The random walk framerate testing mode is neat.
> The code is also good for getting an intuitive
> feeling for how GL lighting works as well as a good
> example of using rotation matrices in CL
> (gl:with-pushed-matrix is brilliant).

Yeah, with-pushed-matrix is such a trivial abstraction/utility yet
works so nicely.

--

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
Luis Oliveira | 19 Dec 2007 14:01
Picon
Gravatar

Re: glut on macosx and shader

Hello Oyuki,

Sorry for the late reply.

"oyuki" <oyuki_kuroiwa <at> fastmail.fm> writes:
> i want to know why is not working glut on macosx ... is there any way to
> fix this?

You need X11.app installed an running. Can you give us more details on
what fails? An error message perhaps?

--

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
Luis Oliveira | 19 Dec 2007 14:04
Picon
Gravatar

Re: Patch for some shader/object queries.

Hello Mikael,

Mikael Lax <mikael.lax <at> bredband.net> writes:
> I've implemented some of the functions in section 6.1.14 Shader and
> Program Queries. This also led to the FIXMEs in get-active-attrib and
> get-active-uniform being fixed (they relied on fixed buffer-sizes
> which are now queried).

Sorry for the late reply. I've applied the patch to the cl-opengl-thomas
branch.

--

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
Luis Oliveira | 19 Dec 2007 14:05
Picon
Gravatar

Re: Patch for texture coord generation.

Mikael Lax <mikael.lax <at> bredband.net> writes:
> I've made a small patch to implement tex-gen (see 2.11.4). I had use
> of it the other day and I saw it was missing.

Applied, thanks.

--

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/

Gmane