Hi Xiaofan
    Have you build it with libftd2xx ? I meet the link problem .
I change two files:
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/f/AMT/jtag/CDM20602/i386 -lftd2xx/usr/share/libtool/config/ltmain.sh
from 
# ifdef __CYGWIN__#  include <io.h># endifto
# ifdef __CYGWIN__#  include <io.h>#  include 
<process.h># endif
then , pass all compile.
 





Best Regards



----- 原文 ----- 发件人: Xiaofan Chen 主 题: Re: [UrJTAG-dev] Build problem in mingw时 
间: 2010年6月16日 21:29:17抄 送: Snowel Xue,  urjtag-development,  
On Wed, Jun 16, 2010 at 9:05 PM, Xiaofan Chen <[email protected]> wrote:
> I still need to figure out one warning message regarding> the libftdi 
library I build under Cygwin.>> *** Warning: This system can not link to 
static lib archive /usr//lib/libftdi.la> .> *** I have the capability to 
make that library automatically link in when> *** you link to this library. 
 But I can only do this if you have a> *** shared version of the 
library, which you do not appear to have.>> mc...@acerpc /lib> $ ls 
/usr/lib/libftdi*> /usr/lib/libftdi.a  /usr/lib/libftdi.la>I figured 
out how to build libftdi with CMake under Cygwinand now the warning is 
gone.http://developer.intra2net.com/mailarchive/html/libftdi/2010/msg00263.htmlSo
 Cygwin build is actually not that bad, thanks to Mike's patchto MinGW.Just in 
