55 | | Download latest release of ''pkcs11-helper'' from http://www.opensc-project.org and extract it somewhere. |
| 55 | Download latest release of ''pkcs11-helper'' from http://www.opensc-project.org and extract it somewhere. The install process for Visual Studio is described in the ''INSTALL'' file. |
| 56 | |
| 57 | To build ''pkcs11-helper'', do the following: |
| 58 | |
| 59 | * Go to ''pkcs11-helper-<version>/lib'' |
| 60 | * Copy ''<openssl-install-directory>/lib/libeay32.lib'' to that directory - this is required by the linker |
| 61 | * Run ''nmake -f Makefile.w32-vc OPENSSL=1 OPENSSL_HOME=<path-to-openssl-sources>'' |
| 62 | |
| 63 | In theory this should do it. If you need to rebuild, clean up first with |
| 64 | |
| 65 | $ nmake -f Makefile.w32-vc clean |
| 66 | |
| 67 | and then repeat the above steps. Unless you're using very latest development code, you probably get this error message during build: |
| 68 | |
| 69 | pkcs11h-threading.c(477) : error C2036: 'void *' : unknown size |
| 70 | |
| 71 | If so, edit that file as suggested [http://thread.gmane.org/gmane.comp.encryption.opensc.devel/8381 here]. After this build should succeed, as long as ''libeay32.lib'' is present in the build directory. |