On 06/17/2013 02:24 PM, Frank Morgner wrote:
> On Sunday, June 16 at 01:36AM, Philippe Teuwen wrote:
>> Hi Frank,
>>
>> Thanks! I've merged it to branch win-cross
>>
>> Innocent question: how can I cross-compile?
>> I just tried:
>> apt-get install mingw32
>> ./mingw-cross-configure.sh
>> make
>> but it fails finding windows.h
> Have you installed mingw32-runtime?
>
> The script adds -I/usr/i586-mingw32msvc/include to the CFLAGS, which
> should work on Debian/Ubuntu.
Yes and I have the file in that directory.
But looking at details of the fauty command I get:
$ make V=1
make all-recursive
make[1]: Entering directory
`/home/phil/devel/00smartcard/tools/libnfc/git/libnfc'
Making all in libnfc
make[2]: Entering directory
`/home/phil/devel/00smartcard/tools/libnfc/git/libnfc/libnfc'
Making all in chips
make[3]: Entering directory
`/home/phil/devel/00smartcard/tools/libnfc/git/libnfc/libnfc/chips'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/phil/devel/00smartcard/tools/libnfc/git/libnfc/libnfc/chips'
Making all in buses
make[3]: Entering directory
`/home/phil/devel/00smartcard/tools/libnfc/git/libnfc/libnfc/buses'
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I. -I../.. -I../../libnfc -I../../include -I../../include
-I../../libnfc
-I/home/phil/devel/00smartcard/tools/libnfc/git/libnfc/libusb-win32-bin-1.2.6.0/include
-Wfatal-errors -I/usr/i686-w64-mingw32/include -U__STRICT_ANSI__
-I/home/phil/devel/00smartcard/tools/libnfc/git/libnfc
-I/home/phil/devel/00smartcard/tools/libnfc/git/libnfc/contrib/win32
-D_WINDLL -D_MSC_VER -Wall -pedantic -Wextra -std=c99 -Du_int8_t=uint8_t
-Du_int16_t=uint16_t -MT libnfcbuses_la-spi.lo -MD -MP -MF
.deps/libnfcbuses_la-spi.Tpo -c -o libnfcbuses_la-spi.lo `test -f
'spi.c' || echo './'`spi.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libnfc
-I../../include -I../../include -I../../libnfc
-I/home/phil/devel/00smartcard/tools/libnfc/git/libnfc/libusb-win32-bin-1.2.6.0/include
-Wfatal-errors -I/usr/i686-w64-mingw32/include -U__STRICT_ANSI__
-I/home/phil/devel/00smartcard/tools/libnfc/git/libnfc
-I/home/phil/devel/00smartcard/tools/libnfc/git/libnfc/contrib/win32
-D_WINDLL -D_MSC_VER -Wall -pedantic -Wextra -std=c99 -Du_int8_t=uint8_t
-Du_int16_t=uint16_t -MT libnfcbuses_la-spi.lo -MD -MP -MF
.deps/libnfcbuses_la-spi.Tpo -c spi.c -o libnfcbuses_la-spi.o
In file included from
/home/phil/devel/00smartcard/tools/libnfc/git/libnfc/contrib/win32/unistd.h:34:0,
from spi.c:52:
../../contrib/windows.h:35:23: fatal error: windows.h: No such file or
directory
So I see a -I/usr/i686-w64-mingw32/include but no
-I/usr/i586-mingw32msvc/include
I don't have any /usr/i686-w64-mingw32/include directory
Note also that by default the script is configuring all drivers.
this has to be reduced to the list of drivers supported under Windows
(=all but SPI & I2C?)
Best regards
Phil