aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMickaël Rémond <mickael.remond@process-one.net>2007-12-01 16:06:24 +0000
committerMickaël Rémond <mickael.remond@process-one.net>2007-12-01 16:06:24 +0000
commit71c7879b48469eef31ee8ac6fa4ab591c4ca607d (patch)
tree94e2a14d4816a0720af102ecd1e9dbc96491b986
parent* src/tls/Makefile.win32: Updated for latest Win32 OpenSSL library. (diff)
* doc/guide.tex: Updated Windows compilation instructions.
* src/configure.erl: Likewise. * doc/ejabberd.hrl: Preparing ejabberd 2.0.0 beta release. * doc/version.tex: Likewise. SVN Revision: 1009
-rw-r--r--doc/guide.tex29
-rw-r--r--doc/version.tex3
-rw-r--r--src/configure.erl18
-rw-r--r--src/ejabberd.hrl2
4 files changed, 30 insertions, 22 deletions
diff --git a/doc/guide.tex b/doc/guide.tex
index 013c23d45..10967d6d0 100644
--- a/doc/guide.tex
+++ b/doc/guide.tex
@@ -370,12 +370,12 @@ The command to compile ejabberd in BSD systems is:
To compile \ejabberd{} on a Microsoft Windows system, you need:
\begin{itemize}
\item MS Visual C++ 6.0 Compiler
-\item \footahref{http://erlang.org/download.html}{Erlang/OTP R9C-2 or higher}
-\item \footahref{http://sourceforge.net/project/showfiles.php?group\_id=10127\&package\_id=11277}{Expat 1.95.7 or higher}
+\item \footahref{http://erlang.org/download.html}{Erlang/OTP R11B-5 or higher}
+\item \footahref{http://sourceforge.net/project/showfiles.php?group\_id=10127\&package\_id=11277}{Expat 2.0.0 or higher}
\item
-\footahref{http://www.gnu.org/software/libiconv/}{GNU Iconv 1.9.1}
+\footahref{http://www.gnu.org/software/libiconv/}{GNU Iconv 1.9.2}
(optional)
-\item \footahref{http://www.slproweb.com/products/Win32OpenSSL.html}{Shining Light OpenSSL}
+\item \footahref{http://www.slproweb.com/products/Win32OpenSSL.html}{Shining Light OpenSSL 0.9.8d or higher}
(to enable SSL connections)
\item \footahref{http://www.zlib.net/}{Zlib 1.2.3 or higher}
\end{itemize}
@@ -384,26 +384,33 @@ To compile \ejabberd{} on a Microsoft Windows system, you need:
\subsubsection{Compilation}
\label{windowscom}
+We assume that we will try to put as much library as possible into \verb|C:\sdk\| to make it easier to track what is install for ejabberd.
+
\begin{enumerate}
-\item Install Erlang emulator (for example, into \verb|C:\Program Files\erl5.3|).
-\item Install Expat library into \verb|C:\Program Files\Expat-1.95.7|
+\item Install Erlang emulator (for example, into \verb|C:\sdk\erl5.5.5|).
+\item Install Expat library into \verb|C:\sdk\Expat-2.0.0|
directory.
- Copy file \verb|C:\Program Files\Expat-1.95.7\Libs\libexpat.dll|
+ Copy file \verb|C:\sdk\Expat-2.0.0\Libs\libexpat.dll|
to your Windows system directory (for example, \verb|C:\WINNT| or
\verb|C:\WINNT\System32|)
\item Build and install the Iconv library into the directory
- \verb|C:\Program Files\iconv-1.9.1|.
+ \verb|C:\sdk\GnuWin32|.
- Copy file \verb|C:\Program Files\iconv-1.9.1\bin\iconv.dll| to your
+ Copy file \verb|C:\sdk\GnuWin32\bin\lib*.dll| to your
Windows system directory (more installation instructions can be found in the
file README.woe32 in the iconv distribution).
Note: instead of copying libexpat.dll and iconv.dll to the Windows
directory, you can add the directories
- \verb|C:\Program Files\Expat-1.95.7\Libs| and
- \verb|C:\Program Files\iconv-1.9.1\bin| to the \verb|PATH| environment
+ \verb|C:\sdk\Expat-2.0.0\Libs| and
+ \verb|C:\sdk\GnuWin32\bin| to the \verb|PATH| environment
variable.
+\item Install OpenSSL in \verb|C:\sdk\OpenSSL| and add \verb|C:\sdk\OpenSSL\lib\VC| to your path or copy the binaries to your system directory.
+\item Install ZLib in \verb|C:\sdk\gnuWin32|. Copy
+ \verb|C:\sdk\GnuWin32\bin\zlib1.dll| to your system directory. If you change your path it should already be set after libiconv install.
+\item Make sure the you can access Erlang binaries from your path. For example: \verb|set PATH=%PATH%;"C:\sdk\erl5.5.5\bin"|
+\item Depending on how you end up actually installing the library you might need to check and tweak the paths in the file configure.erl.
\item While in the directory \verb|ejabberd\src| run:
\begin{verbatim}
configure.bat
diff --git a/doc/version.tex b/doc/version.tex
index af05bdba8..d40696494 100644
--- a/doc/version.tex
+++ b/doc/version.tex
@@ -1,2 +1,3 @@
% ejabberd version (automatically generated).
-\newcommand{\version}{2.0.0 beta}
+
+ewcommand{ ersion}{2.0.0b1}
diff --git a/src/configure.erl b/src/configure.erl
index 688f94fe5..022124ce1 100644
--- a/src/configure.erl
+++ b/src/configure.erl
@@ -27,25 +27,25 @@ start() ->
true ->
ExpatLib = "EXPAT_LIB = $(EXPAT_DIR)\\StaticLibs\\libexpatMT.lib\n",
ExpatFlag = "EXPAT_FLAG = -DXML_STATIC\n",
- IconvDir = "ICONV_DIR = c:\\progra~1\\libiconv-1.9.1-static\n",
- IconvLib = "ICONV_LIB = $(ICONV_DIR)\\lib\\iconv.lib\n",
- ZlibDir = "ZLIB_DIR = c:\\progra~1\\zlib-1.2.3\n",
+ IconvDir = "ICONV_DIR = c:\\sdk\\GnuWin32\n",
+ IconvLib = "ICONV_LIB = $(ICONV_DIR)\\lib\\libiconv.lib\n",
+ ZlibDir = "ZLIB_DIR = c:\\sdk\\GnuWin32\n",
ZlibLib = "ZLIB_LIB = $(ZLIB_DIR)\\lib\\zlib.lib\n";
false ->
ExpatLib = "EXPAT_LIB = $(EXPAT_DIR)\\Libs\\libexpat.lib\n",
ExpatFlag = "",
- IconvDir = "ICONV_DIR = c:\\progra~1\\libiconv-1.9.1\n",
- IconvLib = "ICONV_LIB = $(ICONV_DIR)\\lib\\iconv.lib\n",
- ZlibDir = "ZLIB_DIR = c:\\progra~1\\zlib-1.2.3\n",
- ZlibLib = "ZLIB_LIB = $(ZLIB_DIR)\\lib\\zlib1.lib\n"
+ IconvDir = "ICONV_DIR = c:\\sdk\\GnuWin32\n",
+ IconvLib = "ICONV_LIB = $(ICONV_DIR)\\lib\\libiconv.lib\n",
+ ZlibDir = "ZLIB_DIR = c:\\sdk\\GnuWin32\n",
+ ZlibLib = "ZLIB_LIB = $(ZLIB_DIR)\\lib\\zlib.lib\n"
end,
EVersion = "ERLANG_VERSION = " ++ erlang:system_info(version) ++ "\n",
EIDirS = "EI_DIR = " ++ code:lib_dir("erl_interface") ++ "\n",
RootDirS = "ERLANG_DIR = " ++ code:root_dir() ++ "\n",
Version = "EJABBERD_VERSION = " ++ ?VERSION ++ "\n",
- ExpatDir = "EXPAT_DIR = c:\\progra~1\\expat-1.95.7\n",
- OpenSSLDir = "OPENSSL_DIR = c:\\progra~1\\OpenSSL\n",
+ ExpatDir = "EXPAT_DIR = c:\\sdk\\Expat-2.0.0\n",
+ OpenSSLDir = "OPENSSL_DIR = c:\\sdk\\OpenSSL\n",
DBType = "DBTYPE = generic\n", %% 'generic' or 'mssql'
SSLDir = "SSLDIR = " ++ code:lib_dir("ssl") ++ "\n",
diff --git a/src/ejabberd.hrl b/src/ejabberd.hrl
index 2d9b8298c..b9cb99de6 100644
--- a/src/ejabberd.hrl
+++ b/src/ejabberd.hrl
@@ -8,7 +8,7 @@
%-define(ejabberd_debug, true).
%-define(DBGFSM, true).
--define(VERSION, "1.1.2").
+-define(VERSION, "2.0.0b1").
%% ---------------------------------
%% Logging mechanism