levin108 / hybrid

Hybird is a lightweight IM framework, currently supports China Mobile Fetion protocol and xmpp protocol.
levin108.github.com/hybrid
GNU General Public License v2.0
110 stars 27 forks source link

ubuntu10.04编译失败 #25

Open adcros opened 12 years ago

adcros commented 12 years ago

rrr@root-ubuntu:~/source/hybrid/build$ cmake ../ -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- checking for module 'gtk+-2.0' -- found gtk+-2.0, version 2.20.1 -- checking for module 'gdk-pixbuf-2.0' -- found gdk-pixbuf-2.0, version 2.20.1 -- checking for module 'glib-2.0' -- found glib-2.0, version 2.24.1 -- checking for module 'gobject-2.0' -- found gobject-2.0, version 2.24.1 -- checking for module 'gmodule-2.0' -- found gmodule-2.0, version 2.24.1 -- checking for module 'openssl' -- found openssl, version 0.9.8k -- checking for module 'libxml-2.0' -- found libxml-2.0, version 2.7.6 -- checking for module 'libnotify' -- found libnotify, version 0.4.5 -- checking for module 'gstreamer-0.10' -- found gstreamer-0.10, version 0.10.28 -- checking for module 'xscrnsaver' -- found xscrnsaver, version 1.2.0 -- checking for module 'webkit-1.0' -- found webkit-1.0, version 1.2.7 -- checking for module 'NetworkManager' -- found NetworkManager, version 0.8 -- checking for module 'dbus-glib-1' -- found dbus-glib-1, version 0.84 -- checking for module 'indicate' -- found indicate, version 0.3.6 -- checking for module 'indicate-gtk' -- found indicate-gtk, version 0.3.6 -- checking for module 'indicate-gtk-0.5' -- package 'indicate-gtk-0.5' not found -- Libnotify support: YES -- GStreamer support: YES -- Xscreensaver support: YES -- WebKit support: YES -- NetworkManager support: YES -- Ubuntu Indicator support: YES -- Native language support: YES -- glib-2.0 -- Configuring done -- Generating done -- Build files have been written to: /home/rrr/source/hybrid/build rrr@root-ubuntu:~/source/hybrid/build$ make Scanning dependencies of target email [ 1%] Building C object CMakeFiles/email.dir/modules/email/mail.c.o [ 3%] Building C object CMakeFiles/email.dir/modules/email/imap.c.o Linking C shared library libemail.so [ 3%] Built target email Scanning dependencies of target fetion [ 5%] Building C object CMakeFiles/fetion.dir/modules/fetion/fetion.c.o [ 7%] Building C object CMakeFiles/fetion.dir/modules/fetion/fx_login.c.o [ 9%] Building C object CMakeFiles/fetion.dir/modules/fetion/fx_account.c.o [ 11%] Building C object CMakeFiles/fetion.dir/modules/fetion/fx_sip.c.o [ 12%] Building C object CMakeFiles/fetion.dir/modules/fetion/fx_group.c.o [ 14%] Building C object CMakeFiles/fetion.dir/modules/fetion/fx_buddy.c.o [ 16%] Building C object CMakeFiles/fetion.dir/modules/fetion/fx_trans.c.o [ 18%] Building C object CMakeFiles/fetion.dir/modules/fetion/fx_util.c.o [ 20%] Building C object CMakeFiles/fetion.dir/modules/fetion/fx_msg.c.o [ 22%] Building C object CMakeFiles/fetion.dir/modules/fetion/fx_config.c.o Linking C shared library libfetion.so [ 22%] Built target fetion Scanning dependencies of target hybrid [ 24%] Building C object CMakeFiles/hybrid.dir/lib/connect.c.o [ 25%] Building C object CMakeFiles/hybrid.dir/lib/network.c.o [ 27%] Building C object CMakeFiles/hybrid.dir/lib/eventloop.c.o [ 29%] Building C object CMakeFiles/hybrid.dir/lib/module.c.o [ 31%] Building C object CMakeFiles/hybrid.dir/lib/account.c.o [ 33%] Building C object CMakeFiles/hybrid.dir/lib/xmlnode.c.o [ 35%] Building C object CMakeFiles/hybrid.dir/lib/config.c.o [ 37%] Building C object CMakeFiles/hybrid.dir/lib/util.c.o [ 38%] Building C object CMakeFiles/hybrid.dir/lib/pref.c.o [ 40%] Building C object CMakeFiles/hybrid.dir/lib/logs.c.o [ 42%] Building C object CMakeFiles/hybrid.dir/src/gtkconn.c.o [ 44%] Building C object CMakeFiles/hybrid.dir/src/gtksound.c.o [ 46%] Building C object CMakeFiles/hybrid.dir/src/gtkutils.c.o [ 48%] Building C object CMakeFiles/hybrid.dir/src/gtkaccount.c.o [ 50%] Building C object CMakeFiles/hybrid.dir/src/blist.c.o [ 51%] Building C object CMakeFiles/hybrid.dir/src/conv.c.o [ 53%] Building C object CMakeFiles/hybrid.dir/src/info.c.o [ 55%] Building C object CMakeFiles/hybrid.dir/src/head.c.o [ 57%] Building C object CMakeFiles/hybrid.dir/src/action.c.o [ 59%] Building C object CMakeFiles/hybrid.dir/src/notify.c.o [ 61%] Building C object CMakeFiles/hybrid.dir/src/tooltip.c.o [ 62%] Building C object CMakeFiles/hybrid.dir/src/preference.c.o /home/rrr/source/hybrid/src/preference.c: In function ‘select_pref_add_entry’: /home/rrr/source/hybrid/src/preference.c:256: warning: implicit declaration of function ‘gtk_combo_box_text_new’ /home/rrr/source/hybrid/src/preference.c:256: warning: assignment makes pointer from integer without a cast /home/rrr/source/hybrid/src/preference.c:263: warning: implicit declaration of function ‘gtk_combo_box_text_append_text’ /home/rrr/source/hybrid/src/preference.c:263: warning: implicit declaration of function ‘GTK_COMBO_BOX_TEXT’ /home/rrr/source/hybrid/src/preference.c: In function ‘hybrid_pref_section_add_entry’: /home/rrr/source/hybrid/src/preference.c:421: warning: implicit declaration of function ‘gtk_table_get_size’ [ 64%] Building C object CMakeFiles/hybrid.dir/src/chat-textview.c.o [ 66%] Building C object CMakeFiles/hybrid.dir/src/chat-webkit.c.o [ 68%] Building C object CMakeFiles/hybrid.dir/src/groupadd.c.o [ 70%] Building C object CMakeFiles/hybrid.dir/src/buddyadd.c.o [ 72%] Building C object CMakeFiles/hybrid.dir/src/buddyreq.c.o [ 74%] Building C object CMakeFiles/hybrid.dir/src/statusicon.c.o [ 75%] Building C object CMakeFiles/hybrid.dir/src/searchbox.c.o [ 77%] Building C object CMakeFiles/hybrid.dir/src/confirm.c.o [ 79%] Building C object CMakeFiles/hybrid.dir/src/about.c.o [ 81%] Building C object CMakeFiles/hybrid.dir/src/gtkcellrendererexpander.c.o [ 83%] Building C object CMakeFiles/hybrid.dir/src/core.c.o Linking C executable hybrid CMakeFiles/hybrid.dir/src/preference.c.o: In function select_pref_add_entry': /home/rrr/source/hybrid/src/preference.c:256: undefined reference togtk_combo_box_text_new' /home/rrr/source/hybrid/src/preference.c:263: undefined reference to GTK_COMBO_BOX_TEXT' /home/rrr/source/hybrid/src/preference.c:263: undefined reference togtk_combo_box_text_append_text' CMakeFiles/hybrid.dir/src/preference.c.o: In function hybrid_pref_section_add_entry': /home/rrr/source/hybrid/src/preference.c:421: undefined reference togtk_table_get_size' /home/rrr/source/hybrid/src/preference.c:429: undefined reference to `gtk_table_get_size' collect2: ld returned 1 exit status make[2]: * [hybrid] Error 1 make[1]: * [CMakeFiles/hybrid.dir/all] Error 2 make: *\ [all] Error 2 rrr@root-ubuntu:~/source/hybrid/build$

请问是哪里出问题了呢?

boubalos commented 12 years ago

LinuxMint Debian Edtion 下编译没有问题,cmake的时候缺什么库装什么就行。 10.04编译不过可能是库太老了,换最新的系统试试。

bestdpf commented 11 years ago

其实问题很简单.是因为早期的gtk版本里面没有gtk_table_get_size这个函数,这个函数很显然只是获得当前窗口大小的,可以用另外两个分别获取高、宽的函数代替 gtk_table_get_row_spacing gtk_table_get_col_spacing 第一个参数是窗口的指针,第二个就是gunit,而不是gtk_table_get_size的gunit的指针。

yeasy commented 11 years ago

who has a solution for this?

boubalos commented 11 years ago

用最新的gtk版本编译应该可以通过。 为什么不尝试加入翼聊呢?

2012/8/31 yeasy notifications@github.com

who has a solution for this?

— Reply to this email directly or view it on GitHubhttps://github.com/levin108/hybrid/issues/25#issuecomment-8191799.

晓峰

bestdpf commented 11 years ago

我按照我说的方法,就解决了这个问题?有的发行版是没有用gtk新版本的,因为依赖关系,也不能贸然升级。改代码也只要改2行就行了。

chxt6896 commented 11 years ago

具体怎么解决啊??能否详细的操作文件

yeasy commented 11 years ago

Anyone could give some solution? Thanks!