简体   繁体   English

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

[英]Howto: install JOGL for Eclipse in Mac OSX 10.6?

I got Snow Leopard 64 bit, and I'm wondering how I am to install JOGL in order to develop with Eclipse. 我有64位的Snow Leopard,我想知道如何安装JOGL以便使用Eclipse进行开发。

A nice tut from AZ 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. JOGL 1.1仅与Java JDK 1.6兼容,而与JDK 1.7不兼容。 Tested on OSX Mountain Lion (10.8.1). 在OSX Mountain Lion(10.8.1)上测试。

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

When using JogAmp JOGL 2 you only need to include jogl-all.jar and gluegen-rt.jar to your project. 使用JogAmp JOGL 2时,您只需要在项目中包含jogl-all.jar和gumgen-rt.jar。 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 如果所有macOS X特定的本机jar都位于jogl-all.jar和gelgen-rt.jar http://jogamp.org/wiki/index.php/Downloading_and_installing_JOGL旁边,则会在运行时自动找到

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM