jocl source

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

jocl source

Itun
I cannot build jocl project there are a lot of errors. For example:

package com.jogamp.opencl;

import com.jogamp.common.nio.Buffers;
import java.util.List;
import com.jogamp.common.nio.NativeSizeBuffer;
import com.jogamp.opencl.CLMemory.Mem;
import com.jogamp.opencl.llb.CL;                         // there is no such class in com.jogamp.opencl.llb package.
import com.jogamp.opencl.llb.CLBufferBinding;      // there is no such class in com.jogamp.opencl.llb package.
import java.nio.Buffer;
import java.util.ArrayList;
import java.util.Collections;

import static com.jogamp.opencl.CLException.*;

/**
 * OpenCL buffer object wrapping an optional NIO buffer.
 * @author Michael Bien
 */
public class CLBuffer extends CLMemory {
Reply | Threaded
Open this post in threaded view
|

Re: jocl source

notzed
jocl can be challenging to build, but if you follow the documentation it is fairly simple.  Particularly, you need to build JOGL first, and and you need to put jogl, gluegen, and jocl in the correct directory structure.

See here:
http://jogamp.org/jocl/doc/HowToBuild.html

those errors are related to the JNI stuff, are you using the supplied ant script?