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

howto compile gtkd with dmd in windows 32 bit

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



Joined: 10 Sep 2009
Posts: 77

PostPosted: Sun Feb 14, 2010 11:02 am    Post subject: howto compile gtkd with dmd in windows 32 bit Reply with quote

Hello,

I'm a linux user and I've dmd and gtkd working properly on it, but now I need to install them on a windows system and i have no idea how to compile gtkd on it. Someone can explain me step by step how to proceed?

Thanks in advance.
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Sun Feb 14, 2010 2:44 pm    Post subject: Reply with quote

If you are using D1 you could use DSSS. For D2 DSSS probably won't work.
Back to top
View user's profile Send private message
Epileg



Joined: 10 Sep 2009
Posts: 77

PostPosted: Sun Feb 14, 2010 3:24 pm    Post subject: Reply with quote

ok, gtkd compiles without dsss and with dmd2 on linux, so is it possible to do the same in windows?
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Mon Feb 15, 2010 1:20 pm    Post subject: Reply with quote

For linux there is a make file, but there isn't one for windows.

You could try bud/build the files fot it are in src/build/
Back to top
View user's profile Send private message
GG



Joined: 05 Nov 2009
Posts: 18

PostPosted: Tue Feb 16, 2010 4:11 am    Post subject: Reply with quote

You have to download and install gtk+ http://www.gtk.org/download.html
Put /bin folder in your PATH environement.

Download and install DMD for Windows, put /bin folder in your path environement of windows.

Edit dmd2\windows\bin\sc.ini, add to DFLAGS :
Code:
"-IC:\path_to_gtkD\src"


You can download bud/build on http://www.dsource.org/projects/build/wiki

Put your build.exe in your PATH environment.
Open console windows, go to src/build, and type
Code:
build gtkD.brf
.
You will get only one file "GtkD.lib" with all .obj files in.

If you use DMD, compile with
Code:
dmd test.d -L C:/path/to/GtkD.lib

If you want use bud/build, compile with
Code:
build test.d -LIBPATH=C:/path/to/GtkD.lib
Back to top
View user's profile Send private message
Epileg



Joined: 10 Sep 2009
Posts: 77

PostPosted: Tue Feb 16, 2010 7:23 am    Post subject: Reply with quote

Fantastic! Smile

Thanks a lot!
Back to top
View user's profile Send private message
bja888



Joined: 07 Sep 2010
Posts: 2

PostPosted: Tue Sep 07, 2010 9:29 am    Post subject: Reply with quote

There isn't any reason why this shouldn't still work right?
I am getting a lot of this when try run gtkD.brf...

Quote:

C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(82): Error: identifier
'c_glade_xml_new' is not defined
C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(83): Error: identifier
'c_glade_xml_new_from_buffer' is not defined
C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(84): Error: identifier
'c_glade_xml_construct' is not defined
C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(85): Error: identifier
'c_glade_xml_signal_connect' is not defined
C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(86): Error: identifier
'c_glade_xml_signal_connect_data' is not defined
C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(87): Error: identifier
'c_glade_xml_signal_autoconnect' is not defined
C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(8Cool: Error: identifier
'c_glade_xml_get_widget' is not defined
C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(89): Error: identifier
'c_glade_xml_get_widget_prefix' is not defined
C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(90): Error: identifier
'c_glade_get_widget_name' is not defined
C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(91): Error: identifier
'c_glade_get_widget_tree' is not defined
C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(92): Error: identifier
'c_glade_xml_signal_connect_full' is not defined
C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(93): Error: identifier
'c_glade_xml_signal_autoconnect_full' is not defined
C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(94): Error: identifier
'c_glade_set_custom_handler' is not defined
C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(95): Error: identifier
'c_glade_init' is not defined
C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(96): Error: identifier
'c_glade_require' is not defined
C:\Users\testing\Desktop\gtkD-1.3.2\gtkD\src\gtkc\glade.d(97): Error: identifier
'c_glade_provide' is not defined


Looks like it can't find gtk. Which is indeed installed and is in PATH. Any idea what else I might be doing wrong?
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Tue Sep 07, 2010 11:39 am    Post subject: Reply with quote

Could you try svn?
Back to top
View user's profile Send private message
bja888



Joined: 07 Sep 2010
Posts: 2

PostPosted: Tue Sep 07, 2010 12:01 pm    Post subject: Reply with quote

Looks like that worked just fine. Just a warning...

Quote:

C:\Users\testing\Desktop\gtkd-svn\src\build>bud gtkD.brf
Digital Mars Librarian Version 8.02n
Copyright (C) Digital Mars 2000-2007 All Rights Reserved
http://www.digitalmars.com/ctg/lib.html
Warning: Public '_D4glib7Variant7Variant6__ctorMFiZC4glib7Variant7Variant' alrea
dy in library, redefinition ignored.
Digital Mars Librarian complete.


Thanks! Keep up the good work!
Back to top
View user's profile Send private message
Yoschi



Joined: 27 Dec 2009
Posts: 6
Location: Germany

PostPosted: Sat Dec 18, 2010 8:46 am    Post subject: Reply with quote

Hello !

I've downloaded the last version of build and the current svn version of gtkD (the new one).
The command "build gtkD.brf" gives me following errors:

Code:

C:\gtkD\src\build>build gtkD.brf
C:\dmd2\src\druntime\import\core\sys\posix\stdio.d(168): Error: identifier 'off_
t' is not defined
C:\dmd2\src\druntime\import\core\sys\posix\stdio.d(168): Error: off_t is used as
 a type
C:\dmd2\src\druntime\import\core\sys\posix\stdio.d(168): Error: cannot have para
meter of type void
C:\dmd2\src\druntime\import\core\sys\posix\stdio.d(169): Error: identifier 'off_
t' is not defined
C:\dmd2\src\druntime\import\core\sys\posix\stdio.d(169): Error: off_t is used as
 a type


Why build / dmd wants to compile the druntime posix files ? I've tried to add "-Xdruntime" to the build file, but nothing has changed...

Yoschi
PS: Sorry for bad englisch ...
PPS: Could anyone - maybe I - provide a zip file with the compiled library for windows, as the .deb packages for Ubuntu / Debian ?
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