View Single Post
Posts: 839 | Thanked: 3,386 times | Joined on Mar 2009
#22
Originally Posted by Sazpaimon View Post
Also, I have lightspark running on my device, but their GLES implementation isn't working on the device, so I'm not getting an picture. I'm working with the Lightspark devs to try to resolve this.
What version of Ligthspark you got compiled and how?

I made newer packages of libxml (2.33.1) : http://cc.oulu.fi/~rantalai/maemo5/

I have gcc-4.6 installed on scrathbox1 (talk.maemo.org/showthread.php?t=81861)

I compiled llvm-3.0
CMakeLists required cmake 2.8 -> 2.6
Code:
CC=gcc-4.6 CXX=g++-4.6 cmake ../llvm-3.0.src/ -DLLVM_TARGETS_TO_BUILD="ARM"
make
fakeroot make install
I added files FindGLES2.cmake and FindEGL.cmake for cmake: http://cc.oulu.fi/~rantalai/maemo5/
(Is there something wrong with them?)


And then I tried compile Lightspark from git: (March-2012) 9a6be5e822d39029944b872ac532c6c4e4e6bc4c

CMakeLists.txt needs
Code:
 INCLUDE(FindGLEW REQUIRED)
 ENDIF(NOT(ENABLE_GLES2))
+INCLUDE(FindGLES2 REQUIRED)
+INCLUDE(FindEGL REQUIRED)
 INCLUDE(FindPCRE REQUIRED)
 INCLUDE(FindJPEG REQUIRED)

 IF(ENABLE_GLES2)
-  pkg_check_modules(GLES2 REQUIRED egl glesv2)
+  find_package(GLES2)
+  find_package(EGL)
   ADD_DEFINITIONS(-DENABLE_GLES2)
 ENDIF(ENABLE_GLES2)
(I don't know why)

Code:
CC=gcc-4.6 CXX=g++-4.6 cmake -DENABLE_GLES2=ON -DCMAKE_BUILD_TYPE=Release ..
make
For compiling I must comment out some stuff: GL_EXT_texture_format_BGRA8888 (because 24bit/16bit issue) and g_date_time* (because too old gtk)

After that, linking fails because of (lots of)
Code:
compat.cpp:(.text+0x10): undefined reference to `clock_gettime'
swf.cpp:(.text+0x1728): undefined reference to `glVertexAttribPointer'
clock_gettime needs -lrt
gl_* needs -lGLESv2
So these are not passed correctly, but I do not know how to force them with cmake.
(It will not work even linking success, because there are essential parts commented out)
 

The Following 5 Users Say Thank You to AapoRantalainen For This Useful Post: