| Under
General->Common Language Runtime support the option needs to be
set to No Common Language Runtime supportUnder
Dependent Extensions the following additional directories need to be in
the include configuration. 
 -Autopatcher/AutopatcherMySQLRepository
 -Autopatcher
 -bzip2-1.0.3
 -MySQLInterface
 
 MySql header directory needs to be included.
 
 For 5.1 on Vista the directory looks like: C:\Program Files
(x86)\MySQL\MySQL Server 5.1\includeUnder
Dependent Extensions the following additional source files need to be
included in the project.
 
 -bzip2-1.0.3/blocksort.c
 -bzip2-1.0.3/bzip2.c
 -bzip2-1.0.3/bzlib.c
 -bzip2-1.0.3/compress.c
 -bzip2-1.0.3/crctable.c
 -bzip2-1.0.3/decompress.c
 -bzip2-1.0.3/dlltest.c
 -bzip2-1.0.3/huffman.c
 -bzip2-1.0.3/randtable.c
 
 -Autopatcher/ApplyPatch.cpp
 -Autopatcher/AutopatcherClient.cpp
 -Autopatcher/AutopatcherMySQLRepository/AutopatcherMySQLRepository.cpp
 -Autopatcher/AutopatcherServer.cpp
 -Autopatcher/CreatePatch.cpp
 -Autopatcher/MemoryCompressor.cpp
 -MySQLInterface/MySQLInterface.cpp
 
 Additional Libraries
 
 The
MySql library needs to be included.
 
 For
5.1 on Vista the location looks like:
 
 For
debug:
 C:\Program Files (x86)\MySQL\MySQL Server 5.1\lib\debug\libmysql.lib
 
 For
release:
 C:\Program Files (x86)\MySQL\MySQL Server 5.1\lib\opt\libmysql.lib
 
 
 
Click the start menu and click on run. In Vista click
start->search type "run" hit enter.Type cmd and hit enter.In the next command PATH_TO_RAKNET_SWIG_FILES is the
path to
the swig directory. For example C:\RakNet\DependentExtensions\SwigType cd PATH_TO_RAKNET_SWIG_FILES hit enterIn the next command PATH_TO_RAKNETSOURCE is the path
to the swig source directory. For example: C:\RakNet\Source.
PATH_TO_SWIG is an unquoted path with a trailing slash to
the Swig directory Example: C:\Swig\. If you added swig to
your path variable then PATH_TO_SWIG is not needed and can be
ignored or set to "". PATH_TO_DEPENDENTEXTENSIONS is the path
to the Dependent Extensions directory Example:
C:\RakNet\DependentExtensions. OPTION1 in this case will be
MYSQL_AUTOPATCHER.Type MakeSwigWithExtras.bat
PATH_TO_RAKNETSOURCE PATH_TO_SWIG PATH_TO_DEPENDENTEXTENSIONS
OPTION1
hit enter
If you are not using the DLL_Swig project goto
"Creating the Swig Wrapped DLL Project" in the Swig TutorialIf you are using the DLL_Swig project, in the project
directory there is a file called Prebuild.bat, open it for editing.Replace the line "MakeSwig.bat "../../Source"" with
the command created in these steps.Now goto "Creating the Swig Wrapped DLL
Project" in the Swig
Tutorial. Make sure the extra configuration in this help file is followed. 
Click the start menu and click on run. In Vista click
start->search type "run" hit enter.Type cmd and hit enter.In the next command PATH_TO_RAKNET_SWIG_FILES is the
path to
the swig directory. For example C:\RakNet\DependentExtensions\SwigType cd PATH_TO_RAKNET_SWIG_FILES hit enterIn the next command PATH_TO_RAKNETSOURCE is the path
to the swig source directory. For example:
C:\RakNet\Source. PATH_TO_DEPENDENTEXTENSIONS
is the path to the Dependent Extensions directory Example:
C:\RakNet\DependentExtensions. Type C:\Swig\swig -c++ -csharp -namespace
RakNet -I"PATH_TO_RAKNETSOURCE" -I"SwigInterfaceFiles"
-I"PATH_TO_DEPENDENTEXTENSIONS"
-DSWIG_ADDITIONAL_AUTOPATCHER_MYSQL -outdir SwigOutput\SwigCSharpOutput
-o SwigOutput\CplusDLLIncludes\RakNet_wrap.cxx
SwigInterfaceFiles\RakNet.i
hit enterGoto "Creating the Swig DLL" in the Swig Tutorial. Make sure the extra configuration in this help file is followed. 
 
 Open a terminal if you are not already at one.
In the next command PATH_TO_RAKNET_SWIG_FILES is the
path to
the swig directory. For example
/home/usr/RakNet/DependentExtensions/SwigType cd PATH_TO_RAKNET_SWIG_FILES hit enterType chmod u+x MakeSwig.sh
In the next command PATH_TO_RAKNETSOURCE is the path
to the swig source directory. For
example: /home/usr/RakNet/Source. PATH_TO_DEPENDENTEXTENSIONS is the path
to the Dependent Extensions directory Example: /home/usr/RakNet/DependentExtensions. OPTION1 in this case will be
MYSQL_AUTOPATCHER.Type MakeSwigWithExtras.sh
PATH_TO_RAKNETSOURCE  PATH_TO_DEPENDENTEXTENSIONS
OPTION1
hit enterSkip to "Creating the C# project" in the Swig Tutorial. 
 
 
 
 
 Open a terminal
In the next command PATH_TO_RAKNET_SWIG_FILES is the
path to
the swig directory. For example
/home/usr/RakNet/DependentExtensions/SwigType cd PATH_TO_RAKNET_SWIG_FILES hit enterIn the next command PATH_TO_RAKNETSOURCE is the path
to the swig source directory. For example: /home/usr/RakNet/SourceType swig -c++ -csharp -namespace RakNet
-I"PATH_TO_RAKNETSOURCE"
-I"SwigInterfaceFiles" -outdir SwigOutput/SwigCSharpOutput -o
SwigOutput/CplusDLLIncludes/RakNet_wrap.cxx SwigInterfaceFiles/RakNet.i
and hit enterGoto the next section below.
 In the next command PATH_TO_RAKNET_SWIG_FILES is the
path to
the swig directory. 
EX:: ../DependentExtensions/SwigIn
the next command PATH_TO_DEPENDENTEXTENSIONS is the path to the
Dependent Extensions directory. EX: /home/usr/RakNet/DependentExtensionsFirst
we need to compile the C files seperatly with GCC in C mode type the
following command and hit enter: gcc
-c PATH_TO_DEPENDENTEXTENSIONS/bzip2-1.0.3/blocksort.c PATH_TO_DEPENDENTEXTENSIONS/bzip2-1.0.3/bzip2.c PATH_TO_DEPENDENTEXTENSIONS/bzip2-1.0.3/bzlib.c PATH_TO_DEPENDENTEXTENSIONS/bzip2-1.0.3/compress.c PATH_TO_DEPENDENTEXTENSIONS/bzip2-1.0.3/crctable.c PATH_TO_DEPENDENTEXTENSIONS/bzip2-1.0.3/decompress.c PATH_TO_DEPENDENTEXTENSIONS/bzip2-1.0.3/dlltest.c PATH_TO_DEPENDENTEXTENSIONS/bzip2-1.0.3/huffman.c
$2/bzip2-1.0.3/randtable.c
Now we use those object files
and compile the C++ files with C++ mode type the following command and
hit enter: g++
*.cpp PATH_TO_RAKNET_SWIG_FILE/SwigOutput/CplusDLLIncludes/RakNet_wrap.cxx
blocksort.o bzip2.o bzlib.o compress.o crctable.o decompress.o
dlltest.o huffman.o
randtable.o PATH_TO_DEPENDENTEXTENSIONS/Autopatcher/ApplyPatch.cpp PATH_TO_DEPENDENTEXTENSIONS/Autopatcher/AutopatcherClient.cpp PATH_TO_DEPENDENTEXTENSIONS/Autopatcher/AutopatcherMySQLRepository/AutopatcherMySQLRepository.cpp PATH_TO_DEPENDENTEXTENSIONS/Autopatcher/AutopatcherServer.cpp PATH_TO_DEPENDENTEXTENSIONS/Autopatcher/CreatePatch.cpp PATH_TO_DEPENDENTEXTENSIONS/Autopatcher/MemoryCompressor.cpp PATH_TO_DEPENDENTEXTENSIONS/MySQLInterface/MySQLInterface.cpp 
-l pthread -lmysqlclient -I/usr/include/mysql/ -I./
-IPATH_TO_DEPENDENTEXTENSIONS/Autopatcher/AutopatcherMySQLRepository
-IPATH_TO_DEPENDENTEXTENSIONS/Autopatcher
-IPATH_TO_DEPENDENTEXTENSIONS/bzip2-1.0.3
-IPATH_TO_DEPENDENTEXTENSIONS/MySQLInterface -shared -o RakNet 
         Note: In the previous command -l pthread is lower
case L while -I./ is uppercase i.A file called RakNet should be created that will be
copied in the next sectionGo to "Creating the C# project" in the Swig Tutorial.
 
 |