简体   繁体   English

如何设置Eclipse RCP插件以使用JOGL?

[英]How do I setup an Eclipse RCP plugin to use JOGL?

I have followed the instructions on this page , but when I try to run a simple example code to test it, I get an exception: 我已按照此页面上的说明进行操作,但是当我尝试运行一个简单的示例代码对其进行测试时,出现异常:

java.lang.UnsatisfiedLinkError: Can't load library: C:\\Eclipse 3.8 32-bits\\natives\\windows-amd64\\gluegen-rt.dll java.lang.UnsatisfiedLinkError:无法加载库:C:\\ Eclipse 3.8 32位\\ natives \\ windows-amd64 \\ gluegen-rt.dll

My RCP application has a few dozen plugins. 我的RCP应用程序有几十个插件。 I created a new one, called stOpenGL. 我创建了一个新的名为stOpenGL的文件。 On this plugin's folder, I created a lib folder and placed in there the following files: 在此插件的文件夹中,我创建了一个lib文件夹,并将以下文件放在其中:

  • gluegen-java-src.zip gluegen-java-src.zip
  • gluegen-rt-natives-windows-amd64.jar gluegen-RT-当地人窗口,amd64.jar
  • gluegen-rt-natives-windows-i586.jar gluegen-RT-当地人窗口,i586.jar
  • gluegen-rt.jar gluegen-的rt.jar
  • gluegen.jar gluegen.jar
  • jogl-all-natives-windows-amd64.jar JOGL-所有本地人窗口,amd64.jar
  • jogl-all-natives-windows-i586.jar JOGL-所有本地人窗口,i586.jar
  • jogl-all.jar JOGL-all.jar在
  • jogl-java-src.zip jogl-java-src.zip

Another plugin then sets stOpenGL as a required plugin (this plugin is where I put the simple example I mentioned before). 然后,另一个插件将stOpenGL设置为必需的插件(在该插件中,我放置了前面提到的简单示例)。

On the stOpenGL plugin, I tried a few combinations, to no avail: 在stOpenGL插件上,我尝试了几种组合,但无济于事:

  • Put all the above files on the classpath (minus the src ones) and export all of their packages. 将以上所有文件放在类路径上(减去src文件),并导出所有包。
  • Put only gluegen-rt.jar and jogl-all.jar on the classpath and export their packages. 仅在类路径上放置gumgen-rt.jar和jogl-all.jar并导出其包。

I've tinkered with build options and some file combinations on my lib folder, and nothing worked. 我已经在我的lib文件夹中修改了构建选项和一些文件组合,但没有任何效果。

Any ideas of what I might be missing here? 关于我在这里可能会缺少的任何想法?

请仔细阅读本教程,以使用Eclipse插件设置Opengl。

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

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