View previous topic :: View next topic |
Author |
Message |
sv75
Joined: 07 Dec 2007 Posts: 2
|
Posted: Fri Dec 07, 2007 8:12 pm Post subject: Who to build with GDC? |
|
|
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 |
|
|
ShprotX
Joined: 28 Aug 2007 Posts: 24 Location: Ukraine
|
Posted: Sat Dec 08, 2007 7:01 am Post subject: Re: Who to build with GDC? |
|
|
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 |
|
|
sv75
Joined: 07 Dec 2007 Posts: 2
|
Posted: Sat Dec 08, 2007 2:18 pm Post subject: |
|
|
Sorry, I have missed http://www.dsource.org/projects/dui/wiki/BuildingWithDSSS
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 |
|
|
Auria
Joined: 29 May 2006 Posts: 44
|
Posted: Sat Dec 08, 2007 2:22 pm Post subject: |
|
|
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 |
|
|
afb
Joined: 26 Jan 2005 Posts: 137 Location: Sweden
|
Posted: Sat Mar 15, 2008 4:13 pm Post subject: |
|
|
Patch attached to thread above. |
|
Back to top |
|
|
shlomil
Joined: 24 Mar 2008 Posts: 3
|
Posted: Mon Mar 24, 2008 9:51 pm Post subject: |
|
|
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 |
|
|
shlomil
Joined: 24 Mar 2008 Posts: 3
|
Posted: Mon Mar 24, 2008 9:55 pm Post subject: |
|
|
p.s.
using a proprietary compiler is out of the question for me. Just don't go there... |
|
Back to top |
|
|
afb
Joined: 26 Jan 2005 Posts: 137 Location: Sweden
|
Posted: Tue Mar 25, 2008 3:59 am Post subject: |
|
|
Compile with DFLAGS += -g, and run with gdb ./hello |
|
Back to top |
|
|
afb
Joined: 26 Jan 2005 Posts: 137 Location: Sweden
|
|
Back to top |
|
|
|