2008-09-07 11:04:43 -04:00
|
|
|
/**
|
|
|
|
@page Installation Installation
|
|
|
|
|
|
|
|
ENet should be trivially simple to integrate with most applications.
|
2020-02-27 11:55:10 -05:00
|
|
|
First, make sure you download the latest source distribution at @ref Downloads.
|
2008-09-07 11:04:43 -04:00
|
|
|
|
|
|
|
@section Unix Unix-like Operating Systems
|
|
|
|
|
|
|
|
If you are using an ENet release, then you should simply be able to build it
|
|
|
|
by doing the following:
|
|
|
|
|
|
|
|
./configure && make && make install
|
|
|
|
|
2018-01-30 17:10:30 -05:00
|
|
|
If you obtained the package from github, you must have automake and autoconf
|
2008-09-07 11:04:43 -04:00
|
|
|
available to generate the build system first by doing the following command
|
|
|
|
before using the above mentioned build procedure:
|
|
|
|
|
2011-03-17 17:02:22 -04:00
|
|
|
autoreconf -vfi
|
2008-09-07 11:04:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
@subsection SolarisBSD Solaris and BSD
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
@section Windows Microsoft Windows
|
|
|
|
|
2018-01-30 17:10:30 -05:00
|
|
|
You may simply use the included "enet.lib" or "enet64.lib" static libraries.
|
|
|
|
However, if you wish to build the library yourself, then the following
|
|
|
|
instructions apply:
|
|
|
|
|
2008-09-07 11:04:43 -04:00
|
|
|
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.
|
|
|
|
|
|
|
|
You will have to link to the Winsock2 libraries, so make sure to add
|
2011-03-17 17:02:22 -04:00
|
|
|
ws2_32.lib and winmm.lib to your library list (Project Settings | Link |
|
2008-09-07 11:04:43 -04:00
|
|
|
Object/library modules).
|
|
|
|
|
|
|
|
@subsection enet.dsp Building with the included enet.dsp
|
|
|
|
|
|
|
|
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".
|
|
|
|
|
|
|
|
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
|
2011-03-17 17:02:22 -04:00
|
|
|
their library lists. Make sure to also link against "ws2_32.lib" and
|
|
|
|
"winmm.lib" as described above.
|
2008-09-07 11:04:43 -04:00
|
|
|
|
|
|
|
@subsection DLL DLL
|
|
|
|
|
|
|
|
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 enet.h.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|