-
Notifications
You must be signed in to change notification settings - Fork 68
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
Support for Linux #134
Comments
I think OSX dependencies need to be removed in MAVGCL/build.xml, e.g. Line 20 in 2c5ad24
which point to a maven installation. |
Hi @ecmnet ,
Any thoughts ? |
I'm getting the same error on my Ubuntu 18.04. Did you ever find a solution? |
No... never had time to check it. |
Hi @ecmnet any news on the linux support? |
Hi, I managed to build an AppImage on arch with the following steps: git clone [email protected]:ecmnet/MAVGCL.git
git clone [email protected]:ecmnet/MAVBase.git
git clone [email protected]:ecmnet/mavcom.git
git clone [email protected]:ecmnet/mavutils.git
git clone [email protected]:ecmnet/mavmap.git Go in each project directory and install to local maven repo (with
Change <dependency>
<groupId>mavbase</groupId>
<artifactId>mavbase</artifactId>
<version>0.0.1</version>
</dependency> to this <dependency>
<groupId>MAVBase</groupId>
<artifactId>MAVBase</artifactId>
<version>0.0.1</version>
</dependency> then run I have Java version #! /bin/bash
jlink --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules java.se,jdk.httpserver,javafx.controls,javafx.fxml --output ./target/custom_jre
jpackage --dest target/application --input target/deploy/ --name MAVGAnalysis --main-jar MAVGCL-0.8.0.jar --main-class com.comino.flight.MainApp --type app-image --icon target/deploy/MAVGAnalysis.icns --runtime-image ./target/custom_jre --java-options '-Djava.library.path=./native -Djavafx.animation.pulse=60 --add-opens javafx.base/com.sun.javafx.collections=ALL-UNNAMED -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -Xmx8G -XX:ZCollectionInterval=5 ' Notice that Run this script, you'll find the AppImage in |
Hi @PSandro thanks for your feedback and time.
I also installed openjdk-17
I set maven to use also openjdk-17
I changed to maven 3.8.4
Is there any package or dependency that I am missing ? |
mavcom needs to be build separately |
I did all steps. However, couldn't run it. I get this error:
File information:
|
I have the same error, did you solve it? |
If you get this error, it may be because the jmod that is built with the app image is not suitable for the operating system.
For my case, the jmods that were included with the code were not for Ubuntu, and some of the files missing. How I figured it out was by adding additional arguments when running. To see more debug output, you can try running .jar file with To resolve this, download new jmods for your operating system, and change the jlink command to use that instead of ./jmods. |
Here is a PKGBUILD file that I've created that may help someone. Feel free to complete it and share on AUR.
|
Hi there @ecmnet ,
great job with this package. I am giving this another try under Linux (Ubuntu 20.04 LTS). There seems to be still alot of issues for the compilation.
The System
OS: 20.04.1-Ubuntu
kernel: 5.11.0-25-generic
Java : java 16.0.2 2021-07-20 /usr/lib/jvm/java-16-oracle
The steps
The issue
Do you have ever gave it a try to compile under Linux? Is there any dependencies that I am missing?
I believe this is a great Tool but I believe Drone developers use mainly Linux for Sw dev. If this could be ported to linux would have also a boost on users PR.
Greetings
The text was updated successfully, but these errors were encountered: