DarwinStreamingSrvr6.0.3-Source.tar网上一大堆
补丁patch dss-6.0.3.patch也是一大堆,其中在32位上编译,只要有这个补丁就可以了,如果要在64位上编译,还需要dss-hh-20080728-1.patch
下载地址:http://download.csdn.net/download/a7411053/4588411
2、解压DarwinStreamingSrvr6.0.3-Source.tar,打好补丁patch dss-6.0.3.patch
$ tar xvf DarwinStreamingSrvr6.0.3-Source.tar
$ ls
http://download.csdn.net/download/a7411053/4588411
DarwinStreamingSrvr6.0.3-Source DarwinStreamingSrvr6.0.3-Source.tar dss-6.0.3.patch dss-hh-20080728-1.patch
$ patch -p0 < dss-6.0.3.patch
$ patch -p0 < dss-hh-20080728-1.patch
3、修改安装脚本Install
$ vi Install
if [ $INSTALL_OS = "Linux" ]; then
/usr/sbin/groupadd qtss > /dev/null 2>&1
/usr/sbin/useradd -m qtss > /dev/null 2>&1
(原文:/usr/sbin/useradd -M qtss > /dev/null 2>&1)
else
/usr/sbin/groupadd qtss > /dev/null 2>&1
/usr/sbin/useradd qtss > /dev/null 2>&1
fi
4、添加qtss用户信息,添加后面安装会报错误提示
chown: invalid user: `qtss'
$ addgroup -system qtss
$ adduser -system -no-create-home -ingroup qtss qtss
5、./Buildit 编译
如果没有打上第二个补丁,64位环境下此处编译不通过
6、./buildtarball 提示出错,32位与64位出错一样,解决方法也一样,如下:
$vim Makefile.POSIX
LIBS = $(CORE_LINK_LIBS) -lCommonUtilitiesLib -lQTFileLib -ldl
$ vi QTFileTools/QTFileInfo.tproj/Makefile.POSIX
$ vi QTFileTools/QTFileTest.tproj/Makefile.POSIX
$ vi QTFileTools/QTSampleLister.tproj/Makefile.POSIX
以上三个文件都是添加:LIBS+ = -lpthread
7、进入目录安装DarwinStreamingSrvr-Linux,./Install,提示输入用户名,密码,下面通过网页登录用.
$ cd DarwinStreamingSrvr-Linux/
$ ./Install
In order to administer the Darwin Streaming Server you must create an administrator user [Note: The administrator user name cannot contain spaces, or single or double quote characters, and cannot be more than 255 characters long].
Please enter a new administrator user name: ekin
You must also enter a password for the administrator user [Note: The administrator password cannot contain spaces, or quotes, either single or double, and cannot be more than 80 characters long].
Please enter a new administrator Password:
Re-enter the new administrator password:
8、运行
/usr/local/sbin/DarwinStreamingServer
9、查看Darwin服务进程是否正确运行
ps -ef | grep Darwin
root 2249 1 0 16:47 ? 00:00:00 /usr/local/sbin/DarwinStreamingServer
qtss 2250 2249 0 16:47 ? 00:00:01 /usr/local/sbin/DarwinStreamingServer
root 2576 2141 0 17:15 pts/0 00:00:00 grep --color=auto Darwin
10、测试
网页:
http://serverIP:1220可以访问服务器,输入用户名,密码测试OK
VLC播放: