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

How to install DUIT on XP?

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



Joined: 06 Jan 2007
Posts: 5

PostPosted: Sat Jan 06, 2007 8:34 pm    Post subject: How to install DUIT on XP? Reply with quote

Hi!

My codeblocks are last Nightly builds CB_20070105_rev3461
I installed correctly the "D" language with dmd 1.00, it works well with the shell.
When I installed the "Duit" pre-release at "c:\" and I download a file ex:"c:\duit\demos\duit\Testwindow.d" (I put it in a New Project of CB with "D application wizard"), it gives me an error on "private import GTK..." after "build and run"

I'm new in "D" I would like more information on how to start with "Duit" or how to install "Duit". Have I to install manualy GTK, Pango, etc...,? (what version of it) etc...
(I have installed Gimp in my computer and the gtk work well with him)

Is it possible that someone put here some information, step by step, on how to install "Duit" or any other information to begin.

Thanks
Sorry my English
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Sat Jan 06, 2007 11:51 pm    Post subject: Re: How to install DUIT on XP? Reply with quote

dmania wrote:
Hi!

My codeblocks are last Nightly builds CB_20070105_rev3461
I installed correctly the "D" language with dmd 1.00, it works well with the shell.
When I installed the "Duit" pre-release at "c:\" and I download a file ex:"c:\duit\demos\duit\Testwindow.d" (I put it in a New Project of CB with "D application wizard"), it gives me an error on "private import GTK..." after "build and run"

I'm new in "D" I would like more information on how to start with "Duit" or how to install "Duit". Have I to install manualy GTK, Pango, etc...,? (what version of it) etc...
(I have installed Gimp in my computer and the gtk work well with him)

Is it possible that someone put here some information, step by step, on how to install "Duit" or any other information to begin.

Thanks
Sorry my English


hmm.... the is no "private import GTK..." in the entire source tree of Duit...(?) how was that error generated?

what I have is the Gtk bin directory added to the system path
(I think I also tried it on the user path) usually that is:
C:\Program Files\Common Files\GTK\2.0\bin

Get gtk from: http://gimp-win.sourceforge.net/stable.html
the latests stable version (you should have it already)

did you try the makeAll.bat after unzip Duit?
Did it create DuitTests.exe?
Does it run?

Ant
Back to top
View user's profile Send private message
dmania



Joined: 06 Jan 2007
Posts: 5

PostPosted: Sun Jan 07, 2007 1:04 pm    Post subject: Reply with quote

Hi!

Sorry for my incomplete information:

1)Codeblocks gives me an error in line 23 "private import gtk.Version;"
dmd.exe -g -D -IC:\dmd\src\phobos -c TestWindow.d -ofobj\Debug\TestWindow.obj
TestWindow.d(23): module Version cannot read file 'gtk\Version.d'

2)With "Prompt" I ran makeAll.bat (c:\duit>makeAll.bat) it gives me this information:

'#!' is not recognized as an internal or external command, operable program or batch file.
Could Not Find C:duit\duit.lib
arg[0]=C:\duit\duit.lib
arg[1]=src/atk
...(sorry I skip to the final)
...
...
'dmd' is not recognized as an internal or external command,
operable program or batch file.
Exec.compile status =1
'remcompdDuitgl.bat' is not recognized as an internal or external command, operable program or batch file.


3)about System Path, in Codeblocks i think is this:

Menu "Settings" -> "compiler and debugger" -> tab "Directories" -> tab "Linker" and add this link "C:\Program Files\Common Files\GTK\2.0\bin"

It gives me the same error
Confused


Last edited by dmania on Sun Jan 07, 2007 3:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Sun Jan 07, 2007 1:47 pm    Post subject: Reply with quote

AH!
dmania wrote:
'#!' is not recognized as an internal"

my mistake, but it didn't interrup the batch execution.
dmania wrote:
'dmd' is not recognized as an internal or external command,"

you need to add the path to the dmd/bin and dm/bin directories for the batch to work...
dmania wrote:
'remcompdDuitgl.bat' is not recogn..."

my mistake, but it didn't interrup the batch execution.

