Building RealMedia Samples

Building with Microsoft Visual C++ 4.x on Windows

On Windows, the SDK sample source files were test-compiled with Microsoft's Visual C++ 4.2. Do the following to compile a sample with Visual C++:
  1. Open the Microsoft Developer Studio program.
  2. Click Open Workspace on the File menu.
  3. In the Files of type box, select Makefiles (*.mak).
  4. Select the makefile in the win subdirectory of the desired sample directory and click Open. Visual C++ makefiles always have a .mak extension. For example:

    sdk\samples\intermed\exffplin\win\exffplin.mak

  5. In the Select Default Project Configuration box, select a Release build or a Debug build.
  6. Click the Build button or click Build filename on the Build menu.
To build using Visual C++ from the command line, enter the following command:

nmake /f "makefile.mak" CFG="configuration"

For example:

nmake /f "exffplin.mak" CFG="exffplin - Win32 Debug"
nmake /f "exffplin.mak" CFG="exffplin - Win32 Release"

Building with gcc on UNIX

On UNIX, the sample source files were test-compiled with GNU's gcc. The UNIX makefile for each sample file is located in the unix subdirectory under the sample directory. To build the sample with gcc, use this command:

make -f unix/Makefile.<ext>

where .ext is the extension that identifies your UNIX platform.

Building with CodeWarrior on the Macintosh

On the Macintosh, sample files were test-compiled with Metrowerk's CodeWarrior. Do the following to compile a sample file with CodeWarrior 11 or 12:

  1. Open the CodeWarrior project file located in the mac folder within the sample folder.

  2. Build the project. Be sure to include the files MacRMAMem.cp and PNMM.lib in the project for all Macintosh plug-ins.

  3. Move the shared library into the System:Extensions:Real folder.

© 1996, 1997 Progressive Networks, Inc. All rights reserved.

RealAudio and Progressive Networks are registered trademarks of Progressive Networks, Inc.
RealMedia, RealPlayer, RealVideo, and the Real logo are trademarks of Progressive Networks, Inc.