Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 01-01-2021, 11:18   #46
Registered User

Join Date: Sep 2014
Posts: 8
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Mike,

Updated catalog and it still tries to grab the 3.1.21 install image.

A few bits of other information I've gleaned related to other threads:

Hardware is 8GB Raspberry pi with an Openplotter image and OpenCPN version 5.2.4. Upgraded all software and OS to latest using apt update and apt upgrade. Seems like all is up to date.

I am fairly sure this is on 32 bit OS, given the below:
Code:
pi@openplotter:~ $ uname -m
armv7l
The head of the Opencpn.conf file has the blank lines for CompatOS etc. When I fill in 'Ubuntu' and '18.04' none of the plugins show as installable in the OpenCPN control panel. I've updated the plugin catalog with the CompatOS set to these values, and also blank. Still no luck installing photolayer, or it attempting anything other than 3.1.21. My next step was to URL hack the plugins.xml below to point to a different source. Not sure that is wise. At some point the square peg can't be forced into the round hole. See next code box below this one.

Any suggestions for next steps?

Thank you,
Steve

Code:
[Settings]
LastAppliedTemplate=
CompatOS=
CompatOsVersion=
ConfigVersionString=Version 5.2.4 Build 2020-10-14

Select text from the plugins catalog at
/home/pi/.opencpn/plugins/cache/metadata/ocpn-plugins.xml
Code:
<plugin version="1">
<name> photolayer </name>
<version> 3.1.21.0 </version>
<release> 0 </release>
<summary> Plugin to read geotiffs and adjust tranparency </summary>
<api-version> 1.16 </api-version>
<open-source> yes </open-source>
<author> Mike Rossiter </author>
<source> https://github.com/Rasbats/photolayer_pi </source>
<description> PhotoLayer reads satellite geotiff photo overlay files with tranparency </description>
<target>raspbian-armhf</target>
<target-version>9.4</target-version>
<target-arch>armhf</target-arch>
<tarball-url> https://dl.cloudsmith.io/public/opencpn/photolayer-prod/raw/names/photolayer_pi-3.1.21.0-raspbian-armhf-9.4-stretch-armhf-tarball/versions/v3.1.21.0/photolayer_pi-3.1.21.0-raspbian-armhf-9.4-stretch-armhf.tar.gz </tarball-url>
<info-url> https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:developer_manual:plugins:beta_plugins:photolayer </info-url>
</plugin>
scpeters is offline   Reply With Quote
Old 01-01-2021, 12:24   #47
Registered User

Join Date: Sep 2014
Posts: 8
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

..Forgot to mention that I was able to install Weather Routing and Konni Logbook plugins and they both seem to work as expected.

Steve
scpeters is offline   Reply With Quote
Old 02-01-2021, 02:34   #48
Registered User

Join Date: May 2012
Posts: 1,206
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Steve...

Could you try running this:

Code:
cat /etc/os-release
This will give us the OS you are running.

Mike
Rasbats is offline   Reply With Quote
Old 02-01-2021, 03:00   #49
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Mike
I have the same problem in Ubuntu 20.04.

The "photolayer_pi-3.1.27" is not available in the master catalog, no matter how much I update.

Also.... when using your latest git-code I get this error when compiling....
Code:
/home/thomas/Sailing/OpenCPN/Plugins/photolayer_pi/src/PhotoLayer_pi.cpp: In member function ‘virtual int PhotoLayer_pi::Init()’:
/home/thomas/Sailing/OpenCPN/Plugins/photolayer_pi/src/PhotoLayer_pi.cpp:92:22: error: ‘PLUGIN_CATALOG_NAME’ was not declared in this scope
   92 |     AddLocaleCatalog(PLUGIN_CATALOG_NAME);
      |                      ^~~~~~~~~~~~~~~~~~~
/home/thomas/Sailing/OpenCPN/Plugins/photolayer_pi/src/PhotoLayer_pi.cpp: In member function ‘virtual int PhotoLayer_pi::GetAPIVersionMajor()’:
/home/thomas/Sailing/OpenCPN/Plugins/photolayer_pi/src/PhotoLayer_pi.cpp:134:12: error: ‘OCPN_API_VERSION_MAJOR’ was not declared in this scope; did you mean ‘API_VERSION_MAJOR’?
  134 |     return OCPN_API_VERSION_MAJOR;
      |            ^~~~~~~~~~~~~~~~~~~~~~
      |            API_VERSION_MAJOR
/home/thomas/Sailing/OpenCPN/Plugins/photolayer_pi/src/PhotoLayer_pi.cpp: In member function ‘virtual int PhotoLayer_pi::GetAPIVersionMinor()’:
/home/thomas/Sailing/OpenCPN/Plugins/photolayer_pi/src/PhotoLayer_pi.cpp:139:12: error: ‘OCPN_API_VERSION_MINOR’ was not declared in this scope; did you mean ‘API_VERSION_MINOR’?
  139 |     return OCPN_API_VERSION_MINOR;
      |            ^~~~~~~~~~~~~~~~~~~~~~
      |            API_VERSION_MINOR
