linking against opensc now as shared library
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@394 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -20,19 +20,11 @@ See file INSTALL.
|
||||
@subsection o HINTS ON OPENSC
|
||||
|
||||
libnpa links against libopensc, which is discouraged and hindered since
|
||||
opensc>=0.12. We really need to get rid of this dependency. But so far we
|
||||
manually build it to have libopensc for linking. The good thing is that you
|
||||
don't need any opensc components to be installed. The bad thing is, that libnpa
|
||||
configures and builds opensc on its own. So you might need to pass some extra
|
||||
configure options to opensc. So if you need to pass options to opensc, use
|
||||
something like the following command:
|
||||
opensc>=0.12. We really need to get rid of this dependency. You need the opensc
|
||||
components to be installed (especially libopensc.so). But you might need to
|
||||
adjust the opensc library flags:
|
||||
./configure \
|
||||
OPENSC_CONFIGURE="options"
|
||||
|
||||
Worse gets the situation if you need to link against libnpa and some opensc
|
||||
library at the same time. This will yield conflicts since functionality of
|
||||
libopensc is linked into both libraries. This is possible (see ccid-emulator),
|
||||
but not recommended. Only do this if you know what you are doing.
|
||||
OPENSC_LIBS="-L/path/to/opensc/libdir -lopensc"
|
||||
|
||||
|
||||
@subsection o HINTS ON OPENSSL
|
||||
@@ -55,6 +47,20 @@ To pass a secret to pace-tool, the command line parameters or the environment
|
||||
variables PIN/CAN/MRZ/PUK/NEWPIN can be used. If none of these options is used,
|
||||
pace-tool will show a password prompt.
|
||||
|
||||
@subsection l LINKING AGAINST LIBNPA
|
||||
|
||||
If you have a local build of libpace and OpenPACE, the preferred way to adjust
|
||||
libraries and cflags for foreign code is to use pkg-config:
|
||||
./configure \
|
||||
PKG_CONFIG_PATH=/path/to/openssl-1.0.0c_with_openpace-0.4/lib/pkgconfig:/path/to/libpace/lib/pkgconfig"
|
||||
|
||||
Alternatively you can define libs and cflags by hand:
|
||||
./configure \
|
||||
OPENSSL_CFLAGS="-I/path/to/openssl-1.0.0c_with_openpace-0.4/include" \
|
||||
LIBPACE_CFLAGS="-I/path/to/openssl-1.0.0c_with_openpace-0.4/include -I/path/to/libpace-0.1/src" \
|
||||
OPENSSL_LIBS="-L/path/to/openssl-1.0.0c_with_openpace-0.4 -lcrypto" \
|
||||
LIBPACE_LIBS="-L/path/to/openssl-1.0.0c_with_openpace-0.4 -lcrypto -L/path/to/libpace-0.1/src/.libs -lpace"
|
||||
|
||||
|
||||
@section q QUESTIONS
|
||||
For questions, please use http://sourceforge.net/projects/vsmartcard/support
|
||||
|
||||
Reference in New Issue
Block a user