On 07/08/2012 7:42, Jean-Brieuc Feron wrote: > Gaston Rodriguez <grodriguez <at> emtech.com.ar> writes: > >> Hello all. >> >> In the past days I created an almost complete binding of liburjtag to >> the Tcl scripting language. For each exported function in the library I >> created one Tcl command with the same name which accepts the same number >> and "types" of arguments. In reality the types of the library are >> coverted to and from Tcl objects. >> >> The source code can be downloaded from here: >> http://code.google.com/p/gasty-projects/downloads/list >> >> Current version is 0.11 >> > > > Hi everyone, > > I'm interested by this module, but it's quite difficult to install. > Is there any additional documentation, update or a documented archive for > linux? Hi Jean-Brieuc! I use this Tcl extension in windows for some applications: one is a FPGA programmer, another is an internal logic analizer for FPGAs. Since I've never need to run these applications in Linux I never tried to compile for this platform, but I suppose it should be easy.
The source code is located in the "src" directory withing the Tclurjtag-0.11.rar, and his content is: Tclurjtag-0.11\src\make.sh Tclurjtag-0.11\src\Tclurjtag.c Tclurjtag-0.11\src\Tclurjtag_Utils.h To compile it you should edit some variables in make.sh first and then run it as a bash script. TCLINC and TCLLIB points to the Tcl headers. TARGET and TARGET_PATH refers to the output extension file, use what you want FTD2XX is the path to the headers of the FTDI library. URJTAG_BASE points to the source code directory of UrJtag Maybe for linux you don't need FTDI support so you can drop "-lm $FTD2XX/i386/ftd2xx.lib" in the LIBS variable. To make it work in Linux you should also edit the gcc command: gcc -Wall -mno-cygwin -O2 -shared -o $TARGET.dll $TARGET.c $INCLUDES -DUSE_TCL_STUBS $LIBS Something like this will work (not tested): gcc -Wall -O2 -shared -o $TARGET.so $TARGET.c $INCLUDES -DUSE_TCL_STUBS $LIBS Urjtag should be previously compiled as a library: This extension uses UrJTAG 0.10 #1868. I can update Tclurjtag to a newer UrJtag version, and try to compile it in Linux if there is interest, but I can't promise when... Regards, Gastón. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ UrJTAG-development mailing list UrJTAG-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/urjtag-development