case, here is the log for Make. There are some warningswhich may or may not 
need to be fixed. I will leave it tothe real programmers to decide or 
fix.mc...@acerpc ~/mcu/urjtag/urjtag/urjtag$ makemake all-recursivemake[1]: 
Entering directory `/home/mcuee/mcu/urjtag/urjtag/urjtag'Making all in 
docmake[2]: Entering directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/doc'make[2]: Nothing to be done for 
`all'.make[2]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/doc'Making all in include/urjtagmake[2]: 
Entering directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/include/urjtag'make 
all-ammake[3]: Entering directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/include/urjtag'make[3]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/include/urjtag'make[2]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/include/urjtag'Making all in datamake[2]: 
Entering directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/data'make[2]: Nothing 
to be done for `all'.make[2]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/data'Making all in srcmake[2]: Entering 
directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/src'Making all in flashmake[3]: 
Entering directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/src/flash'CC amd.loCC 
amd_flash.loCC cfi.loCC detectflash.loCC flash.loCC intel.loCC jedec.loCCLD 
libflash.lamake[3]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/src/flash'Making all in libmake[3]: 
Entering directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/src/lib'CC fclock.loCC 
usleep.loCCLD libjtaglib.lamake[3]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/src/lib'Making all in tapmake[3]: 
Entering directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/src/tap'CC tap.loCC 
register.loCC state.loCC chain.loCC detect.lodetect.c: In function 
`find_record':detect.c:89: warning: array subscript has type `char'detect.c:96: 
warning: array subscript has type `char'$detect.c:125: warning: array subscript 
has type `char'detect.c:134: warning: array subscript has type 
`char'detect.c:150: warning: array subscript has type `char'CC discovery.loCC 
idcode.loCC parport.loCC usbconn.loCC cable.loCC generic.loCC 
generic_usbconn.loCC generic_parport.loCC cmd_xfer.loCC arcom.loCC 
byteblaster.loCC dlc5.loCC ea253.loCC ei012.loCC keithkoep.loCC lattice.loCC 
mpcbdm.loCC triton.loCC minimal.loCC wiggler.locable/wiggler.c: In function 
`map_pin':cable/wiggler.c:124: warning: array subscript has type `char'CC 
wiggler2.loCC jlink.loCC xpc.loCC usbblaster.loCC ft2232.loCC libusb.loCC 
libftdi.loCC direct.loCCLD libtap.lamake[3]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/src/tap'Making all in partmake[3]: 
Entering directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/src/part'CC 
signal.loCC instruction.loCC data_register.loCC bsbit.loCC part.loCCLD 
libpart.lamake[3]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/src/part'Making all in bfinmake[3]: 
Entering directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/src/bfin'CC 
insn-gen.loCC bfin.loCC bfin-part.loCC bfin-part-bfin.loCCLD libbfin.lamake[3]: 
Leaving directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/src/bfin'Making all in 
busmake[3]: Entering directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/src/bus'CC 
buses.loCC generic_bus.loCC readmem.loCC writemem.loCC arm9tdmi.loCC 
au1500.loCC avr32.loCC bcm1250.loCC bf518f_ezbrd.loCC bf537_stamp.loCC 
bf533_stamp.loCC bf548_ezkit.loCC bf561_ezkit.loCC bscoach.loCC ejtag.loCC 
ejtag_dma.loCC fjmem.loCC h7202.loCC ixp425.loCC ixp435.loCC ixp465.loCC 
jopcyc.loCC lh7a400.loCC mpc5200.loCC mpc824x.loCC mpc837x.loCC ppc405ep.loCC 
ppc440gx_ebc8.loCC prototype.loCC pxa2x0.loCC s3c4510x.loCC sa1110.loCC 
sh7727.loCC sh7750r.loCC sh7751r.loCC sharc21065l.loCC sharc21369_ezkit.loCC 
slsup3.loCC tx4925.loCC zefant-xs3.loCCLD libbus.lamake[3]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/src/bus'Making all in cmdmake[3]: 
Entering directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/src/cmd'CC 
cmd_frequency.loCC cmd_cable.loCC cmd_reset.loCC cmd_discovery.loCC 
cmd_idcode.loCC cmd_detect.loCC cmd_detectflash.loCC cmd_help.loCC 
cmd_quit.loCC cmd_scan.loCC cmd_signal.loCC cmd_salias.loCC cmd_bit.loCC 
cmd_register.loCC cmd_initbus.loCC cmd_print.loCC cmd_part.loCC cmd_bus.loCC 
cmd_instruction.loCC cmd_shift.loCC cmd_dr.loCC cmd_get.loCC cmd_test.loCC 
cmd_debug.loCC cmd_shell.loCC cmd_set.loCC cmd_endian.loCC cmd_peekpoke.loCC 
cmd_pod.loCC cmd_readmem.loCC cmd_writemem.loCC cmd_flashmem.loCC 
cmd_eraseflash.loCC cmd_include.loCC cmd_addpart.loCC cmd_cmd.loCC 
cmd_usleep.loCC cmd_bfin.loCC cmd_svf.loCC cmd_bsdl.loCCLD libcmd.lamake[3]: 
Leaving directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/src/cmd'Making all in 
globalmake[3]: Entering directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/src/global'CC parse.loparse.c: In 
function `urj_parse_line':parse.c:81: warning: array subscript has type 
`char'parse.c:89: warning: array subscript has type `char'CC log-error.loCC 
data_dir.loCC params.loCCLD libglobal.lamake[3]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/src/global'Making all in svfmake[3]: 
Entering directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/src/svf'CC 
svf_bison.loCC svf.loCCLD libsvf.laCC 
libsvf_flex_la-svf_flex.losvf_flex.c:4170: warning: no previous prototype for 
'urj_svf_get_column'svf_flex.c:4246: warning: no previous prototype for 
'urj_svf_set_column'svf_flex.l: In function `align_string':svf_flex.l:347: 
warning: array subscript has type `char'svf_flex.l: At top 
level:svf_flex.c:3641: warning: 'yyunput' defined but not usedCCLD 
libsvf_flex.lamake[3]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/src/svf'Making all in bsdlmake[3]: 
Entering directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/src/bsdl'CC 
vhdl_bison.loCC bsdl_bison.loCC bsdl.loCC bsdl_sem.loCCLD libbsdl.laCC 
libbsdl_flex_la-vhdl_flex.lovhdl_flex.c:2555: warning: no previous prototype 
for 'urj_vhdl_get_column'vhdl_flex.c:2631: warning: no previous prototype for 
'urj_vhdl_set_column'vhdl_flex.l: In function 
`urj_vhdl_flex_switch_file':vhdl_flex.l:497: warning: array subscript has type 
`char'vhdl_flex.l:498: warning: subscript has type `char'vhdl_flex.l: At top 
level:vhdl_flex.c:2026: warning: 'yyunput' defined but not usedCC 
libbsdl_flex_la-bsdl_flex.lobsdl_flex.c:3062: warning: no previous prototype 
for 'urj_bsdl_get_column'bsdl_flex.c:3138: warning: no previous prototype for 
'urj_bsdl_set_column'bsdl_flex.c:2533: warning: 'yyunput' defined but not 
usedCCLD libbsdl_flex.lamake[3]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/src/bsdl'make[3]: Entering directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/src'CCLD liburjtag.lalibtool: link: 
warning: undefined symbols not allowed in i686-pc-cygwin shared 
librariesmake[3]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/src'make[2]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/src'Making all in pomake[2]: Entering 
directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/po'make[2]: Nothing to be done 
for `all'.make[2]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/po'Making all in src/apps/jtagmake[2]: 
Entering directory `/home/mcuee/mcu/urjtag/urjtag/urjtag/src/apps/jtag'CC 
jtag.oCCLD jtag.exemake[2]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/src/apps/jtag'Making all in 
src/apps/bsdl2jtagmake[2]: Entering directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/src/apps/bsdl2jtag'CC bsdl2jtag.oCCLD 
bsdl2jtag.exemake[2]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag/src/apps/bsdl2jtag'make[2]: Entering 
directory `/home/mcuee/mcu/urjtag/urjtag/urjtag'make[2]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag'make[1]: Leaving directory 
`/home/mcuee/mcu/urjtag/urjtag/urjtag'-- Xiaofan http://mcuee.blogspot.com
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
UrJTAG-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/urjtag-development

Reply via email to