www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - Compile wxd

reply nobody <nobody_member pathlink.com> writes:
Hello,

i try to compile wxd, but i get the following error message:

ime.o wxObject.o wxString.o wxVersion.o Grid.o GridCtrl.o common.o ArrayInt.o
ArrayString.o XmlResource.o NumberDialog.o wx.o
make[1]: Leaving directory `/home/nobody/dd/wxd/wx'
make CXX="g++ -D__GDC__" DMD="gdmd" -C Samples
make[1]: Entering directory `/home/nobody/dd/wxd/Samples'
make -C Controls
make[2]: Entering directory `/home/nobody/dd/wxd/Samples/Controls'
gdmd -c -O -I../.. Controls.d
gcc -o ../../bin/Controls Controls.o -L../.. -lwxd -lwxc -lm -lphobos `wx-config
--libs` -lstdc++
Controls.o:(.eh_frame+0x11): undefined reference to `__gdc_personality_v0'
./../libwxd.a(App.o):(.eh_frame+0x11): undefined reference to
`__gdc_personality_v0'
./../libwxd.a(ArtProvider.o):(.eh_frame+0x11): undefined reference to
`__gdc_personality_v0'
./../libwxd.a(Bitmap.o):(.eh_frame+0x11): undefined reference to
`__gdc_personality_v0'


I think this line make the problem:
gcc -o ../../bin/Controls Controls.o -L../.. -lwxd -lwxc -lm -lphobos `wx-config

Must  -lphobos switch to -lgphobos?

Compiler is gdc 0.1.8 under linux.
Jun 26 2006
next sibling parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
nobody wrote:

 i try to compile wxd, but i get the following error message:
 

 I think this line make the problem:
 gcc -o ../../bin/Controls Controls.o -L../.. -lwxd -lwxc -lm -lphobos
`wx-config
 
 Must  -lphobos switch to -lgphobos?

It seems confused, yes. Please change (in "config.Linux") from: gcc -o $ $(OBJECTS) -L$(TOPDIR) -lwxd -lwxc -lm -lphobos $(LDFLAGS) to the this instead (mind the initial tab): gdc -o $ $(OBJECTS) -L$(TOPDIR) -lwxd -lwxc $(LDFLAGS) Only tried the Linux version with DMD, will fix for next wxD release... Thanks for trying wxD ! --anders
Jun 27 2006
prev sibling parent reply nobody <nobody_member pathlink.com> writes:
In article <e7ogdg$2gb1$1 digitaldaemon.com>, nobody says...
Hello,

i try to compile wxd, but i get the following error message:

ime.o wxObject.o wxString.o wxVersion.o Grid.o GridCtrl.o common.o ArrayInt.o
ArrayString.o XmlResource.o NumberDialog.o wx.o
make[1]: Leaving directory `/home/nobody/dd/wxd/wx'
make CXX="g++ -D__GDC__" DMD="gdmd" -C Samples
make[1]: Entering directory `/home/nobody/dd/wxd/Samples'
make -C Controls
make[2]: Entering directory `/home/nobody/dd/wxd/Samples/Controls'
gdmd -c -O -I../.. Controls.d
gcc -o ../../bin/Controls Controls.o -L../.. -lwxd -lwxc -lm -lphobos `wx-config
--libs` -lstdc++
Controls.o:(.eh_frame+0x11): undefined reference to `__gdc_personality_v0'
./../libwxd.a(App.o):(.eh_frame+0x11): undefined reference to
`__gdc_personality_v0'
./../libwxd.a(ArtProvider.o):(.eh_frame+0x11): undefined reference to
`__gdc_personality_v0'
./../libwxd.a(Bitmap.o):(.eh_frame+0x11): undefined reference to
`__gdc_personality_v0'


I think this line make the problem:
gcc -o ../../bin/Controls Controls.o -L../.. -lwxd -lwxc -lm -lphobos `wx-config

Must  -lphobos switch to -lgphobos?

Compiler is gdc 0.1.8 under linux.

i have to use wxWidgets-2.6.2.tar.gz instaed wxWidgets-2.6.1.tar.gz .
Jun 27 2006
parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
nobody wrote:

 To solve theerror message "undefined reference to `pango_x_get_context'"
 i have to use wxWidgets-2.6.2.tar.gz instaed wxWidgets-2.6.1.tar.gz  .

Will be sure to note that too. Hope to get it working with wx 2.6.3 What Linux distro was it that you had problems with wxWidgets 2.6.1 ? --anders
Jun 27 2006
parent nobody <nobody_member pathlink.com> writes:
In article <e7refg$22ft$1 digitaldaemon.com>,
=?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= says...
nobody wrote:

 To solve theerror message "undefined reference to `pango_x_get_context'"
 i have to use wxWidgets-2.6.2.tar.gz instaed wxWidgets-2.6.1.tar.gz  .

Will be sure to note that too. Hope to get it working with wx 2.6.3 What Linux distro was it that you had problems with wxWidgets 2.6.1 ? --anders

Good to hear, that the project isn't die. I reduce my compiled file with strip and upx, that reduse my Hello example from 6,9 MB down to 1,5 MB. I Think that's a lot.
Jun 27 2006