Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 04-03-2020, 18:53   #76
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OS Linux specific

Rick...


Most linux devs would use something like:


$cd ~
$mkdir Projects
$cd Projects
$clone {OPENCPNREPO}
$ cd opencpn
$mkdir build
$cd build
$cmake ..
bdbcat is offline   Reply With Quote
Old 05-03-2020, 04:07   #77
Registered User

Join Date: Jun 2012
Location: Stockholm, Sweden
Boat: William Lindbergs Warf, Stockholm, Sweden, 1868 Lumber Yacht, 50 feet
Posts: 9
Re: OS Linux specific

My installation from last year wasn’t very stable. Don’t know where I messed it up, probably in removing the “Snap Store” Ocpn v4.99.
For this season I’ve installed a very basic Debian for OS and openplotter, which apparently is not only for RasPI.

Install and setup was easy for a dumb-nut as myself.

Let’s see if I’m still as happy mid season ��
Mackan is offline   Reply With Quote
Old 05-03-2020, 05:47   #78
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: OS Linux specific

https://www.cruisersforum.com/forums...ml#post3086228

Perhaps it is in bdbcat's PPA
https://launchpad.net/~bdbcat/+archive/ubuntu/opencpn
$sudo add-apt-repository ppa:bdbcat/opencpn
$sudo apt-get update

or the Opencpn PPA
https://launchpad.net/~bdbcat/+archive/ubuntu/opencpn
$sudo add-apt-repository ppapencpn/opencpn
$sudo apt-get update


Or perhaps you somehow excluded it?
https://www.cruisersforum.com/forums...ml#post3086236
This answer isn't simple, have to lower the priority of all the other packages by creating another document.... https://askubuntu.com/questions/1702...ges-from-a-ppa
rgleason is offline   Reply With Quote
Old 05-03-2020, 06:05   #79
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: OS Linux specific

Quote:
Originally Posted by bdbcat View Post
Rick...
Most linux devs would use something like:
$cd ~
$mkdir Projects
$cd Projects
$clone {OPENCPNREPO}
$ cd opencpn
$mkdir build
$cd build
$cmake ..
Thanks. Have made Projects file.
May I simply copy my git cloned OpenCPN folder into it as we can in Windows?

Or should I remove/delete that entire folder and start fresh?

Also in linux we don't need to use "git clone ..." just use "clone"? ..or was that shorthand?
rgleason is offline   Reply With Quote
Old 05-03-2020, 06:23   #80
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OS Linux specific

Rick...


1. I would delete your earlier ~/OpenCPN directory, and get a fresh clone in ~/Projects/opencpn. Same for any other projects you have cloned, e.g. WeatherRouting.



2. "clone" was shorthand for "git clone blah-blah"


Dave
bdbcat is offline   Reply With Quote
Old 05-03-2020, 06:24   #81
Registered User

Join Date: Aug 2016
Posts: 152
Re: OS Linux specific

don't copy from Windows.

Windows has different file permissions than Linux.

Of course "git clone URL-of-git-repository"
BlackSea is offline   Reply With Quote
Old 07-03-2020, 06:16   #82
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: OS Linux specific

Blacksea good point. Dave thanks.

I have done this and compiled OpenCPN and the plugins.
However should I have done something like this first to remove the previously installed program?

Quote:
$ sudo apt-get remove opencpn
Will it be ok to ignore that I did not do this, since I assume it just copies over the old install which is also located at
Quote:
"Default install dir is /usr/local"
Then Install the compiled program to /user/local.
Quote:
$ sudo make install
rgleason is offline   Reply With Quote
Old 07-03-2020, 06:50   #83
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: OS Linux specific

Can anyone confirm these statements regarding Installing OpenCPN:
  1. If you use 'sudo make install' when you are building OpenCPN from GIT it will install to usr/share, not usr/local (I think).
  2. If you 'sudo make package' you can install the package using the DEB Package Manager and it will install to the right places (usr/local etc). But ... it will overwrite anything you have there already.
rgleason is offline   Reply With Quote
Old 07-03-2020, 10:28   #84
Registered User

Join Date: Aug 2016
Posts: 152
Re: OS Linux specific

1. It will install with default options to PREFIX /usr/local/
opencpn binary -> /usr/local/bin
all data to /usr/local/share/opencpn


If you want to change in another path ( /usr)
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ../



2. yes.

sudo dpkg -i <your local package>


content of package will be installed in path named above ( default /usr/local )
BlackSea is offline   Reply With Quote
Old 07-03-2020, 11:02   #85
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: OS Linux specific

Blacksea, that's great help. Thank you
One other question.... If I install OpenCPN from a PPA like

