Hey all,
another newb question from me, because I suck.
Anyhow, I got JME and JMEPhysics via SVN and did everything the same as was in the tutorial video (here: http://www.youtube.com/watch?v=hzk91kfNbjQ)
I'm from Mac OS X Leopard, 10.5.8, and have some issues.
When choosing the built path for the SWT, I have two choices.
First is Mac OS X Cocoa and the other is Mac OS X Carbon.
Cocoa has the file "swt_fake.jar" and Carbon has the "swt.jar"
So the problem:
When I choose the Carbon one (swt.jar), JME builds properly and has no errors. However, when I try to run a test (any, really - in this case: TestBumpMapping.java), there is no window, but instead this error message in console:
Sep 13, 2009 8:42:08 PM com.jme.app.BaseGame start
INFO: Application started.
Sep 13, 2009 8:42:08 PM com.jme.system.PropertiesGameSettings <init>
INFO: PropertiesGameSettings created
Sep 13, 2009 8:42:08 PM com.jme.system.PropertiesGameSettings load
INFO: Read properties
2009-09-13 20:42:09.139 java[740:80f] [Java CocoaComponent compatibility mode]: Enabled
2009-09-13 20:42:09.160 java[740:80f] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
2009-09-13 20:42:12.396 java[740:13b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x18fe50> '(null)') unlocked when not locked
2009-09-13 20:42:12.396 java[740:13b03] *** Break on _NSLockError() to debug.
2009-09-13 20:42:12.499 java[740:13b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x1905a0> '(null)') unlocked when not locked
2009-09-13 20:42:12.500 java[740:13b03] *** Break on _NSLockError() to debug.
2009-09-13 20:42:12.603 java[740:13b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x190b60> '(null)') unlocked when not locked
2009-09-13 20:42:12.604 java[740:13b03] *** Break on _NSLockError() to debug.
2009-09-13 20:42:12.709 java[740:13b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x190d70> '(null)') unlocked when not locked
2009-09-13 20:42:12.710 java[740:13b03] *** Break on _NSLockError() to debug.
2009-09-13 20:42:12.812 java[740:13b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x190f30> '(null)') unlocked when not locked
2009-09-13 20:42:12.812 java[740:13b03] *** Break on _NSLockError() to debug.
2009-09-13 20:42:12.925 java[740:13b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x1910c0> '(null)') unlocked when not locked
2009-09-13 20:42:12.926 java[740:13b03] *** Break on _NSLockError() to debug.
2009-09-13 20:42:13.029 java[740:13b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x191220> '(null)') unlocked when not locked
2009-09-13 20:42:13.030 java[740:13b03] *** Break on _NSLockError() to debug.
2009-09-13 20:42:13.132 java[740:13b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x1911f0> '(null)') unlocked when not locked
2009-09-13 20:42:13.132 java[740:13b03] *** Break on _NSLockError() to debug.
2009-09-13 20:42:13.234 java[740:13b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x1913a0> '(null)') unlocked when not locked
2009-09-13 20:42:13.234 java[740:13b03] *** Break on _NSLockError() to debug.
2009-09-13 20:42:13.336 java[740:13b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x1915b0> '(null)') unlocked when not locked
2009-09-13 20:42:13.337 java[740:13b03] *** Break on _NSLockError() to debug.
2009-09-13 20:42:13.438 java[740:13b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x191610> '(null)') unlocked when not locked
2009-09-13 20:42:13.438 java[740:13b03] *** Break on _NSLockError() to debug.
2009-09-13 20:42:13.540 java[740:13b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x1918e0> '(null)') unlocked when not locked
2009-09-13 20:42:13.541 java[740:13b03] *** Break on _NSLockError() to debug.
Then I change the swt to the Cocoa one (swt_fake.jar), and it works, opens the box and displays the effect properly (or atleast I think its proper...)
but
there is an error in one of the classes, namely in src/com.jmex.swt.lwjgl/LWJGLSWTCanvas.java
in the following lines:
public void dispose() { //line 234, problem with dispose()
if ( shouldAutoKillContext ) {
glInitialized = false;
super.dispose(); // line 237, problem with dispose()
}
and
public void killGfxContext() {
glInitialized = false;
super.dispose(); // line 251, problem with dispose()
}
It says it has the following problem with line 234 (first problem):
The method dispose() of type LWJGLSWTCanvas must override a superclass method
line 237 (second problem) and 251 (third problem):
The method dispose() is undefined for the type GLCanvas
dunno if this was mentioned before or anything. Or if it is a problem at all, I can compile test projects and nothing bad or out of ordinary happens..