On Dec 18, 2008, at 4:35 PM, Michael Reid wrote:

>
> For what its worth, I've had a similar setup working on Mac OS X 10.5:
>
> Aquamacs
> SLIME
> jogl-1.1.1
>
> I'm pretty sure I'm running Java 1.6 (can't check now). I had no
> issues with hangs. Perhaps QT is the bad ingredient.

I'm thinking the same.  Have been doing interactive 3d graphics with  
Clojure and jME (using LWJGL) and have had no issues launching a  
windowed scene and interacting with it via the REPL.

Carbon Emacs and slime here.

>
>
> /mike.
>
>
> On Thu, Dec 18, 2008 at 2:40 PM, chris <cnuern...@gmail.com> wrote:
>>
>> I think you are absolutely correct.  I am using -XstartOnFirstThread,
>> but I noticed when the application works it outputs a message about
>> the CocoaCompatibilty enabled.  This is triggered somehow from the
>> jogl calls.  This indicates there is some threading going on behind
>> the scenes as that compatibility layer is for dealing with  
>> asyncronous
>> calls to or from awt threads.
>>
>> I have decided to dump QT and move to a swing UI.  I have read a lot
>> of posts about the upgrades and openGL 2D integration it has in java
>> 1.6 so I guess I will just try it out.  I will do most of my  
>> rendering
>> to FBO's anyway so I won't be using the pbuffer crap in it now; jogl
>> exposes the base opengl calls and their extensions.  QT freezes if  
>> you
>> don't use -XstartOnFirstThread in your java arg; this is an indicator
>> that mixing it with anything awt replated (as jogl certainly is) is
>> going to have some perhaps dire consequences.
>>
>> Two of the three hard problems I came across were due to QT; I guess
>> from my perspective, until they port it to cocoa, it isn't really
>> useful for java on the mac.
>>
>> Really rough introduction to java, however.  Everything I tried went
>> bang in odd ways; and it wasn't clojure as much as it was jar, jni,
>> dylib, mac hell.  Luckily I work in c++ so I am used to all this  
>> shit.
>>
>> Thanks for the reply!
>>
>> Chris
>>
>> On Dec 18, 10:17 am, AA <andk...@obtech.net> wrote:
>>> Generally speaking, there are complications with using OpenGL from
>>> multiple threads, I wonder if the calls you make via the Slime/Swank
>>> interface are in a different thread than the one that allocated the
>>> OpenGL context.  Here's some documentation that may be relevant if  
>>> you
>>> are using OS X:
>>>
>>> http://developer.apple.com/documentation/graphicsimaging/Conceptual/O 
>>> ...
>>>
>>> http://developer.apple.com/documentation/graphicsimaging/Conceptual/O 
>>> ...
>>>
>>> On Dec 17, 11:33 pm, chris <cnuern...@gmail.com> wrote:
>>>
>>>> I am trying to write an application using the above libraries.   
>>>> There
>>>> is no point to this app at the moment other than to take my time  
>>>> and
>>>> enjoy learning clojure.  I am hoping that anyone else with  these
>>>> problems will be able to find this post, so I am going to dump.
>>>
>>>> I have had a hell of time getting things to work correctly.   
>>>> First I
>>>> installed java 1.6, only to find out that trolltech doesn't support
>>>> that version on os x because it is 64 bit and they haven't ported
>>>> their libraries to cocoa.  The error you get is an initializer  
>>>> failure
>>>> in JambiObject; it takes quite a while to figure out the
>>>> inconsistencies.
>>>
>>>> Next I couldn't build because the ant process was finding two
>>>> xercesimpl.jar files somehow and this was making the construction  
>>>> of
>>>> the sax parser fail when the qt libs attempt to do their thing when
>>>> the java task is loading the clojure class from the build  
>>>> directory.
>>>
>>>> I then managed to get an app up and running; the cool thing is that
>>>> when you close the app it just puts you back in the repl.  Then you
>>>> can call a function and give event handing back to QT.  This is  
>>>> fun; I
>>>> don't have to shutdown to try out lots of different stuff until I  
>>>> hang
>>>> the process or crash QT.
>>>
>>>> Finally I decided to try out some openGL.  I got a complete hang  
>>>> every
>>>> time I called GL, using the slime repl from emacs.  I could get all
>>>> the rest of my gui stuff working but anything GL related would  
>>>> hang.
>>>> I tried switching from jogl to lwjgl and the result was the same.
>>>> super hang.
>>>
>>>> 4 hours of debugging later I tried running the helloGL QT demo  
>>>> and it
>>>> was working.  I then tried it from the command line repl and it
>>>> worked.  Finally I tried it from the slime repl and it just hung.
>>>
>>>> So my question to the gurus in this forum is why, on mac os 10.5  
>>>> using
>>>> jvm 1.5 and the latest clojure, slime, aquamacs, clojure-contrib,  
>>>> qt,
>>>> jogl, swank-clojure, NVIDIA 8600M GT, 2.5 ghz core 2 due, 4 gigs of
>>>> ram, in a house that is 65 degrees fahrenheit, at 40.03N x  
>>>> 105.25W...
>>>
>>>> would this exact scenario hang?  I really want to use slime as my
>>>> primary repl; I will have to use some crap null gl wrappers when  
>>>> I am
>>>> not working on gl as it is unless I can get slime to play nice with
>>>> gl.
>>>
>>>> Clojure is the shit!
>>>
>>>> Unfortunately, java still sucks.  Not that it will stop me using
>>>> clojure.
>>>
>>>> Thanks!
>>>
>>>> oh, the code is at:  http://github.com/cnuernber/lambinator/tree/master
>>>
>>>> Chris
>>>
>>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to