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

build 3.02 - module object cannot read file 'object.d'

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
sylverpyro



Joined: 23 May 2006
Posts: 28

PostPosted: Mon Jun 26, 2006 10:59 am    Post subject: build 3.02 - module object cannot read file 'object.d' Reply with quote

Just updated to build 3.02 to try and build Derelict. When I attempted to run the buildme.d script for Derelict I got a bunch of sh: @rm: command not found errors, so I tried to just straight up build the buildme.d script.

Code:
:~/Software/Linux/D/Derelict/Derelict$ build buildme.d


To which build said:

Code:
object.d: module object cannot read file 'object.d'


I checked my dmd.conf file and the phobos files are pointed to correctly. Also tried with the -LIBPATH= switch with no luck. Envoking the dmd compiler directly also seems to work. I also tried to run build with the -V switch to try and get some more meaning out of the error, but it still only gave me the one line of code. Any ideas?
Back to top
View user's profile Send private message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Thu Jul 06, 2006 4:00 pm    Post subject: Reply with quote

not finding object.d normally means, that the sources of phobos were not in the include path.

Edit /etc/dmd.conf, if it does not exist, copy it from the dmd package.
or add -I<path> to the commandline.
Back to top
View user's profile Send private message
wilsonk



Joined: 21 Apr 2006
Posts: 40

PostPosted: Sun Jul 09, 2006 6:00 pm    Post subject: Reply with quote

Hello all,

I seem to get a similar error message:

sprite.d: module object cannot read file 'sprite.d'

when I use an include like "-I~/Arcgames/"....this seems to be coming from the "~" not being expanded to my home directory. If I use a fully qualified directory like "-I/home/wilsonk/Arcgames" then the compilation works fine.

Just thought I would let you know. Maybe I missed this limitation under Linux, in the documentaiton somewhere.
Kelly Wilson

P.S. I am using build 2.9 so maybe I just need to upgrade?!?
Back to top
View user's profile Send private message
csauls



Joined: 27 Mar 2004
Posts: 278

PostPosted: Sun Jul 09, 2006 11:01 pm    Post subject: Reply with quote

You know, I seem to vaguely recall a couple years ago us all discussing a strange error that turned out to be caused by '~' characters not getting expanded... the same old error coming back to haunt us again somehow, or something new yet related, perhaps? I haven't been able to dig up the original discussion though.
_________________
Chris Nicholson-Sauls
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Mon Jul 10, 2006 6:44 am    Post subject: Reply with quote

csauls wrote:
You know, I seem to vaguely recall a couple years ago us all discussing a strange error that turned out to be caused by '~' characters not getting expanded... the same old error coming back to haunt us again somehow, or something new yet related, perhaps? I haven't been able to dig up the original discussion though.

I'm pretty sure that ~ doesn't get expanded if its inside a quoted string. Maybe Build will have to do this for you. So if a file name begins with '~' then I'll replace that with the contents of $HOME symbol. How does that sound?
_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
wilsonk



Joined: 21 Apr 2006
Posts: 40

PostPosted: Mon Jul 10, 2006 10:20 pm    Post subject: Reply with quote

Hey Derek,

The idea of replacing a double-quoted ~ with the contents of $HOME sounds good to me. It should fix things and save me some typing Wink

Thanks,
K.Wilson
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build 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