https://launchpad.net/~opencpn/+archive/ubuntu/opencpn
Add this PPA to your system
sudo add-apt-repository ppapencpn/opencpn
sudo apt-get update
https://launchpad.net/~bdbcat/+archive/ubuntu/opencpn
ppa:bdbcat/opencpn to your system's Software Sources. (Read about installing)
sudo add-apt-repository ppa:bdbcat/opencpn
sudo apt-get update
Where does that land?

How does that installation play with my compilation of OpenCPN dev version 5.0.522 which is in
Github Local: ~/Projects/opencpn
Installed binaries: usr/local/bin
Should I stay away from the PPA's while building Opencpn?
I was prompted for a 337mb download for the entire PPA earlier. Said NO.

The issue comes up because I just want to install a single plugin, for example, into my installed compiliation of Opencpn.

Is it better to just try to find a deb file and learn how to install those?
Or git clone into the opencpn/plugin/ directory and then rebuild Opencpn?
rgleason is offline   Reply With Quote
Old 07-03-2020, 12:32   #86
Registered User

Join Date: Aug 2016
Posts: 152
Re: OS Linux specific

packages from both repositories land in /usr
ppapencpn is a "stable"
ppa:bdbcat is beta


if both repos are activated, a package with larger package number/version will be installed


Quote:
Is it better to just try to find a deb file and learn how to install those?

sure.

What do you mean "learn"? You don't need a college degree to do that.


which Plugin do you mean?
BlackSea is offline   Reply With Quote
Old 07-03-2020, 17:00   #87
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OS Linux specific

Rick...
If you are working with github master, and plugin development, best to avoid the PPA versions of OCPN. Neither PPA tracks the current github master, so will not be useful for managed plugin development.


Dave
bdbcat is offline   Reply With Quote
Old 07-03-2020, 20:14   #88
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: OS Linux specific

Quote:
Originally Posted by bdbcat View Post
Rick...
If you are working with github master, and plugin development, best to avoid the PPA versions of OCPN. Neither PPA tracks the current github master, so will not be useful for managed plugin development.
Dave

Thanks Dave. This is going into my Ubuntu notes. Really clarifies what I was learning about PPA.
rgleason is offline   Reply With Quote
Old 12-03-2020, 16:48   #89
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Ubuntu - How plugins work? - Glitch with Plugin Manager Config

Installed vdr_pi from my remote repos with git clone, from the opencpn/plugins directory. The plugin clone landed at opencpn/plugins/vdr_pi.

cd vdr_pi/build, compiled the plugin, installed, and tested it.

Now I have git pulled opencpn master branch and tried to build it.
I get errors due to the vdr_pi installation and would like to know what should be done:


ONe of the errors:

Quote:
CMake Error: File /home/rgleason/Projects/opencpn/cmake/in-files/appveyor-upload.sh.in does not exist.
CMake Error at plugins/vdr_pi/cmake/PluginConfigure.cmake:22 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
plugins/vdr_pi/CMakeLists.txt:182 (include)





-- Checking OCPN_FLATPAK:
-- Build type: RelWithDebInfo
-- Optimisation: -O2 -march=native -g



Quote:
-- *** Added plugin: /home/rgleason/Projects/opencpn/plugins/wmm_pi
-- *** Package will NOT include tide and current data ***
-- Configuring incomplete, errors occurred!
See also "/home/rgleason/Projects/opencpn/build/CMakeFiles/CMakeOutput.log".
rgleason@rgleason-VirtualBox:~/Projects/opencpn/build$ ^C
Remove vdr_pi build and code?
Some other alternative?


The errors seem to be the html lines in the metadata.xml files that the plugin now creates to make the MANAGER PI tarball and xml's.


Somehow CMake needs to ignore these I think, if users are going to install their own plugins.


Please see attached.
Attached Files
File Type: doc ConfigureOutput.doc (54.8 KB, 21 views)
rgleason is offline   Reply With Quote
Old 13-03-2020, 05:28   #90
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: OS Linux specific

Dave answered me, very kindly, because I was trying to combine two methods in an environment that is new to me.

https://github.com/OpenCPN/OpenCPN/issues/1767

So as a reminder iin Ubuntu I have created Projects/pi-standalone/ for building all standalone plugins. I've also deleted the pi build in Projects/opencpn/plugins/vdr_pi
rgleason is offline   Reply With Quote
Reply

Tags
linux


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking For Specific Watermaker Tech in Trinidad Sonosailor Plumbing Systems and Fixtures 3 30-07-2009 11:54
Where can I find specific owners forums? ejlindahl Multihull Sailboats 8 27-02-2009 05:00
Tollycraft - anything specific to beware of? denmanislander Powered Boats 3 20-12-2008 14:08
are sails boat specific? desertmonk Deck hardware: Rigging, Sails & Hoisting 2 30-03-2008 03:55

Advertise Here


All times are GMT -7. The time now is 12:39.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.