troubles porting from ubuntu to debian. [??]
o can't figure this out. On my debian computer, make fails thusly: 4 -rw-r--r-- 1 kline 354 2012-01-01 13:59 Makefile pts/2 12:13 chatter [441] k ~/bin gcc -std=gnu99 -Wall -g main.c -o main -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 main.c: In function âshow_file_in_new_windowâ: main.c:157: warning: implicit declaration of function âchdirâ main.c: In function âinc_button_click_cbâ: main.c:242: warning: implicit declaration of function âgtk_widget_is_sensitiveâ main.c: In function âvoice_editorâ: main.c:361: warning: statement with no effect main.c:362: warning: implicit declaration of function âsleepâ main.c: In function âmainâ: main.c:416: warning: unused variable âSizeâ main.c:415: warning: unused variable âmessageâ /tmp/ccLCHs8U.o: In function `inc_button_click_cb': /home/kline/bin/main.c:242: undefined reference to `gtk_widget_is_sensitive' /tmp/ccLCHs8U.o: In function `dec_button_click_cb': /home/kline/bin/main.c:277: undefined reference to `gtk_widget_is_sensitive' collect2: ld returned 1 exit status make: *** [all] Error 1 pts/2 12:13 chatter [442] Here is the code that has gtk_widget_is_sensitive(). i gave up on this after a couple hours [last night]. does anybody who why this won't build? Change senstivity of the decrement button based on counter */ if (counter 0 !gtk_widget_is_sensitive (dec_button)) gtk_widget_set_sensitive (dec_button, TRUE); /* thanks in advance! gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.57a release of Jottings: http://jottings.thought.org Twenty-five years of service to the Unix community. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: troubles porting from ubuntu to debian. [??]
On Mon, Jan 02, 2012 at 12:15:45PM -0800, Gary Kline wrote: main.c:157: warning: implicit declaration of function âchdirâ main.c:362: warning: implicit declaration of function âsleepâ Declared in unistd.h. Forgot to include it? main.c: In function âinc_button_click_cbâ: main.c:242: warning: implicit declaration of function âgtk_widget_is_sensitiveâ ... Here is the code that has gtk_widget_is_sensitive(). i gave up on this after a couple hours [last night]. gtk_widget_is_sensitive() appeared in Gtk+ 2.18. Use devhelp or look at the on-line reference documentation to see when a specific symbol appeared. Use gtkdoc-depscan to scan your source code for functions that are available only since a specific Gtk+ version. Use GTK_WIDGET_IS_SENSITIVE() for compatibility with older Gtk+. Yeti ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: troubles porting from ubuntu to debian. [??]
On Mon, Jan 02, 2012 at 09:29:23PM +0100, David Ne??as wrote: Date: Mon, 2 Jan 2012 21:29:23 +0100 From: David Ne??as y...@physics.muni.cz Subject: Re: troubles porting from ubuntu to debian. [??] To: Gary Kline kl...@thought.org Cc: GTK Devel List gtk-app-devel-list@gnome.org On Mon, Jan 02, 2012 at 12:15:45PM -0800, Gary Kline wrote: main.c:157: warning: implicit declaration of function âchdirâ main.c:362: warning: implicit declaration of function âsleepâ Declared in unistd.h. Forgot to include it? probably; anyway, i'm not concerned about those two. main.c: In function âinc_button_click_cbâ: main.c:242: warning: implicit declaration of function âgtk_widget_is_sensitiveâ ... Here is the code that has gtk_widget_is_sensitive(). i gave up on this after a couple hours [last night]. gtk_widget_is_sensitive() appeared in Gtk+ 2.18. Use devhelp or look at the on-line reference documentation to see when a specific symbol appeared. Use gtkdoc-depscan to scan your source code for functions that are available only since a specific Gtk+ version. Use GTK_WIDGET_IS_SENSITIVE() for compatibility with older Gtk+. could you please explain more about this macro and how to resolve the complaint? as you note, things do only now frown using the macro def: main.c:243: warning: implicit declaration of function âGTK_WIDGET_SET_SENSITIVEâ main.c: In function âdec_button_click_cbâ: how the heck to i fix that warning that GTK_WIDGET_IS_SENSITIVE() IS *implicit*? this program works on ubuntu 11.10 which is a direct fork of debian. i was certain it would work on my laptop whivh has the latest debian. [BTZZZT!] :-) gary Yeti -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.57a release of Jottings: http://jottings.thought.org Twenty-five years of service to the Unix community. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: troubles porting from ubuntu to debian. [??]
On Mon, Jan 02, 2012 at 02:42:43PM -0800, Gary Kline wrote: could you please explain more about this macro and how to resolve the complaint? Use GTK_WIDGET_IS_SENSITIVE() instead of gtk_widget_is_sensitive(). as you note, things do only now frown using the macro def: main.c:243: warning: implicit declaration of function âGTK_WIDGET_SET_SENSITIVEâ main.c: In function âdec_button_click_cbâ: how the heck to i fix that warning that GTK_WIDGET_IS_SENSITIVE() IS *implicit*? GTK_WIDGET_SET_SENSITIVE is not GTK_WIDGET_IS_SENSITIVE. GTK_WIDGET_SET_SENSITIVE does not exist, there has always been a function for this: gtk_widget_set_sensitive(). Also note there are two kinds of functions: the -get-/-set- kind and the -is- kind, the former for querying/setting whether the widget can be sensitive and the latter for querying whether it actually is sensitive. See the documentation. this program works on ubuntu 11.10 which is a direct fork of debian. i was certain it would work on my laptop whivh has the latest debian. Ubuntu contains a newer verison of Gtk+. You cannot expect a program developed with a newer version to work with an older version unless you take care to use only functions that are present in the older version. Yeti ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: troubles porting from ubuntu to debian. [??]
nope:: an important part of what I need on my laptop, like maybe a gnome package, is missing. I tried to joining the gnome accessible group during a switch over in their mailing list utility. On Mon, Jan 02, 2012 at 02:42:43PM -0800, Gary Kline wrote: Date: Mon, 2 Jan 2012 14:42:43 -0800 From: Gary Kline kl...@thought.org To: David Ne??as y...@physics.muni.cz Subject: Re: troubles porting from ubuntu to debian. [??] Cc: GTK Devel List gtk-app-devel-list@gnome.org On Mon, Jan 02, 2012 at 09:29:23PM +0100, David Ne??as wrote: Date: Mon, 2 Jan 2012 21:29:23 +0100 From: David Ne??as y...@physics.muni.cz Subject: Re: troubles porting from ubuntu to debian. [??] To: Gary Kline kl...@thought.org Cc: GTK Devel List gtk-app-devel-list@gnome.org On Mon, Jan 02, 2012 at 12:15:45PM -0800, Gary Kline wrote: main.c:157: warning: implicit declaration of function âchdirâ main.c:362: warning: implicit declaration of function âsleepâ Declared in unistd.h. Forgot to include it? probably; anyway, i'm not concerned about those two. main.c: In function âinc_button_click_cbâ: main.c:242: warning: implicit declaration of function âgtk_widget_is_sensitiveâ ... Here is the code that has gtk_widget_is_sensitive(). i gave up on this after a couple hours [last night]. gtk_widget_is_sensitive() appeared in Gtk+ 2.18. Use devhelp or look at the on-line reference documentation to see when a specific symbol appeared. Use gtkdoc-depscan to scan your source code for functions that are available only since a specific Gtk+ version. Use GTK_WIDGET_IS_SENSITIVE() for compatibility with older Gtk+. could you please explain more about this macro and how to resolve the complaint? as you note, things do only now frown using the macro def: main.c:243: warning: implicit declaration of function âGTK_WIDGET_SET_SENSITIVEâ main.c: In function âdec_button_click_cbâ: how the heck to i fix that warning that GTK_WIDGET_IS_SENSITIVE() IS *implicit*? this program works on ubuntu 11.10 which is a direct fork of debian. i was certain it would work on my laptop whivh has the latest debian. [BTZZZT!] :-) gary Yeti -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.57a release of Jottings: http://jottings.thought.org Twenty-five years of service to the Unix community. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.98a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org server ethic ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: troubles porting from ubuntu to debian. [??]
well, after some hours of findings and fixings bugs, the port works. i use espeak [etc, etc] | aplay that works here on ubuntu. the espeak -f file causes strange driver problems here. in the morninh, i'll try the other means espeak -f on my netbook. on other words, i'm close[r]. if anybody wants to check out the gtk app, let me know. gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.57a release of Jottings: http://jottings.thought.org Twenty-five years of service to the Unix community. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list