1. CygWin
为了编译出来的可以直接在windows下运行,还是要用"-mno-cygwin"的选项。
编译步骤:
./autogen.sh
export CFLAGS="-mno-cygwin -O2"
./configure --with-ftd2xx=/cygdrive/d/jtag/CDM20602 --disable-werror --without-libusb
修改 apps/jtag/Makefile 文件中一行
From
$(AM_V_CCLD)$(LINK) $(jtag_OBJECTS) $(jtag_LDADD) $(LIBS)
To
$(AM_V_CCLD)$(LINK) $(jtag_OBJECTS) $(jtag_LDADD) $(LIBS) -L/cygdrive/d/jtag/CDM20602/i386 -lftd2xx
make
make install
Cygwin环境中需要安装 mingw的相关组件
编译出来的
2. MinGW
apps/jtag/Makefile 文件也是要做类似的修改,只是目录不一样
$(LINK) $(jtag_OBJECTS) $(jtag_LDADD) $(LIBS) -L/d/jtag/CDM20602/i386 -lftd2xx
编译步骤:
./autogen.sh
./configure --prefix=/mingw --with-ftd2xx=/f/AMT/jtag/CDM20602 --disable-werror --disable-nls
make
make install
阅读(3919) | 评论(0) | 转发(0) |