I have installed, and compiled OC5.2 on my Debian sid. Compilation with gcc-3.3 requires to modify two header files Plugin_Macro.hxx and Draw_Plugin_Macro.hxx ... it was described in another posts (e.g.http://www.opencascade.org/org/forum/thread_7119/) . To compile DRAW and another TclTk OC modules I had to use Tcl&Tk8.0 libs and header files.
When I tried to compile it with Tcl&Tk8.4 I obtained a lot of errors connected with “invalid conversion from...” inconsistency in types of declared and returned variables. From Tcl8.0 to next releases (including Tcl8.4) prototypes of some important for OC functions ware changed (mostly from “type”* to const “type”* eg. Tcl_GetVar; Tcl_CreateCommand... ). In some cases it is easy to fix by changing declarations in OC header files, but part of them require changes in OC classes or its casting. I have given up because of lack of knowledge and time...:(
Is there anybody who has done this or who has prepared appropriate patch for OC to work with Tcl8.3-4?
The second problem is connected with the size of the output libraries after its installation. In config process I used only standard options (./configure –with-tcl=... --with-tk=... --prefix=...). In doc it is written that by default only shared library are built. My new build libraries are more than 10 times larger!!! then original libs from “../OpenCASCADE5.2/ros/lin/lib/”.
What's going on?