From: Theo S. <to...@sc...> - 2006-05-24 19:03:19
|
Hi there, i do an fresh checkout from cvs. ./configure --prefix=3D/usr --with-drivers=3DLUIse make this error follows: plugin_uptime.o plugin_wireless.o plugin_xmms.o -L/usr/local/lib=20 -lluise -lgd -lm drv_generic_graphic.o: In function=20 `drv_generic_graphic_init':drv_generic_graphic.c:(.text+0x11e6):=20 undefined reference to `Widget_Image' collect2: ld gab 1 als Ende-Status zur=FCck make[1]: *** [lcd4linux] Fehler 1 make[1]: Leaving directory `/home/tooly/test/lcd4linux' make: *** [all] Fehler 2 This little patch to the trick for me: diff -Naur lcd4linux.orig/Makefile.in lcd4linux/Makefile.in --- lcd4linux.orig/Makefile.in 2006-04-17 10:10:42.000000000 +0200 +++ lcd4linux/Makefile.in 2006-05-24 20:59:11.000000000 +0200 @@ -125,7 +125,7 @@ X_EXTRA_LIBS =3D @X_EXTRA_LIBS@ X_PRE_LIBS =3D @X_PRE_LIBS@ lcd4linux_OBJECTS =3D lcd4linux.o cfg.o debug.o drv.o evaluator.o hash.= o \ -layout.o pid.o timer.o thread.o udelay.o qprintf.o rgb.o widget.o \ +layout.o pid.o timer.o thread.o udelay.o qprintf.o rgb.o widget.o=20 widget_image.o \ widget_text.o widget_bar.o widget_icon.o widget_keypad.o widget_timer.o = \ widget_gpo.o plugin.o plugin_cfg.o plugin_math.o plugin_string.o \ plugin_test.o plugin_time.o Sorry can't say if it is necessary to modify more files. mfg Theo |
From: FoX <fo...@gm...> - 2006-06-19 10:41:04
|
Could you commit this patch ? I tested it and it is actually needed to build lcd4linux correctly. 2006/5/24, Theo Schneider <to...@sc...>: > Hi there, > > i do an fresh checkout from cvs. > ./configure --prefix=3D/usr --with-drivers=3DLUIse > make > > this error follows: > > plugin_uptime.o plugin_wireless.o plugin_xmms.o -L/usr/local/lib > -lluise -lgd -lm > drv_generic_graphic.o: In function > `drv_generic_graphic_init':drv_generic_graphic.c:(.text+0x11e6): > undefined reference to `Widget_Image' > collect2: ld gab 1 als Ende-Status zur=FCck > make[1]: *** [lcd4linux] Fehler 1 > make[1]: Leaving directory `/home/tooly/test/lcd4linux' > make: *** [all] Fehler 2 > > This little patch to the trick for me: > > > diff -Naur lcd4linux.orig/Makefile.in lcd4linux/Makefile.in > --- lcd4linux.orig/Makefile.in 2006-04-17 10:10:42.000000000 +0200 > +++ lcd4linux/Makefile.in 2006-05-24 20:59:11.000000000 +0200 > @@ -125,7 +125,7 @@ > X_EXTRA_LIBS =3D @X_EXTRA_LIBS@ > X_PRE_LIBS =3D @X_PRE_LIBS@ > lcd4linux_OBJECTS =3D lcd4linux.o cfg.o debug.o drv.o evaluator.o hash.= o \ > -layout.o pid.o timer.o thread.o udelay.o qprintf.o rgb.o widget.o \ > +layout.o pid.o timer.o thread.o udelay.o qprintf.o rgb.o widget.o > widget_image.o \ > widget_text.o widget_bar.o widget_icon.o widget_keypad.o widget_timer.o = \ > widget_gpo.o plugin.o plugin_cfg.o plugin_math.o plugin_string.o \ > plugin_test.o plugin_time.o > > > Sorry can't say if it is necessary to modify more files. > > mfg > Theo > > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications i= n > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmdlnk&kid=107521&bid$8729&dat=121642 > _______________________________________________ > Lcd4linux-devel mailing list > Lcd...@li... > https://lists.sourceforge.net/lists/listinfo/lcd4linux-devel > |
From: Michael R. <re...@eu...> - 2006-06-19 12:05:24
|
Hi there, FoX wrote: > Could you commit this patch ? I tested it and it is actually needed to > build lcd4linux correctly. >=20 > 2006/5/24, Theo Schneider <to...@sc...>: >> Hi there, >> >> i do an fresh checkout from cvs. >> ./configure --prefix=3D/usr --with-drivers=3DLUIse >> make >> >> this error follows: >> >> plugin_uptime.o plugin_wireless.o plugin_xmms.o -L/usr/local/lib >> -lluise -lgd -lm >> drv_generic_graphic.o: In function >> `drv_generic_graphic_init':drv_generic_graphic.c:(.text+0x11e6): >> undefined reference to `Widget_Image' >> collect2: ld gab 1 als Ende-Status zur=FCck >> make[1]: *** [lcd4linux] Fehler 1 >> make[1]: Leaving directory `/home/tooly/test/lcd4linux' >> make: *** [all] Fehler 2 >> >> This little patch to the trick for me: Fixed in CVS. The real error was in drivers.m4, where a file called "drv_Image.o" was linked instead of the correct "widget_image.o". bye, michael --=20 Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |
From: FoX <fo...@gm...> - 2006-06-19 13:05:06
|
Sorry to disturb you again, but the bug is still there : # make distclean # ./configure --with-drivers=3D'all' # make <snip> drv_generic_graphic.o: In function `drv_generic_graphic_init':drv_generic_graphic.c:(.text+0x11e6): undefined reference to `Widget_Image' 2006/6/19, Michael Reinelt <re...@eu...>: > Hi there, > > > FoX wrote: > > Could you commit this patch ? I tested it and it is actually needed to > > build lcd4linux correctly. > > > > 2006/5/24, Theo Schneider <to...@sc...>: > >> Hi there, > >> > >> i do an fresh checkout from cvs. > >> ./configure --prefix=3D/usr --with-drivers=3DLUIse > >> make > >> > >> this error follows: > >> > >> plugin_uptime.o plugin_wireless.o plugin_xmms.o -L/usr/local/lib > >> -lluise -lgd -lm > >> drv_generic_graphic.o: In function > >> `drv_generic_graphic_init':drv_generic_graphic.c:(.text+0x11e6): > >> undefined reference to `Widget_Image' > >> collect2: ld gab 1 als Ende-Status zur=FCck > >> make[1]: *** [lcd4linux] Fehler 1 > >> make[1]: Leaving directory `/home/tooly/test/lcd4linux' > >> make: *** [all] Fehler 2 > >> > >> This little patch to the trick for me: > > Fixed in CVS. The real error was in drivers.m4, where a file called > "drv_Image.o" was linked instead of the correct "widget_image.o". > > > bye, michael > > -- > Michael Reinelt <re...@eu...> > http://home.pages.at/reinelt > GPG-Key 0xDF13BA50 > ICQ #288386781 > |
From: Michael R. <re...@eu...> - 2006-06-19 15:18:43
|
> Sorry to disturb you again, but the bug is still there : > > # make distclean > # ./configure --with-drivers='all' > # make > <snip> > drv_generic_graphic.o: In function > `drv_generic_graphic_init':drv_generic_graphic.c:(.text+0x11e6): > undefined reference to `Widget_Image' Sorry, I forgot to check in the autoconf stuff, too. If it still doesn't work, try a './bootstrap' but you need to have autoconf/automake/autowhateveryouwant installed. bye, Michael -- Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |
From: FoX <fo...@gm...> - 2006-06-19 16:19:11
|
# make distclean && ./bootstrap && ./configure && make <snip> drv_generic_graphic.o: In function `drv_generic_graphic_init':drv_generic_graphic.c:(.text+0x11e6): undefined reference to `Widget_Image' > If it still doesn't work, try a './bootstrap' but you need to have > autoconf/automake/autowhateveryouwant installed. FYI, I have autoconf and automake installed. The posted patch works well indeed... |
From: Michael R. <re...@eu...> - 2006-06-20 08:54:21
|
Hi there, > undefined reference to `Widget_Image' I'm slowly getting crazy here.... > FYI, I have autoconf and automake installed. The posted patch works > well indeed... sorry for insisting here, but it *does not*. It fixes makefile.in, which is a generated file from automake and Makefile.am I found the real problem: looks like you don't have libgd headers installed. In this case the error occurs. Fixed it again (at least tried to :-) Should work now with and wothout libgd. Without libgd, there's no image widget. This is how it's supposed to work. Pleas test and report. TIA, Michael -- Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |
From: FoX <fo...@gm...> - 2006-06-20 09:25:04
|
> I'm slowly getting crazy here.... I'm really sorry to drive you nuts :p > Fixed it again (at least tried to :-) Should work now with and wothout > libgd. Without libgd, there's no image widget. This is how it's supposed > to work. OK, now it compiles great without libgb-dev, on a normal toolchain and with our geexbox custom toolchain. But when I try with libgd-dev installed, it raises me another error : gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -Wall -W -g -O2 -c widget_image.c widget_image.c: In function =AB widget_image_render =BB : widget_image.c:156: warning : implicit declaration of function =AB gdImageGetTrueColorPixel =BB widget_image.c:157: warning : implicit declaration of function =AB gdTrueColorGetAlpha =BB widget_image.c:159: warning : implicit declaration of function =AB gdTrueColorGetRed =BB widget_image.c:160: warning : implicit declaration of function =AB gdTrueColorGetGreen =BB widget_image.c:161: warning : implicit declaration of function =AB gdTrueColorGetBlue =BB <snip> drv_Image.o : In function "drv_IMG_flush_PNG" :./drv_Image.c:260: undefined reference to =AB gdImageCreateTrueColor =BB :./drv_Image.c:261: undefined reference to =AB gdTrueColor =BB :./drv_Image.c:268: undefined reference to =AB gdTrueColor =BB widget_image.o : In function "widget_image_render" :./widget_image.c:156: undefined reference to =AB gdImageGetTrueColorPixel = =BB :./widget_image.c:157: undefined reference to =AB gdTrueColorGetAlpha =BB :./widget_image.c:159: undefined reference to =AB gdTrueColorGetRed =BB :./widget_image.c:160: undefined reference to =AB gdTrueColorGetGreen =BB :./widget_image.c:161: undefined reference to =AB gdTrueColorGetBlue =BB I'm on kubuntu dapper drake, I installed libgd-dev with apt-get, and it has also installed libfreetype6-dev, libgd-dev, libgd-noxpm-dev, libgd1-noxpm and libjpeg62-dev. # dpkg -l|grep libgd ii libgd-dev 1.8.4.debian-1 GD Graphics Library (transitional package) ii libgd-noxpm-dev 1.8.4.debian-1 GD Graphics Library (old version, without XP ii libgd1-noxpm 1.8.4.debian-1 GD Graphics Library (old version, without XP ii libgd2-noxpm 2.0.33-2ubuntu5.1 GD Graphics Library version 2 (without XPM s I hope it'll help you. BTW thanks for your fast answers. |
From: Michael R. <re...@eu...> - 2006-06-20 09:53:27
|
Hi there, > OK, now it compiles great without libgb-dev, on a normal toolchain and > with our geexbox custom toolchain. Great! I should have investigated this months ago... Thanks for your patience :-) > But when I try with libgd-dev > installed, it raises me another error : > widget_image.c:159: warning : implicit declaration of function =AB > gdTrueColorGetRed =BB Huh? my gd.h contains such macros: #define gdTrueColorGetRed(c) (((c) & 0xFF0000) >> 16) So please check your gd.h! btw, lcd4linux checks for gd.h at two locations: /usr/include/gd/gd.h and /usr/include/gd.h (don't know if this is correct). Maybe you've got two of'em, one being empty? :-) bye, Michael --=20 Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |
From: FoX <fo...@gm...> - 2006-06-20 10:09:00
|
> my gd.h contains such macros: > > #define gdTrueColorGetRed(c) (((c) & 0xFF0000) >> 16) I've found the error, I installed libgd when lcd4linux requires libgd2 ;) It compiles great now ! I wonder if there is a way to distinguish libgd from libgd2 ... ? |
From: Michael R. <re...@eu...> - 2006-06-20 11:08:50
|
Hi, > I've found the error, I installed libgd when lcd4linux requires libgd2 ;) > It compiles great now ! Fine! > I wonder if there is a way to distinguish libgd from libgd2 ... ? Me too. any hints, anybody out there? -- Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |
From: Maxime P. <max...@bu...> - 2006-06-20 14:48:09
|
* Michael Reinelt <re...@eu...> [2006-06-20 13:08:38]: > > I wonder if there is a way to distinguish libgd from libgd2 ... ? > Me too. any hints, anybody out there? #ifdef GD2_ID #if GD2_ID == "gd2" echo "gd2 present." #else echo "gd2 not present." #endif This constant is available at the very end of /usr/include/gd.h, you may want to take a look (and check my syntax here, I'm doing it on-the-fly). - Sam -- Maxime Petazzoni (http://www.bulix.org) -- gone crazy, back soon. leave message. |
From: Michael R. <re...@eu...> - 2006-06-21 05:19:44
|
Hi Sam, > #ifdef GD2_ID > #if GD2_ID == "gd2" > echo "gd2 present." > #else > echo "gd2 not present." > #endif > > This constant is available at the very end of /usr/include/gd.h, you > may want to take a look (and check my syntax here, I'm doing it > on-the-fly). Thanks a lot! checked in... -- Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |