[xmlsec] Patch for XMLsec Windows app and example builds; Failure of all examples
Paul Kennedy
pfk001 at gmail.com
Wed Dec 1 16:32:34 PST 2010
On Wed, Dec 1, 2010 at 8:29 AM, Aleksey Sanin <aleksey at aleksey.com> wrote:
> First, you probably want to use mailing list. This way you might get
> a better response.
>
Ok, understood.
>
> Second, how did you compile the library and example? Did you use
> provided makefiles?
>
>
Yes, I used the Makefiles insize the gzip archive and I followed the
instructions in README, examples\README and win32\README.txt. I used
'cscript win32\configure.js' to setup my environment, as directed. I have
all the needed libs in my lib directory, all needed .h files in an include
directory, and the INCLUDE and LIB env vars setup properly.
I'm building using Visual Studio 2005 tools, from the command-line. The
zlib.lib (and zdll.lib) libraries were missing from the linker command-line
in both cases, for example here's how I modified the win32\Makefile.msvc
file. (I would make this change more robust, i.e. account for zdll.lib, in
an actual patch for you).
C:\projects\xmlsec\xmlsec1-1.2.16\win32>diff -c Makefile.msvc
..\..\..\xmlsec-1\xmlsec1-1.2.16\win32\Makefile.msvc
*** Makefile.msvc 2010-12-01 08:46:29.171875000 -0800
--- ..\..\..\xmlsec-1\xmlsec1-1.2.16\win32\Makefile.msvc 2010-05-25
15:52
:46.000000000 -0700
***************
*** 359,365 ****
LD = link.exe
LDFLAGS = /nologo
LDFLAGS = $(LDFLAGS) /LIBPATH:$(BINDIR)
/LIBPATH:$(LIBPREFIX)
*! LIBS = zlib.lib*
# Optimisation and debug symbols.
!if "$(DEBUG)" == "1"
--- 359,365 ----
LD = link.exe
LDFLAGS = /nologo
LDFLAGS = $(LDFLAGS) /LIBPATH:$(BINDIR)
/LIBPATH:$(LIBPREFIX)
*! LIBS =*
# Optimisation and debug symbols.
!if "$(DEBUG)" == "1"
Pk.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20101201/cfaa45fc/attachment.html>
More information about the xmlsec
mailing list