Trying to get DRAWEXE to work after Opencascade .DEB install.

DRAWEXE fires up from any direct on the get go.
Although their issues with the CASROOT is not defined.
I believe I need to locate the env.ksh file:
jonas@unbuntu2:~$ locate env.ksh
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/env.ksh
jonas@unbuntu2:~$
Bother… It looks like file didn’t get installed with the .deb
Hmm. Some reference’s along this line in:http://www.opencascade.org/org/forum/thread_12743/
I’m not sure what would be the “correct debian” place to put this, but I do believe this script needs edited and fired up with the execution of a terminal session to get DRAWEXE to work properly…

Just by chance, I had run the opencascade unistaller just prior to running the .deb Everytime I fired up at terminal session, it gave me a annoying error message because components where missing and didn’t want to fire up. So I rem’s out the line(I’m glad I didn’t delete it.)
Here it is: #source /opt/OpenCASCADE6.2.0/ros/env.ksh
So… I’m going to:

  • Unrem the line in my bashrc
  • Create the folder /opt/OpenCASCADE6.2.0/ros/
  • copy the folder /home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/env.ksh
  • Edit env.ksh
  • Close the terminal and re-open it to get .bashrc to fire up
  • Execute DRAWEXE and see what happen

#!/bin/ksh -f
export CASROOT=/home/hazelsct/opencascade-6.2.0/ros
OS_NAME=uname
if [ -z “PATH” ];
then PATH=$CASROOT/../3rdparty/$OS_NAME/tcltk/bin:$CASROOT/$OS_NAME/bin;
else PATH=$CASROOT/../3rdparty/$OS_NAME/tcltk/bin:$CASROOT/$OS_NAME/bin:$PATH;
fi
export PATH
if [ -z “LD_LIBRARY_PATH” ];
then LD_LIBRARY_PATH=$CASROOT/../3rdparty/$OS_NAME/tcltk/lib:$CASROOT/$OS_NAME/lib;
else LD_LIBRARY_PATH=$CASROOT/../3rdparty/$OS_NAME/tcltk/lib:$CASROOT/$OS_NAME/lib:$LD_LIBRARY_PATH;
fi
export LD_LIBRARY_PATH
export CSF_MDTVFontDirectory=$CASROOT/src/FontMFT
export CSF_LANGUAGE=us
export MMGT_CLEAR=1
export CSF_EXCEPTION_PROMPT=1
export CSF_SHMessage=$CASROOT/src/SHMessage
export CSF_MDTVTexturesDirectory=$CASROOT/src/Textures
export CSF_XSMessage=$CASROOT/src/XSMessage
export CSF_StandardDefaults=$CASROOT/src/StdResource
export CSF_PluginDefaults=$CASROOT/src/StdResource
export CSF_XCAFDefaults=$CASROOT/src/StdResource
export CSF_StandardLiteDefaults=$CASROOT/src/StdResource
export CSF_GraphicShr=$CASROOT/$OS_NAME/lib/libTKOpenGl.so
export CSF_UnitsLexicon=$CASROOT/src/UnitsAPI/Lexi_Expr.dat
export CSF_UnitsDefinition=$CASROOT/src/UnitsAPI/Units.dat
export CSF_IGESDefaults=$CASROOT/src/XSTEPResource
export CSF_STEPDefaults=$CASROOT/src/XSTEPResource
export CSF_XmlOcafResource=$CASROOT/src/XmlOcafResource

export TCLHOME=$CASROOT/../3rdparty/$OS_NAME/tcltk
export TCLLIBPATH=$TCLHOME/lib
if [ $OS_NAME = “SunOS” ]; then
export ITK_LIBRARY=$TCLLIBPATH/itk3.2
export ITCL_LIBRARY=$TCLLIBPATH/itcl3.2
export TIX_LIBRARY=$TCLLIBPATH/tix8.1
export TK_LIBRARY=$TCLLIBPATH/tk8.4
export TCL_LIBRARY=$TCLLIBPATH/tcl8.4;
elif [ $OS_NAME = “Linux” ]; then
export ITK_LIBRARY=$TCLLIBPATH/itk3.2
export ITCL_LIBRARY=$TCLLIBPATH/itcl3.2
if [ -n “TIX_LIBRARY” ];
then TIX_LIBRARY=””;
fi
export TIX_LIBRARY
export TK_LIBRARY=$TCLLIBPATH/tk8.4
export TCL_LIBRARY=$TCLLIBPATH/tcl8.4
fi

