Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-05-2013, 13:22   #16
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,320
Re: OCPN installation on Ubuntu 12.10 64bit fails.

Pavel, one more question about Virtualbox, for a Dell Inpiron XPS Laptop with Win7 and 64bit OS. Should I install the 64bit version of Virtualbox, even though OpenCPN is currently 32 bit? Thanks.

Also it has 8gb memory, should I set the VM memory for Opencpn to 512mb or 1 gb?

Also what would you suggest for a 'virtual' disk file for running Ubuntu and Opencpn with all the stuff needed?

--Will I be able to access my chart files outside the VM on my Windows C:/Data/Charts directory?

Thanks
__________________

__________________
rgleason is offline   Reply With Quote
Old 01-05-2013, 13:56   #17
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: OCPN installation on Ubuntu 12.10 64bit fails.

Rick...
I would install a 64bit VirtualBox for sure. If you give the guest system 1GB of memory it will sure be happier although with 512MB it will run just fine. I usually don't give my Linux VM's more than the default 8GB of dynamically allocated diskspace as they usually don't live very long and it's enough to have a complete build environment for OpenCPN set up.
To share your charts with the guest OS you can use the "shared folders" in VirtualBox - see Chapter*4.*Guest Additions and VirtualBox: access Windows-host shared folders from Ubuntu-guest

Pavel
__________________

__________________
nohal is online now   Reply With Quote
Old 01-05-2013, 14:22   #18
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,320
Re: OCPN installation on Ubuntu 12.10 64bit fails.

VERY helpful. Thank you! I was just starting to read the details in the manual... now I can install.
__________________
rgleason is offline   Reply With Quote
Old 01-05-2013, 15:48   #19
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,320
Re: OCPN installation on Ubuntu 12.10 64bit fails.

Installed VirtualBox. It was a breeze. No setting up the first Virtual Machine, Type-Linux Version- Unbuntu - Should it be 64bit? or 32 bit? I'm picking 64bit.
Also selected: Virtual HD 8 gb, VDI Virtual Disk Image, Dynamic Allocation 8 gb.
Under settings there is a Shared Folder to set up access to charts on my Windows machine side.
__________________
rgleason is offline   Reply With Quote
Old 01-05-2013, 15:52   #20
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: OCPN installation on Ubuntu 12.10 64bit fails.

Rick...
It depends on which version of Ubuntu you want to install. It makes little to no sense to have a 64bit VM for a 32bit edition of Ubuntu and it's obviously impossible to install a 64bit Ubuntu on a 32bit VM...

Pavel
__________________
nohal is online now   Reply With Quote
Old 01-05-2013, 16:37   #21
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,320
Re: OCPN installation on Ubuntu 12.10 64bit fails.

I've set up a Virtual Machine named 'Linux-opencpn' as above.
I find under C:/users/rick/VirtualBox VMS/Linux-Opencpn.vdi "VDI" =Virtual Disk Image.
Yet in VirtualBox VM when I push "Start" for the machine, it eventually comes up 'no bootable disk'. Settings - Storage - under Controller SATA - I find 'Linux-Opencpn' and highlight it which shows detailed vdi information that appears correct. Under Attributes, I hover on the disks and message appears below "Chose or create a virtual hard disk below." Which when clicked allows me to set the selected vdi to 'linux-opencpn.vdi' Yet when I hit "Start" get 'no bootable disk'.

Looks like I need to read the install instructions!
__________________
rgleason is offline   Reply With Quote
Old 01-05-2013, 16:42   #22
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: OCPN installation on Ubuntu 12.10 64bit fails.

Rick...
You just "bought a new clean computer", you must insert that shiny installation media (iso file with ubuntu) to its (virtual) cd-rom drive and install some OS on it...
VirtualBox probably told you that the first time you "powered up" that VM.


Pavel
__________________
nohal is online now   Reply With Quote
Old 01-05-2013, 17:00   #23
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,320
Re: OCPN installation on Ubuntu 12.10 64bit fails.

Pavel, Got it now. ... I was wondering how I'd load Ubuntu without having a disk. That solves two problems I was having. Thanks.
__________________
rgleason is offline   Reply With Quote
Old 01-05-2013, 18:51   #24
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,320
Re: OCPN installation on Ubuntu 12.10 64bit fails.

Thinking ahead as Ubuntu downloads... After there is an OS environment, I must
1. Install GIT for Linux.
2. Git clone origin/master onto the Virtual Disk Image
3. Git clone weather_routing from sean/grib_enhancements
4. Git clone climatology_routing from sean/grib_enhancements
5. cd build and issue cmake .. and cmake --build . Other Linux commands
6. then I copy the compiled dll's and issue a command to run Debug mode.

7. Is there some program which is like MSVC but for Linux that is a user friendly Compiler?
--Gnu Compiler
--MiniGW - I think Sean mentioned it.

Gnu compiler may already be installed with ubuntu
try as --version
__________________
rgleason is offline   Reply With Quote
Old 01-05-2013, 19:02   #25
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: OCPN installation on Ubuntu 12.10 64bit fails.

