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

Can't build gtkD on Linux
Goto page 1, 2  Next
 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
maxpower



Joined: 23 Jun 2007
Posts: 1

PostPosted: Sat Jun 23, 2007 8:02 pm    Post subject: Can't build gtkD on Linux Reply with quote

I am running Gentoo Linux. I installed dmd via the dmd-bin ebuild for Gentoo. I am able to write, compile and run D programs OK.

I tried to install gtkD but it fails during make. I moved compd (and made it executable) to /usr/local/bin. I get the same error throughout the build process. Here is the first instance of the error:
Code:
ExecutorSync.execute=
ar rcsP libgtkd.a  obj/src/gtk/Socket.o obj/src/gtk/HandleBox.o obj/src/gtk/MenuBar.o obj/src/gtk/FileFilter.o obj/src/gtk/FontButton.o obj/src/gtk/Dialog.o obj/src/gtk/ImageMenuItem.o obj/src/gtk/Fixed.o obj/src/gtk/TextBuffer.o obj/src/gtk/Selections.o obj/src/gtk/EventBox.o obj/src/gtk/ActionGroup.o obj/src/gtk/WindowGroup.o obj/src/gtk/FileChooserDialog.o obj/src/gtk/IMContext.o obj/src/gtk/Style.o obj/src/gtk/AspectFrame.o obj/src/gtk/TextView.o obj/src/gtk/FontSelectionDialog.o obj/src/gtk/Toolbar.o obj/src/gtk/TreeStore.o obj/src/gtk/Frame.o obj/src/gtk/ColorSelectionDialog.o obj/src/gtk/ListStore.o obj/src/gtk/TreeModel.o obj/src/gtk/TextTagTable.o obj/src/gtk/Timeout.o obj/src/gtk/CellLayoutIF.o obj/src/gtk/MenuItem.o obj/src/gtk/Clipboard.o obj/src/gtk/CellLayoutT.o obj/src/gtk/Viewport.o obj/src/gtk/BindingSet.o obj/src/gtk/Adjustment.o obj/src/gtk/CellRendererProgress.o obj/src/gtk/HScale.o obj/src/gtk/VPaned.o obj/src/gtk/HSeparator.o obj/src/gtk/FileChooser.o obj/src/gtk/TearoffMenuItem.o obj/src/gtk/DrawingArea.o obj/src/gtk/AccelLabel.o obj/src/gtk/VSeparator.o obj/src/gtk/Types.o obj/src/gtk/StockItem.o obj/src/gtk/Separator.o

compdata?
-L/home/mike/projects/gtkD/gtkD
-I/home/mike/projects/gtkD/gtkD/src:~/dmd/src/phobos

arg[0]=compd
arg[1]=demos/gtkD
arg[2]=demos/cairo/clock.d
arg[3]=-o
arg[4]=GtkDTests
arg[5]=-c
arg[6]=-I
arg[7]=src
arg[8]=-I
arg[9]=demos
arg[10]=-c
arg[11]=-L
arg[12]=..
arg[13]=-l
arg[14]=phobos
arg[15]=-L
arg[16]=.
arg[17]=-l
arg[18]=gtkd
arg[19]=-l
arg[20]=dl
file /etc/compd/libphobos.compd does not exist
file /etc/compd/libdl.compd does not exist
Any ideas?

I am running DMD 1.015
Thanks
Back to top
View user's profile Send private message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Tue Jun 26, 2007 4:48 am    Post subject: Reply with quote

Try importing phobos. I think I had to do that once when building gtkD using compd.
Back to top
View user's profile Send private message
siegerstein



Joined: 17 Jan 2008
Posts: 8