Oh boy… I think this is going to need a little work.. I seem to recall reading something that setting the LD_LIBRARY_PATH is consider to be poor form( I know I have links on this in previous post)
I’m assuming that the this will be automatically taken by the debian standard implementation regardless of free or non free.
But then since part of this undertaking, is to parse the sections of opencascade that are free and non-free, that could affect what the CSF_ environment variables are pointing to. ugghh.
Thinking about this a little more, It would make sense that a lot of this over time would be in the non-free section and then slowly over time migrate to the free section.
Would that mean that the env.ksh file or equivalent would be adjusted with each new installment?
Ok, so what happens if OCC needs and environment variable that has stuff in both free and non-free? Will that cause a melt down, or can it cope with that?

Just of snicks and grins looking at CSF_MDTVFontDirectory:
jonas@unbuntu2:/opt/OpenCASCADE6.2.0/ros$ locate FontMFT
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Utopia-Regular.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Times-Roman.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABTXT06.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/FILES
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABKJ.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Courier-Italic.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Helvetica-BoldOblique.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Times.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Helvetica-Bold.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABTXT07.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABHZ4.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABTXT08.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Symbol.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/FontMFT.ReleaseNote
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABHZ3.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Times-Italic.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABTXT04.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Helvetica.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABTXT01.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Courier-Oblique.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABTXT02.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABTXT05.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABHZ1.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Helvetica-Oblique.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Defaultfont.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABTXT03.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Times-Bold.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABHZ6.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Courier.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Courier-Bold.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABHZ2.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Utopia-Italic.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Times-BoldItalic.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABHZ5.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Utopia-Bold.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Courier-BoldItalic.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Utopia-BoldItalic.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/TABTXT15.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Helvetica-Medium.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/drv/FontMFT
jonas@unbuntu2:/opt/OpenCASCADE6.2.0/ros$ locate Utopia-Regular.mft
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/FontMFT/Utopia-Regular.mft

I’m assuming over time that all this will have a proper place in the debian way of looking at things for now, I’m going to try this and see what happens:

export CASROOT=/home/hazelsct/opencascade-6.2.0/ros
OS_NAME=uname
Change to read:
export CASROOT=/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros
OS_NAME=”Linux”

Oh man…. So much for me thinking, I know what I’m doing…. Hear are the results….
jonas@unbuntu2:~$ DRAWEXE
Draw[1]> Draw[2]> pload ALL
Plugin file name has not been specified. Defaults to DrawPlugin
Variable CSF_DrawPluginDefaults has not been explicitly defined. Set to /home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources
Parse Value ==> MODELING, OCAFKERNEL, DATAEXCHANGE
Parse aCurKey = MODELING
Parse aCurKey = OCAFKERNEL
Parse aCurKey = DATAEXCHANGE
Parse aCurKey =
Parse Value ==> TOPTEST
Parse aCurKey = TOPTEST
Parse aCurKey =
Parse Value ==> TKTopTest
Parse aCurKey = TKTopTest
Parse aCurKey =
Parse Value ==> DCAF
Parse aCurKey = DCAF
Parse aCurKey =
Parse Value ==> TKTopTest
Parse aCurKey = TKTopTest
Parse aCurKey =
Parse Value ==> TKDCAF
Parse aCurKey = TKDCAF
Parse aCurKey =
Parse Value ==> XDE, VISUALIZATION
Parse aCurKey = XDE
Parse aCurKey = VISUALIZATION
Parse aCurKey =
Parse Value ==> TKTopTest
Parse aCurKey = TKTopTest
Parse aCurKey =
Parse Value ==> TKDCAF
Parse aCurKey = TKDCAF
Parse aCurKey =
Parse Value ==> DATAEXCHANGEKERNEL, XDEDRAW
Parse aCurKey = DATAEXCHANGEKERNEL
Parse aCurKey = XDEDRAW
Parse aCurKey =
Parse Value ==> XSDRAW
Parse aCurKey = XSDRAW
Parse aCurKey =
Parse Value ==> TKXSDRAW
Parse aCurKey = TKXSDRAW
Parse aCurKey =
Parse Value ==> TKXDEDRAW
Parse aCurKey = TKXDEDRAW
Parse aCurKey =
Parse Value ==> TKXSDRAW
Parse aCurKey = TKXSDRAW
Parse aCurKey =
Parse Value ==> AISV
Parse aCurKey = AISV
Parse aCurKey =
Parse Value ==> TKXSDRAW
Parse aCurKey = TKXSDRAW
Parse aCurKey =
Parse Value ==> TKXDEDRAW
Parse aCurKey = TKXDEDRAW
Parse aCurKey =
Parse Value ==> TKViewerTest
Parse aCurKey = TKViewerTest
Parse aCurKey =
aResource = TOPTEST
Value ==> TKTopTest
could not open: TKTopTest ; reason: libtcl.so: cannot open shared object file: No such file or directory
An exception was caught 0xb7f57433 : Draw_Failure: Could not open: TKTopTest; reason: libtcl.so: cannot open shared object file: No such file or directory
** Exception ** 0xb7f57433 : Draw_Failure: Could not open: TKTopTest; reason: libtcl.so: cannot open shared object file: No such file or directory
Draw[3]>

