Hi,
as i eventually achieved to compile pcsc-lite for my mips target, here
is a little sum up of what i had to do :
- add this function in src/configfile.c :
int yywrap(void)
{
return 1;
}
- compile flex for mipsel
- ./configure --host=mipsel-linux-uclibc CC=mipsel-linux-uclibc-gcc
LDFLAGS=-L/opt/flex_usip --prefix=/opt/smart_card/usip_pcsc-lite/install
/opt/flex_usip being the directory where flex libraries for mips were
compiled.
- in Makefile, change the following tags to the corresponding values :
LIBFL= -lfl
LIBOBJS =
LIBUSB = -lusb
LTLIBOBJS =
With that, i get a fine pcsc-lite running on my target with a serial
GemPC413 reader.
Any improvements of the process are welcomed ...
Thomas
Carlo Agrusti wrote:
Surrel Thomas ha scritto lo scorso 16/08/2005 10:33:
Hi,
I'm trying to compile pcsc-lite for a mips target, but with no much
success, I have to admit.
The configure script says it needs lex library, whereas flex is
installed :
./configure --host=mipsel --enable-syslog --enable-daemon
--enable-debug --enable-debugatr CC=mipsel-linux-uclibc-gcc
[...]
checking for dlopen in -ldl... yes
checking for socket in -lsocket... no
checking for yywrap in -ll... (cached) no
checking for yywrap in -lfl... (cached) no
configure: error: lex library required
probably you don't need docs on an embedded system; you could try to
substitute the doc/Makefile with a fake one (for example containing
only following lines:
all:
install:
clean:
)
This message contains confidential information and is intended only
for the
individual named.
Which individual? You're on a mailing list ;-)
The individual being all the intelligent people on this list :-)
If you are not the named addressee you should not
disseminate, distribute or copy this e-mail.
See above :-P
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system.
Innova Card will not therefore be liable for the message if modified.
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle