From jasondunsmore at gmail.com Fri Sep 1 21:08:58 2006 From: jasondunsmore at gmail.com (Jason Dunsmore) Date: Fri, 1 Sep 2006 14:08:58 -0700 Subject: [cells-gtk-devel] cells-gtk and opengl Message-ID: <93f5c6d70609011408j7106e156n111c296005b7712e@mail.gmail.com> Hi, I'd like to use cells-gtk for my gui, but I need opengl for displaying an interactive 3d graph. How would one use cl-opengl with cells-gtk? Would I be better off just using another toolkit, such as celtk or cello? Thank you, Jason Dunsmore From kentilton at gmail.com Fri Sep 1 21:48:24 2006 From: kentilton at gmail.com (Ken Tilton) Date: Fri, 1 Sep 2006 17:48:24 -0400 Subject: [cells-gtk-devel] cells-gtk and opengl In-Reply-To: <93f5c6d70609011408j7106e156n111c296005b7712e@mail.gmail.com> References: <93f5c6d70609011408j7106e156n111c296005b7712e@mail.gmail.com> Message-ID: On 9/1/06, Jason Dunsmore wrote: > > Hi, I'd like to use cells-gtk for my gui, but I need opengl for > displaying an interactive 3d graph. How would one use cl-opengl with > cells-gtk? Would I be better off just using another toolkit, such as > celtk or cello? fwiw, I am using Celtk/Cello in anger every day on a big project and it is working well, but it is all new and unpolished and as always undocumented (tho Tcl/Tk and Togl doc apply). It is really nice having full access to the event stream (and of course OpenGL). FrankG has gotten Celtk/togl stuff working on OSX under AllegroCL, also fwiw. All in all, i think your tolerance for rough edges and wet paint has to be pretty high to jump in with me on Celtk/Cello, but with FTGL and GraphicsMagick /and/ OpenAL I am definitely having a ball. I also like the othe portable things one gets from Tcl besides just the Tk GUI. hth, ken -------------- next part -------------- An HTML attachment was scrubbed... URL: From 162144 at gmail.com Sat Sep 9 09:59:27 2006 From: 162144 at gmail.com (rd) Date: Sat, 09 Sep 2006 04:59:27 -0500 Subject: [cells-gtk-devel] Unable to load foreign library: X with cells-gtk-2006-06-30, SBCL, and FreeBSD Message-ID: I posted the following to comp.lang.lisp a few days ago, and it was suggested that this list or the cffi devel list would be more topical (and so here I am). I'm very inexperienced with Lisp, and I'm trying to poke around with cells-gtk. I'm using SBCL-0.9.0 on FreeBSD6, installed from the ports system. I downloaded cells-gtk-2006-06-30 and followed the INSTALL instructions. The test TEST-GTK:GTK-DEMO fails with one of the two following errors (they alternate): Unable to load foreign library: libgthread-2.0.so Unable to load foreign library: libglib-2.0.so I manually did (cffi:load-foreign-library :GLIB) and it returned T, although it complains about undefined aliens. After I did this, GTK-DEMO will only fail because it can't load libgthread. All of these libraries are in /usr/local/lib. Any help would be appreciated. From peter.denno at nist.gov Sat Sep 9 11:28:29 2006 From: peter.denno at nist.gov (Peter Denno) Date: Sat, 9 Sep 2006 07:28:29 -0400 Subject: [cells-gtk-devel] Unable to load foreign library: X with cells-gtk-2006-06-30, SBCL, and FreeBSD In-Reply-To: References: Message-ID: <200609090728.29460.peter.denno@nist.gov> On Saturday 09 September 2006 05:59, rd wrote: > I posted the following to comp.lang.lisp a few days > ago, and it was suggested that this list or the cffi > devel list would be more topical (and so here I am). > You came to the right place (this time). Talking to someone about on cffi about FreeBSD6 is also a good idea. If you go there and learn anything, please let us know. > > > I'm very inexperienced with Lisp, and I'm trying to > poke around with cells-gtk. Playing with cells-gtk probably isn't the easiest way to learn lisp, but then doing so sound like something I'd try too ;^) > > I'm using SBCL-0.9.0 on FreeBSD6, installed from the > ports system. I downloaded cells-gtk-2006-06-30 and > followed the INSTALL instructions. > > The test TEST-GTK:GTK-DEMO fails with one of the two > following errors (they alternate): > > Unable to load foreign library: libgthread-2.0.so > Unable to load foreign library: libglib-2.0.so Can you tell me what is returned when you evaluate this? : (cffi-sys::%load-foreign-library "/usr/local/lib/libglib-2.0.so") > > > I manually did > > (cffi:load-foreign-library :GLIB) > > and it returned T, although it complains about undefined > aliens. After I did this, GTK-DEMO will only fail because > it can't load libgthread. > > All of these libraries are in /usr/local/lib. Any help > would be appreciated. > > _______________________________________________ > cells-gtk-devel site list > cells-gtk-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cells-gtk-devel -- - Best regards, Peter From 162144 at gmail.com Sat Sep 9 12:22:28 2006 From: 162144 at gmail.com (rd) Date: Sat, 09 Sep 2006 07:22:28 -0500 Subject: [cells-gtk-devel] Re: Unable to load foreign library: X with cells-gtk-2006-06-30, SBCL, and FreeBSD In-Reply-To: <200609090728.29460.peter.denno@nist.gov> References: <200609090728.29460.peter.denno@nist.gov> Message-ID: Peter Denno wrote: > On Saturday 09 September 2006 05:59, rd wrote: >> I posted the following to comp.lang.lisp a few days >> ago, and it was suggested that this list or the cffi >> devel list would be more topical (and so here I am). >> > > You came to the right place (this time). Talking to someone about on cffi > about FreeBSD6 is also a good idea. If you go there and learn anything, > please let us know. > >> >> I'm very inexperienced with Lisp, and I'm trying to >> poke around with cells-gtk. > > Playing with cells-gtk probably isn't the easiest way to learn lisp, but then > doing so sound like something I'd try too ;^) > >> I'm using SBCL-0.9.0 on FreeBSD6, installed from the >> ports system. I downloaded cells-gtk-2006-06-30 and >> followed the INSTALL instructions. >> >> The test TEST-GTK:GTK-DEMO fails with one of the two >> following errors (they alternate): >> >> Unable to load foreign library: libgthread-2.0.so >> Unable to load foreign library: libglib-2.0.so > > Can you tell me what is returned when you evaluate this? : > > (cffi-sys::%load-foreign-library "/usr/local/lib/libglib-2.0.so") It returns T. However, (cffi-sys::%load-foreign-library "/usr/local/lib/libgthread-2.0.so") fails with the following: Error opening shared object "/usr/local/lib/libgthread-2.0.so": /usr/local/lib/libgthread-2.0.so: Undefined symbol "pthread_attr_destroy". [Condition of type SIMPLE-ERROR] So this indicates that it's CFFI (or perhaps something in the way FreeBSD sets these libraries up)? > > >> >> I manually did >> >> (cffi:load-foreign-library :GLIB) >> >> and it returned T, although it complains about undefined >> aliens. After I did this, GTK-DEMO will only fail because >> it can't load libgthread. >> >> All of these libraries are in /usr/local/lib. Any help >> would be appreciated. >> >> _______________________________________________ >> cells-gtk-devel site list >> cells-gtk-devel at common-lisp.net >> http://common-lisp.net/mailman/listinfo/cells-gtk-devel > From peter.denno at nist.gov Sat Sep 9 12:55:16 2006 From: peter.denno at nist.gov (Peter Denno) Date: Sat, 9 Sep 2006 08:55:16 -0400 Subject: [cells-gtk-devel] Re: Unable to load foreign library: X with cells-gtk-2006-06-30, SBCL, and FreeBSD In-Reply-To: References: <200609090728.29460.peter.denno@nist.gov> Message-ID: <200609090855.16289.peter.denno@nist.gov> On Saturday 09 September 2006 08:22, rd wrote: > > (cffi-sys::%load-foreign-library "/usr/local/lib/libglib-2.0.so") > > It returns T. > > However, (cffi-sys::%load-foreign-library > "/usr/local/lib/libgthread-2.0.so") fails with the following: > > Error opening shared object "/usr/local/lib/libgthread-2.0.so": > ? ?/usr/local/lib/libgthread-2.0.so: Undefined symbol > "pthread_attr_destroy". [Condition of type SIMPLE-ERROR] > > So this indicates that it's CFFI (or perhaps something in the way > FreeBSD sets these libraries up)? I don't know about that. I don't see anything in cells-gtk that contains the string pthread. Perhaps one of the other glib libraries is referencing this symbol and it isn't in libgthread-2.0.so ??? nm doesn't print anything (not that I'm very adept with it...). But using emacs, I can see a string pthread_attr_destroy in libgthread. You can run other glib apps, right? I'll look deeper tomorrow maybe, but I've gotta put my son to bed (Beijing time). -- - Best regards, Peter From 162144 at gmail.com Sat Sep 9 23:18:48 2006 From: 162144 at gmail.com (rd) Date: Sat, 09 Sep 2006 18:18:48 -0500 Subject: [cells-gtk-devel] Re: Unable to load foreign library: X with cells-gtk-2006-06-30, SBCL, and FreeBSD In-Reply-To: <200609090855.16289.peter.denno@nist.gov> References: <200609090728.29460.peter.denno@nist.gov> <200609090855.16289.peter.denno@nist.gov> Message-ID: Peter Denno wrote: > On Saturday 09 September 2006 08:22, rd wrote: >>> (cffi-sys::%load-foreign-library "/usr/local/lib/libglib-2.0.so") >> It returns T. >> >> However, (cffi-sys::%load-foreign-library >> "/usr/local/lib/libgthread-2.0.so") fails with the following: >> >> Error opening shared object "/usr/local/lib/libgthread-2.0.so": >> /usr/local/lib/libgthread-2.0.so: Undefined symbol >> "pthread_attr_destroy". [Condition of type SIMPLE-ERROR] >> >> So this indicates that it's CFFI (or perhaps something in the way >> FreeBSD sets these libraries up)? > > I don't know about that. I don't see anything in cells-gtk that contains the > string pthread. Perhaps one of the other glib libraries is referencing this > symbol and it isn't in libgthread-2.0.so ??? nm doesn't print anything (not > that I'm very adept with it...). But using emacs, I can see a string > pthread_attr_destroy in libgthread. You can run other glib apps, right? I didn't see anything about pthread in the cells-gtk tree either, but I'm so new to it that I don't know if that means anything. As far as I can remember, the glib stuff installed normally, probably as a dependency for GTK. I've never had any trouble running any glib/gtk application. That's part of why this was so confusing to me; I ought to have pretty close to a default setup for FreeBSD. I would've thought that other people would've seen this before. I think I'm going to try to set up a temporary linux in qemu, just to see if it'll work. > > I'll look deeper tomorrow maybe, but I've gotta put my son to bed (Beijing > time). > Thank you for all your help.