LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1938|回复: 4

新手求助:sopcast网络电视安装(谢谢各位已解决)

[复制链接]
发表于 2006-9-24 16:32:34 | 显示全部楼层 |阅读模式
刚用arch0.72
想用sopcast这个软件,查了下知道在非官方软件库里有,可不知道该怎么装,各位大侠能否指点一下,先谢谢了。
发表于 2006-9-24 16:41:23 | 显示全部楼层
下载PKGBUILD,和其他需要的复件,放在一个新建文件夹中,运行makepkg,就会自动编译生成软件包了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-24 21:53:45 | 显示全部楼层
谢谢指教,已搞定了
回复 支持 反对

使用道具 举报

发表于 2006-10-1 01:24:31 | 显示全部楼层
arch0.72
用下载的PKGBUILD sopcast成功安装,
但是gsopcast-0.2.9.tar.bz2不管是直接编译还是用PKGBUILD都会有如下的错误提示

[PHP]
/usr/include/gtk/gtkmain.h:103: error: 'guint' does not name a type
/usr/include/gtk/gtkmain.h:106: error: 'guint' does not name a type
/usr/include/gtk/gtkmain.h:111: error: variable or field 'gtk_quit_remove' declared void
/usr/include/gtk/gtkmain.h:111: error: 'guint' was not declared in this scope
/usr/include/gtk/gtkmain.h:112: error: variable or field 'gtk_quit_remove_by_data' declared void
/usr/include/gtk/gtkmain.h:112: error: 'gpointer' was not declared in this scope
/usr/include/gtk/gtkmain.h:113: error: 'guint' does not name a type
/usr/include/gtk/gtkmain.h:116: error: 'guint' does not name a type
/usr/include/gtk/gtkmain.h:121: error: variable or field 'gtk_timeout_remove' declared void
/usr/include/gtk/gtkmain.h:121: error: 'guint' was not declared in this scope
/usr/include/gtk/gtkmain.h:123: error: 'guint' does not name a type
/usr/include/gtk/gtkmain.h:125: error: 'guint' does not name a type
/usr/include/gtk/gtkmain.h:128: error: 'guint' does not name a type
/usr/include/gtk/gtkmain.h:133: error: variable or field 'gtk_idle_remove' declared void
/usr/include/gtk/gtkmain.h:133: error: 'guint' was not declared in this scope
/usr/include/gtk/gtkmain.h:134: error: variable or field 'gtk_idle_remove_by_data' declared void
/usr/include/gtk/gtkmain.h:134: error: 'gpointer' was not declared in this scope
/usr/include/gtk/gtkmain.h:135: error: 'guint' does not name a type
/usr/include/gtk/gtkmain.h:141: error: variable or field 'gtk_input_remove' declared void
/usr/include/gtk/gtkmain.h:141: error: 'guint' was not declared in this scope
/usr/include/gtk/gtkmain.h:144: error: 'guint' does not name a type
/usr/include/gtk/gtkmain.h:146: error: variable or field 'gtk_key_snooper_remove' declared void
/usr/include/gtk/gtkmain.h:146: error: 'guint' was not declared in this scope
/usr/include/gtk/gtkmain.h:148: error: expected constructor, destructor, or type conversion before '*' token
/usr/include/gtk/gtkmain.h:149: error: 'GdkEvent' was not declared in this scope
/usr/include/gtk/gtkmain.h:149: error: 'event' was not declared in this scope
/usr/include/gtk/gtkmain.h:155: error: 'GdkEvent' has not been declared
/usr/include/gtk/gtkscale.h:54: error: 'guint' does not name a type
/usr/include/gtk/gtkscale.h:55: error: 'guint' does not name a type
/usr/include/gtk/gtkscale.h:69: error: 'GtkType' does not name a type
......
省略几百行
......
/usr/include/gtk/gtkvruler.h:59: error: 'guint' does not name a type
/usr/include/gtk/gtkvscale.h:61: error: 'GtkType' does not name a type
/usr/include/gtk/gtkvseparator.h:61: error: 'GtkType' does not name a type
header.h:66: error: ISO C++ forbids declaration of 'GIOChannel' with no type
header.h:66: error: expected ';' before '*' token
header.h:67: error: 'guint' does not name a type
channel.h:5: error: variable or field 'tree_search_key' declared void
channel.h:5: error: 'gchar' was not declared in this scope
channel.h:5: error: 'key' was not declared in this scope
channel.h:8: error: 'GIOChannel' was not declared in this scope
channel.h:8: error: 'source' was not declared in this scope
channel.h:8: error: 'GIOCondition' was not declared in this scope
channel.h:8: error: 'gpointer' was not declared in this scope
channel.h:8: error: initializer expression list treated as compound expression
iostatistics.h:7: error: 'GIOChannel' was not declared in this scope
iostatistics.h:7: error: 'source' was not declared in this scope
iostatistics.h:7: error: 'GIOCondition' was not declared in this scope
iostatistics.h:7: error: 'gpointer' was not declared in this scope
iostatistics.h:7: error: initializer expression list treated as compound expression
iorecord.h:5: error: 'GIOChannel' was not declared in this scope
iorecord.h:5: error: 'source' was not declared in this scope
iorecord.h:5: error: 'GIOCondition' was not declared in this scope
iorecord.h:5: error: 'gpointer' was not declared in this scope
iorecord.h:5: error: initializer expression list treated as compound expression
iochannel.h:3: error: 'GIOFunc' has not been declared
callbacks.cc:32: error: expected constructor, destructor, or type conversion before '*' token
callbacks.cc:33: error: expected constructor, destructor, or type conversion before '*' token
callbacks.cc:35: error: expected initializer before '*' token
callbacks.cc:41: error: 'FALSE' was not declared in this scope
callbacks.cc:43: error: 'guint' does not name a type
callbacks.cc:45: error: 'guint' does not name a type
callbacks.cc: In function 'void start_statistics_monitor()':
callbacks.cc:72: error: 'struct Channel' has no member named 'tag'
callbacks.cc:76: error: 'struct Channel' has no member named 'tag'
callbacks.cc:81: error: 'ptimer_statistics' was not declared in this scope
callbacks.cc:82: error: 'g_source_remove' was not declared in this scope
callbacks.cc:83: error: 'ptimer_record' was not declared in this scope
callbacks.cc:84: error: 'g_source_remove' was not declared in this scope
callbacks.cc:86: error: 'gtk_label_get_type' was not declared in this scope
callbacks.cc:87: error: 'gtk_entry_get_type' was not declared in this scope
callbacks.cc:89: error: 'GdkColor' was not declared in this scope
callbacks.cc:89: error: expected `;' before 'color'
callbacks.cc:90: error: 'color' was not declared in this scope
callbacks.cc:90: error: 'gdk_color_parse' was not declared in this scope
callbacks.cc:91: error: 'gtk_widget_modify_fg' was not declared in this scope
callbacks.cc:95: error: 'ptimer_statistics' was not declared in this scope
callbacks.cc:95: error: 'g_timeout_add' was not declared in this scope
callbacks.cc:97: error: 'TRUE' was not declared in this scope
callbacks.cc: At global scope:
callbacks.cc:102: error: expected constructor, destructor, or type conversion before '*' token
callbacks.cc:127: error: 'GList' was not declared in this scope
callbacks.cc:127: error: 'slist' was not declared in this scope
callbacks.cc:127: error: 'GList' was not declared in this scope
callbacks.cc:127: error: 'ulist' was not declared in this scope
callbacks.cc:127: error: expected primary-expression before 'const'
callbacks.cc:127: error: initializer expression list treated as compound expression
callbacks.cc:128: error: expected ',' or ';' before '{' token
callbacks.cc:146: error: variable or field 'on_treeview1_row_activated' declared void
callbacks.cc:146: error: 'GtkTreeView' was not declared in this scope
callbacks.cc:146: error: 'treeview' was not declared in this scope
callbacks.cc:147: error: 'GtkTreePath' was not declared in this scope
callbacks.cc:147: error: 'arg1' was not declared in this scope
callbacks.cc:148: error: 'GtkTreeViewColumn' was not declared in this scope
callbacks.cc:148: error: 'arg2' was not declared in this scope
callbacks.cc:148: error: 'gpointer' was not declared in this scope
callbacks.cc:148: error: initializer expression list treated as compound expression
callbacks.cc:149: error: expected ',' or ';' before '{' token
callbacks.cc: In function 'void on_button_sopcast_clicked()':
callbacks.cc:211: error: expected initializer before '*' token
callbacks.cc:212: error: 'str' was not declared in this scope
callbacks.cc:212: error: 'gtk_entry_get_type' was not declared in this scope
callbacks.cc:212: error: 'gtk_entry_get_text' was not declared in this scope
callbacks.cc:217: error: 'items_title' was not declared in this scope
callbacks.cc:217: error: 'items_url' was not declared in this scope
callbacks.cc:217: error: 'list_search_url' cannot be used as a function
callbacks.cc: In function 'void tree_search()':
callbacks.cc:253: error: expected initializer before '*' token
callbacks.cc:254: error: 'str' was not declared in this scope
callbacks.cc:254: error: 'gtk_entry_get_type' was not declared in this scope
callbacks.cc:254: error: 'gtk_entry_get_text' was not declared in this scope
callbacks.cc:255: error: 'gchar' was not declared in this scope
callbacks.cc:255: error: 'str2' was not declared in this scope
callbacks.cc:260: error: 'tree_search_key' cannot be used as a function
callbacks.cc: In function 'void on_button_expand_clicked(GtkWidget*)':
callbacks.cc:284: error: 'TRUE' was not declared in this scope
callbacks.cc:285: error: 'gtk_button_get_type' was not declared in this scope
callbacks.cc:285: error: 'gtk_button_get_label' was not declared in this scope
callbacks.cc:287: error: 'gtk_button_set_label' was not declared in this scope
callbacks.cc:292: error: 'gtk_button_set_label' was not declared in this scope
callbacks.cc:293: error: 'FALSE' was not declared in this scope
callbacks.cc:296: error: 'GtkTreeModel' was not declared in this scope
callbacks.cc:296: error: 'model' was not declared in this scope
callbacks.cc:297: error: 'tree_channel' was not declared in this scope
callbacks.cc:297: error: 'gtk_tree_view_get_model' was not declared in this scope
callbacks.cc:301: error: 'GtkTreeIter' was not declared in this scope
callbacks.cc:301: error: expected `;' before 'iter'
callbacks.cc:302: error: 'GtkTreePath' was not declared in this scope
callbacks.cc:302: error: 'path' was not declared in this scope
callbacks.cc:303: error: 'iter' was not declared in this scope
callbacks.cc:303: error: 'gtk_tree_model_get_iter_first' was not declared in this scope
callbacks.cc:306: error: 'gtk_tree_model_get_path' was not declared in this scope
callbacks.cc:308: error: 'gtk_tree_view_row_expanded' was not declared in this scope
callbacks.cc:310: error: 'gtk_tree_view_expand_row' was not declared in this scope
callbacks.cc:312: error: 'FALSE' was not declared in this scope
callbacks.cc:315: error: 'gtk_tree_view_collapse_row' was not declared in this scope
callbacks.cc:317: error: 'gtk_tree_path_free' was not declared in this scope
callbacks.cc:318: error: 'gtk_tree_model_iter_next' was not declared in this scope
callbacks.cc: In function 'void on_button_player_clicked()':
callbacks.cc:332: error: 'TRUE' was not declared in this scope
callbacks.cc: At global scope:
callbacks.cc:339: error: 'gpointer' has not been declared
callbacks.cc: In function 'void on_button_channel_toggled(GtkWidget*, int)':
callbacks.cc:341: error: 'gtk_toggle_button_get_type' was not declared in this scope
callbacks.cc:343: error: 'gtk_toggle_button_get_type' was not declared in this scope
callbacks.cc:344: error: 'TRUE' was not declared in this scope
callbacks.cc: In function 'void on_button_stop_clicked()':
callbacks.cc:359: error: 'struct Channel' has no member named 'tag'
callbacks.cc:363: error: 'struct Channel' has no member named 'tag'
callbacks.cc:368: error: 'ptimer_statistics' was not declared in this scope
callbacks.cc:369: error: 'g_source_remove' was not declared in this scope
callbacks.cc:370: error: 'ptimer_record' was not declared in this scope
callbacks.cc:371: error: 'g_source_remove' was not declared in this scope
callbacks.cc:373: error: 'gtk_label_get_type' was not declared in this scope
callbacks.cc:374: error: 'gtk_entry_get_type' was not declared in this scope
callbacks.cc:376: error: 'GdkColor' was not declared in this scope
callbacks.cc:376: error: expected `;' before 'color'
callbacks.cc:377: error: 'color' was not declared in this scope
callbacks.cc:377: error: 'gdk_color_parse' was not declared in this scope
callbacks.cc:378: error: 'gtk_widget_modify_fg' was not declared in this scope
callbacks.cc: In function 'void on_adj_sound_change_value(GtkAdjustment*)':
callbacks.cc:424: error: 'struct _GtkAdjustment' has no member named 'value'
callbacks.cc: At global scope:
callbacks.cc:440: error: 'gpointer' has not been declared
callbacks.cc: In function 'void on_button_record_clicked(GtkWidget*, int)':
callbacks.cc:442: error: 'gtk_label_get_type' was not declared in this scope
callbacks.cc:442: error: 'gtk_label_get_text' was not declared in this scope
callbacks.cc:444: error: 'ptimer_record' was not declared in this scope
callbacks.cc:444: error: 'g_timeout_add' was not declared in this scope
callbacks.cc:459: error: 'struct Channel' has no member named 'tag'
callbacks.cc:464: error: 'ptimer_record' was not declared in this scope
callbacks.cc:465: error: 'g_source_remove' was not declared in this scope
callbacks.cc:469: error: 'GdkColor' was not declared in this scope
callbacks.cc:469: error: expected `;' before 'color'
callbacks.cc:470: error: 'color' was not declared in this scope
callbacks.cc:470: error: 'gdk_color_parse' was not declared in this scope
callbacks.cc:471: error: 'gtk_widget_modify_fg' was not declared in this scope
callbacks.cc: At global scope:
callbacks.cc:480: error: 'GdkEventKey' has not been declared
callbacks.cc: In function 'gboolean vKeyPressReleaseCallback(GtkWidget*, int*)':
callbacks.cc:482: error: 'TRUE' was not declared in this scope
callbacks.cc:483: error: request for member 'state' in '* event', which is of non-class type 'int'
callbacks.cc:483: error: 'GDK_CONTROL_MASK' was not declared in this scope
callbacks.cc:484: error: request for member 'state' in '* event', which is of non-class type 'int'
callbacks.cc:484: error: 'GDK_MOD1_MASK' was not declared in this scope
callbacks.cc:485: error: request for member 'state' in '* event', which is of non-class type 'int'
callbacks.cc:485: error: 'GDK_SHIFT_MASK' was not declared in this scope
callbacks.cc:487: error: request for member 'keyval' in '* event', which is of non-class type 'int'
callbacks.cc:487: error: 'GDK_q' was not declared in this scope
callbacks.cc:487: error: request for member 'keyval' in '* event', which is of non-class type 'int'
callbacks.cc:487: error: 'GDK_Q' was not declared in this scope
callbacks.cc:491: error: request for member 'keyval' in '* event', which is of non-class type 'int'
callbacks.cc:491: error: 'GDK_Escape' was not declared in this scope
callbacks.cc:493: error: 'gtk_entry_get_type' was not declared in this scope
callbacks.cc:494: error: 'struct _GtkObjectClass' has no member named 'type'
callbacks.cc:499: error: 'FALSE' was not declared in this scope
make: *** [callbacks.o] Error 1
==> ERROR: Build Failed.  Aborting...

[/PHP]
然后直接用未修改gsopcast-0.2.8.tar.bz2的PKGBUILD,提示信息相同,是我的gtk有问题吗?
现在装了qsopcast-0.2.4可以看了,但还是想问问原因
谢谢!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-2 10:32:25 | 显示全部楼层
pkgname=gsopcast
pkgver=0.2.8
pkgdesc="A GTK front-end of p2p TV sopcast"
url="http://lianwei3.googlepages.com/home2"
depends=('sopcast' 'gtk2' 'cairo')
source=(http://lianwei3.googlepages.com/gsopcast-0.2.8.tar.bz2)

build()  {
  cd $startdir/src
  tar xjf gsopcast-0.2.8.tar.bz2
  cd gsopcast-0.2.8
  chmod +x src
  cd src
  make
  install -D gsopcast $startdir/pkg/usr/bin/gsopcast
}

呵,我改了一下,安装成功了(没有用汉化补丁)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表