View previous topic :: View next topic |
Author |
Message |
danielking
Joined: 06 Dec 2008 Posts: 6
|
Posted: Sat Dec 06, 2008 11:08 pm Post subject: Questions about gdc on linux. |
|
|
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 |
|
|
danielking
Joined: 06 Dec 2008 Posts: 6
|
Posted: Sun Dec 07, 2008 4:52 am Post subject: |
|
|
I reinstall gdc4.1, dsss, tango, gtkd. All things are OK now. I don't know why. |
|
Back to top |
|
|
james
Joined: 28 Feb 2009 Posts: 6
|
Posted: Sat Feb 28, 2009 6:46 pm Post subject: |
|
|
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 |
|
|
james
Joined: 28 Feb 2009 Posts: 6
|
Posted: Sat Feb 28, 2009 11:30 pm Post subject: |
|
|
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 |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Sun Mar 01, 2009 6:08 am Post subject: |
|
|
It might be a problem with permissions. |
|
Back to top |
|
|
james
Joined: 28 Feb 2009 Posts: 6
|
Posted: Sun Mar 01, 2009 8:17 am Post subject: |
|
|
/usr/local/include/d/gtk is world readable |
|
Back to top |
|
|
|