PageRenderTime 25ms CodeModel.GetById 15ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

HTML | 54 lines | 53 code | 0 blank | 1 comment | 0 complexity | b4ac4f0dc75b6fa9e6148524a2e3779c MD5 | raw file
 1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
 2<html xmlns="">
 4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
 5<title>enet: Installation</title>
 6<link href="tabs.css" rel="stylesheet" type="text/css"/>
 7<link href="doxygen.css" rel="stylesheet" type="text/css"/>
10<!-- Generated by Doxygen 1.7.1 -->
11<div class="navigation" id="top">
12  <div class="tabs">
13    <ul class="tablist">
14      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
15      <li class="current"><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
16      <li><a href="modules.html"><span>Modules</span></a></li>
17      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
18      <li><a href="files.html"><span>Files</span></a></li>
19    </ul>
20  </div>
22<div class="header">
23  <div class="headertitle">
24<h1>Installation </h1>  </div>
26<div class="contents">
27<p>ENet should be trivially simple to integrate with most applications.</p>
28<p>First, make sure you download the latest source distribution here <a class="el" href="SourceDistro.html">Source Distribution</a>.</p>
29<h2><a class="anchor" id="Unix"></a>
30Unix-like Operating Systems</h2>
31<p>If you are using an ENet release, then you should simply be able to build it by doing the following:</p>
32<p>./configure &amp;&amp; make &amp;&amp; make install</p>
33<p>If you obtained the package from CVS, you must have automake and autoconf available to generate the build system first by doing the following command before using the above mentioned build procedure:</p>
34<p>autoreconf -vfi</p>
35<h3><a class="anchor" id="SolarisBSD"></a>
36Solaris and BSD</h3>
37<p>When building ENet under Solaris, you must specify the -lsocket and -lnsl parameters to your compiler to ensure that the sockets library is linked in.</p>
38<h2><a class="anchor" id="Windows"></a>
39Microsoft Windows</h2>
40<p>There is an included MSVC 6 project (enet.dsp) which you may use to build a suitable library file. Alternatively, you may simply drag all the ENet source files into your main project.</p>
41<p>You will have to link to the Winsock2 libraries, so make sure to add ws2_32.lib and winmm.lib to your library list (Project Settings | Link | Object/library modules).</p>
42<h3><a class="anchor" id=""></a>
44<p>Load the included enet.dsp. MSVC may ask you to convert it if you are on a newer version of MSVC - just allow the conversion and save the resulting project as "enet" or similar. After you build this project, it will output an "enet.lib" file to either the "Debug/" or "Release/" directory, depending on which configuration you have selected to build. By default, it should produce "Debug/enet.lib".</p>
45<p>You may then copy the resulting "enet.lib" file and the header files found in the "include/" directory to your other projects and add it to their library lists. Make sure to also link against "ws2_32.lib" and "winmm.lib" as described above.</p>
46<h3><a class="anchor" id="DLL"></a>
48<p>If you wish to build ENet as a DLL you must first define ENET_DLL within the project (Project Settings | C/C++ | Preprocessor | Preprocessor definitions) or, more invasively, simply define ENET_DLL at the top of <a class="el" href="enet_8h.html" title="ENet public header file.">enet.h</a>. </p>
50<hr class="footer"/><address class="footer"><small>Generated on Wed Feb 9 2011 21:31:05 for enet by&nbsp;
51<a href="">
52<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>