Hi Steve,

Yes, you're right.

I think we do not need to have any 'make install' for JIM TCL, since we want JIM TCL embedded in the openocd project.

The jim include paths and jim lib paths directly should be added in the 'configure' of openocd.

Regards,
Laurent
 http://www.amontec.com
 USB JTAG JTAGkey Tiny .
On 03/11/2010, at 8:34 AM, Steve Bennett wrote:

On 03/11/2010, at 12:23 AM, Laurent Gauch wrote:

under Cygwin with external JIM TCL 0.63 in ./openocd/jimtcl, the make error is :

../../../src/helper/command.h:34:17: jim.h: No such file or directory
Did you forget 'make install' in ./openocd/jimtcl?

This is the symptom I see when that step is missed.

(Although as someone pointed out, it would be nice to have
a single stage configure/build without needing to install jimtcl)

Although the link step still fails for me on cygwin.

make[4]: Entering directory `/src/openocd/src'
/bin/sh ../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -o openocd.exe main.o libopenocd.la -ljim libtool: link: gcc -std=gnu99 -g -O2 -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -o openocd.exe main.o ./.libs/libopenocd.a -ljim
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot 
find -ljim
collect2: ld returned 1 exit status
make[4]: *** [openocd.exe] Error 1
make[4]: Leaving directory `/src/openocd/src'

I'm no automake expert. It seems to me that it should be possible to add include
and lib paths directly to the jimtcl directory under openocd, thus avoiding the 
need
to 'make install' and addressing this link problem.

checking whether standard drivers can be built... yes
checking for ftd2xx.lib exists (win32)... checking whether ftd2xx library works.
.. Success!
checking for ftd2xx highspeed device support... yes
checking for environ in unistd.h and stdlib.h... yes
checking for a C compiler for build tools... gcc -mno-cygwin -std=gnu99
checking for suffix of executable build tools... .exe
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/helper/Makefile
config.status: creating src/jtag/Makefile
config.status: creating src/jtag/drivers/Makefile
config.status: creating src/xsvf/Makefile
config.status: creating src/svf/Makefile
config.status: creating src/target/Makefile
config.status: creating src/server/Makefile
config.status: creating src/flash/Makefile
config.status: creating src/flash/nor/Makefile
config.status: creating src/flash/nand/Makefile
config.status: creating src/pld/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make  all-recursive
make[1]: Entering directory `/cygdrive/c/amontec/openocd-builder/git/openocd'
Making all in src
make[2]: Entering directory `/cygdrive/c/amontec/openocd-builder/git/openocd/src
'
cat helper/startup.tcl jtag/startup.tcl target/startup.tcl flash/startup.tcl ser
ver/startup.tcl > startup.tcl
make  all-recursive
make[3]: Entering directory `/cygdrive/c/amontec/openocd-builder/git/openocd/src
'
Making all in jtag
make[4]: Entering directory `/cygdrive/c/amontec/openocd-builder/git/openocd/src
/jtag'
cp drivers/minidriver_imp.h minidriver_imp.h
make  all-recursive
make[5]: Entering directory `/cygdrive/c/amontec/openocd-builder/git/openocd/src
/jtag'
Making all in drivers
make[6]: Entering directory `/cygdrive/c/amontec/openocd-builder/git/openocd/src
/jtag/drivers'
/bin/sh ../../../libtool --tag=CC   --mode=compile gcc -mno-cygwin -std=gnu99 -D
HAVE_CONFIG_H -I. -I../../..  -I../../../src -I../../../src   -g -O2 -I/cygdrive
/c/amontec/jtagkey/driver/d2xx/nt -Wall -Wstrict-prototypes -Wformat-security -W
shadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundan
t-decls -MT driver.lo -MD -MP -MF .deps/driver.Tpo -c -o driver.lo driver.c
libtool: compile:  gcc -mno-cygwin -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I.
./../../src -I../../../src -g -O2 -I/cygdrive/c/amontec/jtagkey/driver/d2xx/nt -
Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-paramete
r -Wbad-function-cast -Wcast-align -Wredundant-decls -MT driver.lo -MD -MP -MF .
deps/driver.Tpo -c driver.c -o driver.o
In file included from ../../../src/helper/log.h:29,
               from ../../../src/jtag/jtag.h:27,
               from driver.c:34:
../../../src/helper/command.h:34:17: jim.h: No such file or directory
../../../src/helper/command.h:35:21: jim-nvp.h: No such file or directory
Regards,
Laurent
http://www.amontec.com

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

--
µWeb: Embedded Web Framework - http://uweb.workware.net.au/
WorkWare Systems Pty Ltd
W: www.workware.net.au      P: 0434 921 300
E: ste...@workware.net.au   F: 07 3102 9221




_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

--
µWeb: Embedded Web Framework - http://uweb.workware.net.au/
WorkWare Systems Pty Ltd
W: www.workware.net.au      P: 0434 921 300
E: ste...@workware.net.au   F: 07 3102 9221





_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to