Ok… This is going to take some time to resolve….. My wife asked me to dig out some rocks.. so she could plant some shrubs and trees. I dug out some rocks… Hit more rocks… Then I started hitting glass and metal, really old spark plugs, milk bottles, whiskey bottles, and old copper reservoir from a toilet(that was cool) and it looks like there might be an old porcelain sink that might be intact. So I’ve gone from hard digging with a shovel to gently sucking up dirt with a shop vac. Long story short, wife thinks it’s cool that I found some vintage circa(1920’s) in the back yard, but see just wants here shrubs planted…… Weather is probably, going to turn and I need to get to diggin. More later…
2008-04-29 American Idol on at the moment… Syesha so far is the only one who is somewhat impressive.  My wife really liked her dress.
Ok… lets see if I can take this on, one at at a time:
Plugin file name has not been specified. Defaults to DrawPlugin
Variable CSF_DrawPluginDefaults has not been explicitly defined. Set to /home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources

I’m wondering what we have for DrawResources
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/WOKcomplement.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/Move.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/test2xl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/FILES
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/InitEnvironment.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/BuildWorkbench.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/DIFF.c
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/demo.bat
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/demo.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/Tests.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/OCAFDemo.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/DrawTK.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/mdltest
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/Geometry.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/Consultation.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/DRAW.info
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/tdoc
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/DRAW.doc
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/TKTopTest.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/DrawDefault
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/lamp.ico
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/Grille.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/StandardViews.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/TestDraw.cxx
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/DrawPlugin
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/CURVES.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/StandardCommands.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/PROFIL.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/mkdoc
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/SURFACES.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/Filtre.c
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/demo
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/Documentation.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/ModelingDemo.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/wing.brep
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/SCAN.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/DataExchangeDemo.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/VisualizationDemo.tcl
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/vmdltest
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/idoc
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/drv/DrawResources
jonas@unbuntu2:~$
Alrighty… I wonder if I can extrapolate something here from the error message and what I have here…
I did a quick  google search on CSF_DrawPluginDefaults and found this these references in the opencascade in 5.1.1 and 5.2 Release notes
Hmmm. I think 5.2 notes hold the key: www.opencascade.com/pub/doc/Release_Notes_5.2.pdf
Sounds like there might be something in DrawPlugin

jonas@unbuntu2:~$ locate DrawPlugin
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/DrawPlugin
jonas@unbuntu2:~$ gedit /home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/DrawPlugin

