Re: [xml] Build libxml2 Windows



Daniel Veillard wrote:
On Mon, Aug 08, 2011 at 11:49:39AM +0800, Daniel Veillard wrote:
On Fri, Aug 05, 2011 at 01:02:13AM +0200, Patrick von Reth wrote:
Hi

to build libxml2 I had to patch the build system a little bit.
The windows build system tries to link about zdll, but on windows its called
zlib* too, so linking against z is enough.
Also the --include and the --lib command was ignored.

For the http and ftp stuff linking against some windows library's was
forgotten for mingw.

In the msvc build script the + in some lines prevented building because of a
parser error in nmake.

I hope this will help you to improve your build system.
   Hum, could you actually attach the patch to your mail, there is a
lot of guessing needed otherwise :-)
   BTW it's now commited upstream, I tweked it a little bit since some
things were already fixed, or I preserved some of the old shared libs
names as comments.

  thanks !

Daniel

Quote from patch
...../win32/Makefile.mingw
.....
@@ -66,20 +66,22 @@ LD = gcc.exe
 LDFLAGS += -Wl,--major-image-version,$(LIBXML_MAJOR_VERSION)
 LDFLAGS += -Wl,--minor-image-version,$(LIBXML_MINOR_VERSION)
 LDFLAGS += -Wl,-L,$(BINDIR) -Wl,-L,$(LIBPREFIX)
-LIBS =
+LIBS =
 ifeq ($(WITH_FTP),1)
 CFLAGS += -D_WINSOCKAPI_
-LIBS += -lwsock32
+LIBS += -lwsock32 -lws2_32
 endif
.......

Whoops!
Only -lws2_32 in all win32/Makefile.* ?

Roumen




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]