On Sun, Mar 10, 2013 at 10:55 AM, Pete Batard <p...@akeo.ie> wrote: > Well, I'm not seeing the issue with cross compilation and > --disable-shared any longer (Issue #83) > Just cross compiled as static, picked up the resulting xusb, and found > it got compiled alright and works just fine on Windows. > > Not sure what happened, but I don't think I want to spend too much time > on an issue that seems to have fixed itself. > > Xiaofan, if you have a cross compiler available, could you run a test > against the latest git to confirm that you see the same thing? > If you do, then please feel free to close the issue. >
I have issues builing libusbx under Ubuntu with or without the "--disable-shared option", maybe the MinGW cross-compiler is too old. I will try out MinGW-w64 cross compiler later. ../configure --enable-maintainer-mode --build=i586-mingw32msvc --disable-shared --enable-examples-build --enable-tests-build ... make ... Making all in libusb make[2]: Entering directory `/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32/libusb' CC libusb_1_0_la-core.lo In file included from ../../libusb/libusbi.h:202:0, from ../../libusb/core.c:35: ../../libusb/os/threads_windows.h:31:2: error: unknown type name 'DWORD' ../../libusb/os/threads_windows.h:32:2: error: unknown type name 'HANDLE' ../../libusb/os/threads_windows.h:64:1: error: unknown type name 'LONG' ../../libusb/os/threads_windows.h:65:1: error: unknown type name 'LONG' ../../libusb/os/threads_windows.h:68:21: error: unknown type name 'HANDLE' ../../libusb/os/threads_windows.h:70:21: error: unknown type name 'HANDLE' ../../libusb/os/threads_windows.h:71:23: error: unknown type name 'HANDLE' ../../libusb/os/threads_windows.h:72:24: error: unknown type name 'HANDLE' ../../libusb/os/threads_windows.h:73:24: error: unknown type name 'HANDLE' ../../libusb/os/threads_windows.h:78:39: error: unknown type name 'HANDLE' ../../libusb/os/threads_windows.h:80:7: error: unknown type name 'HANDLE' In file included from ../../libusb/core.c:35:0: ../../libusb/libusbi.h:216:2: error: unknown type name 'HANDLE' ../../libusb/libusbi.h:221:2: error: unknown type name 'HANDLE' ../../libusb/libusbi.h:228:2: error: unknown type name 'HANDLE' ../../libusb/libusbi.h:232:2: error: unknown type name 'HANDLE' ../../libusb/libusbi.h:237:2: error: unknown type name 'HANDLE' ../../libusb/libusbi.h:245:2: error: unknown type name 'HANDLE' ../../libusb/libusbi.h:252:2: error: unknown type name 'HANDLE' ../../libusb/libusbi.h:271:2: error: unknown type name 'HANDLE' ../../libusb/libusbi.h:290:2: error: unknown type name 'HANDLE' ../../libusb/libusbi.h:330:2: error: unknown type name 'HANDLE' In file included from ../../libusb/libusbi.h:399:0, from ../../libusb/core.c:35: ../../libusb/os/poll_windows.h:79:2: error: unknown type name 'HANDLE' ../../libusb/os/poll_windows.h:80:2: error: unknown type name 'OVERLAPPED' ../../libusb/os/poll_windows.h:95:29: error: unknown type name 'HANDLE' ../../libusb/os/poll_windows.h:99:30: error: unknown type name 'HANDLE' ../../libusb/os/poll_windows.h:100:34: error: unknown type name 'OVERLAPPED' ../../libusb/core.c:56:1: error: unknown type name 'LONG' ../../libusb/core.c: In function 'usbi_alloc_device': ../../libusb/core.c:513:2: error: implicit declaration of function 'usbi_mutex_init' [-Werror=implicit-function-declaration] ../../libusb/core.c:525:2: error: implicit declaration of function 'usbi_mutex_lock' [-Werror=implicit-function-declaration] ../../libusb/core.c:527:2: error: implicit declaration of function 'usbi_mutex_unlock' [-Werror=implicit-function-declaration] ../../libusb/core.c: In function 'libusb_unref_device': ../../libusb/core.c:916:3: error: implicit declaration of function 'usbi_mutex_destroy' [-Werror=implicit-function-declaration] ../../libusb/core.c: In function 'usbi_gettimeofday': ../../libusb/core.c:1786:20: error: expected ':', ',', ';', '}' or '__attribute__' before 'ns100' ../../libusb/core.c:1797:3: error: implicit declaration of function 'GetSystemTimeAsFileTime' [-Werror=implicit-function-declaration] ../../libusb/core.c:1797:33: error: 'union <anonymous>' has no member named 'ft' ../../libusb/core.c:1799:27: error: 'union <anonymous>' has no member named 'ns100' ../../libusb/core.c:1800:27: error: 'union <anonymous>' has no member named 'ns100' ../../libusb/core.c:1788:4: warning: variable '_now' set but not used [-Wunused-but-set-variable] cc1: some warnings being treated as errors make[2]: *** [libusb_1_0_la-core.lo] Error 1 make[2]: Leaving directory `/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32/libusb' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32' make: *** [all] Error 2 -- Xiaofan ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel