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

Who to build with GDC?

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



Joined: 07 Dec 2007
Posts: 2

PostPosted: Fri Dec 07, 2007 8:12 pm    Post subject: Who to build with GDC? Reply with quote

Gutsy gibbon has gdc 4.1 out-of-box (not to mention Debian Sid). Still gtkD has no mention about gdc in readme and not working with it. Simply linking compd to gdc does not work.

Did anybody built gtkD with gdc? Is it possible at all?
Back to top
View user's profile Send private message
ShprotX



Joined: 28 Aug 2007
Posts: 24
Location: Ukraine

PostPosted: Sat Dec 08, 2007 7:01 am    Post subject: Re: Who to build with GDC? Reply with quote

sv75 wrote:
Gutsy gibbon has gdc 4.1 out-of-box (not to mention Debian Sid). Still gtkD has no mention about gdc in readme and not working with it. Simply linking compd to gdc does not work.
Did anybody built gtkD with gdc? Is it possible at all?

compd and gdc are different things. Try to use dsss instead: "dsss build --prefix=/usr/local".
Back to top
View user's profile Send private message
sv75



Joined: 07 Dec 2007
Posts: 2

PostPosted: Sat Dec 08, 2007 2:18 pm    Post subject: Reply with quote

Sorry, I have missed http://www.dsource.org/projects/dui/wiki/BuildingWithDSSS
Sad

I have build and installed gtkD, but have no luck with building demos. Compiling error on some line, after commenting them I got:

Code:

dsss build
TestWindow.d => gtkDTests
+ /usr/local/bin/rebuild -Idsss_imports/ -I. -S./ -I/home/seva/d/include/d -S/home/seva/d/lib/  -I/usr/local/include/d -S/usr/local/lib -I/home/seva/d/include/d -S/home/seva/d/lib  -oqdsss_objs/G -I/usr/local/include/d/src -I../../demos -L-ldl TestWindow.d -ofgtkDTests
dsss_objs/G/gtkD.TestWindow.o:(.data._D41TypeInfo_E4gtkc8gtktypes15GtkResponseType6__initZ[_D41TypeInfo_E4gtkc8gtktypes15GtkResponseType6__initZ]+0x18): undefined reference to `___s.12154'
Back to top
View user's profile Send private message
Auria



Joined: 29 May 2006
Posts: 44

PostPosted: Sat Dec 08, 2007 2:22 pm    Post subject: Reply with quote

I tried GDC and got the same error too... apparently it's a GDC bug but no one seems to understand it and i don't think it's been reported... thjere was some discussion in another thread with alink pointing to a similar issue in tango

EDIT: see http://dsource.org/forums/viewtopic.php?p=16929#16929
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Sat Mar 15, 2008 4:13 pm    Post subject: Reply with quote

Patch attached to thread above.
Back to top
View user's profile Send private message
shlomil



Joined: 24 Mar 2008
Posts: 3

PostPosted: Mon Mar 24, 2008 9:51 pm    Post subject: Reply with quote

Hi , I managed to successfully (?) compile the "hello world" using gdc (no makefile, yet, just a bunch of commands).
Now I get segmentation fault:
Code:

 wget http://www.dsource.org/projects/gtkd/attachment/ticket/4/gdc_undefsymbol_workaround.sh?format=raw

 mv gdc_undefsymbol_workaround.sh\?format\=raw gdc_undefsymbol_workaround.sh

. gdc_undefsymbol_workaround.sh

cd src

for i in `find ./ | egrep '.d$'`; do OUTFILE="`echo $i | cut -d. -f1-2`.o"; gdc -c $i $FLAGS -o $OUTFILE ; done

cd ../demos/gtk

for i in `find ./ | egrep '.d$'`; do OUTFILE="`echo $i | cut -d. -f1-2`.o"; gdc -I../../src -c $i $FLAGS -o $OUTFILE ; done

gdc HelloWorld.o `find ../../src/ | egrep '\.o$'` -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -o hello


./hello
Loaded lib = libgtk-x11-2.0.so
Loaded lib = libglib-2.0.so
Loaded lib = libatk-1.0.so
Loaded lib = libgobject-2.0.so
Loaded lib = libgdk-x11-2.0.so
Loaded lib = libgdk_pixbuf-2.0.so
Loaded lib = libgthread-2.0.so
Loaded lib = libpango-1.0.so
Loaded lib = libcairo.so.2
Loaded lib = libglade-2.0.so
Illegal instruction (core dumped)


Any ideas ?
Back to top
View user's profile Send private message
shlomil



Joined: 24 Mar 2008
Posts: 3

PostPosted: Mon Mar 24, 2008 9:55 pm    Post subject: Reply with quote

p.s.
using a proprietary compiler is out of the question for me. Just don't go there...
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Tue Mar 25, 2008 3:59 am    Post subject: Reply with quote

Compile with DFLAGS += -g, and run with gdb ./hello
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Tue Mar 25, 2008 4:01 am    Post subject: Reply with quote

Makefile is here: http://dsource.org/projects/gtkd/ticket/31
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