/home/thomas/Sailing/OpenCPN/Plugins/photolayer_pi/src/PhotoLayer_pi.cpp: In member function ‘virtual int PhotoLayer_pi::GetPlugInVersionMajor()’:
/home/thomas/Sailing/OpenCPN/Plugins/photolayer_pi/src/PhotoLayer_pi.cpp:144:5: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
  144 |     return PLUGIN_VERSION_MAJOR;
      |     ^~~~~~
/home/thomas/Sailing/OpenCPN/Plugins/photolayer_pi/src/PhotoLayer_pi.cpp: In member function ‘virtual int PhotoLayer_pi::GetPlugInVersionMinor()’:
/home/thomas/Sailing/OpenCPN/Plugins/photolayer_pi/src/PhotoLayer_pi.cpp:149:5: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
  149 |     return PLUGIN_VERSION_MINOR;
      |     ^~~~~~
/home/thomas/Sailing/OpenCPN/Plugins/photolayer_pi/src/PhotoLayer_pi.cpp: In member function ‘virtual wxString PhotoLayer_pi::GetCommonName()’:
/home/thomas/Sailing/OpenCPN/Plugins/photolayer_pi/src/PhotoLayer_pi.cpp:159:12: error: ‘PLUGIN_COMMON_NAME’ was not declared in this scope
  159 |     return PLUGIN_COMMON_NAME;
      |            ^~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/photolayer_pi.dir/build.make:66: CMakeFiles/photolayer_pi.dir/src/PhotoLayer_pi.cpp.o] Error 1
make[2]: Leaving directory '/home/thomas/Sailing/OpenCPN/Plugins/photolayer_pi/build'
make[1]: *** [CMakeFiles/Makefile2:192: CMakeFiles/photolayer_pi.dir/all] Error 2
make[1]: Leaving directory '/home/thomas/Sailing/OpenCPN/Plugins/photolayer_pi/build'
make: *** [Makefile:155: all] Error 2
t
Thomas
cagney is offline   Reply With Quote
Old 02-01-2021, 04:00   #50
Registered User

Join Date: May 2012
Posts: 1,206
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Thomas...

Thanks for the feedback. I will update my Ubuntu to 20.04 and have a look at this.

Mike
Rasbats is offline   Reply With Quote
Old 02-01-2021, 08:11   #51
Registered User

Join Date: Sep 2014
Posts: 8
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Mike,

Output of cat below.

Steve

Code:
pi@openplotter:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@openplotter:~ $
scpeters is offline   Reply With Quote
Old 02-01-2021, 08:23   #52
Registered User

Join Date: May 2012
Posts: 1,206
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Steve...

Thanks. The plugin will need some work.

Mike
Rasbats is offline   Reply With Quote
Old 02-01-2021, 08:36   #53
Registered User

Join Date: Sep 2014
Posts: 8
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Mike,

Thank you for letting me know. I can test anything you like...

Steve
scpeters is offline   Reply With Quote
Old 10-01-2021, 02:34   #54
Registered User

Join Date: May 2012
Posts: 1,206
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

scpeters et al...

PhotoLayer has been rebuilt(thanks Alec). Now runs on Ubuntu 20.04 and there are installers for other OS. Perhaps you can update the Master catalog and give this a test.

Mike
Rasbats is offline   Reply With Quote
Old 10-01-2021, 03:58   #55
Registered User

Join Date: May 2012
Posts: 1,206
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Other than Windows you need to make sure libgeotiff is installed on your system.

Mike
Rasbats is offline   Reply With Quote
Old 11-01-2021, 17:45   #56
Registered User

Join Date: Sep 2014
Posts: 8
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Hi Mike,

Thank you for speedy work on the plug-in.

I updated the catalog and gave it a try. The install proceeded very well. Version 3.3.1+3104 installed without error. When I go to enable it, however, I have an error, different from before.

From the log file:
Code:
20:25:53.758 MESSAGE pluginmanager.cpp:1174 Checking plugin candidate: /home/pi/.local/lib/opencpn/libphotolayer_pi.so
20:25:53.761 MESSAGE pluginmanager.cpp:2169 Plugin is compatible: true
20:25:53.761 MESSAGE pluginmanager.cpp:2232 PlugInManager: Loading PlugIn: /home/pi/.local/lib/opencpn/libphotolayer_pi.so
20:25:53.763   ERROR dlunix.cpp:162 libGLU.so.1: cannot open shared object file: No such file or directory
20:25:53.763 MESSAGE pluginmanager.cpp:2291    PlugInManager: Cannot load library: /home/pi/.local/lib/opencpn/libphotolayer_pi.so
The plugin appears to have some trouble loading. It seems to be looking for a library called libGLU that is not found. Should I install it independently, or should it come with the plug-in?
FYI - I do have libgeotiff installed.

