Re: GL_ARB_vertex_buffer_object not available on Mac?
Posted by Wade Walker on Dec 19, 2018; 1:23am
URL: https://forum.jogamp.org/GL-ARB-vertex-buffer-object-not-available-on-Mac-tp4039309p4039315.html
I've duplicated this error. With this command line:
java -cp jocl-demos/jar/jocl-demos.jar:jogamp-all-platforms/jar/jocl.jar:jogamp-all-platforms/jar/gluegen-rt.jar -Djava.library.path="jogamp-all-platforms/jar/jocl-natives-macosx-universal.jar:jogamp-all-platforms/jar/gluegen-rt-natives-macosx-universal.jar" com.jogamp.opencl.demos.hellojocl.HelloJOCL
the output is:
created CLContext [id: 140627526720672, platform: Apple, profile: FULL_PROFILE, devices: 2]
using CLDevice [id: 16918016 name: GeForce 320M type: GPU profile: FULL_PROFILE]
used device memory: 17MB
Exception in thread "main" com.jogamp.opencl.CLException$CLInvalidProgramExecutableException: can not enqueue 1DRange CLKernel [id: 140627533187072 name: VectorAdd]
with gwo: null gws: {1444608} lws: {256}
cond.: null events: null [error: CL_INVALID_PROGRAM_EXECUTABLE]
at com.jogamp.opencl.CLException.newException(CLException.java:84)
at com.jogamp.opencl.CLCommandQueue.putNDRangeKernel(CLCommandQueue.java:1638)
at com.jogamp.opencl.CLCommandQueue.put1DRangeKernel(CLCommandQueue.java:1496)
at com.jogamp.opencl.CLCommandQueue.put1DRangeKernel(CLCommandQueue.java:1466)
at com.jogamp.opencl.demos.hellojocl.HelloJOCL.main(HelloJOCL.java:73)
This is using the downloaded 2.3.2 version of JogAmp, rather than building it myself. It worked the last time I tried it on this Mac (2010 Macbook Air), but I've since updated to macOS 10.13, which could have broken something.
My suggestion would be to try building from source, to see if a fresh build in modern macOS will work. I'm not sure what will happen, but I can help advise if you try it :) I haven't spent a lot of time on this in the last few years, especially since Apple has said they're deprecating both OpenGL and OpenCL in favor of Metal.