Open vanlaak opened 3 years ago
You may of course experiment with building a .deb package for o-charts_pi. However, the .deb package installation method is officially deprecated in OpenCPN. Only the Plugin Manager (tarball) approach is supported going forward. So we don't plan to do much build support for .deb packages. In fact it will likely be removed from the build scripts at some soon time.
Hint: Play around with changing "x86_64" to "amd64" in the various cmake fiiles....
I am pleased to read the Plugin Manager (tarball) approach is supported. So I made the tarball with $ make tarball. Which resulted into the making of o-charts-0.9.0.32-+82a4468_debian-11-x86_64.tar.gz.
With the Plugin Manager I attempted to get it imported. That resulted into a rejection. Incompatible import plugin detected.
In the log file I find the following lines
06:55:29.168 DEBUG PluginHandler.cpp:234 Plugin compatibility check1: o-charts OS:debian-x86_64 Plugin:debian-x86_64 06:55:29.168 DEBUG PluginHandler.cpp:291 Plugin compatibility checkFinal REJECTED: o-charts PluginOS:debian-x86_64 PluginVersion: 11
Hi, Trying to build and install the package on Debian Bullseye. All seems to go well.
$ cd o-charts_pi $ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .. $ make pkg
generates the package o-charts-0.9.0.32-+82a4468_debian-11-x86_64.deb
But if I try to install it with sudo dpkg -i o-charts-0.9.0.32-+82a4468_debian-11-x86_64.deb
I get the following error
skipper@boat:~/o-charts_pi/build$ sudo dpkg -i o-charts-0.9.0.32-+82a4468_debian-11-x86_64.deb dpkg: warning: parsing file '/var/lib/dpkg/tmp.ci/control' near line 1: 'x8664' is not a valid architecture name in 'Architecture' field: character '' not allowed (only letters, digits and characters '-') dpkg: error processing archive o-charts-0.9.0.32-+82a4468_debian-11-x86_64.deb (--install): package architecture (x86_64) does not match system (amd64) Errors were encountered while processing: o-charts-0.9.0.32-+82a4468_debian-11-x86_64.deb