PostPosted: Wed Jan 23, 2008 10:50 am    Post subject: undefined reference to `_D9gdkpixbuf12PixbufFormat12__Module Reply with quote

Also can't build gtkD:

I checkout with:

Quote:
$ snv co http://svn.dsource.org/projects/gtkd/trunk/


and try to install gtkD:

Quote:
# ./makeAll.sh

.......

ExecutorSync.execute=
dmd demos/gtkD/TestDrawingArea.d demos/gtkD/TEditableCells.d demos/gtkD/TestTreeView1.d demos/gtkD/TestThemes.d demos/gtkD/TestWindow.d demos/gtkD/TestScales.d demos/gtkD/TestAspectFrame.d demos/gtkD/TestImage.d demos/gtkD/TestText.d demos/gtkD/TestStock.d demos/gtkD/app.d demos/gtkD/TestTreeView.d demos/gtkD/TestIdle.d demos/gtkD/TTextView.d demos/gtkD/TestEntries.d -odobj -op -Isrc:demos:/data/siegerstein/D/gtkD/src:~/dmd/src/phobos -c -I/root/dmd/src/phobos


ExecutorSync.execute=
dmd demos/cairo/clock.d -odobj -op -Isrc:demos:/data/siegerstein/D/gtkD/src:~/dmd/src/phobos -c -I/root/dmd/src/phobos


ExecutorSync.execute=
gcc obj/demos/gtkD/TestDrawingArea.o obj/demos/gtkD/TEditableCells.o obj/demos/gtkD/TestTreeView1.o obj/demos/gtkD/TestThemes.o obj/demos/gtkD/TestWindow.o obj/demos/gtkD/TestScales.o obj/demos/gtkD/TestAspectFrame.o obj/demos/gtkD/TestImage.o obj/demos/gtkD/TestText.o obj/demos/gtkD/TestStock.o obj/demos/gtkD/app.o obj/demos/gtkD/TestTreeView.o obj/demos/gtkD/TestIdle.o obj/demos/gtkD/TTextView.o obj/demos/gtkD/TestEntries.o obj/demos/cairo/clock.o -o GtkDTests-m32 -L.. -L. -L/data/siegerstein/D/gtkD -lphobos -lgtkd -ldl -m32 -lphobos -lpthread -lm

./libgtkd.a(Pixbuf.o):(.data+0x84): undefined reference to `_D9gdkpixbuf12PixbufFormat12__ModuleInfoZ'
collect2: ld returned 1 exit status
arg[0]=compd
arg[1]=srcgl/glgdk
arg[2]=srcgl/glgtk
arg[3]=srcgl/gtkglc
arg[4]=-I
arg[5]=src:srcgl:~/dmd/src/phobos
arg[6]=-olib
arg[7]=libgtkdgl

ExecutorSync.execute=
dmd srcgl/gtkglc/glgtktypes.d srcgl/gtkglc/glu.d srcgl/gtkglc/glgdk.d srcgl/gtkglc/glgtk.d srcgl/gtkglc/glgdktypes.d srcgl/gtkglc/gl.d -odobj -op -Isrc:srcgl:~/dmd/src/phobos -c -I/root/dmd/src/phobos


ExecutorSync.execute=
dmd srcgl/glgtk/GLtInit.d srcgl/glgtk/GLCapability.d srcgl/glgtk/GLtVersion.d srcgl/glgtk/GLWidget.d -odobj -op -Isrc:srcgl:~/dmd/src/phobos -c -I/root/dmd/src/phobos


ExecutorSync.execute=
dmd srcgl/glgdk/GLPixmap.d srcgl/glgdk/GLDraw.d srcgl/glgdk/GLContext.d srcgl/glgdk/GLQuery.d srcgl/glgdk/GLDrawable.d srcgl/glgdk/GLdVersion.d srcgl/glgdk/GLTokens.d srcgl/glgdk/GLdInit.d srcgl/glgdk/GLWindow.d srcgl/glgdk/GLFont.d srcgl/glgdk/GLConfig.d -odobj -op -Isrc:srcgl:~/dmd/src/phobos -c -I/root/dmd/src/phobos


