Posted by
Siassei on
Nov 10, 2010; 4:56pm
URL: https://forum.jogamp.org/ATI-Stream-SDK-tp1872773p1877189.html
Hello Michael,
> what example are you running?
The examples from the ati sdk (native files)
-----------------------------------------------
My first opencl call in my programm is
"CLPlatform.listCLPlatforms"
and this throws to (use the jocl linux_x86_64 build from the build server)
Exception in thread "main" com.jogamp.opencl.CLException$CLPlatformNotFoundKhrException: can not enumerate platforms [error: CL_PLATFORM_NOT_FOUND_KHR]
at com.jogamp.opencl.CLException.checkForError(CLException.java:39)
at com.jogamp.opencl.CLPlatform.listCLPlatforms(CLPlatform.java:166)
at com.jogamp.opencl.CLPlatform.listCLPlatforms(CLPlatform.java:152)
---------------------------------------------------------------------
If I want to build jocl by the source code from
http://jogamp.org/jocl/doc/HowToBuild.htmlcd jogl
ant jar // o.k.
cd ../jocl
ant jar // -->
/home/siassei/Projects/Private/jogamp/jocl/nbproject/build-impl.xml:111: The J2SE Platform is not correctly set up.
Your active platform is: default_platform, but the corresponding property "platforms.default_platform.home" is not found in the project's properties files.
Either open the project in the IDE and setup the Platform with the same name or add it manually.
For example like this:
ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.default_platform.home" in a .properties file)
or ant -Dplatforms.default_platform.home=<path_to_JDK_home> jar (where no properties file is used)
BUILD FAILED (total time: 0 seconds)
O.k I will set up the build.xml in Netbeans and than
init:
deps-jar:
Created dir: /home/siassei/Projects/Private/jogamp/jocl/build
Updating property file: /home/siassei/Projects/Private/jogamp/jocl/build/built-jar.properties
Created dir: /home/siassei/Projects/Private/jogamp/jocl/build/classes
gluegen.properties.load.user:
Loaded /home/siassei/gluegen.properties.
antlr.jar=../gluegen/make/lib/antlr.jar
junit.jar=../gluegen/make/lib/junit.jar
win32.c.compiler=${win32.c.compiler}
prepare-build:
Created dir: /home/siassei/Projects/Private/jogamp/jocl/etc/build
Compiling 2 source files to /home/siassei/Projects/Private/jogamp/jocl/etc/build
preprocess-headers:
Created dir: /home/siassei/Projects/Private/jogamp/jocl/resources/includes/CL
uncommenting params in /home/siassei/Projects/Private/jogamp/jocl/resources/includes/CL_orig/cl.h
uncommenting params in /home/siassei/Projects/Private/jogamp/jocl/resources/includes/CL_orig/cl_gl.h
Copying 1 file to /home/siassei/Projects/Private/jogamp/jocl/resources/includes/CL
Copying 1 file to /home/siassei/Projects/Private/jogamp/jocl/resources/includes/CL
Copying 1 file to /home/siassei/Projects/Private/jogamp/jocl/resources/includes/CL
Copying 1 file to /home/siassei/Projects/Private/jogamp/jocl/resources/includes/CL
/home/siassei/Projects/Private/jogamp/jocl/build.xml:29: taskdef class com.sun.gluegen.ant.GlueGenTask cannot be found
using the classloader AntClassLoader[/home/siassei/Projects/Private/jogamp/gluegen/build/gluegen.jar:/home/siassei/Projects/Private/jogamp/gluegen/build/antlr.jar:/home/siassei/Projects/Private/jogamp/gluegen/make/lib/antlr.jar]
BUILD FAILED (total time: 1 second)