为我的 CNC 绘图仪安装 UGS(LINUX)

为我的 CNC 绘图仪安装 UGS(LINUX)

尝试安装 Universal-G-Code-Sender-master.zip 内容。当我尝试从控制台运行 ./run_platform 命令时,我在安装的最后阶段收到以下错误消息。由于文本限制,无法重现完整的详细信息。

...
[INFO] ugs-classic ........................................ SUCCESS [  5.709 s]
[INFO] ugs-platform-parent ................................ SUCCESS [  0.508 s]
[INFO] ugs-platform-branding .............................. SUCCESS [  3.639 s]
[INFO] ugs-platform-ugslib ................................ SUCCESS [  9.734 s]
[INFO] ugs-platform-ugscore ............................... FAILURE [  1.809 s]
[INFO] ugs-platform-visualizer ............................ SKIPPED
[INFO] ugs-platform-plugin-workflow ....................... SKIPPED
[INFO] ugs-platform-gcode-editor .......................... SKIPPED
[INFO] ugs-platform-surfacescanner ........................ SKIPPED
[INFO] ProbeModule ........................................ SKIPPED
[INFO] DowelModule ........................................ SKIPPED
[INFO] GcodeTools ......................................... SKIPPED
[INFO] ugs-platform-plugin-jog ............................ SKIPPED
[INFO] ugs-platform-plugin-setup-wizard ................... SKIPPED
[INFO] ugs-platform-welcome-page .......................... SKIPPED
[INFO] ugs-platform-plugin-joystick ....................... SKIPPED
[INFO] ugs-platform-plugin-cloud-storage .................. SKIPPED
[INFO] ugs-platform-plugin-toolbox ........................ SKIPPED
[INFO] ugs-platform-plugin-dro ............................ SKIPPED
[INFO] ugs-platform-plugin-designer ....................... SKIPPED
[INFO] ugs-platform-plugin-filebrowser .................... SKIPPED
[INFO] ugs-platform-plugin-console ........................ SKIPPED
[INFO] ugs-platform-app ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:48 min
[INFO] Finished at: 2023-02-24T08:34:53+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (compile) on project ugs-platform-ugscore: Fatal error compiling: java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :ugs-platform-ugscore

我的操作系统是 Ubuntu 20.04 Desktop。Java/Maven 版本如下:

jimmy@jimmy-System-Product-Name:~$ java --version
openjdk 11.0.17 2022-10-18
OpenJDK Runtime Environment (build 11.0.17+8-post-Ubuntu-1ubuntu220.04)
OpenJDK 64-Bit Server VM (build 11.0.17+8-post-Ubuntu-1ubuntu220.04, mixed mode, sharing)

jimmy@jimmy-System-Product-Name:~$ mvn -v
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 11.0.17, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_IN, platform encoding: UTF-8
OS name: "linux", version: "5.15.0-60-generic", arch: "amd64", family: "unix"
jimmy@jimmy-System-Product-Name:~$ 

Path for Java and Maven as under:
jimmy@jimmy-System-Product-Name:~$ echo $JAVA_HOME
/usr/share/java

jimmy@jimmy-System-Product-Name:~$ echo $MAVEN_HOME
/usr/share/maven
jimmy@jimmy-System-Product-Name:~$ 

请帮我解决这个问题。有趣的是,使用另一个 UGS-Platform(Linux) 版本,使用相关命令 ./ugsplatform ,我可以成功控制我的 CNC 绘图仪。我的绘图仪项目可以在 you tube.com/@danjunk-DIY 句柄上看到。在 windows10 上,我在运行 UGS 时没有遇到任何问题

相关内容