Archive for the ‘Ubuntu C++ OCC’ Category

Hunkering down in anticipation of 8.04.1

Thursday, May 22nd, 2008

Ok.. So American Idol is now over and David Cook as won.
I wanted Mr. Cook to “win” but thought David A would triumph since I thought he had the better performance in the last competition.  Go figure..
Overall, I enjoyed David C’s creative and Zen like calmness in his performances.  Either way, I think both of them did fantastic…

Gee… I wonder what I’m going to do till January?  So far I’ve managed to get the screen resolution more or less working in my better machine and have resolved to be patient and hopeful that the kinks in 8.04 will resolve themselves in 8.04.1.
I played around a little with opencascades MakeBottle.cxx but so far without success.  I think I’m at a point where I need to slow down in order to speed up.  I originally I went through the on-line C++ tutorial[Need to a link here].   It’s understandable  but I think it was a little bit too much to fast to get it to stick in my brain.  Subsequently, I ran across a book in the library, “Thinking in C++” by Bruce Eckel.  It took me a little bit of time to get used to his writing style, but I think this author will be good for me.  His books are also downloadable.   Basically, I can either pickup the hardcopy, or review in my browser.  I’ve gone to basically slowing down reading it line by line.  It seems his style is to basically take a single concept, roughly explain it, build on it and review it.
So… basically, I would call this slow going forward progress which is what I need at the moment..
More Later….

Solving the issue for Opencascade for Gutsy Gibbon

Tuesday, April 8th, 2008

Ok… Researching this it seems that everyone and there uncle seems to have had this issue trying to install Opencascade on Ubuntu….
I guess this is my attempt.
Looking over the numerous threads spread across the internet this is the one it thought I pursue first:

At the bottom of the thread was this:
“Just FYI, this also works on Ubuntu Feisty. You also need to install libstdc++2.10-glibc2.2 then create a symbolic link from /usr/lib/ to /usr/lib/
So checking stuff out.

jonas@jonas-desktop:~$ sudo updatedb
[sudo] password for jonas:
jonas@jonas-desktop:~$ locate /usr/lib/
jonas@jonas-desktop:~$ cd /usr/lib/
bash: cd: /usr/lib/ Not a directory
jonas@jonas-desktop:~$ cd /usr/lib
jonas@jonas-desktop:/usr/lib$ ls -a

This has me befuddled at the moment…It appears that is not a folder. So what is it?? I sure there’s a way from spitting this out from the command line but using the file browser this appears to a link to a shared library( /usr/lib/ to be precise) Ok so I think the command line I need to to the link is:

sudo ln -s /usr/lib/

Results are:

jonas@jonas-desktop:~$ sudo ln -s /usr/lib/
[sudo] password for jonas:
jonas@jonas-desktop:~$ sudo updatedb
jonas@jonas-desktop:~$ locate /usr/lib/

It looks like it took… Know the test is to run the document installation script again and see what happens:
jonas@jonas-desktop:~$ cd Opencascade_documentation
jonas@jonas-desktop:~/Opencascade_documentation$ csh
% ls
Autorun.inf images install.bat install.csh OpenCASCADE_doc.tgz package readme.htm
% cd -x install.csh
Usage: cd [-lvn] [<dir>].
% csh -x install.csh
setenv JAVAHOME .
set OS_NAME=`uname`
if ( Linux == SunOS ) then
if ( Linux == Linux ) then
InstallShield Wizard

Initializing InstallShield Wizard…

Preparing Java(tm) Virtual Machine…

I guess it took..
According to the readme.htm file in the download the documentation should have dumped into /opt/OCCTDocumentation6.2.0 directory
Well it didn’t…. I did a updatedb and tried to locate OCC and well here are the results.
jonas@jonas-desktop:~/Opencascade_documentation$ locate occ
jonas@jonas-desktop:~/Opencascade_documentation$ locate OCC

The pdf was something I found earlier…. Ah Heck…. It didn’t error out but it didn’t do what it was supposed to do.. Time for more research….. To quote the penguins from the movie Madagascar when they reach the Antarctic… Well… this sucks…. Time for bed..

Installing Java on Ubuntu… cont.

Thursday, April 3rd, 2008

Continuing from yesterday. I pulled these up from
the other recommend galternatives for alternative implementations that’s available.. Sounds cool I guess I give it a try.
sudo apt-get install galternatives
you can fire it up by typing galternatives in the terminal..
I played around with it.. Looks interesting.

According to these instructions the author suggests setting up symlink that points to:usr/lib/jvm/java-6-sun

from terminal you need to get to the root:

cd /
sudo mkdir /usr/java
sudo ln -s /usr/lib/jvm/java-6-sun /usr/java/jdk
If I understand the rational to this, I can switch to different jdk’s and and not screw around with resetting environment variables.
As I recall, I had Opencascade install melting down on the install because I wasn’t using the C-shell and BASH shells correctly.
According to the instructions I need to JDK declarations to the tail end of /etc/bash.bashrc:
export JAVA_HOME=/usr/java/jdk
export PATH=$PATH:$JAVA_HOME/bin
It think I understand what’s going on here, but not positive.
Btw. It just took me about an hour to figure out but the don’t but spaces around the equal sign doh!!.. (Learn something new every day)

Now I need to create a file to set up a file for csh:
But first. Time for bed…

Btw… I called it right on American Idol…

More on Installing Java 6 on Ubuntu

Wednesday, April 2nd, 2008

Allright…. got a few minutes before bed…

I really like the instructions on this link:

But…. either the sight is down your I need Java 6 installed on this page to view the page on how to install Java 6…. Hmmm… I guess I got time to fire up the XP machine and flip the switch on the KVM test with explorer and firebox… I guess the sight must be down.. Good thing I have hard copy.
I’m paraphrasing Steve Loughran’s post here:
Open office which comes with Ubuntu out of the box need gcj the gnu classpath JVM. This guy’s approach is to do a Java brain transplant…. Out with the GNU Java and in with SUN… His recommendation is you can do this via synaptic simultaneously without fighting the system…
No other instructions seem to have worked painlessly so far so lets try these:
Fire up Synaptic and search for the term java.

(Ah heck…… I still have a flag on sun-java6 flag for uninstall. When I apply it. I get this message:
“E: sun-java6-bin: Package is in a very bad inconsistent state – you should”
I should what?? When I googled this the hits seem to indicate that I should install than uninstall this package… Allright lets give that a try… It seems like mark for upgrade is only option.. Hey… a gui liscense box that actually works. Ok… lets try uninstall and remove completely including config files…. (whats the worst thing that can happen) … I guess I should save this eh?? It seems like I’m back to the beginning now..
At this point, I’m going to do a windows thing and shut everything down and reboot…
refire synaptic.
Flag for installation:
sun-java6-jdk (This automatically flags the bin and JRE)
(This is probably above beyond whats required for OCC)
scroll up Flag for removal
gcj-4.2base (instructions where old they said 4.1)
Synaptic also says it will remove:
I hope this guy knows what he’s doing … here goes.
I wanted to past the result the synaptic package managers details but control-V doesn’t seem to work. It appears that all is well. Hmmm. The things that weird here is it didn’t pop up a license agreement.
Looks like I have a few more things to do according to the article…
Time for bed…

Problems installing Java 6 on Ubuntu

Wednesday, April 2nd, 2008

Lets see I can get this done before American Idol tonight.
Ok.. I was following the sequence of what I needed to get installed prior to running Open Cascade on Ubuntu and I had a bit of a meltdown when I tried to install the Java 6 library. From some of the things I’ve been seeing on the net, apparently I’m not alone. I looked at three references from the net that looked sort of interesting:

I had printed this links from win 2000 machine running Explorer and I’m amazed how much richer they are looking at these pages in Ubuntu running on firefox. I wonder if the opposite is true. Of course, the link I really liked the antbook doesn’t seem to be working at the moment.
It uses synaptic to simultaneously take off the non-sun Java and install the Sun version.
Anyway Idol just started and I missed Brook. Darn it…
I think that I missed some magic Keystroke combination, doing what I did.
Perhaps I can find it on my output while reading Idol…
Need to figure out how to undo my partial install. I think I can do it through synaptic.
I fired up synaptic this message popped up:
E: dpkg was interrupted, you must manually run ‘dpkg –configure -a’ to correct the problem.
E: _cache->open() failed, please report.

Then I went into terminal and did the following:

jonas@jonas-desktop:~$ cd\\
bash: cd\: command not found
jonas@jonas-desktop:~$ cd..
bash: cd..: command not found
jonas@jonas-desktop:~$ cd ..
jonas@jonas-desktop:/home$ cd ..
jonas@jonas-desktop:/$ cd ..
jonas@jonas-desktop:/$ cd ..
jonas@jonas-desktop:/$ sudo dpkg –configure -a
[sudo] password for jonas:
Setting up java-common (0.26ubuntu1) …

Setting up odbcinst1debian1 (2.2.11-16) …

Setting up unixodbc (2.2.11-16) …

Setting up gcc-3.3-base (1:3.3.6-15ubuntu2) …
Setting up libstdc++5 (1:3.3.6-15ubuntu2) …

Processing triggers for libc6 …
ldconfig deferred processing now taking place

Clicked the box not I got a message about a broken package. Something about needing the broken filter…

American Idol prediction. Ramielle or Christie will be voted off.

Ok ran the filter it popped up. Sun-java6-bin as broken. I ran a search on just java and it looks like nothing else java6 is loaded. I marked it for complete removal and applied the changes, hopefully I’m back to where I was. When I get a chance I want to use the antbook suggestion on how to load and see what happens.

How to Install Open Cascade in Ubuntu from a downloaded tgz file.

Sunday, March 30th, 2008

Kind of yucky out today. To messy to do yard work 😉 I’m trying to convince the family to go for a walk but doesn’t look like it’s going to happen… Just me and the dogs. I’m doing some re-thinking about the end goal… If I wan’t to get drawexe working first, I shouldn’t have to worry about gnu C++ compiler at this time. I guess there’s a small movement to bust up the Opencascade library into smaller components. I’m not sure what the rational is, but it seems to make sense to a bunch of people. They’re looking for testers…. I’m thinking that perhaps, I might want to try on a clean install on the next version of Ubuntu, along with the latest version of the compiler. In the mean time, I think I found magic set of instructions that should get drawexec to fire up. Apparently, someone from this sight found some on a french site. (On the remote chance that some deletes the post. I copied and clean it up below. Something for me to try and see if works when I get back from the walk.

Here’s the link:
which got the info the french ubuntu site:
(1) Install c shell
sudo apt-get install csh
(2) Install Sun Java 6
sudo apt-get install sun-java6-jdk
(3) Make sure, Sun Java 6 is used:
sudo update-alternatives –config java
Set as default the one entry that contains this string:
(4) Untar the tar.gz file
tar xfvz /path/to/file.tar.gz
(5) Run the installer
sudo java -cp /path/to/untarred/Linux/setup.jar run
6) Getting the test suite to run:
6.1)setting up the enviroment variables
The test suite was meant to be started with two commands:
. /opt/OpenCASCADE6.2.0/ros/env.ksh #set up the environment variables
7.1) Linking the tcl and Tk libraries
After this it was searching for tcl and tk libraries, so I had to create some symbolic links:
sudo ln -s /usr/lib/ /usr/lib/
sudo ln -s /usr/lib/ /usr/lib/
Adjust the version and the path to which is valid on your system.

