1.需要三个文件,下载下载darwin源代码DarwinStreamingSrvr6.0.3-Source.tar,补丁patch dss-6.0.3.patch,补丁dss-hh-20080728-1.patch
2.解压DarwinStreamingSrvr6.0.3-Source.tar
$ tar xvf DarwinStreamingSrvr6.0.3-Source.tar
3.打补丁patch dss-6.0.3.patch
$ patch -p0 < dss-6.0.3.patch
4.打补丁dss-hh-20080728-1.patch
$patch -p0 < dss-hh-20080728-1.patch
5. 添加qtss用户信息
$sudo addgroup --system qtss
$sudo adduser --system --no-create-home --ingroup qtss qtss
6.进入DarwinStreamingSrvr6.0.3-Source下面的操作都在此目录下
$cd DarwinStreamingSrvr6.0.3-Source
7.分别进入QTFileInfo、QTFileTest 、QTSampleLister 、QTTrackInfo四个模块目录中,修改其Makefile.POSIX,在LIBS下添加一行LIBS+= -lpthread
$ vi QTFileTools/QTFileInfo.tproj/Makefile.POSIX
$ vi QTFileTools/QTFileTest.tproj/Makefile.POSIX
$ vi QTFileTools/QTSampleLister.tproj/Makefile.POSIX
$ vi QTFileToo