Login  Register

Re: Fail to compile gluegen-v2.0-rc2 ...

Posted by elect on Sep 03, 2014; 3:13pm
URL: https://forum.jogamp.org/Fail-to-compile-gluegen-v2-0-rc2-tp2910008p4033024.html

gouessej wrote
You might need to add ant/lib/ant.jar to your classpath to remove the errors on Ant imports.
Thanks, it helped.

I still have some errors, especially in the class

cannot find symbol
  symbol:   variable UnsafeAccess
  location: class com.jogamp.gluegen.runtime.BufferFactoryInternal

I see I have an

import sun.misc.Unsafe;

Although it says "Unsafe is internal proprietary API and may be removed in a future release", if I substitute

UnsafeAccess.getUnsafe().objectFieldOffset(f);

with

Unsafe.getUnsafe().objectFieldOffset(f);

I dont get the error anymore..

Anyway I had a lot of errors also in ActivityLauncher, package jogamp.android.launcher;

I downloaded and added this http://www.java2s.com/Code/Jar/a/Downloadandroid231jar.htm


However, still tons of errors in test/junit, build/test and src/junit... I am gonna give up, it doesnt really matter since the build goes fine..