Problem with gtk
Hi all, I am using an hand held device running on montavista linux, 1) i wrote a c program int main () { int i; while (i 25000) printf (%d\n, i); } it works very fine in my machine without any problem. (it takes around 1.2 minutes) 2)If try to run the same part of code on a button click using gtk, the application is crashing around 30 seconds saying just Terminated. Is there any time out as such we can specify for gtk applications.. Please help me regarding this. Thanks and Regards Naveen ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK-GUI and video display
[EMAIL PROTECTED] wrote: Hi, I need to run a GTK GUI and display video via DFB. I understand that the GTK-GUI would be using layer 0 (primary) and video would use Layer 1. However when the GUI comes up then the GUI/video layer is not visible. Any inputs on whether any changes are required to GTK-DFB to be able to display GUI and video simultaneously? uhm.. are you trying to have two different processes rendering on the same VT ? in this case i guess you'll have to build dfb with multicore option toghether with the fusion module too. I'm cc'ing directfb-users as this seems more a dfb than gtkdfb issue. regards Attilio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Can't link to Pango. Pango is required to build
Hi, I was wondering if you were ever able to find a solution to this problem. I would really appreciate anything you may remember on how you got this solved. Thanks Nicolas Madhusudan E wrote: Hi all: I want to cross compile gtk2.6.10 on linux-fb. I successfully compiled the follow libs: glib-2.6.6, libxml2.6.20,freetype2.1.10, fontconfig2.3.94, atk-1.10.3. and I'm sure they are installed in correct directory. But when i config the gtk2.6.10, the error is: . checking Pango flags... -I/usr/gtkcross/install//include/pango-1.0 -I/usr/gtkcross/install//include -I/usr/gtkcross/install//include/freetype2 -I/usr/gtkcross/install//include/glib-2.0 -I/usr/gtkcross/install//lib/glib-2.0/include -L/usr/gtkcross/install//lib -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 configure: error: *** Can't link to Pango. Pango is required to build *** GTK+. For more information see http://www.pango.org. in config.log, the error is: |.. |configure:31456: arm-unknown-linux-gnu-gcc -o conftest -g -O2 -Wall -I/usr/gtkcross/install//include/freetype2 |-I/usr/gtkcross/install//include -I/usr/gtkcross/install//include/pango-1.0 -I/usr/gtkcross/install//include |-I/usr/gtkcross/install//include/freetype2 -I/usr/gtkcross/install//include/glib-2.0 |-I/usr/gtkcross/install//lib/glib-2.0/include conftest.c -L/usr/gtkcross/install//lib -lpangoft2-1.0 -lpango-1.0 |-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 5 |/usr/arm/lib/gcc/arm-unknown-linux-gnu/3.4.4/../../../../arm-unknown-linux- gnu/bin/ld: warning: libfontconfig.so.1, needed |by /usr/gtkcross/install//lib/libpangoft2-1.0.so, not found (try using -rpath or -rpath-link) |/usr/arm/lib/gcc/arm-unknown-linux-gnu/3.4.4/../../../../arm-unknown-linux- gnu/bin/ld: warning: libfreetype.so.6, needed by |/usr/gtkcross/install//lib/libpangoft2-1.0.so, not found (try using -rpath or -rpath-link) |/usr/gtkcross/install//lib/libpangoft2-1.0.so: undefined reference to `FcObjectSetBuild' |/usr/gtkcross/install//lib/libpangoft2-1.0.so: undefined reference to `FT_Init_FreeType' |/usr/gtkcross/install//lib/libpangoft2-1.0.so: undefined reference to `FcPatternGetBool' |/usr/gtkcross/install//lib/libpangoft2-1.0.so: undefined reference to `FT_Load_Glyph' |/usr/gtkcross/install//lib/libpangoft2-1.0.so: undefined reference to `FT_Done_Face' |/usr/gtkcross/install//lib/libpangoft2-1.0.so: undefined reference to `FcObjectSetDestroy' |/usr/gtkcross/install//lib/libpangoft2-1.0.so: undefined reference to `FT_Render_Glyph' |/usr/gtkcross/install//lib/libpangoft2-1.0.so: undefined reference to `FcPatternDuplicate' |... | |... |run the test program |.. | |configure:31484: error: |*** Can't link to Pango. Pango is required to build |*** GTK+. For more information see http://www.pango.org Also: I have tried compile these libraries using normal gcc(not cross compilation), It's successfull. Thank you! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- View this message in context: http://www.nabble.com/Can%27t-link-to-Pango.-Pango-is-required-to-build-tf2336191.html#a7903894 Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Can't link to Pango. Pango is required to build
On Fri, Dec 15, 2006 at 11:02:47PM -0800, nvp15273 wrote: I was wondering if you were ever able to find a solution to this problem. I would really appreciate anything you may remember on how you got this solved. Thanks Madhusudan E wrote: I want to cross compile gtk2.6.10 on linux-fb. I successfully compiled the follow libs: glib-2.6.6, libxml2.6.20,freetype2.1.10, fontconfig2.3.94, atk-1.10.3. and I'm sure they are installed in correct directory. So is Pango crosscompiled and installed or not? Seems it isn't, at least it isn't mentioned... But when i config the gtk2.6.10, the error is: . *** Can't link to Pango. Pango is required to build ^^ *** GTK+. For more information see http://www.pango.org. ...and it isn't found. Do you expect any other advice than to (cross)install Pango? Am I missing the point? Yeti -- Whatever. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Makefile.am Help for GnomeProgram make errors
Hello, I am using Anjuta. I need help with a particular piece of configuration in order to make GnomeProgram work properly. I get this series of errors when trying to make the program: main.c: In function ‘main’: main.c:121: error: ‘PREFIX’ undeclared (first use in this function) main.c:121: error: (Each undeclared identifier is reported only once main.c:121: error: for each function it appears in.) main.c:121: error: ‘SYSCONFDIR’ undeclared (first use in this function) main.c:121: error: ‘DATADIR’ undeclared (first use in this function) main.c:121: error: ‘LIBDIR’ undeclared (first use in this function) I know I need to put PREFIX, SYSCONFDIR, etc in the Makefiles as a CFLAGS -DPREFIX= thing, but I'm not sure how do do this properly. I *think* I need to add something to Makefile.am ... but I'm not sure of the magic entry to put there. Please help! -- Tony ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
RE: Problem with gtk
If the intention is to run a loop for 25000 iterations, then this is a horrible way to attempt that. You haven't initialized i, neither are you incrementing it. -vc -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Naveen Kumar Sent: Saturday, December 16, 2006 4:56 PM To: gtk-app-devel-list@gnome.org Subject: Problem with gtk Hi all, I am using an hand held device running on montavista linux, 1) i wrote a c program int main () { int i; while (i 25000) printf (%d\n, i); } it works very fine in my machine without any problem. (it takes around 1.2 minutes) 2)If try to run the same part of code on a button click using gtk, the application is crashing around 30 seconds saying just Terminated. Is there any time out as such we can specify for gtk applications.. Please help me regarding this. Thanks and Regards Naveen ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Problem with gtk
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Dec 16, 2006 at 04:55:48PM +0530, Naveen Kumar wrote: Hi all, I am using an hand held device running on montavista linux, 1) i wrote a c program int main () { int i; i is uninitialized here. It contains a random value... while (i 25000) printf (%d\n, i); ...which doesn't change at all while the loop is running. } it works very fine in my machine without any problem. (it takes around 1.2 minutes) So I don't understand why this program terminates at all (it should terminate either *immediately* or *never at all*. 2)If try to run the same part of code on a button click using gtk, the application is crashing around 30 seconds saying just Terminated. Even 30 seconds seem too long (or too short, depending on the initial value of i). BTW, if you compile that with -Wall, the compiler would have told you that (needs option -O as well): | [EMAIL PROTECTED]:~$ cat fo.c | #include stdio.h | | int main () | { | int i; | while (i 25000) | printf (%d\n, i); | } | [EMAIL PROTECTED]:~$ gcc -O -Wall -o fo fo.c | fo.c: In function 'main': | fo.c:7: warning: 'i' is used uninitialized in this function | fo.c:8: warning: control reaches end of non-void function Regards - -- tomás -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFFhNT4Bcgs9XrR2kYRAnr6AJoCjUAlBxcSFTZ1LTrscfh25YH76QCeIy5U 5nV+H8AO+bgUgSWQ8r69tS0= =20kT -END PGP SIGNATURE- ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list