gpt4 book ai didi

java - 如何在 Linux 和 Windows 上使用 JOGL 设置 IntelliJIdea 进行开发?

转载 作者:太空宇宙 更新时间:2023-11-04 11:16:35 25 4
gpt4 key购买 nike

我正在使用 IntelliJIdea 在 Linux 和 Windows 中开发游戏。我在两个系统上同时进行开发方面一直有很好的经验,其中所有项目文件都本地存储在共享分区上,但现在我无法配置此 IDE 以在两个操作系统上使用 JOGL 库。

昨天JOGL在linux下运行良好,之后用windows编译运行工程。当我回到 Linux 时,所有 jar 文件和源的路径都是 Windows 格式,在 Linux 中无法使用。

有没有办法为同步开发配置IDE?

最佳答案

使用 Maven 处理依赖项(它们在 Maven Central 上可用):

<dependency>
<groupId>org.jogamp.gluegen</groupId>
<artifactId>gluegen-rt-main</artifactId>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>org.jogamp.jogl</groupId>
<artifactId>jogl-all-main</artifactId>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>org.jogamp.jogl</groupId>
<artifactId>newt</artifactId>
<version>2.1.3</version>
</dependency>

对我有用

关于java - 如何在 Linux 和 Windows 上使用 JOGL 设置 IntelliJIdea 进行开发?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20644868/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com