Closed antonical closed 3 years ago
The quick & dirty fix is changing the CPackConfig.cmake, changing "armhf" to "arm64". If you patch cmake/PluginPackage.cmake (see below) it works out of the box.
The patch is copied from OpenCPN. A similar patch needs to be applied to almost all plugins for ARM64.
Please note that you might need an uptodate oeserverd to get your charts to work (see #55).
Grtx, Huub ==== arm64-package.diff: ==== --- old/cmake/PluginPackage.cmake 2019-12-02 22:07:04.566986359 +0100 +++ new/cmake/PluginPackage.cmake 2019-12-18 22:41:39.954125615 +0100 @@ -82,7 +82,11 @@
IF (CMAKE_SYSTEM_PROCESSOR MATCHES "arm*")
+ IF (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ SET (ARCH "arm64")
+ ELSE ()
+ SET (ARCH "armhf")
+ ENDIF ()
- SET (ARCH "armhf")
# don't bother with rpm on armhf
SET(CPACK_GENERATOR "DEB;TBZ2")
ELSE ()
Is this issue stil valid? Or can it be closed?
Is this yet another version for plugins?
Look at the date. This was a request from before the sglarm64 port. New issues should not bump old requests.
This really should be closed
How can I compile this plugin for the rpi4 running Ubuntu 18.04.3.
openCPN compiles and runs fine and all seems to work however these chart plugins ar not included int eh base build and I cannotseem to compile them. When I follow the compile instructions I end up with an armhf package that will not work as its the wring architecture.
Can you advise please as I would love to test openCPN with proper charts. The S63 plugin is the same and only produces armhf packages on compilation on the Rpi4.
Cheers Stephen