ExecutorSync.execute=
ar rcsP libgtkdgl.a obj/srcgl/gtkglc/glgtktypes.o obj/srcgl/gtkglc/glu.o obj/srcgl/gtkglc/glgdk.o obj/srcgl/gtkglc/glgtk.o obj/srcgl/gtkglc/glgdktypes.o obj/srcgl/gtkglc/gl.o


ExecutorSync.execute=
ar rcsP libgtkdgl.a obj/srcgl/glgtk/GLtInit.o obj/srcgl/glgtk/GLCapability.o obj/srcgl/glgtk/GLtVersion.o obj/srcgl/glgtk/GLWidget.o


ExecutorSync.execute=
ar rcsP libgtkdgl.a obj/srcgl/glgdk/GLPixmap.o obj/srcgl/glgdk/GLDraw.o obj/srcgl/glgdk/GLContext.o obj/srcgl/glgdk/GLQuery.o obj/srcgl/glgdk/GLDrawable.oobj/srcgl/glgdk/GLdVersion.o obj/srcgl/glgdk/GLTokens.o obj/srcgl/glgdk/GLdInit.o obj/srcgl/glgdk/GLWindow.o obj/srcgl/glgdk/GLFont.o obj/srcgl/glgdk/GLConfig.o

arg[0]=compd
arg[1]=demos/gl/SimpleGL.d
arg[2]=-o
arg[3]=SimpleGL
arg[4]=-c
arg[5]=-I
arg[6]=src
arg[7]=-I
arg[8]=srcgl
arg[9]=-c
arg[10]=-L
arg[11]=..
arg[12]=-l
arg[13]=phobos
arg[14]=-L
arg[15]=.
arg[16]=-l
arg[17]=gtkd
arg[18]=-l
arg[19]=gtkdgl
arg[20]=-l
arg[21]=GLU
arg[22]=-l
arg[23]=GL
arg[24]=-l
arg[25]=dl

ExecutorSync.execute=
dmd demos/gl/SimpleGL.d -odobj -op -Isrc:srcgl:/data/siegerstein/D/gtkD/src:~/dmd/src/phobos:/data/siegerstein/D/gtkD/src:srcgl:~/dmd/src/phobos -c-I/root/dmd/src/phobos


ExecutorSync.execute=
gcc obj/demos/gl/SimpleGL.o -o SimpleGL -m32 -L.. -L. -L/data/siegerstein/D/gtkD -L/data/siegerstein/D/gtkD -lphobos -lgtkd -lgtkdgl -lGLU -lGL -ldl-m32 -lphobos -lpthread -lm

./libgtkd.a(Pixbuf.o):(.data+0x84): undefined reference to `_D9gdkpixbuf12PixbufFormat12__ModuleInfoZ'
collect2: ld returned 1 exit status
arg[0]=compd
arg[1]=demos/gl/ShapesGL.d
arg[2]=demos/gl/TrackBall.d
arg[3]=-o
arg[4]=ShapesGL
arg[5]=-c
arg[6]=-I
arg[7]=src
arg[8]=-c
arg[9]=-L
arg[10]=..
arg[11]=-l
arg[12]=phobos
arg[13]=-L
arg[14]=.
arg[15]=-l
arg[16]=gtkd
arg[17]=-l
arg[18]=gtkdgl
arg[19]=-l
arg[20]=GLU
arg[21]=-l
arg[22]=GL
arg[23]=-l
arg[24]=dl

ExecutorSync.execute=
dmd demos/gl/ShapesGL.d demos/gl/TrackBall.d -odobj -op -Isrc:/data/siegerstein/D/gtkD/src:~/dmd/src/phobos:/data/siegerstein/D/gtkD/src:srcgl:~/dmd/src/phobos -c -I/root/dmd/src/phobos


ExecutorSync.execute=
gcc obj/demos/gl/ShapesGL.o obj/demos/gl/TrackBall.o -o ShapesGL -m32 -L.. -L. -L/data/siegerstein/D/gtkD -L/data/siegerstein/D/gtkD -lphobos -lgtkd -lgtkdgl -lGLU -lGL -ldl -m32 -lphobos -lpthread -lm

./libgtkd.a(Pixbuf.o):(.data+0x84): undefined reference to `_D9gdkpixbuf12PixbufFormat12__ModuleInfoZ'
collect2: ld returned 1 exit status

