FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Derelict2 on Mac OS X Snow Leopard

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
Poita_



Joined: 23 Jul 2010
Posts: 8

PostPosted: Fri Oct 15, 2010 1:06 am    Post subject: Derelict2 on Mac OS X Snow Leopard Reply with quote

I'm having some trouble getting Derelict2 running on Mac OS X.

I started by building the libraries using:

make -fmac.mak DC=dmd

This appeared to build without any problems. And then I tried running

rdmd dgl.d -IDerelictSDL -IDerelictUtil -IDerelictGL

(That's the dgl.d that comes with Derelict2)

But I get this immediately on running:

2010-10-14 21:27:07.154 dgl[11968:903] *** __NSAutoreleaseNoPool(): Object 0x213000 of class NSCFString autoreleased with no pool in place - just leaking
2010-10-14 21:27:07.157 dgl[11968:903] +[NSApplication sharedApplication]: unrecognized selector sent to class 0xa05b78a0
2010-10-14 21:27:07.157 dgl[11968:903] *** __NSAutoreleaseNoPool(): Object 0x4003e0 of class NSCFString autoreleased with no pool in place - just leaking
2010-10-14 21:27:07.158 dgl[11968:903] *** __NSAutoreleaseNoPool(): Object 0x400540 of class NSException autoreleased with no pool in place - just leaking
2010-10-14 21:27:07.159 dgl[11968:903] *** __NSAutoreleaseNoPool(): Object 0x400940 of class _NSCallStackArray autoreleased with no pool in place - just leaking
2010-10-14 21:27:07.159 dgl[11968:903] *** __NSAutoreleaseNoPool(): Object 0x212f80 of class _NSCallStackArray autoreleased with no pool in place - just leaking
2010-10-14 21:27:07.160 dgl[11968:903] *** __NSAutoreleaseNoPool(): Object 0x216690 of class NSCFString autoreleased with no pool in place - just leaking
2010-10-14 21:27:07.161 dgl[11968:903] *** __NSAutoreleaseNoPool(): Object 0x100b800 of class NSCFString autoreleased with no pool in place - just leaking
2010-10-14 21:27:07.162 dgl[11968:903] *** __NSAutoreleaseNoPool(): Object 0x4009a0 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2010-10-14 21:27:07.162 dgl[11968:903] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSApplication sharedApplication]: unrecognized selector sent to class 0xa05b78a0'
*** Call stack at first throw:
(
0 CoreFoundation 0x93b85bba __raiseError + 410
1 libobjc.A.dylib 0x92986509 objc_exception_throw + 56
2 CoreFoundation 0x93bd299b +[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x93b2c7e6 ___forwarding___ + 950
4 CoreFoundation 0x93b2c3b2 _CF_forwarding_prep_0 + 50
5 dgl 0x00026246 D8derelict3sdl7macinit13NSApplication12_staticCtor2FZv + 98
6 dgl 0x000261df _D8derelict3sdl7macinit13NSApplication9__modctorFZv + 11
7 dgl 0x000347bd D6object14_moduleTlsCtorUZv15_moduleTlsCtor2MFAPS6object10ModuleInfoiZv + 357
8 dgl 0x000347a6 D6object14_moduleTlsCtorUZv15_moduleTlsCtor2MFAPS6object10ModuleInfoiZv + 334
9 dgl 0x000347a6 D6object14_moduleTlsCtorUZv15_moduleTlsCtor2MFAPS6object10ModuleInfoiZv + 334
10 dgl 0x00034857 D6object14_moduleTlsCtorUZv15_moduleTlsCtor2MFAPS6object10ModuleInfoiZv + 511
11 dgl 0x0003464c _moduleTlsCtor + 204
12 dgl 0x0004004d D2rt6dmain24mainUiPPaZi6runAllMFZv + 33
13 dgl 0x0003ff56 D2rt6dmain24mainUiPPaZi7tryExecMFMDFZvZv + 42
14 dgl 0x0003fee3 main + 179
15 dgl 0x00001ef9 start + 53
)
Trace/BPT trap

I'm using DMD 2.049 btw.

Any idea how to fix this?
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Fri Oct 15, 2010 2:27 am    Post subject: Reply with quote

You got that far with D2? Last time I tried it it crashed with an out of memory exception. I'll look into this.
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Wed Oct 20, 2010 11:01 am    Post subject: Reply with quote

Fixed in: changset 514, sorry for the delay
Back to top
View user's profile Send private message
Poita_



Joined: 23 Jul 2010
Posts: 8

PostPosted: Fri Oct 22, 2010 3:28 pm    Post subject: Reply with quote

Thanks very much! That seems to have done the trick Smile
Back to top
View user's profile Send private message
coderat



Joined: 13 Apr 2011
Posts: 2

PostPosted: Wed Apr 13, 2011 6:15 am    Post subject: Reply with quote

I'm trying to get it to work on a mac too. it compiled without error but than I get this:

[:~/Documents/derelict/Derelict2/]% dmd dgl.d -IDerelictSDL -IDerelictUtil -IDerelictGL
[:~/Documents/derelict/Derelict2/]% ./dgl
derelict.util.exception.SharedLibLoadException: Failed to load one or more shared libraries:
../Frameworks/SDL.framework/SDL - dlopen(../Frameworks/SDL.framework/SDL, 2): image not found
/Library/Frameworks/SDL.framework/SDL - dlopen(/Library/Frameworks/SDL.framework/SDL, 2): image not found
/System/Library/Frameworks/SDL.framework/SDL - dlopen(/System/Library/Frameworks/SDL.framework/SDL, 2): image not found
----------------
5 dgl 0x0003b149 void derelict.util.exception.SharedLibLoadException.throwNew(const(char[][]), const(char[][])) + 265
6 dgl 0x0003b705 void derelict.util.sharedlib.SharedLib.load(immutable(char)[][]) + 229
7 dgl 0x0003b434 void derelict.util.loader.SharedLibLoader.load(immutable(char)[][]) + 24
8 dgl 0x0003b40e void derelict.util.loader.SharedLibLoader.load(immutable(char)[]) + 110
9 dgl 0x0003b395 void derelict.util.loader.SharedLibLoader.load() + 21
10 dgl 0x00001ba7 _Dmain + 55
11 dgl 0x0004a683 extern (C) int rt.dmain2.main(int, char**) + 23
12 dgl 0x0004a5ba extern (C) int rt.dmain2.main(int, char**) + 42
13 dgl 0x0004a6cb extern (C) int rt.dmain2.main(int, char**) + 59
14 dgl 0x0004a5ba extern (C) int rt.dmain2.main(int, char**) + 42
15 dgl 0x0004a547 main + 179
16 dgl 0x00001b65 start + 53
[:~/Documents/derelict/Derelict2/]%


It may be I'm missing something Sad

Any help would be really appreciated..
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Wed Apr 13, 2011 7:47 am    Post subject: Reply with quote

It appears that you don't have SDL installed.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
coderat



Joined: 13 Apr 2011
Posts: 2

PostPosted: Wed Apr 13, 2011 9:35 am    Post subject: Reply with quote

Thank you for your help. I managed to get trough it..But now I have this one...

[:~/Documents/derelict/Derelict2/]% ./dgl
SDL version: 1.2.14
derelict.util.exception.DerelictException: Required GL version OpenGL Version 3.0 is not available.
----------------
5 dgl 0x0002d011 derelict.opengl.gl.GLVersion derelict.opengl.gl.DerelictGLLoader.loadModernVersions(derelict.opengl.gl.GLVersion) + 129
6 dgl 0x00001d9c _Dmain + 556
7 dgl 0x0004a683 extern (C) int rt.dmain2.main(int, char**) + 23
8 dgl 0x0004a5ba extern (C) int rt.dmain2.main(int, char**) + 42
9 dgl 0x0004a6cb extern (C) int rt.dmain2.main(int, char**) + 59
10 dgl 0x0004a5ba extern (C) int rt.dmain2.main(int, char**) + 42
11 dgl 0x0004a547 main + 179
12 dgl 0x00001b65 start + 53
[:~/Documents/derelict/Derelict2/]%
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Wed Apr 13, 2011 4:43 pm    Post subject: Reply with quote

There's no problem. Everything is working as it should. dgl.d is just a simple module I use as a test when I update DerelictGL and DerelictSDL to make sure everything loads as it should. When I added support for OpenGL 3, I modified dgl.d to load that version explicitly to test it on my system.

In your case, it is compiling and running successfully. You don't have graphics drivers that support OpenGL 3, hence the exception. But that's not a problem that will prevent you from using Derelict.

For future reference, please don't post new issues in existing threads. You should start a new topic for this sort of thing.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group