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

Questions about gdc on linux.

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
danielking



Joined: 06 Dec 2008
Posts: 6

PostPosted: Sat Dec 06, 2008 11:08 pm    Post subject: Questions about gdc on linux. Reply with quote

I installed gdc, dsss, gtkd on my ubuntu box.
But I don't know how to compile a helloworld of gtkd.
When I use gdc -o test.o test.d, it says "module MainWindow cannot read file 'gtk/MainWindow.d'".
When I use gdc -o test.o test.d -I"./d/include/d", same message prompt.
I looked into ./d/include/d/gtk, and found MainWindow.di. I created a soft link named MainWindow.d to it. Then I did "gdc -o test.o test.d" in "./d/include/d/gtk", it said "module MainWindow cannot read file 'gtk/Main.d'".

Two questions:
1. How to add include directory to gdc command?
2. It seems that gdc want to use *.d as include files, but the include files of gtkd are *.di. Why?

sorry for my english...
Back to top
View user's profile Send private message
danielking



Joined: 06 Dec 2008
Posts: 6

PostPosted: Sun Dec 07, 2008 4:52 am    Post subject: Reply with quote

I reinstall gdc4.1, dsss, tango, gtkd. All things are OK now. I don't know why.
Back to top
View user's profile Send private message
james



Joined: 28 Feb 2009
Posts: 6

PostPosted: Sat Feb 28, 2009 6:46 pm    Post subject: Reply with quote

gdc 4.2.4 dsss-0.78 gtkD-1.1

gdc -I=/usr/local/include/d photo.d
photo.d:1: module MainWindow cannot read file 'gtk/MainWindow.d'

my /usr/local/include/d/gtk has lots of di files including MainWindow.di but no d files - can anyone help?
Back to top
View user's profile Send private message
james



Joined: 28 Feb 2009
Posts: 6

PostPosted: Sat Feb 28, 2009 11:30 pm    Post subject: Reply with quote

tried dmd .....

Code:

dmd -ofhelloworldgtk helloworldgtk.d
helloworldgtk.d: module helloworldgtk cannot read file 'helloworldgtk.d'
dmd -ofhelloworldgtk -I/usr/local/include/d helloworldgtk.d
helloworldgtk.d: module helloworldgtk cannot read file 'helloworldgtk.d'
dmd -ofhelloworldgtk -I/usr/local/include helloworldgtk.d
helloworldgtk.d: module helloworldgtk cannot read file 'helloworldgtk.d'
dmd -ofhelloworldgtk -I/usr/local/include/d/gtk helloworldgtk.d
helloworldgtk.d: module helloworldgtk cannot read file 'helloworldgtk.d'



any suggestions? thanks
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Sun Mar 01, 2009 6:08 am    Post subject: Reply with quote

It might be a problem with permissions.
Back to top
View user's profile Send private message
james



Joined: 28 Feb 2009
Posts: 6

PostPosted: Sun Mar 01, 2009 8:17 am    Post subject: Reply with quote

/usr/local/include/d/gtk is world readable
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD 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