Login  Register

Re: CLASSPATH problems when compiling on OSX

Posted by Michael Bien on Feb 02, 2011; 7:05pm
URL: https://forum.jogamp.org/CLASSPATH-problems-when-compiling-on-OSX-tp2407775p2407900.html

  Hi,

you will have to put jogl next to the project and build it first. It is
needed for the OpenGL-OpenCL interoperability API.
JOGL is not mandatory at runtime only at compiletime and for the junit
tests. Maybe it would already work if you put it into classpath but i
haven't tried that yet :)


> Now you should have following directory structure:
>      /home/dude/projects/jogamp
>      /home/dude/projects/jogamp/gluegen
>      /home/dude/projects/jogamp/jogl
>      /home/dude/projects/jogamp/jocl
>                              

best regards,
michael

On 02/02/2011 07:55 PM, eagereyes [via jogamp] wrote:

>
> I'm trying to compile JOCL on Mac OS X 10.6.6. The directory structure is as
> described on the JOCL HowToBuild page, and the CLASSPATH is empty. When I
> run "ant jar" in the jocl directory, gluegen runs and spits out some
> warnings, but then the java compiler starts throwing errors:
>
>
> -do-compile:
>      [mkdir] Created dir: /Users/.../jogamp/jocl/build/empty
>      [javac] Compiling 57 source files to
> /Users/.../jogamp/jocl/build/classes
>      [javac]
> /Users/.../jogamp/jocl/src/com/jogamp/opencl/gl/CLGLBuffer.java:36: package
> javax.media.opengl does not exist
>      [javac] import javax.media.opengl.GLContext;
>      [javac]                          ^
>      [javac]
> /Users/.../jogamp/jocl/src/com/jogamp/opencl/gl/CLGLObject.java:35: package
> javax.media.opengl does not exist
>      [javac] import javax.media.opengl.GLContext;
>      [javac]                          ^
>      [javac]
> /Users/.../jogamp/jocl/src/com/jogamp/opencl/gl/CLGLContext.java:37: package
> com.jogamp.opengl.impl does not exist
>      [javac] import com.jogamp.opengl.impl.GLContextImpl;
>      [javac]                              ^
>
> It basically can't find any of the classes that exist in the
> gluegen/build/classes directory. Is there anything I need to do to make it
> see those? What steps are there before "ant jar" in the jocl directory that
> I might be missing?
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://jogamp.762907.n3.nabble.com/CLASSPATH-problems-when-compiling-on-OSX-tp2407775p2407775.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, visit
http://michael-bien.com/