如何:在 Mac OSX 10.6 中为 Eclipse 安装 JOGL?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2503590/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:33:56  来源:igfitidea点击:

Howto: install JOGL for Eclipse in Mac OSX 10.6?

javaeclipseopenglosx-snow-leopardjogl

提问by jonas

I got Snow Leopard 64 bit, and I'm wondering how I am to install JOGL in order to develop with Eclipse.

我有 Snow Leopard 64 位,我想知道如何安装 JOGL 以便使用 Eclipse 进行开发。

A nice tut from A-Z would have been nice, since I'm suspecting some of my steps are very wrong.

来自 AZ 的好吆喝本来不错,因为我怀疑我的某些步骤非常错误。

--Edit: 28.aug.2012--

--编辑:2012 年 8 月 28 日--

JOGL 1.1 is only compatible with Java JDK 1.6 not JDK 1.7. Tested on OSX Mountain Lion (10.8.1).

JOGL 1.1 仅与 Java JDK 1.6 兼容,而不与 JDK 1.7 兼容。在 OSX Mountain Lion (10.8.1) 上测试。

回答by job

  1. Download jogl
  2. Create a new project, and unzip the lib folder from the file you downloaded into the project.
  3. Add the jogl.jar and gluegen-rt.jar to the build path. Right click jogl.jar in the package explorer in the build path. Click "Properties", and set the "Native Libraries" option to point to the same lib folder that should also contains four *.jnilib files.
  1. 下载jogl
  2. 创建一个新项目,并从您下载到项目中的文件中解压缩 lib 文件夹。
  3. 将jogl.jar 和gluegen-rt.jar 添加到构建路径。在构建路径中的包资源管理器中右键单击 jogl.jar。单击“属性”,并将“本机库”选项设置为指向同一个 lib 文件夹,该文件夹还应包含四个 *.jnilib 文件。

回答by xranby

When using JogAmp JOGL 2 you only need to include jogl-all.jar and gluegen-rt.jar to your project. All the macos x specific native jars will be automatically found at runtime if they are located next to the jogl-all.jar and gluegen-rt.jar http://jogamp.org/wiki/index.php/Downloading_and_installing_JOGL

使用 JogAmp JOGL 2 时,您只需将 jogl-all.jar 和gluegen-rt.jar 包含到您的项目中。如果所有 macos x 特定的原生 jar 位于 jogl-all.jar 和gluegen-rt.jar http://jogamp.org/wiki/index.php/Downloading_and_installing_JOGL旁边,它们将在运行时自动找到