! Description of available plugins for DRAW Test Harness
! *****************************************************************************
!
! Format of the file is compliant with the standard Open CASCADE resource files
! (see the Resource_Manager.cdl file for details).
!
! Each key defines a sequence of either further keys or a name of the dynamic
! library. Keys can be nested down to an arbitrary level. However, make sure
! there are no cyclic dependencies (internal checks are not performed).
!
! For details how to implement a DRAW plugin refer to the Test Harness User’s
! Guide.
!
! To load a plugin use the following command in DRAW:
!
! Draw> pload [-PluginFileName] [[Key1] [Key2]…], where:
!     <-PluginFileName> – Defines the name of a resource file.
!                         If this parameter is omitted then the default name DrawPlugin
!                         is used.
!                         According to the Open CASCADE resource file management rules
!                         the environment variable CSF_<PluginFileName>Defaults must
!                         be set and point to the directory storing the file. If it is
!                         omitted then it defaults to $CASROOT/src/DrawResources.
!     [Key]             – Defines the key(s) enumerating plugins to be loaded.
!                         If no keys are specified then the key named DEFAULT is used
!                         (if there is no such in the file then no plugins are loaded).
!
!
! NOTE: Make sure the DATAEXCHANGE or XDE key succeeds the OCAF key in a sequence
!

DEFAULT            : MODELING
MODELING           : TOPTEST
VISUALIZATION      : AISV
OCAFKERNEL         : DCAF
DATAEXCHANGEKERNEL : XSDRAW
OCAF               : VISUALIZATION, OCAFKERNEL
DATAEXCHANGE       : XDE, VISUALIZATION
XDE                : DATAEXCHANGEKERNEL, XDEDRAW
FULL               : MODELING, OCAFKERNEL, VISUALIZATION
ALL                : MODELING, OCAFKERNEL, DATAEXCHANGE

TOPTEST            : TKTopTest
DCAF               : TKDCAF
AISV               : TKViewerTest
XSDRAW             : TKXSDRAW
XDEDRAW            : TKXDEDRAW

All Right… Something weird here: Behavior looks different then the non debian.. OCC.   The Parse stuff messages doesn’t show up in the other version… I guess the first thing to focus in on is  could not open: TKTopTest ; reason: libtcl.so: cannot open shared object file: No such file or directory
Ok… Now we’re getting somewhere locate doesn’t show that file anywhere..

Did a quick google found this:http://ubuntuforums.org/showthread.php?t=556314

This is starting to have a bin there done that quality to this….. This appears to be the fix.
sudo ln -s /usr/lib/libtk8.4.so.0 /usr/lib/libtk.so
sudo ln -s /usr/lib/libtcl8.4.so.0 /usr/lib/libtcl.so
Lets see if  I got this
jonas@unbuntu2:~$ locate libtcl.so
jonas@unbuntu2:~$ locate ibtk8.4.so
/usr/lib/libtk8.4.so
/usr/lib/libtk8.4.so.0
jonas@unbuntu2:~$ sudo ln -s /usr/lib/libtk8.4.so.0 /usr/lib/libtk.so
[sudo] password for jonas:
jonas@unbuntu2:~$ sudo ln -s /usr/lib/libtcl8.4.so.0 /usr/lib/libtcl.so
jonas@unbuntu2:~$

As the germans say….Daumen drücken:
jonas@unbuntu2:~$ DRAWEXE
Draw[1]> Draw[2]> pload ALL
Plugin file name has not been specified. Defaults to DrawPlugin
Variable CSF_DrawPluginDefaults has not been explicitly defined. Set to /home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources
Parse Value ==> MODELING, OCAFKERNEL, DATAEXCHANGE
Parse aCurKey = MODELING
Parse aCurKey = OCAFKERNEL
Parse aCurKey = DATAEXCHANGE
Parse aCurKey =
Parse Value ==> TOPTEST
Parse aCurKey = TOPTEST
Parse aCurKey =
Parse Value ==> TKTopTest
Parse aCurKey = TKTopTest
Parse aCurKey =
Parse Value ==> DCAF
Parse aCurKey = DCAF
Parse aCurKey =
Parse Value ==> TKTopTest
Parse aCurKey = TKTopTest
Parse aCurKey =
Parse Value ==> TKDCAF
Parse aCurKey = TKDCAF
Parse aCurKey =
Parse Value ==> XDE, VISUALIZATION
Parse aCurKey = XDE
Parse aCurKey = VISUALIZATION
Parse aCurKey =
Parse Value ==> TKTopTest
Parse aCurKey = TKTopTest
Parse aCurKey =
Parse Value ==> TKDCAF
Parse aCurKey = TKDCAF
Parse aCurKey =
Parse Value ==> DATAEXCHANGEKERNEL, XDEDRAW
Parse aCurKey = DATAEXCHANGEKERNEL
Parse aCurKey = XDEDRAW
Parse aCurKey =
Parse Value ==> XSDRAW
Parse aCurKey = XSDRAW
Parse aCurKey =
Parse Value ==> TKXSDRAW
Parse aCurKey = TKXSDRAW
Parse aCurKey =
Parse Value ==> TKXDEDRAW
Parse aCurKey = TKXDEDRAW
Parse aCurKey =
Parse Value ==> TKXSDRAW
Parse aCurKey = TKXSDRAW
Parse aCurKey =
Parse Value ==> AISV
Parse aCurKey = AISV
Parse aCurKey =
Parse Value ==> TKXSDRAW
Parse aCurKey = TKXSDRAW
Parse aCurKey =
Parse Value ==> TKXDEDRAW
Parse aCurKey = TKXDEDRAW
Parse aCurKey =
Parse Value ==> TKViewerTest
Parse aCurKey = TKViewerTest
Parse aCurKey =
aResource = TOPTEST
Value ==> TKTopTest
Load /home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/TKTopTest.tcl TclScript
aResource = DCAF
Value ==> TKDCAF
Cannot load Debug Browser library. DFBrowser command is not attached
aResource = XSDRAW
Value ==> TKXSDRAW
aResource = XDEDRAW
Value ==> TKXDEDRAW
aResource = AISV
Value ==> TKViewerTest
1
Draw[3]>
Ok… Then… Back to where I left off with the non-debian install.

