Re: gtk+ 2.24 installation problems
Hi Roger, On Saturday, 3 March 2012, Roger Davis r...@soest.hawaii.edu wrote: I then downloaded those sources and first built glib 2.27.93 with a simple './configure --prefix=/usr; make; make install;'. That went fine, Oh dear, I think you may have broken your system. You've overwritten files which were being run by your package manager with your own copies. This will break updates and may well cause other programs you haveinstalled to start crashing mysteriously. I think you probably need to wipe your computer and reinstall. If you want a newer copy of a system library you need to install it and everything it needs to a separate prefix. I usually build to a directory in my home area and use environment variables to point the programs that need the new stuff to this area rather than the system one. John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Compiling for Win XP SP1
Hi, Thanks for your answer. Le 28 février 2012, Raja Mukherji a écrit : What sort of error are you getting? I found that installing the Visual C++ 2008 Redistributable Package was necessary to run the app on Windows XP SP1. Windows XP SP2 and newer seem to have it installed already. I don't know which error the user is getting. And it's a toy app, so I don't want to have them waste time on debugging this. Is the package you mention to be installed in the Windows sense, or can I just zip those files together with my app? Do you know where I'll find older releases of GTK? -- LL ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: gtk+ 2.24 installation problems
On 03/03/2012 08:10 AM, Roger Davis wrote: Sleeping on things overnight I'm thinking the best option may be to go back to the default configure options, let all the new packages dump their stuff in /usr/local, and adjust my environment as necessary to pick up those libraries, etc., in advance of the CentOS-included ones, which would include adjusting PKG_CONFIG_PATH as you've advised. Hopefully if I do this then the pkg-config call that's used to set my compile flags and library directories will get me all the right stuff? Yes this is the way to go. Never overwrite your system packages. Even though GTK+ is supposed to be binary compatible between minor versions, you could and probably would break things. Even if you didn't, the next time you do a yum update, if there are any GTK+ updates, they will overwrite your custom changes. So yes. When installing GTK+ from source, always install to a non-system prefix (/usr/local, or /opt) and use environment variables to build against it and run programs. A bit of a pain, true, but less pain than breaking your system, like the other poster on this list did when he removed GTK2 in an attempt to get GTK3 to compile and install on his ubuntu box! Completely broke his OS and he will probably have to re-install. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: gtk+ 2.24 installation problems
On Sun, 4 Mar 2012, jcup...@gmail.com wrote: Oh dear, I think you may have broken your system. You've overwritten files which were being run by your package manager with your own copies. This will break updates and may well cause other programs you haveinstalled to start crashing mysteriously. I think you probably need to wipe your computer and reinstall. Hi John, Nothing odd has happened yet, I'm keeping my fingers crossed! If anything does I'll probably just restore the original CentOS glib/gdk-pixbuf packages before doing anything more drastic. It's only a VM on my laptop so at least no one else will suffer from my stupidity (except the readers of this list, of course ;- ). Thanks for the warning, Roger ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Compiling for Win XP SP1
Hi Lucas, II am writing GTK+2.16 applications under Win XP2. They are working without issues on very old laptops with Win 2000. So I think you should investigate your instalation file set. May be it does not contain some necessary libs. Best regards, Igor 2012/3/4, Lucas Levrel llev...@yahoo.fr: Hi, Thanks for your answer. Le 28 février 2012, Raja Mukherji a écrit : What sort of error are you getting? I found that installing the Visual C++ 2008 Redistributable Package was necessary to run the app on Windows XP SP1. Windows XP SP2 and newer seem to have it installed already. I don't know which error the user is getting. And it's a toy app, so I don't want to have them waste time on debugging this. Is the package you mention to be installed in the Windows sense, or can I just zip those files together with my app? Do you know where I'll find older releases of GTK? -- LL ___ 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: memory leak on windows
2012/3/2, Gaetano Guerriero gaetano.guerri...@spacespa.it: Greetings, this code leaks memory on Windows XP until the program crashes after some minutes: === #include gtk/gtk.h static gboolean progressbar_pulse(gpointer data) { gtk_progress_bar_pulse(GTK_PROGRESS_BAR(data)); return TRUE; } int main(int argc, char *argv[]) { GtkWidget *window, *progressbar; gtk_init(argc, argv); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); progressbar = gtk_progress_bar_new(); gtk_container_add(GTK_CONTAINER(window), progressbar); gtk_widget_show_all(window); g_timeout_add(50, progressbar_pulse, progressbar); gtk_main(); return 0; } === The error after the crash: == (leak.exe:2420): Gdk-WARNING **: gdkgc-win32.c:830: SaveDC failed: Memoria insufficiente per eseguire il comando. (leak.exe:2420): Gdk-WARNING **: gdkgc-win32.c:970: RestoreDC failed: Parametro non corretto. (leak.exe:2420): Gdk-WARNING **: gdkpixmap-win32.c:279: CreateDIBSection failed: Parametro non corretto. ** Gdk:ERROR:gdkdrawable-win32.c:2040:_gdk_win32_drawable_finish: assertion failed: (impl-hdc_count == 0) This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. == I'm using all-in-on bundle for windows 2.24.10-20120208_win32 from gtk.org website, and I compile with MinGW. Any suggestions ? Gaetano ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list Hi Gaetano, you are right - this application steals memory. I compiled it by mingw g++ with gtk+-bundle_2.24.10-20120208_win32.zip. About 8 kByte per second for WinXP. Best regards, Igor ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list