On Sat, Jul 4, 2009 at 8:55 AM, Xiaofan Chen<xiaof...@gmail.com> wrote: > On Sat, Jul 4, 2009 at 8:07 AM, Xiaofan Chen<xiaof...@gmail.com> wrote: >> On Sat, Jul 4, 2009 at 4:18 AM, Spencer Oliver<s...@spen-soft.co.uk> wrote: >>> Don't get mingw build mixed up with native win32. >>> You can build for native win32 in two ways >>> 1. using cygwin with gcc -nocygwin option >>> 2. using msys/mingw >>> >>> actually i also build for win32 on linux but that is another story. >> >> Actually this can be the official way of building the Win32 binary. It >> is often easier and faster to cross-build the Win32 binary under Linux >> using MinGW than using Cygwin or MinGW/Msys under Windows. >> The compiling speed is often several times faster under Linux. > > So I am trying it now. > > 1. Cross build libusb-win32 > Just get the svn version of libusb-win32 and it is ready to go. > make host_prefix=i586-mingw32msvc all > > sudo cp libusb.a /usr/i586-mingw32msvc/lib/ > sudo cp libusb.a /usr/i586-mingw32msvc/lib/
Should be: sudo cp ./src/usb.h /usr/i586-mingw32msvc/include/ > 2. Cross build libftdi for Windows > > cd libftdi > gedit Toolchain-mingw32.cmake (to change the name and location of > MinGW to suit your distro) > mkdir build-win32 > cd build-win32/ > cmake -DCMAKE_TOOLCHAIN_FILE=../Toolchain-mingw32.cmake .. > make > sudo cp src/*.a /usr/i586-mingw32msvc/lib/ > sudo cp ../src/ftdi.h /usr/i586-mingw32msvc/include/ > > 3. Cross build OpenOCD > (will be the next post) -- Xiaofan http://mcuee.blogspot.com _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development