Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile for Rpi4 running Ubuntu 18.04.3 #52

Closed
antonical opened this issue Oct 6, 2019 · 4 comments
Closed

Compile for Rpi4 running Ubuntu 18.04.3 #52

antonical opened this issue Oct 6, 2019 · 4 comments

Comments

@antonical
Copy link

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

@hreuver0183
Copy link
Contributor

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 ()

@hreuver0183
Copy link
Contributor

Is this issue stil valid?
Or can it be closed?

@rgleason
Copy link
Contributor

rgleason commented Jun 5, 2021

Is this yet another version for plugins?

@hreuver0183
Copy link
Contributor

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

@bdbcat bdbcat closed this as completed Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants