Archive for March, 2009

[data] How to make OA

March 31, 2009

How to make Open Access under CentOS 5.2

LEF/DEF 請用 5.7p4

5.7p5有問題

BISON & FLEX 請使用指定版本

改TCL _LIB_NAME

setenv OA_COMPILER gcc411
setenv BISON_HOME /home/alex/tools
setenv FLEX_HOME  /home/alex/tools

/home/alex/lefdef_new
cp */lib/* lib/64bit
cp */include/* include

setenv LEF_HOME /home/alex/lefdef_new
setenv DEF_HOME /home/alex/lefdef_new
setenv LEFDEF_HOME /home/alex/lefdef_new
setenv OA_BIT 64
setenv TCL_HOME /usr

modify make/linux_rhel30_gcc411_64.variables

CC              = /usr/bin/gcc
CXX             = /usr/bin/g++

make under oa

modify oaLefDef/build.rules
modify oaLefDef/local.rules
modify oaSpef/build.rules
modify oaSpef/local.rules
modify oaVersion/GNUmakefile
$(ZLIB_HOME)/libz.a

[python] QConsole

March 10, 2009

http://qconsole.sourceforge.net/

QtclConsole inherits from QConsole and emulates a TCL shell in a Qt application. So basically, the user is able to execute any TCL built-in command and also any other user-defined commands created using the TCL C-API. These commands should represent all the features of a given application, so the user will be able to execute them using the GUI and also in the embedded TCL shell. This is very useful in the EDA (Electronic Design Automation) field where most of the tools are using TCL scripting and Qt as well.

QPyConsole inherits from QConsole and implements a Python shell in a Qt application, similar to QtclConsole. The qpyconsole sample application shows how to use the QPyConsole class in a qt application. For a real world application, one would of course extend the embedded Python interpreter with a complete API of the application that is to be made scriptable.