1. Play with your new OS a bit to get familiar with how Linux works - there's a lot to watch: https://www.youtube.com/results?sear...be.vsRTBAEr0ZM
2. Play with it more
3. Install Linux version of OpenCPN from the official package
4. Play with it
5. Read well Compiling - Linux | Official OpenCPN Homepage - the instructions to install all the dependencies are there
6. Follow these instructions to get OpenCPN to build
7. My favourite is CodeBlocks, Dave's KDevelop AFAIK (Both in the Ubuntu SW repositories)
Then plugins are a piece of cake - almost the same as on windows. The terms "debug" and "release" work a bit differently for the linux builds, but we will get to it later.

Pavel
__________________
nohal is online now   Reply With Quote
Old 01-05-2013, 23:15   #26
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,320
Re: OCPN installation on Ubuntu 12.10 64bit fails.

Ubuntu Desktop installed. Req'd a second download because iso image corrupted.
Opencpn and Compiling tomorrow.
__________________
rgleason is offline   Reply With Quote
Old 02-05-2013, 08:33   #27
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,320
Re: OCPN installation on Ubuntu 12.10 64bit fails.

Good Morning. Here is a summary of what is done:

Close Virtualbox and save instance.
Start Virtualbox
Start Ubuntu
Click on Dash Home and type update Select Update Manager and run it.
Or Click upper right star icon and select "Software up to date"

Check version number
check from within Unity or Terminal:
Terminal (keyboard shortcut: Ctrl+Alt+T) lsb_release -a
lsb_release -a
-Release 12.04.2 LTS precise

Following Compiling - Linux | Official OpenCPN Homepage

Type into terminal - (cannot cut from Windows and paste):
sudo apt-get -s install libgtk2.0-dev gettext git-core cmake gpsd gpsd-clients libgps-dev build-essential wx-common libwxgtk2.8-dev libglu1-mesa-dev libgtk2.0-dev wx2.8-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev
Results: long string of commands that look ok, no not found.

Type into terminal - (cannot cut from Windows and paste).
sudo apt-get install libgtk2.0-dev gettext git-core cmake gpsd gpsd-clients libgps-dev build-essential wx-common libwxgtk2.8-dev libglu1-mesa-dev libgtk2.0-dev wx2.8-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev (Then right click and pick copy to put in clipboard)

Results: Difficulty getting password accepted, after 3x's it worked. One package missing, right arrow back and fix name of package. Execute again and needs 137mb of space, Y continue.

Installs many dependencies and files. No apparent errors.

Then Right click paste to repeat the command at the prompt.
sudo apt-get install libgtk2.0-dev gettext git-core cmake gpsd gpsd-clients libgps-dev build-essential wx-common libwxgtk2.8-dev libglu1-mesa-dev libgtk2.0-dev wx2.8-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev (Then right click and pick copy to put in clipboard)
Results: Reads package lists and builds dependency tree, reads state info, then confirms each package is the newest version.

From Compiling - Linux | Official OpenCPN Homepage
"For late betas and 3.2, libportaudio2 and portaudio19-dev (Ubuntu), may be called libportaudio and libportaudio-dev, or similar on other distros, must be installed, due to new sound code for linux."

So execute same command with those packages:
sudo apt-get install libportaudio libportaudio-dev
Results: "Unable to locate package libportaudio"

Do I need to install libportaudio and libportaudio-dev? Now? -Using Ubunto 12.04.2

Also aren't we supposed to be able to copy/paste from Windows to Ubuntu (how about Terminal too?) I have these enabled in Vitrualbox. (Copy-Paste does work within Terminal)
__________________
rgleason is offline   Reply With Quote
Old 02-05-2013, 08:40   #28
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: OCPN installation on Ubuntu 12.10 64bit fails.

Rick...
You already installed it (libportaudio2 portaudio19-dev) And you are on Ubuntu, so you can ignore the instructions for other distributions...

Pavel
__________________
nohal is online now   Reply With Quote
Old 02-05-2013, 08:46   #29
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: OCPN installation on Ubuntu 12.10 64bit fails.

Re. copy-paste: Yes, we are supposed to be able to do it and at least for me it works fine as long as I have the Clipboard integration turned on (Devices->Shared clipboard->Bidirectional in the virtual machine's menu) and of course the guest additions installed in the VM.
Note, that in Ubuntu's terminal Ctrl-C/Ctrl-V is Ctrl-Insert/Shift-Insert
__________________
nohal is online now   Reply With Quote
Old 02-05-2013, 08:52   #30
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,320
Re: OCPN installation on Ubuntu 12.10 64bit fails.

OK,Just continuing

Cmake must be > Version 2.8
sudo apt-get install cmake
Result: Already newest version.
apt-get update cmake
Result: Had to get up to the root cd / then issue again. Checked many packages. Fetched 3165kb.
apt-cache policy cmake
Result: Installed 2.8.7-0ubuntu5

Download Source Code for Opencpn
Run this to get your local copy of the source code:
git clone git://github.com/OpenCPN/OpenCPN.git
From the root directory above issued.
Result: Fatal could not create work tree dir 'OpenCPN' : Permission denied.

Re: Clipboard... Ah Ha, have not done Guest additions to VirtualBox yet. Thanks.
__________________

__________________
rgleason is offline   Reply With Quote
Reply

Tags
installation

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 05:04.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.