Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-05-2013, 08:59   #31
Registered User

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

Rick...
Yes, of course, Linux does not get you break your system as easily as Windows...
You should do all this stuff in your home directory and never ever in root (/) - I suggest getting back to "1. Play with your new OS a bit to get familiar with how Linux works" for that...

Pavel
__________________

__________________
nohal is online now   Reply With Quote
Old 02-05-2013, 13:57   #32
Registered User
 
rgleason's Avatar

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

Have done the following:
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 (WRONG) should be from a user directory.
Result: Fatal could not create work tree dir 'OpenCPN' : Permission denied.

--Answer Pavel says don't execute from the root. Not allowed in Linux.
Go back 3 steps and view instruction videos.
Ok, that was stupid. We need to create a git directory at the User home directory.
Using Ubuntu "Folders" right click "Create new folder" and name it 'opencpn-git'

Git Setup/
git config --global user.name "John Doe"
git config --global user.email johndoe@example.comgit config --list to check the settings.

Download Opencpn source Code
With VM open and Ubuntu running .
Go to top icon Dash and in command prompt
(Did this a little differently than on Opencpn website)
This command will create a new directory opencpn-git in the current directory.git

git clone git://github.com/OpenCPN/OpenCPN.git opencpn-git
Counting object//16384, Compressing 4797 objects, done, Receives objects, done.
Resolving deltas, done.
after many objects...completes.make

Then find the new opencpn-git directory in the folder.
cd opnecpn-git
git pull
mkdir build
cd build
cmake ../
make

All ran fine.

Then when I click on opencpn.exe get an error and opencpn.log says styles.xml not found.
so I copied it to my main folder. Still when I try to execute Opencpn.exe it does nothing. Are there other files needed?

Log file is looking in usr/local/share/opencpn/uidata (which does not exist) for styles.xml and also for the png files for the dashboard.

I am not clear on how this should be set up.
By copying the necessary files to my user directory I got Opencpn started minus charts, which I have to get working with a guest share.

I am not allowed to make a new opencpn directory under usr/local/share/opencpn yet the logfile shows opencpn is looking there.
__________________

__________________
rgleason is online now   Reply With Quote
Old 02-05-2013, 14:46   #33
Registered User
 
rgleason's Avatar

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

Now I am having trouble finding the plugin dlls so I can copy them out to build directory. I'd like to get compressing climatology files for Sean, but this is getting a little bogged down.
__________________
rgleason is online now   Reply With Quote
Old 02-05-2013, 14:59   #34
Registered User

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

Rick...
Just do a
Code:
sudo make install
Your executable will get installed to /usr/local/bin, your plugins to /usr/local/lib/opencpn etc.
A "DLL" has .so extension in Linux, an "EXE" has no extension at all, but has an executable attribute set.

Pavel
__________________
nohal is online now   Reply With Quote
Old 03-05-2013, 09:51   #35
Registered User
 
rgleason's Avatar

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

Pavel,
Thanks for all your help.

I am happy to say VB and Ubuntu with Opencpn now appear to be working with access to shared windows charts folder because of installation of VB Guest Additions, after some effort and redo. I hope to use it go get climatology_pi running and compress big Climate files for Sean.

On Windows 7 (maybe XP and 8) setup
Ubuntu 12.04LTS in VirtualBox 4.2.12 for Windows Hosts
to run Opencpn for Linux and development

Development Debugging Environment - Setup Help
__________________
rgleason is online now   Reply With Quote
Old 03-05-2013, 10:23   #36
Registered User
 
rgleason's Avatar

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

Pavel,

When in Ubuntu Terminal and issue these
Then find the new opencpn-git directory in the folder.
Quote:
cd opencpn-git
git pull
mkdir build
cd build
cmake ../
make
sudo make install
I am building a 'Release' version, ..correct?

When I recompile for updated plugins, do I still issue sudo make install to distribute the plugin files to correct locations?

In order to have a Debug version that can be tested, do I need to install
as you said:

Quote:
"My favourite is CodeBlocks, Dave's KDevelop AFAIK (Both in the Ubuntu SW repositories)"
Do I find these on github? what are SW repositories? Or are they already in the Ubuntu 12.04 system downloaded?
__________________
rgleason is online now   Reply With Quote
Old 03-05-2013, 10:34   #37
Registered User
 
rgleason's Avatar

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

Whoops. I screwed up and issued cmake and make commands from the plugins directory when it should be from the build directory! -Very bad, I am going to have to clean it up. Never done this before.

I notice that the Windows Opencpn/plugins has _pi folders for each plugin and pluginlocalization.cmake and CMakeLists.txt only. So I'm deleting the others.

This appears to have worked, and issuing sudo cmake install distributes the project, and I can bring up the 10 new plugins including sean's watchman and rtlsdr and climatology!
__________________
rgleason is online now   Reply With Quote
Old 03-05-2013, 11:17   #38
Registered User

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

Quote:
Originally Posted by rgleason View Post
Pavel,

When in Ubuntu Terminal and issue these
Then find the new opencpn-git directory in the folder.
I am building a 'Release' version, ..correct?
No, you are in fact building a debug version. But from a user point of view the only difference is the size of the file, we are not on Windows where everything has to be either release or debug not to be totally broken...
Quote:
When I recompile for updated plugins, do I still issue sudo make install to distribute the plugin files to correct locations?
Yes. Or you can copy them manually. Or you can modify the main app code too look for them in the location where they are built. Depends on what you want to do.
Quote:
In order to have a Debug version that can be tested, do I need to install
as you said CodeBlocks or KDevelop
No, you don't, but it's a bit more convenient to debug from an IDE than from commandline...
Quote:
Do I find these on github? what are SW repositories? Or are they already in the Ubuntu 12.04 system downloaded?
With this one we are kind of back to "1. Play with it to know how it works..."

Pavel
__________________

__________________
nohal is online now   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 09:16.


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.