to set the system path (I don't know about code blocks):
go to
start, settings, control panel, system, advanced environment variables.
- if you are administrator
-- select path on system variable, and click on edit
!!! do not delete the existing value !!!
--- add at the end the dmd/bin, dm/bin abd the gtk bin to the path (usually add ;C:\dmd\bin;C:\dm\bin;C:\Program Files\Common Files\GTK\2.0\bin)
- if you are NOT administrator
-- select or create path on User variables for <user>, and click on edit
!!! do not delete the existing value !!!
--- add at the end the dmd/bin, dm/bin abd the gtk bin to the path (usually add ;C:\dmd\bin;C:\dm\bin;C:\Program Files\Common Files\GTK\2.0\bin)

I cannot help we code blocks.
( Idea Maybe I should release a full Duit development environment with my leds IDE... )

Ant
Back to top
View user's profile Send private message
dmania



Joined: 06 Jan 2007
Posts: 5

PostPosted: Sun Jan 07, 2007 5:21 pm    Post subject: Reply with quote

Thanks for help Ant

I inserted variable environment Like you did on control panel, system, advanced environment variables and I inserted at the end ;C:\dmd\bin;C:\dm\bin
I had already C:\Program Files\Common Files\GTK\2.0\bin on the middle of the path.

I ran makeAll.bat (c:\duit>makeAll.bat), now a lot of code is executed, but gives me this info:

'link' is not recognized as an internal or external command,
operable program or batch file.
Exec.link status =1
'remcompdDuitgl.bat is not recognized as an internal or external command,
operable program or batch file.

Thanks for help
Mania
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Sun Jan 07, 2007 7:03 pm    Post subject: Reply with quote

dmania wrote:
Thanks for help Ant

I inserted variable environment Like you did on control panel, system, advanced environment variables and I inserted at the end ;C:\dmd\bin;C:\dm\bin
I had already C:\Program Files\Common Files\GTK\2.0\bin on the middle of the path.

I ran makeAll.bat (c:\duit>makeAll.bat), now a lot of code is executed, but gives me this info:

'link' is not recognized as an internal or external command,
operable program or batch file.
Exec.link status =1
'remcompdDuitgl.bat is not recognized as an internal or external command,
operable program or batch file.

Thanks for help
Mania

link should be on your dm/bin directory... let me check... yes.
make sure you have link.exe on c:\dm\bin
if it's there review ";C:\dmd\bin;C:\dm\bin" no the path.
??? if it's ok reload dmd.1.00.zip ???

see my next post about the quality of this release.

Ant
Back to top
View user's profile Send private message
dmania



Joined: 06 Jan 2007
Posts: 5

PostPosted: Sun Jan 07, 2007 10:24 pm    Post subject: Reply with quote

Hi!

Yes, I have link.exe on c:\dm\bin
I reinstall dmd.1.00.zip and dmc.zip.
Review is ok, ";C:\dmd\bin;C:\dm\bin"
I ran makeAll.bat (c:\duit>makeAll.bat)

It gives me the same error.
Now with complete list error:

'#!' is not recognized as an internal or external command, operable program or batch file.
Could Not Find C:\duit\duit.lib
...
...
...
'lib' is not recognized as an internal or external command,
operable program or batch file.
...
...
...
'link' is not recognized as an internal or external command,
operable program or batch file.

Mania
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Sun Jan 07, 2007 11:03 pm    Post subject: Reply with quote

dmania wrote:
Hi!

Yes, I have link.exe on c:\dm\bin
I reinstall dmd.1.00.zip and dmc.zip.
Review is ok, ";C:\dmd\bin;C:\dm\bin"
I ran makeAll.bat (c:\duit>makeAll.bat)

It gives me the same error.

Mania

ok, there is something wrong here...

what does the "path" command gives you?
I got
Code:
C:\Documents and Settings\fred>path
PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\ZipGenius 6\;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Subversion\bin;C:\dmd\bin;C:\dm\bin;C:\devel;C:\devel\bin;C:\devel\usr\local\wbin;C:\Program Files\QuickTime\QTSystem\;C:\dmd\bin;C:\dm\bin;C:\Program Files\Common Files\GTK\2.0\bin

ok, this is an old machin, I just created the user fred for these tests.
and dmd is old, doesn't matter.

now try this:
Code:
C:\Documents and Settings\fred>which link.exe
C:\dm\bin\link.exe

C:\Documents and Settings\fred>which dmd.exe
C:\dmd\bin\dmd.exe

C:\Documents and Settings\fred>which lib.exe
C:\dm\bin\lib.exe


and try this:
Code:
C:\Documents and Settings\fred>dmd
Digital Mars D Compiler v0.177
Copyright (c) 1999-2006 by Digital Mars written by Walter Bright
Documentation: www.digitalmars.com/d/index.html
Usage:
  dmd files.d ... { -switch }

  files.d        D source files
  -c             do not link
  -cov           do code coverage analysis
  -D             generate documentation
  -Dddocdir      write documentation file to docdir directory
  -Dffilename    write documentation file to filename
  -d             allow deprecated features
  -debug         compile in debug code
  -debug=level   compile in debug code <= level
  -debug=ident   compile in debug code identified by ident
  -g             add symbolic debug info
  -gc            add symbolic debug info, pretend to be C
  -H             generate 'header' file
  -Hdhdrdir      write 'header' file to hdrdir directory
  -Hffilename    write 'header' file to filename
  --help         print help
  -Ipath         where to look for imports
  -inline        do function inlining
  -Llinkerflag   pass linkerflag to link
  -nofloat       do not emit reference to floating point
  -O             optimize
  -o-            do not write object file
  -odobjdir      write object files to directory objdir
  -offilename    name output file to filename
  -op            do not strip paths from source file
  -profile       profile runtime performance of generated code
  -quiet         suppress unnecessary messages
  -release       compile release version
  -run srcfile args...   run resulting program, passing args
  -unittest      compile in unit tests
  -v             verbose
  -v1            D language version 1
  -version=level compile in version code >= level
  -version=ident compile in version code identified by ident
  -w             enable warnings

C:\Documents and Settings\fred>link
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

OPTLINK : Warning 23: No Stack
OPTLINK : Warning 134: No Start Address

C:\Documents and Settings\fred>lib
Digital Mars Librarian Version 8.00n
Copyright (C) Digital Mars 2000-2002 All Rights Reserved www.digitalmars.com
library file        (.lib)


and finally did you make an hello world?
Code:
C:\Documents and Settings\fred>notepad hw.d
and type "void main(){printf("Hello There\n");}
save and exit
C:\Documents and Settings\fred>dmd hw
C:\dmd\bin\..\..\dm\bin\link.exe hw,,,user32+kernel32/noi;

C:\Documents and Settings\fred>.\hw
Hello there


if all this results as my examples I don't see where the error might be...

Ant
Back to top
View user's profile Send private message
dmania



Joined: 06 Jan 2007
Posts: 5

PostPosted: Mon Jan 08, 2007 7:40 am    Post subject: Reply with quote

Hi!

Sorry I forgot a "\" on path C:\dm\bin


C:\duit>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\ATI Technologies\ATI.ACE\;C:\Program Files\Common Files\Autodesk Shared\;C:\dmd\bin;C:\dm\bin


Now it creates DuitTests.exe and I ran it

On prompt command:
>dmd OK it works
>link OK it works
>lib OK it works

Yes I used your hello world and it works.
>notepad hw.d
and type "void main(){printf("Hello There\n");}
save and exit
>dmd hw
C:\dmd\bin\..\..\dm\bin\link.exe hw,,,user32+kernel32/noi;
>.\hw
Hello there


Problems:
>which link.exe doesn't work
>which dmd.exe doesn't work
>which lib.exe doesn't work


My CodeBlocks still doesn't work with Duit (with TestWindow.d)

Mania
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Mon Jan 08, 2007 9:52 am    Post subject: Reply with quote

dmania wrote:
Hi!

Sorry I forgot a "\" on path C:\dm\bin
...

Now it creates DuitTests.exe and I ran it

OK!
dmania wrote:

Problems:
>which link.exe doesn't work
>which dmd.exe doesn't work
>which lib.exe doesn't work


maybe "which" is not available by default on windows.
maybe I installed unix utils for windows on that machine.
It's not important.

Sorry, I can't help you with Code::Blocks.
I looked at it's home page but never used it.

Ant
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