Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
h2xs on Windowsby cavac (Parson) |
on Nov 22, 2011 at 14:52 UTC ( [id://939469]=perlquestion: print w/replies, xml ) | Need Help?? |
cavac has asked for the wisdom of the Perl Monks concerning the following question: I'm currently trying to use OpenSC on Windows from (ActiveState) Perl. I need to use a bunch of functions, but whatever i try i just can't get a working module a read a number of tutorials, but i'm none the wiser. Here's the basics. I have two files, namely ccreadlib.h
and ccreadlib.c:
There are also a number of supporting files: utils.c/h, header files in the folder libopensc and the library opensc.dll I tried using swig and failed. I also tried various h2xs tutorials and i still don't get anywhere. I can't use Inline::C because the target systems don't have compilers or a full Perl suite installed (using perlapp instead). I'm not sure what else to try (or where i failed). I'm completly baffled by that perl-xs-c stuff. Could you give me a step-by-step walkthrough on how to get this to work? All at once would be nice, but i'm perfectly happy with "try this next and then see how far you get". Thanks in advance. Edit: I'm definitely going in the right direction. If this works (there are still a few question marks), i feel a meditation with step-by-step instructions comming up....
Don't use '#ff0000': use Acme::AutoColor; my $redcolor = RED(); All colors subject to change without notice.
Back to
Seekers of Perl Wisdom
|
|