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

gdmd

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



Joined: 19 Mar 2004
Posts: 396
Location: Canyon, TX

PostPosted: Sun May 29, 2005 7:13 pm    Post subject: gdmd Reply with quote

I haven't downloaded the latest gdc yet, but David said he had renamed his dmd script to gdmd. Build will need to provide another makefile just for gdc. I just thought I should post this here.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Derek Parnell



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

PostPosted: Sun May 29, 2005 7:29 pm    Post subject: Re: gdmd Reply with quote

Carlos wrote:
I haven't downloaded the latest gdc yet, but David said he had renamed his dmd script to gdmd. Build will need to provide another makefile just for gdc. I just thought I should post this here.

Yes, I suppose so. Until then (its only a one line change)
Code:

# "Makefile.gdc"
DMD=gdmd
DFLAGS=-op -release -inline
SOURCES=build.d util/pathex_bn.d util/pathex.d source_bn.d util/str.d build_bn.d util/fdt_bn.d util/str_bn.d source.d util/fdt.d util/fileex.d util/fileex_bn.d util/linetoken.d util/linetoken_bn.d util/bmscanner.d util/bmscanner_bn.d util/macro.d

all: build

build: $(SOURCES)
   $(DMD) $(DFLAGS) -of$@ $(SOURCES)

clean:
   rm -f *.o build

_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
skotku



Joined: 23 Aug 2007
Posts: 2
Location: Sweden

PostPosted: Tue Jan 08, 2008 1:06 pm    Post subject: dsss gdmd Reply with quote

Hi everyone !

After writing alot of command programs in D I want to run some gtk with D ... so I tried to with gdc and gtkd but .. i failed miserably.. after a bit of searching around I found dsss and thought ok I'll let dsss fix the building and linking and such.

So I got the latest (0.74) version of dsss and typed away .. just like in the tutorial videos (great videos by the way) and i found that .. oh I'm missing gdmd.. oh what is it? .. searching seaching .. aha its the obsolete prequal to gdc.. and I made a softlink to gdc-4.1 and .. typed away again

dsss net install gtkd

...

Creating imports for DG-gtk

Creating imports for DG-gtkc

Creating imports for DG-pango

atk => DG-atk
+ /home/sepek/dsss/bin/rebuild -Idsss_imports/ -I. -S./ -I/home/sepek/dsss/include/d -S/home/sepek/dsss/lib/ -I/home/sepek/dsss/include/d -S/home/sepek/dsss/lib -I/home/sepek/d/include/d -S/home/sepek/d/lib -oqdsss_objs/G -explicit -lib atk/Text.d atk/Image.d atk/Relation.d atk/StreamableContent.d atk/Registry.d atk/GObjectAccessible.d atk/ObjectFactory.d atk/Hyperlink.d atk/RelationSet.d atk/Util.d atk/EditableText.d atk/Hypertext.d atk/Action.d atk/Selection.d atk/StateSet.d atk/Component.d atk/ObjectAtk.d atk/NoOpObjectFactory.d atk/ValueAtk.d atk/Table.d atk/State.d atk/NoOpObject.d atk/Document.d -oflibDG-atk.a
gdmd: unrecognized option '-version=Posix'
gdmd: cannot specify -o with -c or -S with multiple files

Command /home/sepek/dsss/bin/rebuild returned with code 256, aborting.
Error: Command failed, aborting.

now what? .. I know its vague but I'll just wait until the next version of dsss comes along right!
Back to top
View user's profile Send private message
Player



Joined: 17 Jan 2008
Posts: 2

PostPosted: Thu Jan 17, 2008 6:49 am    Post subject: Reply with quote

gdc doesn't support the -version and -op commandline switches. You have to use the gdmd wrapper script instead of calling gdc directly.

I've modified build to use gdmd for the GNU section including -op detection to fix the linker object file paths.
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