Error while building the UI from source on Arch Linux #286
Replies: 16 comments
-
You need have javafx packages available. I normally use the Liberica full JDK that includes Java fx. You can either do that, add javafx yourself or add as a maven dependency |
Beta Was this translation helpful? Give feedback.
-
As I said before, the easiest way by far is to use Liberica Full JDK which has a build for your platform. It includes everything that you need. The second best way, is to just add the JavaFX dependencies yourself in the maven pom. In the tcMenuGenerator pom.xml you'll see all the javafx dependencies there, but they are at scope "test", if you were to comment out the scope on those, it would also work with most other open JDKs. For embed control they are literally commented out, just uncomment them - search for |
Beta Was this translation helpful? Give feedback.
-
Let me know if neither of those work, happy to help get this working on that platform. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I'm not an expert in java, maybe I can't understand something :(
|
Beta Was this translation helpful? Give feedback.
-
the program is running, the menu is being created, but during generation it is not possible to select another display option |
Beta Was this translation helpful? Give feedback.
-
All looks good on the commenting out front, yes you need to run with skipTest for now. I need to mark the UI automation tests as special tests that don't get executed by maven, as they take ages to run, and tend only to be run after a UI change (once or twice a release).
|
Beta Was this translation helpful? Give feedback.
-
Also, what happens when you click on the image button with "change" underneath, does it silently fail to show the popup list of possible other plugins? |
Beta Was this translation helpful? Give feedback.
-
The contents of the ~/.tcmenu directory are created:
|
Beta Was this translation helpful? Give feedback.
-
Yes, that looks absolutely correct, when you're in the code generator dialog, what happens when you try to click on the image button highlighted below for the display plugin? There's no exceptions or errors in the log, so if something is going wrong, it for some reason is not getting logged. |
Beta Was this translation helpful? Give feedback.
-
For the libraries need updating warning, if you click on that it will take you to general settings where you can choose either to set an Arduino and Libraries directory, or tell the designer that you're using platformio/other build system and don't have libraries. To be honest in the learning period, it's often useful to have the libraries somewhere local just for the packaged examples. If you're using Arduino IDE just go to library manager and install tcMenu library with all dependencies. |
Beta Was this translation helpful? Give feedback.
-
I'm sorry, I didn't think to click on the image :) It works, I will try. Can I package the AUR archlinux if you don't mind? |
Beta Was this translation helpful? Give feedback.
-
Apologies for the delay, this happened through the Chrismas holidays in the UK. In theory I have no problem with it going into that repo, and in fact it would be the best approach. The only slight concerns I have are around testing it sufficiently to ensure it is a good build, and maintaining it going forward. As far as I know, none of the other committers and contributors have the ability to package this to that repo. So unless someone does the release each time, it could easily get behind. There are not that many releases, generally less than one a month. My other concern is that we used to have the designer on both Windows and macOS stores, but people complained (sometimes bitterly) about it being upgraded automatically. These days the designer is a lot more stable, but even so, there are sometimes changes that require a round trip through the code generator, and not everyone wants to take those immediately. |
Beta Was this translation helpful? Give feedback.
-
I've converted this into a discussion in case there's any feedback around it. |
Beta Was this translation helpful? Give feedback.
-
So my Ubuntu local server has just failed :( I may switch to using canisters for building anyway. I will try and spin up an Ubuntu and Arch Linux distro on AWS later in the week. If this works it will be an easy way to support both for building. |
Beta Was this translation helpful? Give feedback.
-
Update is that I have spun up an AWS Ubuntu image and started to install the build server dependencies, so soon I will have a production build of 3.1 ready. This is probably a more sustainable way going forward, and could be extended in the future to Arch as well. |
Beta Was this translation helpful? Give feedback.
-
I've now created an Ubuntu build image that can be started for each release. It has built 3.1.0 and I will release it now. |
Beta Was this translation helpful? Give feedback.
-
archlinux
packages installed:
sudo pacman -S maven java17-openjfx java17-openjfx-src jdk17-openjdk jre17-openjdk jre17-openjdk-headless
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/user/tcMenu/embedCONTROLFx/src/main/java/module-info.java:[2,20] module not found: javafx.fxml
[ERROR] /home/user/tcMenu/embedCONTROLFx/src/main/java/module-info.java:[3,20] module not found: javafx.graphics
[ERROR] /home/user/tcMenu/embedCONTROLFx/src/main/java/module-info.java:[4,20] module not found: javafx.base
[ERROR] /home/user/tcMenu/embedCONTROLFx/src/main/java/module-info.java:[5,20] module not found: javafx.controls
Beta Was this translation helpful? Give feedback.
All reactions