<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY style="COLOR: #000000; FONT-FAMILY: Arial" bgColor=#c0c0c0><LABEL
id=HbSession SessionId="3636289833"></LABEL>
<DIV><FONT size=2>Dear developers,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>The current instructions for how to Build LiveMedia with C++
Builder is not clear and right. I have wrote a new one, according to what I did
when I tried to build LiveMedia with C++ Builder 5.0. Maybe it should
be post on the web for the convenience of others.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV> </DIV><FONT size=2>
<DIV><BR>1. In file
win32config.Borland<BR>Change<BR>TOOLS32 = C:\Progra~1\Borland\CBuilder5<BR>according
to where the local C++ Bulider locates,<BR>for
example<BR>TOOLS32 = D:\Progra~1\Borland\CBuilder5</DIV>
<DIV> </DIV>
<DIV>2. Use following DOS command to create makefile(s) in the folders of
BasicUsageEnvironment,UsageEnvironment,GroupSock,LiveMedia,TestProgs<BR>copy
makefile.head+..\win32config.borland+makefile.tail Makefile /y</DIV>
<DIV> </DIV>
<DIV>3. In makefile(s) of
BasicUsageEnvironment,UsageEnvironment,GroupSock,LiveMedia</DIV>
<DIV> </DIV>
<DIV>Replace line:<BR>$(LIBRARY_LINK)$@ $(LIBRARY_LINK_OPTS) $(OBJS)<BR>with the
following line:<BR>$(LIBRARY_LINK) $@ $(LIBRARY_LINK_OPTS) $(OBJS)</DIV>
<DIV> </DIV>
<DIV>Notes: Just add <STRONG><EM><U>one space</U></EM></STRONG> before $@ is
enough.<BR>Now it is ok to run Make in the folders of
BasicUsageEnvironment,UsageEnvironment,GroupSock,<BR>but not for the folders of
LiveMedia and TestProgs.</DIV>
<DIV> </DIV>
<DIV>4. In LiveMedia folder</DIV>
<DIV> </DIV>
<DIV>a. Remove lines that uses _setmode function from inputfile.cpp,
outputfile.cpp</DIV>
<DIV> </DIV>
<DIV>b. Change _strnicmp to strnicmp in RTSPServer.cpp, RTSPClient.cpp,
SIPClient.cpp</DIV>
<DIV> </DIV>
<DIV>c. Change fabsf function to fabs function in ServerMediaSession.cpp</DIV>
<DIV> </DIV>
<DIV>Now it is ok to run Make in the folder of LiveMedia.</DIV>
<DIV> </DIV>
<DIV>4. TestProgs<BR>a. Change every \ to / in following
lines<BR>USAGE_ENVIRONMENT_DIR = ..\UsageEnvironment<BR>USAGE_ENVIRONMENT_LIB =
$(USAGE_ENVIRONMENT_DIR)\libUsageEnvironment.$(LIB_SUFFIX)<BR>BASIC_USAGE_ENVIRONMENT_DIR
= ..\BasicUsageEnvironment<BR>BASIC_USAGE_ENVIRONMENT_LIB =
$(BASIC_USAGE_ENVIRONMENT_DIR)\libBasicUsageEnvironment.$(LIB_SUFFIX)<BR>LIVEMEDIA_DIR
= ..\liveMedia<BR>LIVEMEDIA_LIB =
$(LIVEMEDIA_DIR)\libliveMedia.$(LIB_SUFFIX)<BR>GROUPSOCK_DIR =
..\groupsock<BR>GROUPSOCK_LIB =
$(GROUPSOCK_DIR)\libgroupsock.$(LIB_SUFFIX)</DIV>
<DIV> </DIV>
<DIV>b.<BR>Replace Line:<BR>LIBS_FOR_CONSOLE_APPLICATION = cw32 import32<BR>with
following line:<BR>LIBS_FOR_CONSOLE_APPLICATION = cw32.lib import32.lib</DIV>
<DIV> </DIV>
<DIV>c.<BR>Replace Line:<BR>$(LINK)$@ $(???????????) $(?????????????)
$(LIBS)<BR>with following line:<BR>$(LINK) $@ $(???????????) $(?????????????)
$(LIBS)</DIV>
<DIV> </DIV>
<DIV>For example:</DIV>
<DIV> </DIV>
<DIV>Replace<BR>testMP3Streamer$(EXE): $(MP3_STREAMER_OBJS)
$(LOCAL_LIBS)<BR> $(LINK)$@ $(CONSOLE_LINK_OPTS) $(MP3_STREAMER_OBJS)
$(LIBS)<BR>with<BR>testMP3Streamer$(EXE): $(MP3_STREAMER_OBJS)
$(LOCAL_LIBS)<BR> $(LINK) $@ $(CONSOLE_LINK_OPTS) $(MP3_STREAMER_OBJS)
$(LIBS)</DIV>
<DIV> </DIV>
<DIV>Notes: Just add <EM><U><STRONG>one space</STRONG></U></EM> before $@ is
enough.</DIV>
<DIV> </DIV>
<DIV>Now it is ok to run Make in the folder of TestProgs.<BR></FONT></DIV>
<P></P></BODY></HTML>