Dear Larry,

we use the OCFPCSC1 shared object as well and fixed a couple of bugs.
Maybe you want to try the Smart Card Shell at [1] for your tests. With
it you should be able to see what's going wrong.

Andreas

[1] http://www.openscdp.org/scsh3/index.html

Lai Larry schrieb:
> HI all:
> 
> We had downloaded and successed complied OCFPCSC1-0.0.1 on Solaris
> 10/SPARC platform.
> The detail of complied the OCFPCSC  from us as below,
> a. The Compile environment:
> PFX=/opt/ITsmartcard
> 
> unset LD_LIBRARY_PATH
> export
> PATH=/opt/SUNWspro/bin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/opt/sfw/bin:/usr/ucb
> 
> 
> 
> export CFLAGS="-I${PFX}/include -I${PFX}/include/PCSC -I/usr/sfw/include
> -I/opt/sfw/include"
> export LDFLAGS="-L${PFX}/lib -R${PFX}/lib -L/usr/sfw/lib -R/usr/sfw/lib
> -L/opt/sfw/lib"
> 
> export LIBUSB_CFLAGS="-I/usr/sfw/include"
> export LIBUSB_LIBS="-I/usr/sfw/lib -R/usr/sfw/lib -lusb"
> 
> export OPENSSL_CFLAGS="-I/usr/sfw/include"
> export OPENSSL_LIBS="-L/usr/sfw/lib -R/usr/sfw/lib -lssl -lcrypto
> -lsocket -lnsl -ldl"
> 
> export PKG_CONFIG_PATH=${PFX}/lib/pkgconfig
> 
> export CC=cc
> export CXX=CC
> 
> 
> b.  We had modified 'Makefile'  for compiled OCFPCSC as below,
> CC        = g++
> #LD        = ld -export-dynamic
> LD        = gld -export-dynamic      # replace ld with gld
> OBJS     := $(patsubst %.cpp,%.o,$(wildcard *.cpp))
> JDK_HOME  = /usr/jdk/instances/jdk1.5.0       # JDK version is 1.5.0
> PCSC_HDRS = -I/usr/local/include/PCSC
> #PCSC_LIBS = -L/l/pcsc-lite-1.4.0/src/.libs -lpcsclite
> PCSC_LIBS = -L/usr/lib -lpcsclite
> INCLUDE   = -I$(JDK_HOME)/include -I$(JDK_HOME)/include/solaris
> $(PCSC_HDRS)
> LIBNAME   = libOCFPCSC1.so
> 
> all: $(LIBNAME)
> 
> clean:
>        rm -f *.so *.o
> 
> install:
>        cp -f *.so /usr/local/pcsc/lib
> 
> $(LIBNAME): $(OBJS)
>        $(LD) -Bsymbolic -shared $(OBJS) $(PCSC_LIBS) -lc -o $@
> 
> $(patsubst %.cpp,%.o,$(wildcard *.cpp)) : %.o : %.cpp
>        $(CC) $(CFLAGS) -c $< $(INCLUDE) $(DEFS)
> 
> 
> c. We  use 'gmake' to make/make install ' libOCFPCSC1.so
> # gmake
> g++ -I/opt/ITsmartcard/include -I/opt/ITsmartcard/include/PCSC
> -I/usr/sfw/include -I/opt/sfw/include -c OCFPCSC1.cpp
> -I/usr/jdk/instances/jdk1.5.0/include
> -I/usr/jdk/instances/jdk1.5.0/include/solaris -I/usr/local/include/PCSC
> g++ -I/opt/ITsmartcard/include -I/opt/ITsmartcard/include/PCSC
> -I/usr/sfw/include -I/opt/sfw/include -c PcscContexts.cpp
> -I/usr/jdk/instances/jdk1.5.0/include
> -I/usr/jdk/instances/jdk1.5.0/include/solaris -I/usr/local/include/PCSC
> g++ -I/opt/ITsmartcard/include -I/opt/ITsmartcard/include/PCSC
> -I/usr/sfw/include -I/opt/sfw/include -c PcscExceptions.cpp
> -I/usr/jdk/instances/jdk1.5.0/include
> -I/usr/jdk/instances/jdk1.5.0/include/solaris -I/usr/local/include/PCSC
> g++ -I/opt/ITsmartcard/include -I/opt/ITsmartcard/include/PCSC
> -I/usr/sfw/include -I/opt/sfw/include -c Tracer.cpp
> -I/usr/jdk/instances/jdk1.5.0/include
> -I/usr/jdk/instances/jdk1.5.0/include/solaris -I/usr/local/include/PCSC
> g++ -I/opt/ITsmartcard/include -I/opt/ITsmartcard/include/PCSC
> -I/usr/sfw/include -I/opt/sfw/include -c fieldIO.cpp
> -I/usr/jdk/instances/jdk1.5.0/include
> -I/usr/jdk/instances/jdk1.5.0/include/solaris -I/usr/local/include/PCSC
> gld -export-dynamic -Bsymbolic -shared OCFPCSC1.o PcscContexts.o
> PcscExceptions.o Tracer.o fieldIO.o -L/usr/lib -lpcsclite -lc -o
> libOCFPCSC1.so
> # gmake install
> 
> d. We got libOCFPCSC1.so library from 'gmake install'.
> 
> 
> We try to point out and use the libOCFPCSC1.so on Smart Card Managment
> Tool 'SmartCard Console'. But, It does not work!   We don't know what's
> error of the libOCFPCSC1.so.  and We cannot find any message log from
> the SCM tool.
> 
> We're appreciate if you can advice us:
> 1. What's the message log or file of Smart Card Management tools
> 'SmartCard Console' we can reference?
> 2. Do you have any suggetion for the 'SmartCard Console'  'Device Prot
> and IFD Handley values for the SCM tools? and What should the entries
> for Device Port and IFD Handler values be?
> 
> PS. I use USB SmartCard reader is SMC(SCR331)
> 
> Thanks,
> Larry
> 
> _________________________________________________________________
> 現在就用 Live.com:全方位個人化首頁 http://www.live.com
> _______________________________________________
> Muscle mailing list
> [email protected]
> http://lists.drizzle.com/mailman/listinfo/muscle


-- 

    ---------    CardContact Software & System Consulting
   |.##> <##.|   Andreas Schwier
   |#       #|   Schülerweg 38
   |#       #|   32429 Minden, Germany
   |'##> <##'|   Phone +49 171 8334920
    ---------    http://www.cardcontact.de

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to