Thank you for explicit clarify that you intend to put the work under public domain. KUDOS!chris_c wrote:I'm not a lawyer.... But as I understand it code published without a licence is implicitly public domain, which was certainly my intention...
Do what you like with the code, it can certainly be improved !
Code: Select all
$(shell pkg-config egl --libs)
Code: Select all
pi@raspberrypi ~/Jgles2pi $ ant Buildfile: /home/pi/Jgles2pi/build.xml jni: [exec] gcc -fPIC -I/opt/vc/include/ -I/opt/vc/include/interface/vmcs_host/linux -I`readlink -f /usr/bin/javac | sed "s:bin/javac::"`/include/ -I`readlink -f /usr/bin/javac | sed "s:bin/javac::"`/include/linux -c jni/util.c -o jni/util.o [exec] Package egl was not found in the pkg-config search path. [exec] Perhaps you should add the directory containing `egl.pc' [exec] to the PKG_CONFIG_PATH environment variable [exec] No package 'egl' found [exec] In file included from /opt/vc/include/interface/vcos/vcos_assert.h:149:0, [exec] from /opt/vc/include/interface/vcos/vcos.h:114, [exec] from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33, [exec] from /opt/vc/include/EGL/eglplatform.h:110, [exec] from /opt/vc/include/EGL/egl.h:36, [exec] from jni/util.c:2: [exec] /opt/vc/include/interface/vcos/vcos_types.h:38:33: fatal error: vcos_platform_types.h: No such file or directory [exec] compilation terminated. [exec] make: *** [jni/util.o] Error 1 [exec] jni/Makefile:20: recipe for target 'jni/util.o' failed BUILD FAILED /home/pi/Jgles2pi/build.xml:7: exec returned: 2 Total time: 11 seconds
It compiles fine for me now as well!chris_c wrote:Okay, pushed a new commit, removing the cross platform stuff with the stuff that needs to be RPI specific (like hard coded paths /opt/vc)
I made a new raspbian sd card and tested it and it all seems hunky dory
I do enjoy the quick ~1 second startup time.chris_c wrote:I'm thinking of making a few tutorials from simplest hello world triangle to make complex things like render to texture and shaders etc.
Is there any interest in this or would I be wasting my time?