Thank you for much for laying out the steps for building OpenOCD.
ONE BIG QUESTION: DOES THE USB (any FTDI based ) JTAG BE INSTALLED BEFORE I CAN BUILD OPENOCD?
I am using Cygwin (running under Window Vista) and installed it according to
http://piconomic.berlios.de/build_openo ... ILD_PROCES
Following the steps in the first 2 post of this thread:
However I failed to build OpenOCD.
1. ./bootstrap as mentioned does not work for me.
The screen shows:
bash: ./bootstrap: No such file or directory.
2. ./configure --enable-maintainer-mode --disable-werror --disable-shared --enable-parport --enable-parport_giveio --enable-ft2232_libftdi CC="gcc -mno-cygwin"
after a long string of text output.... window vista reported that conftest.exe failed or stop working.
Cygwin console output is:
checking Build & Link with libftdi.....configure:error:Cannot build and run test program using libftdi.
Window Vista complained about conftest.exe program stop: see below:
Apparently according to the Windows Vista report: libusb0.dll is at fault. I did a directory search on my PC and found libsub0.dll in \libusb-win32-device-bin-0.1.12.2\bin I wonder if this is the problem and I need to install a FTDI device to cause this libusb0.dll to be installed and recognised by the Windows. If I don't have a FTDI device installed can I still get configure to work by putting libusb0.dll into somewhere in the windows system directory. If this possible I hope someone can me point to the right directory.
Before this I tried building Openocd with ftd2xxx. which also ended in failure. But someone was saying that I need to have a real FTDI device installed before I can build openocd. I before I get a JTAG device I want to be sure I can compile the tools to use it. So I gave up this FTDI lib and go for the libsub + libftdi combo.
I hope somebody can help. I had been doing building thing for a quite awhile.
Window Vista failure details:
Problem Event Name: APPCRASH
Application Name: conftest.exe
Application Version: 0.0.0.0
Application Timestamp: 4b99f097
Fault Module Name: libusb0.dll
Fault Module Version: 6.0.6002.18005
Fault Module Timestamp: 49e03821
Exception Code: c0000135
Exception Offset: 00009eed
OS Version: 6.0.6002.2.2.0.768.3
Locale ID: 18441
Additional Information 1: 9d13
Additional Information 2: 1abee00edb3fc1158f9ad6f44f0f6be8
Additional Information 3: 9d13
Additional Information 4: 1abee00edb3fc1158f9ad6f44f0f6be8