Draw_Interpretor.lo error

Geting following error during "make":

../../../src/Draw/Draw_Interpretor.cxx:140: error: invalid conversion from `
Standard_Integer (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*,
Tcl_Interp*, int, const char**)'
../../../src/Draw/Draw_Interpretor.cxx: In member function `void
Draw_Interpretor::Add(char*, char*, char*, Standard_Integer
(*)(Draw_Interpretor&, int, char**), char*)':
../../../src/Draw/Draw_Interpretor.cxx:166: error: invalid conversion from `
Standard_Integer (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*,
Tcl_Interp*, int, const char**)'
make[3]: *** [Draw_Interpretor.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Any idea how to fix this?

Michael's picture

I only postet half of the error message. Here's the full version:

../../../src/Draw/Draw_Interpretor.cxx: In function `Standard_Integer
CommandCmd(void*, Tcl_Interp*, int, char**)':
../../../src/Draw/Draw_Interpretor.cxx:46: error: invalid conversion from `
const char*' to `char*'
../../../src/Draw/Draw_Interpretor.cxx: In member function `void
Draw_Interpretor::Add(char*, char*, Standard_Integer (*)(Draw_Interpretor&,
int, char**), char*)':
../../../src/Draw/Draw_Interpretor.cxx:140: error: invalid conversion from `
Standard_Integer (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*,
Tcl_Interp*, int, const char**)'
../../../src/Draw/Draw_Interpretor.cxx: In member function `void
Draw_Interpretor::Add(char*, char*, char*, Standard_Integer
(*)(Draw_Interpretor&, int, char**), char*)':
../../../src/Draw/Draw_Interpretor.cxx:166: error: invalid conversion from `
Standard_Integer (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*,
Tcl_Interp*, int, const char**)'
make[3]: *** [Draw_Interpretor.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Richard's picture

Hello Michael,

I had the same problem. Somehow I found out it could be a TCL-Problem. So I installed an older version of TCL and TK in my Home-Directory and told configure to use this older TCL and TK. Suddenly the errors disapperad.

For TCL and TK do
* Download TCL and TK 8.3.4 from sourceforge
* ./configure --prefix=$HOME/opt
* make
* make install

For OpenCascade:
* ./configure --prefix=/opt/OpenCASCADE --with-tcl=$HOME/opt/lib --with-tk=$HOME/opt/lib

Until now OpenCASCADE is compiling and compiling and compiling... (Going out for a coffee...)