简体   繁体   English

在Linux(Ubuntu 3.0.0)上的Eclipse中为Android开发设置OpenGL ES 1.0

[英]Setting up OpenGL ES 1.0 in Eclipse on Linux (Ubuntu 3.0.0) for Android development

I've been developing an Android app in Eclipse (java) using openGL ES 1.0 on a Mac. 我一直在Mac上使用openGL ES 1.0在Eclipse(java)中开发Android应用程序。 I had to switch from developing this app on a Mac and continue this project on a laptop running Ubuntu 3.0.0. 我不得不从在Mac上开发此应用程序切换到在运行Ubuntu 3.0.0的笔记本电脑上继续该项目。

The laptop is pretty much a clean slate. 笔记本电脑几乎是干净的。 I've installed the newest Eclipse and android SDK but when I tried to import the project I had been developing on the mac, I'm seeing errors with locating opengl libraries. 我已经安装了最新的Eclipse和android SDK,但是当我尝试导入在Mac上开发的项目时,发现opengl库的定位出现错误。 From what I've gathered in research, it looks like I may need a wrapper or emulator (Mesa3d? ARM?). 从我的研究成果来看,我可能需要包装器或仿真器(Mesa3d?ARM?)。 I'm not using the Eclipse android simulator but rather using it as an IDE, debugger, and to install my app on a HTC Desire. 我没有使用Eclipse android模拟器,而是将其用作IDE,调试器,并在HTC Desire上安装了我的应用程序。

I'm fairly new to Linux and android app development in general. 一般来说,我是Linux和android应用程序开发的新手。 Does anyone know how to go about installing what's needed to continue to use OpenGL ES 1.0 in Eclipse on Ubuntu 3.0.0. 有谁知道如何安装在Ubuntu 3.0.0上的Eclipse中继续使用OpenGL ES 1.0所需的内容。

EDIT: Solved 编辑:解决

The OpenGL ES 1.0 libraries are indeed included after installed the android SDK and ADT. 在安装android SDK和ADT之后,确实包含了OpenGL ES 1.0库。 I had thought that they weren't as after I moved my project over to my Ubuntu machine, I had errors on my openGL ES functions all of which were "(func) must override a superclass method". 我以为它们不是我将项目移到我的Ubuntu机器之后,在我的openGL ES函数上出现错误,所有这些都是“(func)必须重写超类方法”。 Looked again and noticed these were all functions of an "implements (class)" not an "extends (class)" 再次查看,发现这些都是“实现(类)”的功能,而不是“扩展(类)”的功能

Supposedly, an error should be thrown by the compiler "if a method annotated with @Override does not actually override a method in a superclass." 据推测,编译器应该引发错误“如果使用@Override注释的方法实际上并未覆盖超类中的方法”。 However, when developing this project in Eclipse on the Mac, it appears that these misplaced @Override annotations were ignored instead of shown as error. 但是,在Mac上的Eclipse中开发此项目时,这些放错位置的@Override注释似乎被忽略,而不是显示为错误。 A dumb mistake in part on copying snippets of code from tutorials and in part on jumping to a false conclusion about the openGL ES errors. 这是一个愚蠢的错误,部分原因是从教程中复制了代码片段,另一部分原因是跳转到有关openGL ES错误的错误结论。

OpenGL ES 1.0 already exists in the Android, although if you are porting it from Java SE the method signatures may be different. OpenGL ES 1.0在Android中已经存在,尽管如果从Java SE移植它,方法签名可能会有所不同。

See the following for details: http://developer.android.com/guide/topics/graphics/opengl.html 有关详情,请参见以下内容: http : //developer.android.com/guide/topics/graphics/opengl.html

Alternatively, it may be additional libraries which you are having problems with. 或者,它可能是您遇到问题的其他库。 If you have the source to them you can port them, otherwise you'll need to find/make the appropriate Android API equivalents. 如果您有源代码,则可以移植它们,否则,您需要查找/制作适当的Android API等效项。

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

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