View Single Post
Posts: 298 | Thanked: 197 times | Joined on Dec 2009 @ Norway
#23
That is one of the depencies, libxxf86vm. It's installable.
But next up it looks for libGL.so, which is exclusive to desktop GPUs. The N900 doesn't have support for OpenGL, only GLES. That's the reason why we can't run it with precompiled libraries from Ubuntu. (Ubuntu only has OpenGL unless you pull in some TI drivers, but they're barely supported. So, sorry to say: Ubuntu only supplies a few components. We need to compile LWJGL with ES support ourselves.
I've been attempting to compile it, but it fails when I get to doing "ant compile_native_es".
This is the output:
Code:
/media/mmc1/Development/LWJGL # ant compile_native_es 
Buildfile: /media/mmc1/Development/LWJGL/build.xml

-initialize:

compile:
     [core] Compiling 559 source files to /media/mmc1/Development/LWJGL/bin
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/APIUtil.java:46: cannot find symbol
     [core] symbol  : class EXTDeviceFission
     [core] location: package org.lwjgl.opencl
     [core] import static org.lwjgl.opencl.EXTDeviceFission.*;
     [core]                               ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/APIUtil.java:47: cannot find symbol
     [core] symbol  : class KHRGLSharing
     [core] location: package org.lwjgl.opencl
     [core] import static org.lwjgl.opencl.KHRGLSharing.*;
     [core]                               ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/CLChecks.java:40: cannot find symbol
     [core] symbol  : class CL11
     [core] location: package org.lwjgl.opencl
     [core] import static org.lwjgl.opencl.CL11.*;
     [core]                               ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/InfoUtilFactory.java:47: cannot find symbol
     [core] symbol  : class CL10GL
     [core] location: package org.lwjgl.opencl
     [core] import static org.lwjgl.opencl.CL10GL.*;
     [core]                               ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/InfoUtilFactory.java:48: cannot find symbol
     [core] symbol  : class CL11
     [core] location: package org.lwjgl.opencl
     [core] import static org.lwjgl.opencl.CL11.*;
     [core]                               ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opengl/ContextGL.java:38: cannot find symbol
     [core] symbol  : class KHRGLSharing
     [core] location: package org.lwjgl.opencl
     [core] import org.lwjgl.opencl.KHRGLSharing;
     [core]                        ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/APIUtil.java:392: cannot find symbol
     [core] symbol  : variable CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR
     [core] location: class org.lwjgl.opencl.APIUtil
     [core] 			case CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR:
     [core] 			     ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/APIUtil.java:393: cannot find symbol
     [core] symbol  : variable CL_DEVICES_FOR_GL_CONTEXT_KHR
     [core] location: class org.lwjgl.opencl.APIUtil
     [core] 			case CL_DEVICES_FOR_GL_CONTEXT_KHR:
     [core] 			     ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/APIUtil.java:517: cannot find symbol
     [core] symbol: method clReleaseDeviceEXT(org.lwjgl.opencl.CLDevice)
     [core] 		public void release(final CLDevice object) { clReleaseDeviceEXT(object); }
     [core] 		                                             ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/CLChecks.java:218: cannot find symbol
     [core] symbol  : variable CL_Rx
     [core] location: class org.lwjgl.opencl.CLChecks
     [core] 			case CL_Rx:
     [core] 			     ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/CLChecks.java:222: cannot find symbol
     [core] symbol  : variable CL_RGx
     [core] location: class org.lwjgl.opencl.CLChecks
     [core] 			case CL_RGx:
     [core] 			     ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/CLChecks.java:225: cannot find symbol
     [core] symbol  : variable CL_RGBx
     [core] location: class org.lwjgl.opencl.CLChecks
     [core] 			case CL_RGBx:
     [core] 			     ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/InfoUtilFactory.java:80: cannot find symbol
     [core] symbol  : variable CL_CONTEXT_NUM_DEVICES
     [core] location: class org.lwjgl.opencl.InfoUtilFactory.CLContextUtil
     [core] 				num_devices = getInfoInt(context, CL_CONTEXT_NUM_DEVICES);
     [core] 				                                  ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/InfoUtilFactory.java:341: cannot find symbol
     [core] symbol  : method clCreateSubBuffer(org.lwjgl.opencl.CLMem,long,int,java.nio.ByteBuffer,java.nio.IntBuffer)
     [core] location: class org.lwjgl.opencl.InfoUtilFactory.CLMemUtil
     [core] 			return clCreateSubBuffer(mem, flags, buffer_create_type, infoBuffer.getBuffer(), errcode_ret);
     [core] 			       ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/InfoUtilFactory.java:395: cannot find symbol
     [core] symbol  : method clGetGLObjectInfo(org.lwjgl.opencl.CLMem,java.nio.IntBuffer,<nulltype>)
     [core] location: class org.lwjgl.opencl.InfoUtilFactory.CLMemUtil
     [core] 			clGetGLObjectInfo(mem, buffer, null);
     [core] 			^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/InfoUtilFactory.java:404: cannot find symbol
     [core] symbol  : method clGetGLObjectInfo(org.lwjgl.opencl.CLMem,<nulltype>,java.nio.IntBuffer)
     [core] location: class org.lwjgl.opencl.InfoUtilFactory.CLMemUtil
     [core] 			clGetGLObjectInfo(mem, null, buffer);
     [core] 			^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/InfoUtilFactory.java:413: cannot find symbol
     [core] symbol  : method clGetGLTextureInfo(org.lwjgl.opencl.CLMem,int,java.nio.ByteBuffer,<nulltype>)
     [core] location: class org.lwjgl.opencl.InfoUtilFactory.CLMemUtil
     [core] 			clGetGLTextureInfo(mem, param_name, buffer, null);
     [core] 			^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/Util.java:51: cannot find symbol
     [core] symbol  : class CL11
     [core] location: class org.lwjgl.opencl.Util
     [core] 	}, null, CL10.class, CL11.class, KHRGLSharing.class, KHRICD.class, APPLEGLSharing.class, EXTDeviceFission.class);
     [core] 	                     ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/Util.java:51: cannot find symbol
     [core] symbol  : class KHRGLSharing
     [core] location: class org.lwjgl.opencl.Util
     [core] 	}, null, CL10.class, CL11.class, KHRGLSharing.class, KHRICD.class, APPLEGLSharing.class, EXTDeviceFission.class);
     [core] 	                                 ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/Util.java:51: cannot find symbol
     [core] symbol  : class KHRICD
     [core] location: class org.lwjgl.opencl.Util
     [core] 	}, null, CL10.class, CL11.class, KHRGLSharing.class, KHRICD.class, APPLEGLSharing.class, EXTDeviceFission.class);
     [core] 	                                                     ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opencl/Util.java:51: cannot find symbol
     [core] symbol  : class EXTDeviceFission
     [core] location: class org.lwjgl.opencl.Util
     [core] 	}, null, CL10.class, CL11.class, KHRGLSharing.class, KHRICD.class, APPLEGLSharing.class, EXTDeviceFission.class);
     [core] 	                                                                                         ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opengl/ContextGL.java:270: cannot find symbol
     [core] symbol  : variable KHRGLSharing
     [core] location: class org.lwjgl.opengl.ContextGL
     [core] 					properties.put(KHRGLSharing.CL_GL_CONTEXT_KHR).put(implWindows.getHGLRC(handle));
     [core] 					               ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opengl/ContextGL.java:271: cannot find symbol
     [core] symbol  : variable KHRGLSharing
     [core] location: class org.lwjgl.opengl.ContextGL
     [core] 					properties.put(KHRGLSharing.CL_WGL_HDC_KHR).put(implWindows.getHDC(peer_handle));
     [core] 					               ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opengl/ContextGL.java:275: cannot find symbol
     [core] symbol  : variable KHRGLSharing
     [core] location: class org.lwjgl.opengl.ContextGL
     [core] 					properties.put(KHRGLSharing.CL_GL_CONTEXT_KHR).put(implLinux.getGLXContext(handle));
     [core] 					               ^
     [core] /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opengl/ContextGL.java:276: cannot find symbol
     [core] symbol  : variable KHRGLSharing
     [core] location: class org.lwjgl.opengl.ContextGL
     [core] 					properties.put(KHRGLSharing.CL_GLX_DISPLAY_KHR).put(implLinux.getDisplay(peer_handle));
     [core] 					               ^
     [core] Note: /media/mmc1/Development/LWJGL/src/java/org/lwjgl/opengl/FastIntMap.java uses unchecked or unsafe operations.
     [core] Note: Recompile with -Xlint:unchecked for details.
     [core] 25 errors

BUILD FAILED
/media/mmc1/Development/LWJGL/build.xml:407: Compile failed; see the compiler error output for details.

Total time: 2 minutes 30 seconds
/media/mmc1/Development/LWJGL #
(I'm compiling it in my on-device SDK)
Beside the source, it is suggested to remove AWT, but I'm not a Java expert. Do we have any Java programmers aboard?
 

The Following 3 Users Say Thank You to Nokia 5700 For This Useful Post: