从 git 编译 gedit 2.30.4
我尝试从 git 编译 gedit 但不能。在制作过程中我得到:
/usr/bin/ld: ./.libs/libgedit.a(eggsmclient-xsmp.o): undefined reference to symbol 'IceProcessMessages'
/usr/bin/ld: note: 'IceProcessMessages' is defined in DSO //usr/lib64/libICE.so.6 so try adding it to the linker command line
//usr/lib64/libICE.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[4]: *** [gedit] Error 1
make[4]: Leaving directory `/home/thom/gedit/gedit'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/thom/gedit/gedit'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/thom/gedit/gedit'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/thom/gedit'
make: *** [all] Error 2
有什么想法吗?谢谢。
更新:
实际上我没有它在同一目录中。我不知道该怎么办。谢谢。
# locate libICE
/usr/lib32/libICE.a
/usr/lib32/libICE.so
/usr/lib32/libICE.so.6
/usr/lib32/libICE.so.6.3.0
/usr/lib/libICE.a
/usr/lib/libICE.so
/usr/lib/libICE.so.6
/usr/lib/libICE.so.6.3.0
I've tried to compile gedit from git but i can't. In the make process i get:
/usr/bin/ld: ./.libs/libgedit.a(eggsmclient-xsmp.o): undefined reference to symbol 'IceProcessMessages'
/usr/bin/ld: note: 'IceProcessMessages' is defined in DSO //usr/lib64/libICE.so.6 so try adding it to the linker command line
//usr/lib64/libICE.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[4]: *** [gedit] Error 1
make[4]: Leaving directory `/home/thom/gedit/gedit'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/thom/gedit/gedit'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/thom/gedit/gedit'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/thom/gedit'
make: *** [all] Error 2
Any ideia? Thank you.
UPDATE:
Actually i don't have it in the same directory. I don't know what to do. Thank you.
# locate libICE
/usr/lib32/libICE.a
/usr/lib32/libICE.so
/usr/lib32/libICE.so.6
/usr/lib32/libICE.so.6.3.0
/usr/lib/libICE.a
/usr/lib/libICE.so
/usr/lib/libICE.so.6
/usr/lib/libICE.so.6.3.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看configure.ac中的以下几行:
应该从第319行开始。您必须更改:
by:
然后,您必须重新运行autogen.sh。此外,您还可以在 https://bugzilla 上报告构建错误并向 gedit 开发人员发送补丁.gnome.org/browse.cgi?product=gedit :-)
Look at following lines in configure.ac:
which should start on line 319. You have to change:
by:
Then, you have to re-run autogen.sh. Also, you can report the build bug and send a patch to gedit developers on https://bugzilla.gnome.org/browse.cgi?product=gedit :-)