这个是什么错呢?gsopcast 0.4.0 编译不过。

Totem,mplayer,sopcast,realplayer,bmp
回复
头像
darasion
帖子: 1153
注册时间: 2007-12-05 12:25

这个是什么错呢?gsopcast 0.4.0 编译不过。

#1

帖子 darasion » 2009-03-17 0:21

:em20

不懂阿。。。

darasion@darasion-desktop:~/Desktop/gsopcast-0.4.0$ make
make all-recursive
make[1]: 正在进入目录 `/home/darasion/Desktop/gsopcast-0.4.0'
Making all in po
make[2]: 正在进入目录 `/home/darasion/Desktop/gsopcast-0.4.0/po'
file=`echo es | sed 's,.*/,,'`.gmo \
&& rm -f $file && /usr/bin/msgfmt -o $file es.po
file=`echo sv | sed 's,.*/,,'`.gmo \
&& rm -f $file && /usr/bin/msgfmt -o $file sv.po
file=`echo zh_CN | sed 's,.*/,,'`.gmo \
&& rm -f $file && /usr/bin/msgfmt -o $file zh_CN.po
make[2]:正在离开目录 `/home/darasion/Desktop/gsopcast-0.4.0/po'
Making all in src
make[2]: 正在进入目录 `/home/darasion/Desktop/gsopcast-0.4.0/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT callbacks.o -MD -MP -MF .deps/callbacks.Tpo -c -o callbacks.o callbacks.cc
callbacks.cc: In function ‘gboolean vKeyPressReleaseCallback(GtkWidget*, GdkEventKey*)’:
callbacks.cc:615: 警告: 忽略声明有 warn_unused_result 属性的‘ssize_t write(int, const void*, size_t)’的返回值
mv -f .deps/callbacks.Tpo .deps/callbacks.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT fork.o -MD -MP -MF .deps/fork.Tpo -c -o fork.o fork.cc
fork.cc: In function ‘gboolean handle_stdout_pipe(GIOChannel*, GIOCondition, void*)’:
fork.cc:62: 错误: ‘strstr’在此作用域中尚未声明
fork.cc: In function ‘void fork_sop(char*)’:
fork.cc:118: 错误: ‘strdup’在此作用域中尚未声明
fork.cc:125: 警告: 不建议使用从字符串常量到‘char*’的转换
fork.cc:141: 警告: 不建议使用从字符串常量到‘char*’的转换
fork.cc: In function ‘void fork_player()’:
fork.cc:182: 错误: ‘strdup’在此作用域中尚未声明
fork.cc:186: 错误: ‘strtok_r’在此作用域中尚未声明
fork.cc:189: 错误: ‘strcat’在此作用域中尚未声明
fork.cc: In function ‘void kill_player()’:
fork.cc:254: 错误: ‘strcat’在此作用域中尚未声明
fork.cc:257: 错误: ‘strcmp’在此作用域中尚未声明
fork.cc:276: 错误: ‘memchr’在此作用域中尚未声明
fork.cc:279: 错误: ‘strstr’在此作用域中尚未声明
make[2]: *** [fork.o] 错误 1
make[2]:正在离开目录 `/home/darasion/Desktop/gsopcast-0.4.0/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/darasion/Desktop/gsopcast-0.4.0'
make: *** [all] 错误 2
头像
alan8410
帖子: 32
注册时间: 2008-11-28 12:12

Re: 这个是什么错呢?gsopcast 0.4.0 编译不过。

#2

帖子 alan8410 » 2009-03-17 20:11

我的也是!
自由自在,无拘无束 ...
头像
darasion
帖子: 1153
注册时间: 2007-12-05 12:25

Re: 这个是什么错呢?gsopcast 0.4.0 编译不过。

#3

帖子 darasion » 2009-03-21 13:23

解决了。

header.h里边引入string.h就行了。

代码: 全选

. . .

#ifndef HEADER_H
#define HEADER_H
#include <sys/types.h>
#include <string.h>                         /* 这个*/
#include <sys/stat.h>

. . .
trojanfido
帖子: 5
注册时间: 2009-11-16 13:45

Re: 这个是什么错呢?gsopcast 0.4.0 编译不过。

#4

帖子 trojanfido » 2009-11-23 13:10

谢谢3楼~~
回复