Poking around I guess the application can’t find libDFBrowser.so
jonas@unbuntu2:~$ locate libDFBrowser.so
/home/jonas/OCC_orig_tar/opencascade-6.2.0/tools/ocafbrowser/Linux/qt/lib/libDFBrowser.so
/home/jonas/OCC_orig_tar/opencascade-6.2.0/tools/ocafbrowser/Linux/fl/lib/libDFBrowser.so
All right lets try:
sudo ln -s  /home/jonas/OCC_orig_tar/opencascade-6.2.0/tools/ocafbrowser/Linux/fl/lib/libDFBrowser.so /usr/lib/libDFBrowser.so

Soo… Close
Need to do the following:
Load /home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/src/DrawResources/TKTopTest.tcl TclScript (doesn’t seem right)

Cannot load Debug Browser library. DFBrowser command is not attached  (I think I’m missing something obvious, by the lack of posts on this….

Posted in Uncategorized | Leave a comment

Building Opencascade from source for I386 for Ubuntu Linux. Continued even a little more

Recapping.. I downloaded the tar source, unzipped it compiled it.
Now then the deb package gets deployed it supposed to stick everything into the “Linux Filesystem Hierarchy Standard (FHS) locations: libraries in /usr/lib, headers in /usr/include, executables in /usr/bin.”
Apparently since the open cascade had so many header files they were place in /usr/include/opencascade instead of /usr/include/ I think this will have some implications that I don’t fully understand at the moment

(in the directory where the .debs are).
sudo dpkg -i *.deb

jonas@unbuntu2:~$ cd OCC_orig_tar
jonas@unbuntu2:~/OCC_orig_tar$ ls
libopencascade6.2-0_6.2.0-7_i386.deb opencascade-6.2.0 opencascade_6.2.0-7.dsc opencascade_6.2.0.orig.tar.gz
libopencascade6.2-dev_6.2.0-7_i386.deb opencascade_6.2.0-7.diff.gz opencascade_6.2.0-7_i386.changes opencascade-tools_6.2.0-7_i386.deb
jonas@unbuntu2:~/OCC_orig_tar$ sudo dpkg -i *.deb
[sudo] password for jonas:
(Reading database … 118524 files and directories currently installed.)
Preparing to replace libopencascade6.2-0 6.2.0-7 (using libopencascade6.2-0_6.2.0-7_i386.deb) …
Unpacking replacement libopencascade6.2-0 …
Preparing to replace libopencascade6.2-dev 6.2.0-7 (using libopencascade6.2-dev_6.2.0-7_i386.deb) …
Unpacking replacement libopencascade6.2-dev …
Preparing to replace opencascade-tools 6.2.0-7 (using opencascade-tools_6.2.0-7_i386.deb) …
Unpacking replacement opencascade-tools …
Setting up libopencascade6.2-0 (6.2.0-7) …

Setting up libopencascade6.2-dev (6.2.0-7) …
Setting up opencascade-tools (6.2.0-7) …
Processing triggers for libc6 …
ldconfig deferred processing now taking place
jonas@unbuntu2:~/OCC_orig_tar$

Ok, now I’m a little curious about what is getting put where.
You can find this out by doing this:
jonas@unbuntu2:~/OCC_orig_tar$ dpkg –info libopencascade6.2-0_6.2.0-7_i386.deb
new debian package, version 2.0.
size 27601952 bytes: control archive= 3740 bytes.
752 bytes, 16 lines control
5771 bytes, 90 lines md5sums
135 bytes, 7 lines * postinst #!/bin/sh
132 bytes, 7 lines * postrm #!/bin/sh
2957 bytes, 86 lines shlibs
Package: libopencascade6.2-0
Source: opencascade
Version: 6.2.0-7
Architecture: i386
Maintainer: Adam C. Powell, IV <hazelsct@debian.org>
Installed-Size: 87552
Depends: libc6 (>= 2.6-1), libgcc1 (>= 1:4.2.1), libgl1-mesa-glx | libgl1, libglu1-mesa | libglu1, libstdc++6 (>= 4.2.1), libx11-6, libxmu6, libxt6, tcl8.4 (>= 8.4.5), tk8.4 (>= 8.4.5)
Section: non-free/libs
Priority: extra
Description: OpenCASCADE CAE platform shared library
OpenCASCADE is a suite for 3D surface and solid modeling, visualization, data
exchange and rapid application development. It is an excellent platform for
development of numerical simulation software including CAD/CAM/CAE, AEC and
GIS, as well as PDM applications.
.
This package contains the shared library.
jonas@unbuntu2:~/OCC_orig_tar$ dpkg-deb –contents libopencascade6.2-0_6.2.0-7_i386.deb
drwxr-xr-x root/root 0 2008-04-24 08:31 ./
drwxr-xr-x root/root 0 2008-04-24 08:27 ./usr/
drwxr-xr-x root/root 0 2008-04-24 08:31 ./usr/lib/
-rw-r–r– root/root 3916 2008-04-24 08:31 ./usr/lib/libStdLPlugin.so.0.0.0
-rw-r–r– root/root 2164200 2008-04-24 08:31 ./usr/lib/libTKMath.so.0.0.0
-rw-r–r– root/root 2608808 2008-04-24 08:31 ./usr/lib/libTKTopAlgo.so.0.0.0
-rw-r–r– root/root 510576 2008-04-24 08:31 ./usr/lib/libTKCDF.so.0.0.0
-rw-r–r– root/root 607248 2008-04-24 08:31 ./usr/lib/libTKOpenGl.so.0.0.0

There’s a lot more I just got it out there.

Now just a quick test to see if one of these files is really there.
jonas@unbuntu2:~/OCC_orig_tar$ sudo updatedb
[sudo] password for jonas:
jonas@unbuntu2:~/OCC_orig_tar$ locate libStdLPlugin.so.0.0.0
/usr/lib/libStdLPlugin.so.0.0.0
/home/jonas/OCC_orig_tar/opencascade-6.2.0/debian/libopencascade6.2-0/usr/lib/libStdLPlugin.so.0.0.0
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/adm/make/StdLPlugin/.libs/libStdLPlugin.so.0.0.0
/home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/adm/make/StdLPlugin/.libs/libStdLPlugin.so.0.0.0T
jonas@unbuntu2:~/OCC_orig_tar$
Yep all there…. I think I must have been from Missouri in a past life… There are so many files in the OCC_orig_tar sub-folders I’m loosing the trees in the forest.
I still need to get the non-platform dependant .deb files from. Going back to the original instructions:

For me the problem was I don’t have a amd64 processor… So that’s why I needed to build from source.
I think I’m going to put the _all.deb files into a different sub-directory and backup on my thumb drive..
(I’m planning on whipping my drive again and re-install with the next version of ubuntu… and summarize with a nice set of install directions on my web page… oops digressing here
jonas@unbuntu2:~$ mkdir OCC_all_deb
jonas@unbuntu2:~$ cd OCC_all_deb
jonas@unbuntu2:~/OCC_all_deb$ wget http://lyre.mit.edu/~powell/opencascade/opencascade-doc_6.2.0-7_all.deb–08:30:41– http://lyre.mit.edu/~powell/opencascade/opencascade-doc_6.2.0-7_all.deb
=> opencascade-doc_6.2.0-7_all.deb'
Resolving lyre.mit.edu... 18.53.0.135
Connecting to lyre.mit.edu|18.53.0.135|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8,031,516 (7.7M) [application/x-debian-package]

100%[================================================================================================================================>] 8,031,516 79.26K/s ETA 00:00

08:32:25 (75.67 KB/s) - opencascade-doc_6.2.0-7_all.deb’ saved [8031516/8031516]

jonas@unbuntu2:~/OCC_all_deb$ wget http://lyre.mit.edu/~powell/opencascade/opencascade-examples_6.2.0-7_all.deb
–08:33:20– http://lyre.mit.edu/~powell/opencascade/opencascade-examples_6.2.0-7_all.deb
=> opencascade-examples_6.2.0-7_all.deb'
Resolving lyre.mit.edu... 18.53.0.135
Connecting to lyre.mit.edu|18.53.0.135|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13,043,698 (12M) [application/x-debian-package]

100%[================================================================================================================================>] 13,043,698 79.23K/s ETA 00:00

08:36:07 (76.27 KB/s) - opencascade-examples_6.2.0-7_all.deb’ saved [13043698/13043698]

jonas@unbuntu2:~/OCC_all_deb$ ls
opencascade-doc_6.2.0-7_all.deb opencascade-examples_6.2.0-7_all.deb
jonas@unbuntu2:~/OCC_all_deb$

I guess all is have to do know is to install the packages and check for missing dependencies:

jonas@unbuntu2:~/OCC_all_deb$ dpkg -i *.deb
dpkg: requested operation requires superuser privilege
jonas@unbuntu2:~/OCC_all_deb$ sudo dpkg -i *.deb
[sudo] password for jonas:
Selecting previously deselected package opencascade-doc.
(Reading database … 118524 files and directories currently installed.)
Unpacking opencascade-doc (from opencascade-doc_6.2.0-7_all.deb) …
Selecting previously deselected package opencascade-examples.
Unpacking opencascade-examples (from opencascade-examples_6.2.0-7_all.deb) …
Setting up opencascade-doc (6.2.0-7) …

Setting up opencascade-examples (6.2.0-7) …
jonas@unbuntu2:~/OCC_all_deb$ sudo apt-get -f install
Reading package lists… Done
Building dependency tree
Reading state information… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
jonas@unbuntu2:~/OCC_all_deb$

Wow… now that just seemed way to easy….
Now I want to get an idea where all this stuff got put..
dpkg-deb –contents opencascade-doc_6.2.0-7_all.deb
Tells me basically everything gets dumped under:
/usr/share/doc/opencascade-doc/doc/
Manually checking: Yep all there 🙂

Now checking the other file:
dpkg-deb –contents opencascade-examples_6.2.0-7_all.deb
Tells me that everything gets dumped into:
/usr/share/doc/opencascade-examples/
Looks like it did that..

Ok…. Now here’s the magic moment….
Will DRAWEXE fire up from a fresh terminal session and can I pload ALL (which loads in all the plugins..)
Answer is:
jonas@unbuntu2:~$ DRAWEXE
the CASROOT variable is mandatory to Run OpenCascade
No default file
% % pload ALL
Plugin file name has not been specified. Defaults to DrawPlugin
Failed to load plugin: Neither CSF_DrawPluginDefaults, nor CASROOT variables have been set
%

Not quite yet…. I think I know what to do, more in the next instalment.

Posted in Uncategorized | Leave a comment

Building Opencascade from source for I386 for Ubuntu Linux. Continued.

I just did a locate opencascade on my drive and it is ming boggling how many source files are in this package… No wonder why this took over a day to compile….
The end result appears to be 3 file .deb files locate in the sub-directory as the opencascade_6.2.0.orig.tar.gz was downloaded to:
libopencascade6.2-0_6.2.0-7_i386.deb
libopencascade6.2-dev_6.2.0-7_i386.deb
opencascade-tools_6.2.0-7_i386.deb

The instructions that I got on what to do with these things was:

  • Install each .deb as root using “dpkg -i *.deb”
  • Run (as root) “apt-get -f install” to get any missing dependencies

This didn’t seem to work.. Here’s what I got.
jonas@unbuntu2:~$ sudo dpkg -i libopencascade6.2-0_6.2.0-7_i386.deb
[sudo] password for jonas:
dpkg: error processing libopencascade6.2-0_6.2.0-7_i386.deb (–install):
cannot access archive: No such file or directory
Errors were encountered while processing:
libopencascade6.2-0_6.2.0-7_i386.deb
jonas@unbuntu2:~$ sudo dpkg-i libopencascade6.2-0_6.2.0-7_i386.deb
sudo: dpkg-i: command not found
jonas@unbuntu2:~$ sudo dpkg -i libopencascade6.2-0_6.2.0-7_i386.deb
dpkg: error processing libopencascade6.2-0_6.2.0-7_i386.deb (–install):
cannot access archive: No such file or directory
Errors were encountered while processing:
libopencascade6.2-0_6.2.0-7_i386.deb
jonas@unbuntu2:~$

I need to look at this later..
Ooops obvious what happen after a good night sleep. I was in the correct folder:
jonas@unbuntu2:~$ ls
2008-04-24 Run log Documents Music OCC_deb OCC_Linux_download Pictures Templates
Desktop Examples Notes from 2008-04-22 OCC compilation OCC_Doc_download OCC_orig_tar Public Videos
jonas@unbuntu2:~$ cd OCC_orig_tar
jonas@unbuntu2:~/OCC_orig_tar$ ls
libopencascade6.2-0_6.2.0-7_i386.deb opencascade-6.2.0 opencascade_6.2.0-7.dsc opencascade_6.2.0.orig.tar.gz
libopencascade6.2-dev_6.2.0-7_i386.deb opencascade_6.2.0-7.diff.gz opencascade_6.2.0-7_i386.changes opencascade-tools_6.2.0-7_i386.deb
jonas@unbuntu2:~/OCC_orig_tar$ sudo dpkg -i libopencascade6.2-0_6.2.0-7_i386.deb
[sudo] password for jonas:
Selecting previously deselected package libopencascade6.2-0.
(Reading database … 102969 files and directories currently installed.)
Unpacking libopencascade6.2-0 (from libopencascade6.2-0_6.2.0-7_i386.deb) …
Setting up libopencascade6.2-0 (6.2.0-7) …

Processing triggers for libc6 …
ldconfig deferred processing now taking place.
Now, going to do it to the other 2 i386.debs:
Processing triggers for libc6 …
ldconfig deferred processing now taking place
jonas@unbuntu2:~/OCC_orig_tar$ sudo dpkg -i libopencascade6.2-0_6.2.0-7_i386.deblibopencascade6.2-dev_6.2.0-7_i386.deb
jonas@unbuntu2:~/OCC_orig_tar$ sudo dpkg -i libopencascade6.2-dev_6.2.0-7_i386.deb
Selecting previously deselected package libopencascade6.2-dev.
(Reading database … 103148 files and directories currently installed.)
Unpacking libopencascade6.2-dev (from libopencascade6.2-dev_6.2.0-7_i386.deb) …
Setting up libopencascade6.2-dev (6.2.0-7) …
jonas@unbuntu2:~/OCC_orig_tar$ sudo dpkg -i opencascade-tools_6.2.0-7_i386.deb
Selecting previously deselected package opencascade-tools.
(Reading database … 118517 files and directories currently installed.)
Unpacking opencascade-tools (from opencascade-tools_6.2.0-7_i386.deb) …
Setting up opencascade-tools (6.2.0-7) …
jonas@unbuntu2:~/OCC_orig_tar$

Alrighty…. This is striking me as a bit odd. The compiler takes days to run, but the .debs only take minutes to install?? I think the pieces may have been installed already…
I thought the .deb would install in the same sub-directorys as OCC would, put appears that it didn’t: /home/jonas/OCC_orig_tar/opencascade-6.2.0/ros/adm/make/TKV3d/.libs/libTKV3d.so.0.0.0
I need to make some inquires on this..

Posted in Uncategorized | Leave a comment

Building Opencascade from source for I386 for Ubuntu Linux