Code:
pi@openplotter:~ $  apt list | grep libglu

libglu1-mesa-dev/stable 9.0.0-2.1 armhf
libglu1-mesa/stable 9.0.0-2.1 armhf
libgluegen2-build-java/stable 2.3.2-7 all
libgluegen2-doc/stable 2.3.2-7 all
libgluegen2-jni/stable 2.3.2-7 armhf
libgluegen2-rt-java/stable 2.3.2-7 all
libglui-dev/stable 2.36-4 armhf
libglui2c2/stable 2.36-4 armhf
libglusterfs-dev/stable 5.5-3 armhf
libglusterfs0/stable,now 5.5-3 armhf [installed,automatic]

pi@openplotter:~ $  apt list | grep libgeotiff

libgeotiff-dev/stable,now 1.4.3-1 armhf [installed]
libgeotiff-epsg/stable 1.4.3-1 all
libgeotiff2/stable,now 1.4.3-1 armhf [installed,automatic]
scpeters is offline   Reply With Quote
Old 11-01-2021, 18:19   #57
Registered User

Join Date: Sep 2014
Posts: 8
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

OK - so I got bored and installed libglu1-mesa-dev... And it seemed to fix the dependency.

Code:
pi@openplotter:~ $ sudo apt-get install libglu1-mesa-dev
now on to the next error. Guessing I am missing a few packages that are needed - as this one is very similar... Will wait for those who know more to point me in the right direction!

Code:
1:16:24.209 MESSAGE pluginmanager.cpp:1174 Checking plugin candidate: /home/pi/.local/lib/opencpn/libphotolayer_pi.so
21:16:24.212 MESSAGE pluginmanager.cpp:2169 Plugin is compatible: true
21:16:24.212 MESSAGE pluginmanager.cpp:2232 PlugInManager: Loading PlugIn: /home/pi/.local/lib/opencpn/libphotolayer_pi.so
21:16:24.214   ERROR dlunix.cpp:162 libjsoncpp.so.1: cannot open shared object file: No such file or directory
21:16:24.214 MESSAGE pluginmanager.cpp:2291    PlugInManager: Cannot load library: /home/pi/.local/lib/opencpn/libphotolayer_pi.so
Note I have other versions of JSON libraries installed.
Code:
pi@openplotter:~ $ apt list --installed | grep json

libfastjson4/stable,now 0.99.8-2 armhf [installed]
libjson-c3/stable,now 0.12.1+ds-2+deb10u1 armhf [installed]
libjson-glib-1.0-0/stable,now 1.4.4-2 armhf [installed,automatic]
libjson-glib-1.0-common/stable,now 1.4.4-2 all [installed,automatic]
python-simplejson/stable,now 3.16.0-1 armhf [installed,automatic]
python3-simplejson/stable,now 3.16.0-1 armhf [installed,automatic]
python3-ujson/stable,now 1.35-3+b1 armhf [installed,automatic]
scpeters is offline   Reply With Quote
Old 12-01-2021, 01:00   #58
Registered User

Join Date: May 2012
Posts: 1,206
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Steve... Not able to test here but from Googling:

Code:
sudo apt-get install libjsoncpp-dev
Mike
Rasbats is offline   Reply With Quote
Old 12-01-2021, 07:01   #59
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

On Ubuntu 20.04 /64 the generated package when I compile is named .....-x86_64.deb. This is wrong and generate a "wrong architecture" error.
It's a question of naming, where the correct name (though not logical) is
...._amd64.deb. This was OK in earlier versions for ex. 2.1.2.


Thomas
cagney is offline   Reply With Quote
Old 12-01-2021, 07:09   #60
Registered User

Join Date: May 2012
Posts: 1,206
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Thomas...

To help my sanity does the version installed from the Master catalog work?

Thanks.

Mike
Rasbats is offline   Reply With Quote
Reply

Tags
enc, photo, plug, satellite


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
VentureFarther Satellite Charts - vfkaps plugin Rasbats OpenCPN 147 27-12-2022 09:47
PhotoPlayer plugin - Satellite GeoTiffs with transparency Rasbats OpenCPN 8 06-03-2019 04:53
Plugin development... How to receive chart objects in my plugin? dmartinez OpenCPN 6 04-08-2017 00:56
Feature Request: Set KAP file transparency rgleason OpenCPN 6 31-07-2017 17:14
Satellite phone rental sneuman Marine Electronics 5 03-10-2005 16:11

Advertise Here


All times are GMT -7. The time now is 20:30.


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.