From: Xiaofan C. <xia...@gm...> - 2010-08-05 12:13:42
|
On Thu, Aug 5, 2010 at 10:29 AM, Xiaofan Chen <xia...@gm...> wrote: >> There's also a small chance that these new binaries improve the multilib >> cross compilation issue, as I have added a missing -m32 flag to LDFLAGS, >> but I'm not keeping my hopes up on that. >> > > I will try that. BTW, in the wiki you mention only the MinGW32bit > static library may not work with cross-compiling. For my tests, > the MinGW64 static also did not work with cross-compiling. It does not help with the cross-compiling when using the static library. mcuee@ubuntu:~/Desktop/build/libftdi/libftdi-1.0/build-win32$ make Linking C shared library libftdi.dll Creating library file: libftdi.dll.a Warning: .drectve `-aligncomm:_hires_frequency,3 ' unrecognized Warning: .drectve `-aligncomm:_hires_ticks_to_ps,3 ' unrecognized Warning: .drectve `-aligncomm:_autoclaim_lock,2 ' unrecognized Warning: .drectve `-aligncomm:_timer_tp,2' unrecognized Warning: .drectve `-aligncomm:_poll_fd,5 ' unrecognized Warning: .drectve `-aligncomm:__poll_fd,5' unrecognized /usr/i586-mingw32msvc/lib/libusb-1.0.a(libusb_1_0_la-windows_usb.o):windows_usb.c:(.text+0x54c2): undefined reference to `__InterlockedIncrement' /usr/i586-mingw32msvc/lib/libusb-1.0.a(libusb_1_0_la-windows_usb.o):windows_usb.c:(.text+0x7628): undefined reference to `__InterlockedExchange' /usr/i586-mingw32msvc/lib/libusb-1.0.a(libusb_1_0_la-threads_windows.o):threads_windows.c:(.text+0x207): undefined reference to `__InterlockedExchange' /usr/i586-mingw32msvc/lib/libusb-1.0.a(libusb_1_0_la-poll_windows.o):poll_windows.c:(.text+0xf5): undefined reference to `__InterlockedExchange' /usr/i586-mingw32msvc/lib/libusb-1.0.a(libusb_1_0_la-poll_windows.o):poll_windows.c:(.text+0x3c5): undefined reference to `__InterlockedExchange' collect2: ld returned 1 exit status make[2]: *** [src/libftdi.dll] Error 1 make[1]: *** [src/CMakeFiles/ftdi.dir/all] Error 2 make: *** [all] Error 2 -- Xiaofan |