#


OS: GNU/Linux x86
gcc (GCC) 4.1.2 20070214 ( (gdc 0.24, using dmd 1.020)) (Gentoo 4.1.2 p1.0.2)
Tango: 0.99.4
gtkD - SNV
dool - SNV

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



Joined: 07 May 2007
Posts: 428

PostPosted: Wed Jan 23, 2008 4:48 pm    Post subject: Reply with quote

There is a codegen bug in GDC 0.24 (Bugzilla 1746) witch is probably causing this.

There is a workaround script attached to ticket #4, but there are also some other problems with GDC 0.24.[/url][/u]
Back to top
View user's profile Send private message
siegerstein



Joined: 17 Jan 2008
Posts: 8

PostPosted: Thu Jan 24, 2008 5:06 pm    Post subject: Reply with quote

Quote:
There is a codegen bug in GDC 0.24 (Bugzilla 1746) witch is probably causing this.

There is a workaround script attached to ticket #4, but there are also some other problems with GDC 0.24


Thanks Mike, worked!
Back to top
View user's profile Send private message
xxltux



Joined: 10 Sep 2007
Posts: 15

PostPosted: Sat Mar 01, 2008 7:19 am    Post subject: Reply with quote

I haven't GDC and I have this problem. I use GCC 4.1.3, DMD 1.026 on ubuntu 7.10
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Sun Mar 02, 2008 9:57 am    Post subject: Reply with quote

Are you using the compd scripts? if so svn r449 should fix this problem.
Back to top
View user's profile Send private message
xxltux



Joined: 10 Sep 2007
Posts: 15

PostPosted: Mon Mar 03, 2008 5:11 am    Post subject: Reply with quote

Yes, thank
There is some bugs on the demo like the close button in the "about" window
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Mon Mar 03, 2008 1:21 pm    Post subject: Reply with quote

The about window in the "OtherTests" demo? That should have been fixed in svn r425.
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Wed Mar 05, 2008 3:24 pm    Post subject: Reply with quote

And the About Dialog in the "TestWindow" demo should be working in svn r456
Back to top
View user's profile Send private message
xxltux



Joined: 10 Sep 2007
Posts: 15

PostPosted: Thu Mar 06, 2008 5:17 am    Post subject: Reply with quote

In the GtkDTest :
Loaded lib = libgtk-x11-2.0.so
Loaded lib = libglib-2.0.so
Loaded lib = libgobject-2.0.so
Loaded lib = libgdk-x11-2.0.so
Loaded lib = libgdk_pixbuf-2.0.so
Loaded lib = libcairo.so.2
Loaded lib = libpango-1.0.so
Loaded lib = libgthread-2.0.so
Loaded lib = libatk-1.0.so
failed (libglib-2.0.so) g_atomic_int_inc
failed (libglib-2.0.so) g_atomic_int_dec_and_test
failed (libglib-2.0.so) g_module_supported
failed (libglib-2.0.so) g_module_build_path
failed (libglib-2.0.so) g_module_open
failed (libglib-2.0.so) g_module_symbol
failed (libglib-2.0.so) g_module_name
failed (libglib-2.0.so) g_module_make_resident
failed (libglib-2.0.so) g_module_close
failed (libglib-2.0.so) g_module_error
failed (libglib-2.0.so) g_io_channel_win32_new_fd
failed (libglib-2.0.so) g_io_channel_win32_new_socket
failed (libglib-2.0.so) g_io_channel_win32_new_messages
failed (libglib-2.0.so) g_ascii_isalnum
failed (libglib-2.0.so) g_ascii_isalpha
failed (libglib-2.0.so) g_ascii_iscntrl
failed (libglib-2.0.so) g_ascii_isdigit
failed (libglib-2.0.so) g_ascii_isgraph
failed (libglib-2.0.so) g_ascii_islower
failed (libglib-2.0.so) g_ascii_isprint
failed (libglib-2.0.so) g_ascii_ispunct
failed (libglib-2.0.so) g_ascii_isspace
failed (libglib-2.0.so) g_ascii_isupper
failed (libglib-2.0.so) g_ascii_isxdigit
failed (libglib-2.0.so) g_win32_error_message
failed (libglib-2.0.so) g_win32_getlocale
failed (libglib-2.0.so) g_win32_get_package_installation_directory
failed (libglib-2.0.so) g_win32_get_package_installation_subdirectory
failed (libglib-2.0.so) g_win32_get_windows_version
failed (libglib-2.0.so) g_win32_locale_filename_from_utf8
failed (libgthread-2.0.so) g_mutex_new
failed (libgthread-2.0.so) g_mutex_lock
failed (libgthread-2.0.so) g_mutex_trylock
failed (libgthread-2.0.so) g_mutex_unlock
failed (libgthread-2.0.so) g_mutex_free
failed (libgthread-2.0.so) g_static_mutex_lock
failed (libgthread-2.0.so) g_static_mutex_trylock
failed (libgthread-2.0.so) g_static_mutex_unlock
failed (libgthread-2.0.so) g_static_mutex_get_mutex
failed (libgthread-2.0.so) g_cond_new
failed (libgthread-2.0.so) g_cond_signal
failed (libgthread-2.0.so) g_cond_broadcast
failed (libgthread-2.0.so) g_cond_wait
failed (libgthread-2.0.so) g_cond_timed_wait
failed (libgthread-2.0.so) g_cond_free
failed (libgthread-2.0.so) g_private_new
failed (libgthread-2.0.so) g_private_get
failed (libgthread-2.0.so) g_private_set
failed (libgthread-2.0.so) g_thread_supported
failed (libgthread-2.0.so) g_thread_create
failed (libgthread-2.0.so) g_thread_yield
failed (libpango-1.0.so) script_engine_list
failed (libpango-1.0.so) script_engine_init
failed (libpango-1.0.so) script_engine_exit
failed (libpango-1.0.so) script_engine_create

(GtkDTests:7940): Gtk-CRITICAL **: gtk_image_get_pixbuf: assertion `image->storage_type == GTK_IMAGE_PIXBUF || image->storage_type == GTK_IMAGE_EMPTY' failed

Failed to load image file gtkDlogo_a_small.png

(GtkDTests:7940): Gtk-CRITICAL **: gtk_image_get_pixbuf: assertion `image->storage_type == GTK_IMAGE_PIXBUF || image->storage_type == GTK_IMAGE_EMPTY' failed

Failed to load image file gtkDlogo_a_small.png
Erreur de segmentation (core dumped)
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Thu Mar 06, 2008 5:10 pm    Post subject: Reply with quote

Are you doing anything when the segfault occurs, or does it heapen when you start the demo?

Which Compiler/Standard Library are you using?
Back to top
View user's profile Send private message
xxltux



Joined: 10 Sep 2007
Posts: 15

PostPosted: Fri Mar 07, 2008 2:12 am    Post subject: Reply with quote

I click on the about menu entry
DMD 1.026, GCC 4.1.3, KUbuntu 7.10
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Fri Mar 07, 2008 2:24 pm    Post subject: Reply with quote

The about dialog should be working in svn r462.

I could only reproduce the segfault when using Phobos.
Back to top
View user's profile Send private message
xxltux



Joined: 10 Sep 2007
Posts: 15

PostPosted: Sat Mar 08, 2008 6:43 pm    Post subject: Reply with quote

I use Phobos, I don't konw with Tango.
But I see the compd script doesn't work on windows.
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
Goto page 1, 2  Next
Page 1 of 2

 
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