2003-10-01 Mikael Hallendal <micke@imendio.com>
authorhallski <hallski>
Wed, 01 Oct 2003 10:39:20 +0000
changeset 38 8e3d2d3f2ccc
parent 37 c214625be6b4
child 39 b909b5af5a97
2003-10-01 Mikael Hallendal <micke@imendio.com> * README.WIN32, win32-config.h: - Added information about how to build on Windows. Fixes LM-12
ChangeLog
README.WIN32
win32-config.h
--- a/ChangeLog	Sat Aug 23 23:36:11 2003 +0000
+++ b/ChangeLog	Wed Oct 01 10:39:20 2003 +0000
@@ -1,3 +1,8 @@
+2003-10-01  Mikael Hallendal  <micke@imendio.com>
+
+        * README.WIN32, win32-config.h: 
+	- Added information about how to build on Windows. Fixes LM-12
+	  
 2003-08-24  Martyn Russell  <ginxd@btopenworld.com>
 
 	* loudmouth/lm-connection.c:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/README.WIN32	Wed Oct 01 10:39:20 2003 +0000
@@ -0,0 +1,51 @@
+Steps to build Loudmouth 0.13.1 under Windows
+---------------------------------------------
+
+1) Go to Tor Lillqvist's Win32 glib page 
+   (http://www.gimp.org/~tml/gimp/win32/downloads.html)
+
+2) Get the pre-built glib, glib-dev, libintl and libiconv binaries 
+	* libiconv-1.9.1.bin.woe32.zip
+	* gettext-runtime-0.12.1.bin.woe32.zip
+	* glib-dev-2.2.2.zip
+	* glib-2.2.2.zip
+
+3) Extract all of them to a directory (eg c:\glib)
+
+4) Extract the loudmouth source files (eg c:\loudmouth-0.13.1)
+
+5) Copy the prebuilt win32-config.h to c:\loudmouth-0.13.1\config.h
+
+6) Create an empty win32 static lib project in the root of the loudmouth
+   directory 
+
+7) Add config.h and all .c and .h files in the loudmouth subdir except
+   test-lm.c
+
+8) Setup the project:
+
+  Project Settings:
+  Define __WIN32__
+  Define LM_COMPILATION
+  Add include paths ". ; c:\glib\include\glib-2.0 ; c:\glib\lib\glib-2.0\include"
+
+9) Build using the Multi-Threaded Debug runtime library loudmouth.lib should
+   compile now
+
+Steps to build test-lm under Windows
+------------------------------------
+Create an empty win32 console project
+Add test-lm.c
+Define __WIN32__
+Add lib path: "c:\dev\glib\lib; c:\loudmouth-0.13.1\debug"
+Add linker dependencies: "ws2_32.lib glib-2.0.lib loudmouth.lib"
+Build test-lm
+From the glib\bin directory, copy libglib-2.0-0.dll, iconv.dll, and intl.dll
+	Put them into your build directory or the system path
+Run test-lm
+
+Required Code Fixes
+-------------------
+lm-connection.c
+	The include line for unistd.h may need to be moved 
+	into the #ifndef __WIN32__ block
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/win32-config.h	Wed Oct 01 10:39:20 2003 +0000
@@ -0,0 +1,61 @@
+/* config.h.in.  Generated from configure.in by autoheader.  */
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the `nsl' library (-lnsl). */
+#undef HAVE_LIBNSL
+
+/* Define to 1 if you have the `socket' library (-lsocket). */
+#undef HAVE_LIBSOCKET
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Name of package */
+#undef PACKAGE
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Version number of package */
+#undef VERSION