From: ZHAO Lina (lnzhao99_at_gmail.com)
Date: Sun Apr 17 2011 - 00:14:59 CDT

Hi,

# make LINUXAMD64
Building Molecule File Reader plugins
src/hesstrans_wrap.C:298:17: error: tcl.h: No such file or directory
src/hesstrans_wrap.C:333: error: typedef ‘swig_wrapper’ is initialized (use
decltype instead)
src/hesstrans_wrap.C:333: error: ‘ClientData’ was not declared in this scope
src/hesstrans_wrap.C:333: error: ‘Tcl_Interp’ was not declared in this scope
src/hesstrans_wrap.C:333: error: expected primary-expression before ‘,’
token
src/hesstrans_wrap.C:333: error: expected primary-expression before ‘int’
src/hesstrans_wrap.C:333: error: ‘Tcl_Obj’ was not declared in this scope
src/hesstrans_wrap.C:333: error: ‘CONST’ was not declared in this scope
src/hesstrans_wrap.C:333: error: expected primary-expression before ‘]’
token
src/hesstrans_wrap.C:334: error: typedef ‘swig_wrapper_func’ is initialized
(use decltype instead)
src/hesstrans_wrap.C:334: error: ‘ClientData’ was not declared in this scope
src/hesstrans_wrap.C:334: error: ‘Tcl_Interp’ was not declared in this scope
src/hesstrans_wrap.C:334: error: expected primary-expression before ‘,’
token
src/hesstrans_wrap.C:334: error: expected primary-expression before ‘int’
src/hesstrans_wrap.C:334: error: ‘Tcl_Obj’ was not declared in this scope
src/hesstrans_wrap.C:334: error: ‘CONST’ was not declared in this scope
src/hesstrans_wrap.C:334: error: expected primary-expression before ‘]’
token
src/hesstrans_wrap.C:335: error: typedef ‘swig_variable_func’ is initialized
(use decltype instead)
src/hesstrans_wrap.C:335: error: ‘ClientData’ was not declared in this scope
src/hesstrans_wrap.C:335: error: ‘Tcl_Interp’ was not declared in this scope
src/hesstrans_wrap.C:335: error: expected primary-expression before ‘,’
token
src/hesstrans_wrap.C:335: error: expected primary-expression before ‘char’
src/hesstrans_wrap.C:335: error: expected primary-expression before ‘char’
src/hesstrans_wrap.C:335: error: expected primary-expression before ‘int’
src/hesstrans_wrap.C:336: error: typedef ‘swig_delete_func’ is initialized
(use decltype instead)
src/hesstrans_wrap.C:336: error: ‘ClientData’ was not declared in this scope
src/hesstrans_wrap.C:340: error: ‘swig_wrapper’ does not name a type
src/hesstrans_wrap.C:345: error: ‘swig_wrapper’ does not name a type
src/hesstrans_wrap.C:346: error: ‘swig_wrapper’ does not name a type
src/hesstrans_wrap.C:352: error: ‘swig_wrapper’ does not name a type
src/hesstrans_wrap.C:360: error: ISO C++ forbids declaration of ‘Tcl_Obj’
with no type
src/hesstrans_wrap.C:360: error: expected ‘;’ before ‘*’ token
src/hesstrans_wrap.C:364: error: ‘Tcl_Command’ does not name a type
src/hesstrans_wrap.C:421: error: ‘Tcl_HashTable’ does not name a type
src/hesstrans_wrap.C: In function ‘void SWIG_Tcl_Acquire(void*)’:
src/hesstrans_wrap.C:427: error: ‘Tcl_HashEntry’ was not declared in this
scope
src/hesstrans_wrap.C:427: error: ‘entryPtr’ was not declared in this scope
src/hesstrans_wrap.C:430: error: ‘swigobjectTable’ was not declared in this
scope
src/hesstrans_wrap.C:430: error: ‘TCL_ONE_WORD_KEYS’ was not declared in
this scope
src/hesstrans_wrap.C:430: error: ‘Tcl_InitHashTable’ was not declared in
this scope
src/hesstrans_wrap.C:433: error: ‘swigobjectTable’ was not declared in this
scope
src/hesstrans_wrap.C:433: error: ‘Tcl_CreateHashEntry’ was not declared in
this scope
src/hesstrans_wrap.C: In function ‘int SWIG_Tcl_Disown(void*)’:
src/hesstrans_wrap.C:439: error: ‘Tcl_HashEntry’ was not declared in this
scope
src/hesstrans_wrap.C:439: error: ‘entryPtr’ was not declared in this scope
src/hesstrans_wrap.C:441: error: ‘swigobjectTable’ was not declared in this
scope
src/hesstrans_wrap.C:441: error: ‘Tcl_FindHashEntry’ was not declared in
this scope
src/hesstrans_wrap.C:443: error: ‘Tcl_DeleteHashEntry’ was not declared in
this scope
src/hesstrans_wrap.C: In function ‘int SWIG_Tcl_Thisown(void*)’:
src/hesstrans_wrap.C:452: error: ‘swigobjectTable’ was not declared in this
scope
src/hesstrans_wrap.C:452: error: ‘Tcl_FindHashEntry’ was not declared in
this scope
src/hesstrans_wrap.C: At global scope:
src/hesstrans_wrap.C:460: error: ‘Tcl_Interp’ was not declared in this scope
src/hesstrans_wrap.C:460: error: ‘interp’ was not declared in this scope
src/hesstrans_wrap.C:460: error: expected primary-expression before ‘char’
src/hesstrans_wrap.C:460: error: expected primary-expression before ‘void’
src/hesstrans_wrap.C:460: error: expected primary-expression before ‘*’
token
src/hesstrans_wrap.C:460: error: ‘ty’ was not declared in this scope
src/hesstrans_wrap.C:460: error: expected primary-expression before ‘int’
src/hesstrans_wrap.C:460: error: initializer expression list treated as
compound expression
src/hesstrans_wrap.C:460: error: expected ‘,’ or ‘;’ before ‘{’ token
In file included from /usr/include/c++/4.4/ios:40,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from src/include.h:68,
                 from src/newmat.h:8,
                 from src/newmatap.h:8,
                 from src/hesstrans.h:8,
                 from src/hesstrans_wrap.C:1154:
/usr/include/c++/4.4/exception:35: error: expected ‘}’ before end of line
/usr/include/c++/4.4/exception:35: error: expected declaration before end of
line
make[2]: *** [../compile/lib_LINUXAMD64/tcl/hesstrans1.0/hesstrans_wrap.o]
Error 1
make[1]: *** [dynlibs] Error 1
make: *** [LINUXAMD64] Error 2

I don't know which libs I missed here.

# swig -version

SWIG Version 1.3.40

Compiled with g++ [x86_64-unknown-linux-gnu]

# python
python python2.6 python3.1 python-config
python2.5 python2.6-config python3.1-config
python2.5-config python3 python3-config

another very naive question,

>From http://www.ks.uiuc.edu/Research/vmd/plugins/doxygen/compiling.html

setenv TCLINC -I/Projects/vmd/vmd/lib/tcl/include

setenv TCLLIB -F/Projects/vmd/vmd/lib/tcl

I barely don't have the somedirectory/lib/tcl/include.

Thanks and best regards,

lina