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

Derelict2 in Xcode with "D for XCode"-problem?
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Sun Aug 15, 2010 4:37 am    Post subject: Reply with quote

It works now, changeset 507.
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Sun Aug 15, 2010 4:49 am    Post subject: Reply with quote

Thanks!
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
jaysistar



Joined: 30 Jun 2010
Posts: 31

PostPosted: Sun Aug 15, 2010 2:34 pm    Post subject: Reply with quote

It looks like it compiles fine now. Now there's only 1 issue left on the mac: SDL apps all give the following output:

$ ./test_sdl_app
Memory allocation failed

This doesn't happen on Linux or Windows, only on Mac OS X.

Since this problem is detailed earlier in this thread, I won't give further detail here.

I'll try to dig into the code; if I find anything, then I'll give details on those findings.
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Sun Aug 15, 2010 8:40 pm    Post subject: Reply with quote

jaysistar wrote:
I'll try to dig into the code; if I find anything, then I'll give details on those findings.


Thanks much. I feel helpless sometimes not having a Mac to work with.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Mon Aug 16, 2010 1:55 am    Post subject: Reply with quote

jaysistar wrote:
It looks like it compiles fine now. Now there's only 1 issue left on the mac: SDL apps all give the following output:

$ ./test_sdl_app
Memory allocation failed

This doesn't happen on Linux or Windows, only on Mac OS X.

Since this problem is detailed earlier in this thread, I won't give further detail here.

I'll try to dig into the code; if I find anything, then I'll give details on those findings.


It's only for D2 and it's already reported as ticket #57. I tried to build druntime and phobos as debug builds but I got an assert error early in the runtime start up code, before any of the user code had a chance to run.
Back to top
View user's profile Send private message
jaysistar



Joined: 30 Jun 2010
Posts: 31

PostPosted: Thu Aug 26, 2010 10:50 pm    Post subject: Reply with quote

In the latest SVN checkout, I'm getting something different on the Mac. When I run a small program that uses SDL and OpenGL I get the following errors:

Code:
$ ./test_gl
object.Exception: Cyclic dependency in module derelict.sdl.macinit.NSApplication
----------------
5   test_gl                             0x00004bae D6object14_moduleTlsCtorUZv15_moduleTlsCtor2MFAPS6object10ModuleInfoiZv + 334
6   test_gl                             0x00004c5f D6object14_moduleTlsCtorUZv15_moduleTlsCtor2MFAPS6object10ModuleInfoiZv + 511
7   test_gl                             0x00004c5f D6object14_moduleTlsCtorUZv15_moduleTlsCtor2MFAPS6object10ModuleInfoiZv + 511
8   test_gl                             0x00004c5f D6object14_moduleTlsCtorUZv15_moduleTlsCtor2MFAPS6object10ModuleInfoiZv + 511
9   test_gl                             0x00004bae D6object14_moduleTlsCtorUZv15_moduleTlsCtor2MFAPS6object10ModuleInfoiZv + 334
10  test_gl                             0x00004a54 _moduleTlsCtor + 204
11  test_gl                             0x00004742 _moduleCtor + 122
12  test_gl                             0x0000d168 D2rt6dmain24mainUiPPaZi6runAllMFZv + 28
13  test_gl                             0x0000d076 D2rt6dmain24mainUiPPaZi7tryExecMFMDFZvZv + 42
14  test_gl                             0x0000d004 main + 168
15  test_gl                             0x00001dfd start + 53

I've tried taking out various pieces of static this() functions, and I did get the app to actually print to stdout, but then crash (Sorry, I forgot to capture the errors before I reverted back to the source on the server.). I'll keep digging, but could you let me know what you think about the stack trace and what might be happening?
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Fri Aug 27, 2010 6:44 am    Post subject: Reply with quote

the Cyclic dependency error happens when two modules containing module constructors import each other.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
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