problems installing ligtk2.0
Hi misters,
i'm trying to install libgtk2.0 on debian - sarge by apt-get, and got: Setting up libgtk2.0-bin ... Updating the IM modules list for GTK+-2.4.0...Cannot load module /usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so: /usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so: undefined symbol: g_assert_warning /usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so does not export GTK+ IM module API: /usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so: undefined symbol: g_assert_warning Somebody knows what was wrong? thank's, in advance. joseao |
Hi. I found the problem: gtk2-0.pc in /usr/local/lib/pkgconfig and /usr/lib/pkgconfig. Removing gtk2's libs and pc files was the solution.
thanks |
Brute force method. I use static library (im-xim.a).
First, extract objects from `.a' via command: $ ar -x im-xim.a Place next code to file b.c: // file b.c void g_assert_warning() { } // end b.c and compile: $ gcc -fPIC -c b.c Run next: $ gcc -Wl,-export-dynamic -shared -o lib.so gtkimcontextxim.o imxim.o b.o to obtain new library (lib.so). Replace im-xim.so with this file. Of course it just prevent error messages, it's not a solution. Solution is replace whole gtk with new version (i think). |
All times are GMT -5. The time now is 11:24 PM. |