Login  Register

CLASSPATH problems when compiling on OSX

Posted by eagereyes on Feb 02, 2011; 6:55pm
URL: https://forum.jogamp.org/CLASSPATH-problems-when-compiling-on-OSX-tp2407775.html

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?