modern-jogl-examples icon indicating copy to clipboard operation
modern-jogl-examples copied to clipboard

glm import problem

Open Lionel-Litao opened this issue 8 years ago • 10 comments

How can I fix the glm import error,The import glm cannot be resolved! Thank you very much.

Lionel-Litao avatar Jun 06 '16 05:06 Lionel-Litao

Did you try to update glm?

Which imports fail?

elect86 avatar Jun 07 '16 08:06 elect86

I get the same issue, having just imported modern-jogl-examples as a maven project in Eclipse:

The following lines all give "The import xxx cannot be resolved" in framework.Framework, for example:

import glm.vec._2.i.Vec2i;
import glutil.BufferUtils;
import glutil.GlDebugOutput;

Assume it is a problem of some missing dependencies in the Maven build?

mikera avatar Dec 15 '16 09:12 mikera

Hmmm seems like some of these can be fixed by manually adding the libs to the project. Still, would be better if these were real Maven dependencies....

mikera avatar Dec 15 '16 09:12 mikera

Hi Mike!

Yes, you are totally right..

The thing is that I don't have the time and I am not that familiar with Maven yet, another guy is helping me on that side, but he is currently busy

Would you like to take care/push?

Ps: has this something to do with Steam Legions? :p

elect86 avatar Dec 15 '16 15:12 elect86

Well it's the other projects that need to deploy to Maven really.

I think some of the deps in lib may be out of date also..... is it possible that we need a new version of glutil package, I'm missing things like UniformBlockArray and a MatrixStack constructor etc.

New version of /modern-jogl-example/lib/javaUnofficialOpenglSDK.jar required perhaps?

I'm experimenting with JOGL for a new game idea I'm working on.

mikera avatar Dec 16 '16 01:12 mikera

I am gonna update it to gradle sooner or later

elect86 avatar Jan 17 '17 21:01 elect86

I am using Netbeans and I also have troubles to find and add glutil and glm as dependencies. Is there any chance that you will make maven work for these samples ? I am writing a plugin for ImageJ and they advise to use maven (https://imagej.net/Introduction_into_Developing_Plugins). Otherwise I suppose I'll have to understand what is gradle ;)

Thanks for the nice work!

NicoKiaru avatar Feb 07 '17 13:02 NicoKiaru

Don't worry, you won't need to know gradle to use it, I'll let you know ;)

elect86 avatar Feb 07 '17 13:02 elect86

Hey guys, I'm really sorry for the late reply. Especially sorry from @elect86. I've been busy for awhile. As @elect86 said, sooner or later we need to start learning gradle.

Meantime, I'm getting e-mails from who wants to try examples as it is right now. Today, I did commit stuff some in my forked repo. To whom it may want to try it with maven, can take a look. Please let me know if any error occurs on maven project.

@mikera @NicoKiaru

alicanalbayrak avatar Feb 13 '17 19:02 alicanalbayrak

Thanks Ali for your maven solution in the meanwhile! :)

I just committed the first 2 tutorials plus tut03.cpuPositionOffset with gradle, it'd be nice to get some feedback if everything works out in one click :p

elect86 avatar Feb 21 '17 18:02 elect86