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  Next
 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
jaysistar



Joined: 30 Jun 2010
Posts: 31

PostPosted: Fri Jul 23, 2010 12:58 pm    Post subject: Reply with quote

aldacron wrote:

Unfortunately, this seems to be a limitation in DMD's handling of the -Hd flag, which is used to specify an output directory for headers.

I noticed that. Compiling them separately does deposit the .di files correctly. From what I understand, that is not as fast due to DMD's ability to compile and link everything from memory. D compiles so much faster than C and C++, though it's not really a problem, but yes, this issue seems to be inside the compiler.
aldacron wrote:

But that's just a needless workaround. Perhaps this should be a bug report for DMD?

I believe so. I just posted to "digitalmars.D.bugs" to report the issue, but I'm not sure if that's the "right way" to report bugs.

Edit:
Ok, I added a bug in DMD's "puremagic" bug tracker, which posted to the newsgroup again, but that's ok. In the meantime, I'd say that since only 2 directories are in play, and since we don't know when that will get fixed, can we split the macinit files into a separate command so that a seperate -Hd will be given?
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Sun Jul 25, 2010 1:58 am    Post subject: Reply with quote

jaysistar wrote:
In the meantime, I'd say that since only 2 directories are in play, and since we don't know when that will get fixed, can we split the macinit files into a separate command so that a seperate -Hd will be given?


That's fine with me, if someone with a Mac wants to work on it. I can implement it, but not test it. So, any takers?
_________________
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: Sun Jul 25, 2010 3:32 am    Post subject: Reply with quote

I can always test.
Back to top
View user's profile Send private message
jaysistar



Joined: 30 Jun 2010
Posts: 31

PostPosted: Sun Jul 25, 2010 11:20 am    Post subject: Reply with quote

I will be working with Derelect2 on all 3 platforms for most of my new projects, so I'll be testing.
Back to top
View user's profile Send private message
jaysistar



Joined: 30 Jun 2010
Posts: 31

PostPosted: Tue Aug 10, 2010 3:40 am    Post subject: Reply with quote

It has been a few weeks... any progress on making SDL work on Mac OS X?
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Tue Aug 10, 2010 6:31 am    Post subject: Reply with quote

I haven't gotten around to it yet. If no one has done anything about it before I get to my next Derelict time block, I'll give it priority.
_________________
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: Tue Aug 10, 2010 8:57 am    Post subject: Reply with quote

Thanks.
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Sat Aug 14, 2010 6:01 am    Post subject: Reply with quote

I've just committed a revised DerelictSDL makefile in an attempt to fix the problem with macinit .di output. Can someone on Mac please make DerelictSDL and let me know if it works?
_________________
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: Sat Aug 14, 2010 8:21 am    Post subject: Reply with quote

It looks like darwin.mak doesn't define the DC variable, so I get:

$ make -f darwin.mak
make -C DerelictAL all PLATFORM=darwin
Makefile:2: ../inc/_inc.mak: No such file or directory
make[1]: *** No rule to make target `../inc/_inc.mak'. Stop.
make: *** [DerelictAL_ALL] Error 2

The "linux.mak" file seems to not define DC either, so on my Linux machine I get:

$ make -f linux.mak
make -C DerelictAL all PLATFORM=linux
make[1]: Entering directory `/home/jay/Desktop/D/temp/Derelict2/DerelictAL'
Makefile:2: ../inc/_inc.mak: No such file or directory
make[1]: *** No rule to make target `../inc/_inc.mak'. Stop.
make[1]: Leaving directory `/home/jay/Desktop/D/temp/Derelict2/DerelictAL'
make: *** [DerelictAL_ALL] Error 2
Back to top
View user's profile Send private message
michaelp



Joined: 27 Jul 2008
Posts: 114

PostPosted: Sat Aug 14, 2010 8:43 am    Post subject: Reply with quote

You have to define these yourself when you run make.
Code:
make -f darwin.mak DC=dmd

If you want to use dmd.
Back to top
View user's profile Send private message
jaysistar



Joined: 30 Jun 2010
Posts: 31

PostPosted: Sat Aug 14, 2010 8:57 am    Post subject: Reply with quote

michaelp wrote:
You have to define these yourself when you run make.
Code:
make -f darwin.mak DC=dmd

If you want to use dmd.


Thanks! That must have changed recently. It compiles fine on Linux now.

On Mac OS X, though:

$ make -f darwin.mak DC=dmd
...[removed successful build messages]...
make -C DerelictSDL all PLATFORM=darwin
make[1]: *** No rule to make target `darwin_build_sdl', needed by `libDerelictSDL.a'. Stop.
make: *** [DerelictSDL_ALL] Error 2

After reading the Makefile it looks pretty close to working. I'll test again when you post here again, aldacron.


Last edited by jaysistar on Sat Aug 14, 2010 9:02 am; edited 1 time in total
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Sat Aug 14, 2010 9:02 am    Post subject: Reply with quote

aldacron wrote:
I've just committed a revised DerelictSDL makefile in an attempt to fix the problem with macinit .di output. Can someone on Mac please make DerelictSDL and let me know if it works?

I'm getting this error:
Code:
make[1]: *** No rule to make target `darwin_build_sdl', needed by `libDerelictSDL.a'.  Stop.
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Sat Aug 14, 2010 10:32 am    Post subject: Reply with quote

doob wrote:
I'm getting this error:
Code:
make[1]: *** No rule to make target `darwin_build_sdl', needed by `libDerelictSDL.a'.  Stop.


Thanks, doob. I keep forgetting that everything is 'darwin' instead of 'mac'. So, I've gone ahead and changed darwin.mak and darwin_inc.mak to mac.mak and mac_inc.mak, so that I stop getting confused!

Can you update and try again? 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: Sat Aug 14, 2010 11:37 am    Post subject: Reply with quote

Ok, I got:

...
dmd -release -O -inline *.o -oflibDerelictSDL.a
Undefined symbols:
...[removed the rest of error]...

I think that the compiler command line needed a "-lib" option (for "dmd" at least).
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Sat Aug 14, 2010 7:08 pm    Post subject: Reply with quote

Updated. I really hope this does it.
_________________
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
Goto page Previous  1, 2, 3  Next
Page 2 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