Installing gnu C++ compiler in Ubuntu Linux for Open Cascade OCC

Saturday, March 29th, 2008

Spring has just about sprung…. Got home tonight and worked a little on the back yard with the family….. While dumping out the thawed compost in the garden, and moving the compost bin, I was thinking…. Wouldn’t it be cool to have a small rotary composter, powered by a little direct drive wind turbine with a huge honking reduction 1000:1 or something. Boss lady tells me, I got to get the rocks moved first 🙁
Years ago. I was an Application Engineer for gearbox company who worked on a project on a gear reduction unite for a converted cement kiln used on a Rotary Digester. My understanding was the technology was pioneered by some german brewmaster and the thing was going to used in Dolly Parton’s Dollywood. Don’t know if Dolly still has her digester but here’s so info on the topic: Rotary Digesters.
Ok.. one more comment on Rotary kilns and we’re going back on topic. The gear boxes that drive these things typically have huge reductions, because the rotating drum rotates heavy loads very slowly. The thing to watch out for is if there is a imbalance that causes the drive to be back driven. Typically these drives (if I remember correctly) have to laid out with some type of centrifugal brake that keeps the motor from over speeding and blowing up…
Anyway back to install the GNU C++ compiler. In my last post, I talked about the synaptic package manager for installing games. So if you have no idea what I’m talking about, go back a couple of days in my blog posts.
When I first searched Synaptic, nothing came up when I searched for C++. It took me a while figure out the trick is you need to search for G++ not C++. I suppose this sense to someone somewhere. You’ll notice that there a bunch of versions of the compiler. Rather than just picking the latest version, I thought I do a little research here:
Open cascade system requirements
Oh great… looks like none gcc versions match Synaptic (if I’m reading this correctly).
Time to do a little more research here. This looks promising:
Installing Opencascade on Debian Linux This link points to:
Compilation on Fedora Core 5.0 (Not sure about version but this looks critical to fix system once OCC installed.

Ok… This looks promising. There’s a MIT guy named Adam Powell who seems to have his game on… Some links to investigate:

OpenCASCADE .deb package: call for testing!
OpenCASCADE .deb packages
Ok…. No compiler install tonight… Time for bed.

Getting my games back.

Thursday, March 27th, 2008

Hm.. I mulling over the latest American Idol results.

I’m not suprised that Chikeze got the boot. I was suprised that Syesha was in the bottom 3. Technique was superb (according to my wife whose studied voice).. Gut feel Kristy is next.

Anyway trying to stick to the original outline of what I’m trying to accomplish. Ubuntu provides a utility to add/remove programs know as the Synaptic Package Manager. To fire up the application select System=>Administration=>Synaptic Package Manager . You’ll be prompted for your password. If this is the first time you fire it up you’ll get a little intro. I’m interested in loading up a game called maelstrom

So… I click the search, enter maelstrom. Click on the box to the left of maelstrom, select “Mark for Installation”, then Mark. Then click the checkbox that’s called apply and then click apply again. (If something doesn’t work here make sure your connected (see yesterdays post).

Select Application=>Games=>Maelstrom if your in the mood to destroy some Asteroids.

Next step loading up the gnu C++ compiler.

Installing Ubuntu Linux

Thursday, March 27th, 2008

Ok…. I’m am not an expert in this stuff, although I’m getting better every day. When I first got started on this Ubuntu kick, a friend at work showed me a 10 ten list written by a Linux geek on why he liked Linux. The one that stuck in my mind was that you’re able to surf the net and install Linux on the same PC simultaneously. Maybe I’m weird, but I just think that’s just plain cool. It does work since I’m doing this while I’m typing this.

I started out slowly and I got myself a book out of the library called “Ubuntu for the Non Geek” by Rickford Grant. (I suppose If I really had my game on here I’d have a Amazon link for you to purchase this book and have me make commission… (All in good time Mike)). I followed the book step by step and I gave me a good overview of what you can do with Ubuntu without getting into too much techobabble.

The version of the book, had the Feisty Fawn Ubuntu 7.04 install disk included (although a friend with broadband burned me an install disk with Gutsy Gibbon which I’ve been currently using. Feisty Fawn had install issues but Gusty just fired up(on my machine anyway.)

I’m not going to get into too deep a discussion on how to install the operating system, but I just cover the basics.

  • Stick install boot disk in computer.
  • Reboot.
  • Select option 1) Start or install.
  • Connect to the net (see below)
    Yesterday night while I was watching American Idol (go David Cook), I tried to reloading the operation system without connecting to the net and I got some weird security messages that I never got before. (So I’m trying this again) I think the install disk most phone home or something…
    You’ll notice a computer monitor icon (header to the right). Assuming your running running a wired connection to a router, just click wired network and you should be able to connect to net by clicking on the Firefox Icon. If you’re totally new to Ubuntu, this might take you a little while to figure. Well it did me anyway..
  • Click the “install” icon (it looks like a CD rom player in the upper left corner of the desktop.

Here goes…. I guess I should save this before I keep going.

Your going to get a bunch of time zone, keyboard questions… Answer as appropriate…. The next major question you’ll need to deal with is partitioning the hard drive. (For myself, I have a bunch of Pcs hooked up to a KVM switch, which eliminated the need for a dual boot system) So…. what worked for me, I manually slide the partition size to 100%(I’m not sure I had to do that) and then Guided use entire disk.

After that you’ll get the “who are you” screen… Fill it in along with your passwords. Proceed with install. (make sure you remember your password, you tend to use it alot in Ubuntu)

Ok…. this is going to take a while…. Need to my library website and try to renew my Ubuntu for the Non-geek book… again… Darn…. Apparently I can’t renew it 4 times…Time for a quick trip to the library. Hopefully can get this done, before American Idol results starts…

2008-03-30 After you get the operating system loaded you probably will want to check for updates.  From the upper panel select System ▸ Administration ▸ Update Manager and press Check.
You can control the frequency of updates via: System ▸ Administration ▸ Software Sources, and then Internet Updates.

Exporting Bookmarks in Firefox/Ms Explorer

Tuesday, March 25th, 2008

Ok…. so I’ve been experimenting with this exporting book marks stuff inFirefox and Explorer.

Exporting  bookmarks in Firefox:=>Organize Book Marks=> File=>Export. This seems straight forward enough. I guess for know I’m just going to email it to myself prior to the drive reformat.

Exporting bookmarks in Explorer:=>File =>Import and Export (this will launch the wizard from there

I think that over the long hall it would be cool to come up with some type of script which would part the file, test the link and upload it in a Mysql database for publishing…. I’m thinking this might be a mechaperl project… Oh great another one for the to do list… Yikes…. time to get to the paying job…