On Sat, 2009-07-04 at 08:55 +0800, Xiaofan Chen 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/ > > 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)
Please put all of these excellent instructions into a new README.MinGW32 file and send that instead of posting. I will add it to the repository so everyone can use and improve these instructions. Thanks, Zach _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development