Problem:
when building gtk+, i met a gtk.immodules error, and i try different gtk+ versions, all the same.
gtk+ building failed:
*** [gtk.immodules] error 127.... gtk-query-immodules-2.0 >gtk.immodule
building...
ignore the errors, keep compile and install, install failed,and system crashed.
system failed:
"init: id "x" respawning too fast: disabled for 5 minutes
Solution:
1) init 3, login with root permission. find the gtk buiding folder;
2) Check the $Gtk+-2.0/gtk/gtk-query-immodules file, where the error happens (gtk-query-immodules *.lo > gtk.immodules, but after the sh run, the gtk.immodules is empty, so the problem is here.). The file is generated by libtool, i think its libtool's issue, my libtool is too old, i upgrade it, same error;
3) find lt-gtk-query-immodules-2.0/gtk-query-immodules-2.0 cannot run;
4) grep -r gtk-query-immodules . , find the Makefile for gtk-query-immodules-2.0, or delete it and module/input/im*.lo (1 im*.lo is enough).
5) After gtk-query-immodules rebuild, you'll see the compile statement(or you can check the Makefile in the same folder), record the statements;
6) Write a helloworld program with the libs above linked, execute it, if cannot run, remove libs one by one until success, then you'll spot the broke library. In my computer, the pixman-1 library broken, it's all ok after reinstall.
gtk.immodules error
最新推荐文章于 2021-11-15 15:02:19 发布