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:
- Download (wget or browser):
http://lyre.mit.edu/~powell/opencascade/libopencascade6.2 -0_6.2.0-7_amd64.deb
http://lyre.mit.edu/~powell/opencascade/libopencascade6.2 -dev_6.2.0-7_amd64.deb
http://lyre.mit.edu/~powell/opencascade/opencascade-doc_6 .2.0-7_all.deb
http://lyre.mit.edu/~powell/opencascade/opencascade -examples_6.2.0-7_all.deb
http://lyre.mit.edu/~powell/opencascade/opencascade-tools _6.2.0-7_amd64.deb - Install each .deb as root using “dpkg -i *.deb”
- Run (as root) “apt-get -f install” to get any missing dependencies
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.