Darwin Streaming server compile run process with VS2005

Source: Internet
Author: User

Original.

One: Compile

The Darwin6.0.3 version is the latest version and also provides a. dsw file. However, using VS2005 and VC6 is not compiled.
Therefore, the Darwin5.5.5 version is used. Use VC6 to open the. DSW project under the Winntsupport folder, direct batch build, which can be generated in one step.

Use VC compile fast, but debugging and look at the code is less than 2005 convenient.
The following are mainly problems with compiling with vs2005.

After converting VS2005 's sln, it is not necessary to streamingloadingtool this project, because the server does not depend on the project.

(1) Tip: Winsock2 some function redefinition.
Method: Add to all # include <windows.h> front:
#define Win32_lean_and_mean//zl
#include <windows.h>
(2) Tip:
Error C2039: ' timeGetTime ': is not a member of ' global namespace '
Method: Include the header file Mmsystem.h, and introduce the Winmm.lib library in the project setup OK.
Requirements
Windows nt/2000:requires Windows NT 3.1 or later.
Windows 95/98:requires windows or later.
Header:declared in Mmsystem.h.
Library:use Winmm.lib.
Note: Add in front of other header files, and the form is as follows: Three lines should be added.
#define Win32_lean_and_mean//zl
#include <windows.h>//zl
#include <Mmsystem.h>//add by ZL
(3) Error c2894:templates cannot is declared to having ' C ' linkage
Method: QTSS.h? Osheader.h?ws2tcpip.h?wspiapi.h
In QTSS.h, the extern "C" was used to include the header file, resulting in this error. The template exists only in C + +. The workaround is to comment out the extern "C" {and} in QTSS.h
(4) In the Streamingserver project, QTSSRTSPProtocol.h also has extern "C" {... OSHeader.h.}, also remove extern part
==========================================
Two: Run
After compiling the debug version with VS2005, the following is generated

Read the Readme-makeinstall.txt to learn about the installation method. It is summarized as follows:
(1) Edit the Makezip.bat so that he copy the executable under Debug, not release.
(2) Double click to run Makezip.bat, will be generated under the current folder
Mainly the following one is useful.
It has exe,dll, as well as media files copied from other directories in the installation package.
(3) package the Darwinstreamingserver folder.
The installation package has finished generating.

How to run:
Open the Darwinstreamingserver folder and double-click Install.bat to automatically copy the program to C:/Program Files/darwin streaming server/... , and generate the movies directory to place the media file. The concrete process wants to understand the words can see Install.bat content.
The command-line window opens C:/Program Files/darwin streaming server/execution:
#DarwinStreamingServer-D starts the server.
Use the streaming media Player to enter Rtsp://localhost:554/sample_100kbit.mov to watch the video.

============================================

After the debug method, generate the debug version of the Darwinstreamingserver folder, double-click Install Install.bat, automatically install to the C drive. Just point to Debug. Note that the media files are placed in the C-drive installation directory, not under the Darwinstreamingserver folder of the source code. The program reads something under the specified folder in the C drive.

======================================

#Darwinstreamingserver option parameter is not in the document. What options are available from the program. You can also see what options are available with the-v command.

Compile the time where set can display each RTP packet information, do not know where, forget. It's a function of Printfpacket and the like.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.