2010/2/9 François Leblanc <[email protected]>: >>I have some fixups to the build. > > Great Thank you. > >>Can you please send me a usable cardmod.h so I can compile this stuff? > > I will send you in private way. > >>Also, can we put the .inf and .reg anywhere else but bin? > > The .reg is not to stay (just for example until we made it by a tool) > > The .inf is close to opensc-cardmod.dll since the .inf should copy > opensc-cardmod.dll > To system32. Now If I put opensc-cardmod.dll in system32 and use it this > don't work, I > guess librairies used by opensc-cardmod.dll are not found in this case even > thougth > the path is set to the bin directory of opensc. If I use opensc-cardmod > directly on > bin with other dll this working.
But the inf file can find the file relative to its position, so it can be located anyware, right? >>Regarding the 32bit and 64bit card modules, we do not compile both >>64bit and 32bit especially you don't put the suffix of 64 to the card >>module. Suffix should be fixed - this for sure, I will handle this. > > I keep this part separatly since I don't know anything about the 64bit,don't > know > If it's necessarry... The 32bit version will work in 64bit environment? I expect not... >>But I am not sure the the SmartCardCardModule64 is indeed 64bit and >>the SmartCardCardModule is 32bit. > >>Also, how do you support multiple cards in the .inf file? > > To add a card extend the .inf file like this: > <snip> So we can generate this during build, we have all the ATR we support and we can push them into the inf file. > >>Thanks! > > Concerning your fixup, I remember you that mingw32 seems not to have > "winscard.h" it's why > > I've make a complex cardmod.h detection since if you don't have winscard.h > you use internal-winscard.h but > > Cardmod.h still use winscard.h (it's code provided by other ms). Have you an > idea best way to handle this? > > I think about perhaps a symbolic link winscard.h->internal-winscard.h make on > build time? > > What do you think about? Well, I use mingw-w64 in order to build latest software but if we copy the cardmod.h and bcrypt.h (from SDK) we should also use the winscard available. I've done most of the work at [1] and it builds cleanly using mingw-w64 and these [2] two files imported from Microsoft. We can probably add winscard.h as well if needed. [1] http://www.opensc-project.org/build [2] http://www.opensc-project.org/build/browser/trunk/include _______________________________________________ opensc-devel mailing list [email protected] http://www.opensc-project.org/mailman/listinfo/opensc-devel
