[Edit: It is likely A line like below in the script that is causing the error (I noticed two like this in your output from grep). Does this file exist in that path? - you answer that yes it exists, which was a just strange. I'd need to see the whole config file to help track down the issue.]
1 2
if test -f /usr/local/lib/pkgconfig/libpcsclite.pc -a "x$PKG_CONFIG" != x ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpcsclite not found by pkg-config" >&5
Install the dev version because I'm hoping it will put the requested file into that path and the config script will then run.
On my machine, which I mention is a fedora so it may be different than yours, I found /usr/lib64/pkgconfig/libpcsclite.pc to be where the file is, so the script would give me the same error.
Do you know how to run find? $find / -iname libpcsclite.pc <-- ignore the Permission Denied errors.
I'm not sure if it's a good idea to create a symbolic link from a lib64 file to a lib location, https://kb.iu.edu/d/abbe
Thanks, it will take me a while to read all of your posts. I am running Fatdog64, and to be honest, I can normally download just about any source code, build it with ./boostrap and/or ./configure, make, and make install, and I'm up and running.
As you say, there might be something missing.
I'll take the next hour to read all of your posts - I hadn't hit refresh so you can take a rest from this while I read everything and I'll answer back each question. I need a 10 minute break - then I'll get back to it.
The one where you start with "This is the line in the script ... in that path?
That directory you mention DOES contain the exact file you mention.
The file libpcsclite.pc is in the directory /usr/local/lib/pkgconfig/
Strange, isn't it? After my break, I need to start digging into this. I just need 10 minutes away.
Contents of the file:
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/PCSC
usbdropdir=/usr/local/lib/pcsc/drivers
serialconfdir=/usr/local/etc/reader.conf.d
I will try to answer your latest post but first I am starting with what you gave me - the gemalto. On my operating system, we don't have things like get and sudo but I can try to do something in parallel that will accomplish the same thing. First, we need to make sure that I have libusb. Then I will edit the prefix stuff and exec_prefix stuff once I understand what it should say.
Those files you mention are in usr/local/lib, not in /usr/local/lib/include/PCSC
The files' names are:
libpcsclite.la, ..., libpcsclite.so, libpcsclite.so.1, libpcsclite.so.1.0.1, ..., yes, and the ..spy.0 and ..spy.0.0.0 ones too.
YOU know what - I wonder if there is a 32 vs. 64 bit issue here. I'm on a 64-bit machine.
Wait a minute - you said something about pointing to the include - I need to check that.
My fault - YES THERE IS a /usr/local/include/PCSC the files are:
debuglog.h
ifdhandler.h
ls.out
pcsclite.h
reader.h
winscard.h
wintypes.h
Please ignore ls.out - it was just to get a list of the files.
I will try to understand your 10:04AM post - that seems to be something that I really need to understand, then some minor edit of it perhaps. perhaps my distro is just not privvy to some aspect of it.
This is the line in the script that is causing the error. Does this file exist in that path?
1
2
if test -f /usr/local/lib/pkgconfig/libpcsclite.pc -a "x$PKG_CONFIG" != x ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpcsclite not found by pkg-config" >&5
I have to go, but I want to suggest you try to find a chat site. It's kind of a long-shot that you'll find someone with experience with this exact issue, but the conversations might be less confused if you can get someone to answer... http://www.cplusplus.com/forum/lounge/149158/
I'm not afraid to ask question but I think it's best to just focus on that if script you gave me - I need to break it down into pieces and see when it fails. which part of it makes it fail? I need to struggle a little before asking a question - there might just be some little change I can make.
I just made a list of files with usb in them, and I have it, but perhaps not in the expected directory. They are in usr/lib64. I've never liked the idea of a lib64 vs. lib32.
This is just for my own book-keeping.
Step 0. Verify that I have autotools - autoconf/automake. Yes.
Step 1. Install libusb. Done, libusb is in usr/local/lib. Outputs are saved for inspection.
I'd recommend to learn a lot about linux before you start to develop for it as things can get really complicate sometimes. Errors might occur and you have to stay focused and detect them. Then you will have to fix them. If it's getting too hard for you there programs for it you can always use, such as checkmarx and a lot others. Just make sure you work slow and careful.
Good luck!
Ben.
It turns out, that I don't need to rush on the smart-card interfaces/APIs. I have one that works fine. I simply used the Winscard stuff. But I actually am only doing this more or less as something extra. My real project is on Linux and it's going very well. I bought a new reader, and IBM and it can do what I want it to do. I will get back to the smartcard builds - most are already fixed. Just some bad luck with some projects that didn't work out. I can work around it when I resume the smartcard work. That can wait a month.