Please look at build project for how I compile this stuff. http://opensc-project.org/build
On Fri, Jan 8, 2010 at 5:45 PM, Juping Jin <juping....@gmail.com> wrote: > Thanks for your response. I tried it but same result. In fact, --host=ming32 > gives a warning and suggests to use --build option. However, I did find that > -leay32 works, not -lcrypto (eay32 lib was built as dynamic linked library, > while crypto is static library). > > On Fri, Jan 8, 2010 at 12:35 AM, Alon Bar-Lev <alon.bar...@gmail.com> wrote: >> >> I guess you need something like: >> >> ./configure --host=mingw32 OPENSSL_LIBS="-L<whatever>/lib -lcrypto" >> >> On Fri, Jan 8, 2010 at 3:52 AM, Juping Jin <juping....@gmail.com> wrote: >> > Hi Alon, >> > >> > Sorry to bother you and hope you have a minute to point into right >> > direction. >> > >> > >> > >> > I downloaded source code from >> > >> > http://www.opensc-project.org/files/pkcs11-helper/pkcs11-helper-1.07.tar.bz2, >> > and tried to build it on Windows using the instruction in INSTALL file >> > with >> > Cross-MinGW32. >> > >> > >> > >> > Since I have built and installed openssl at c:\openssl, and would like >> > to >> > use openssl engine. So I issued the following command: >> > >> > >> > >> > ./configure --prefix=/c/openssl --build=mingw32 \ >> > >> > --disable-crypto-engine-gnutls \ >> > >> > --disable-crypto-engine-nss \ >> > >> > PKG_CONFIG=true \ >> > >> > >> > OPENSSL_CFLAGS="-I/c/openssl/include" >> > \ >> > >> > OPENSSL_LIBS="-L/c/openssl/lib >> > -lcrypto" >> > >> > >> > >> > >> > >> > However, libtool gives me a warning, and as a result, >> > pkcs11-helper-1.dll is >> > not created: >> > >> > >> > >> > /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 >> > -I/c/openssl/include >> > -ver >> > >> > sion-info 1:0:0 -export-symbols "pkcs11-helper.exports" -no-undefined >> > -o >> > libpkc >> > >> > s11-helper.la -rpath /c/openssl/lib pkcs11h-mem.lo pkcs11h-sys.lo >> > pkcs11h-crypto >> > >> > .lo pkcs11h-threading.lo pkcs11h-util.lo pkcs11h-session.lo >> > pkcs11h-token.lo >> > pkc >> > >> > s11h-certificate.lo pkcs11h-slotevent.lo pkcs11h-core.lo pkcs11h-data.lo >> > pkcs11h >> > >> > -serialization.lo pkcs11h-openssl.lo versioninfo.lo -L/c/openssl/lib >> > -lcrypto >> > >> > rm -fr .libs/libpkcs11-helper.a .libs/libpkcs11-helper.dll.a >> > .libs/libpkcs11-he >> > >> > lper.la .libs/libpkcs11-helper.lai >> > >> > >> > >> > *** Warning: linker path does not have real file for library -lcrypto. >> > >> > *** I have the capability to make that library automatically link in >> > when >> > >> > *** you link to this library. But I can only do this if you have a >> > >> > *** shared version of the library, which you do not appear to have >> > >> > *** because I did check the linker path looking for a file starting >> > >> > *** with libcrypto and none of the candidates passed a file format test >> > >> > *** using a file magic. Last file checked: /usr/lib//libcrypto.a >> > >> > *** The inter-library dependencies that have been dropped here will be >> > >> > *** automatically added whenever a program is linked with this library >> > >> > *** or is declared to -dlopen it. >> > >> > >> > >> > Warning indicates that crypto lib was not found. However, I verified >> > that >> > c:\openssl\lib has file: libcrypto.a. so I don’t know why libtool >> > complains. >> > >> > >> > >> > When I ran the following configure command, there is no warning and >> > above >> > mentioned DLL will be created: >> > >> > >> > >> > ./configure \ >> > >> > --prefix=/c/openssl >> > --build=mingw32 \ >> > >> > --disable-openssl \ >> > >> > --disable-crypto-engine-openssl \ >> > >> > --disable-crypto-engine-gnutls >> > >> > >> > >> > But it will create a significant bigger file (594 KB, to be exactly). >> > >> > >> > >> > PS: I built openssl from source code using minGW (hence libcrypto.a is >> > built >> > with the same compiler). >> > >> > >> > >> > Thanks for your help! >> > >> > >> > >> > Juping Jin >> > >> > > > _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel