OpenMarine
opencpn pypilot plugin, autopilot_route via git for OP2? - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18)
+--- Thread: opencpn pypilot plugin, autopilot_route via git for OP2? (/showthread.php?tid=1986)



opencpn pypilot plugin, autopilot_route via git for OP2? - rastam4n - 2019-09-12

I tried to update the plugin for opencpn  and install autopilot_route on my RPi4... got some errors, guessing its not ready for that?

maybe there is a separate git for that?


RE: opencpn pypilot plugin, autopilot_route via git for OP2? - seandepagnier - 2019-09-15

There is a separate git for the plugins. Which error?


RE: opencpn pypilot plugin, autopilot_route via git for OP2? - rastam4n - 2019-09-15

(2019-09-15, 12:33 AM)seandepagnier Wrote: There is a separate git for the plugins.  Which error?

Hi Sean. First I want to emphasize that this was using OP2 on RPI4b.  
The errors were reported at the end of cmake ..
I can try to build it again and post the terminal window if that’s helpful.


RE: opencpn pypilot plugin, autopilot_route via git for OP2? - rastam4n - 2019-10-19

(2019-09-15, 12:33 AM)seandepagnier Wrote: There is a separate git for the plugins.  Which error?

So here is the error shown in terminal window see file attached

what i did up to this point ...
sudo apt install libwxbase3.0-dev libbz2-dev wx-common libwxgtk3.0-dev
git clone https://github.com/pypilot/pypilot_pi
cd pypilot_pi
mkdir build
cd build
cmake ..

-at this point I am told that cmake is not known as a command so I 
sudo apt-get install cmake 
Once that is installed then I attempt 
cmake ..

- this time it attempts to execute but eventually I get the attached error.

make
sudo make install

I would really like to update this plugin as the one that is packaged with OP2 is broken, the manual errors are backwards and it will not follow a route using GPS...


RE: opencpn pypilot plugin, autopilot_route via git for OP2? - seandepagnier - 2019-10-19

To build opencpn and plugins please execute:
Code:
$ sudo apt-get install build-essential cmake gettext git-core gpsd gpsd-clients libgps-dev wx-common libwxgtk3.0-dev libglu1-mesa-dev libgtk2.0-dev wx3.0-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev libcurl4-openssl-dev libexpat1-dev libcairo2-dev libarchive-dev liblzma-dev libexif-dev libelf-dev libsqlite3-dev
The instructions from here:
https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:developer_manual:developer_guide:compiling_linux


RE: opencpn pypilot plugin, autopilot_route via git for OP2? - rastam4n - 2019-10-19

(2019-10-19, 12:17 AM)seandepagnier Wrote: To build opencpn and plugins please execute:
Code:
$ sudo apt-get install build-essential cmake gettext git-core gpsd gpsd-clients libgps-dev wx-common libwxgtk3.0-dev libglu1-mesa-dev libgtk2.0-dev wx3.0-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev libcurl4-openssl-dev libexpat1-dev libcairo2-dev libarchive-dev liblzma-dev libexif-dev libelf-dev libsqlite3-dev
The instructions from here:
https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:developer_manual:developer_guide:compiling_linux

Oh Boy what did I get myself into now! Okay so I have compiled it and installed it on the Rpi I compiled it on... I have got pypilot_pi installed but I am having issues with the oesenc pluging...  

These are the instructions are they correct?

pi@raspberrypi:~ $ sudo apt-get install opencpn-plugin-oesenc-pi

pi@raspberrypi:~ $ sudo apt-get install opencpn-plugin-oesenc_pi

both give me the same error 

E: Unable to locate package

so then I decided I could just install it from git... which I did successfully but when I try to install my maps I get the same error over and over again 

<Cannot find the oserved utility>

So now I am stuck. Any ideas?

I am looking at the other forum atm but so far I have found nothing to do with oserved


RE: opencpn pypilot plugin, autopilot_route via git for OP2? - rastam4n - 2019-10-22

WHOA... maybe I misunderstood your instructions Sean?
I thought you wanted me to build OCPN from source... but maybe you just wanted me to install the dependencies in order to be able to install the pluggins from source?

Is this correct?

I have built opencpn from source now but I get an error each time I run it

"Lock file '/home/pi/OpenCPN' has incorrect permissions" I'm afraid maybe I should have built and installed this in the default install dir /usr/local... I did everything in the home dir is this why I am getting this error?

need help!


RE: opencpn pypilot plugin, autopilot_route via git for OP2? - rastam4n - 2019-10-22

Yep so that worked.... thank you