thp / apkenv Goto Github PK
View Code? Open in Web Editor NEWA compatibility layer for applications packaged as .apk. Can run certain Android games on non-Android Linux (glibc and others).
License: Other
A compatibility layer for applications packaged as .apk. Can run certain Android games on non-Android Linux (glibc and others).
License: Other
Are there any plans to make apkenv work on Ubuntu touch?
user@ml1:/big/src/apkenv$ make
makefile:33: Using SDL 1.2 libraries
CC compat/gles2_wrappers.o
: error: two or more data types in declaration specifiers
make: *** [makefile:89: compat/gles2_wrappers.o] Error 1
Unfortunately make isn't giving me the line of gles2_wrappers.c that it doesn't like.
The structs end with semicolons, so that's correct. Idk what else could be the problem.
-e CC (TH) debug/wrappers/wrapper_code_thumb.o
/tmp/ccQR3dE2.s: Assembler messages:
/tmp/ccQR3dE2.s:25: Error: invalid register list to push/pop instruction -- push {r0-r11,lr}' /tmp/ccQR3dE2.s:26: Error: selected processor does not support Thumb mode
ldrd r0,fun'
/tmp/ccQR3dE2.s:28: Error: selected processor does not support Thumb mode ldrd r1,name' /tmp/ccQR3dE2.s:29: Error: selected processor does not support Thumb mode
ldrd r2,str'
/tmp/ccQR3dE2.s:30: Error: selected processor does not support Thumb mode ldrd r4,tc' /tmp/ccQR3dE2.s:32: Error: invalid register list to push/pop instruction --
pop {r0-r11,lr}'
/tmp/ccQR3dE2.s:40: Error: lo register required -- `ldr pc,fun'
make: *** [debug/wrappers/wrapper_code_thumb.o] Error 1
Is it possible to embed it in ApkEnv compiler libraries from Android? Wanted to run some apps on Maemo, but faced with the lack of libraries.
I think, it would be better to move all SDL sound code from support modules to apkenv binary. Then will be possible move support modules between platforms without recompile it to different SDL versions. As for evdev and joystick code.
In case this is still alive, the compilation fails on the RPi 3, similar to this issue with:
In file included from compat/gles2_wrappers.c:4:0:
/opt/vc/include/GLES2/gl2.h:49:26: error: two or more data types in declaration specifiers
/opt/vc/include/GLES2/gl2.h:49:1: warning: useless type name in empty declaration [enabled by default]
If I use @krnlyng 's RPi2 branch, the compilation gets almost finished, failing at:
libEGL.so undefined reference to "XCreateImage"
and 4 other similar libEGL errors just with different references.
On SailfishOS accelerometer reading is not working due to SDL_JoystickOpen(0) returning NULL with SDL error: "There are 0 joysticks available"
Hi. I've been analyzing your source code as I found strange that even very simple Acivity/layout application don't work on apkenv.
So the problem, as I see it, is that your are trying to find a shared library with apk_get_shared_library, but there is none. If I understand correctly this function checks the apk as a zip for "lib/armeab" folder. But my app doesn't contain even the lib folder. It just doesn't use any except those built into Android.
For me it seems that apkenv returns a wrong message. Or maybe even there would be a way to run much larger set of apk just by omitting trying to load the libraries?
Hello world app:
http://m.enux.pl/_native/hello/HelloAndroid.zip
The app built with Netbeans:
http://m.enux.pl/_native/hello/HelloAndroid-debug.apk
http://m.enux.pl/_native/hello/HelloAndroid-debug-unaligned.apk
I am getting this error compiling apkenv on Raspberry Pi 2:
...
-e CC linker/strlcpy.o
-e CC linker/dlfcn.o
-e CC compat/gles2_wrappers.o
In file included from compat/gles2_wrappers.c:4:0:
/opt/vc/include/GLES2/gl2.h:49:26: error: two or more data types in declaration specifiers
/opt/vc/include/GLES2/gl2.h:49:1: warning: useless type name in empty declaration [enabled by default]
makefile:84: recipe for target 'compat/gles2_wrappers.o' failed
make: *** [compat/gles2_wrappers.o] Error 1
Any ideas ?
I compiled apkenv on my Allwinner A10 linux device (using pandora for platform and maemo for gles). I maked some changes in imagelib and headers to fix compile errors (it does not build with actual libpng, zlib, libjpeg versions) It is working on my device, but running games does not respond to any touch events.
I added some tracing calls (printf("native input %d %d %d %d\n",event,x,y,finger); before native input call).
Input events are sent:
native input 1 435 241 0
x,y are true.
What is wrong?
Only trg2 responds to touch events.
O.K the problem was in hardfp (SOFTFP disabled on pandora).
Is it possible to get a platform file for the raspberry pi, i have managed to get libsdl-gles to compile and install, if it works is another matter..
Since there wasn't a platform file and the n9xx code wouldn't compile (references to sdl1.3 ?) i tryed pandora=1
Currently getting a egl surface on screen but the program kicks out the following
http://i.imgur.com/C1qEb1D.png
linker/dlfcn.c:267:17: error: initializer element is not constant
linker/dlfcn.c:267:17: note: (near initialization for ‘apkenv_libdl_symtab[6].st_value’)
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 6.3.1 20170109 (GCC)
feof is defined as a macro in bionic, the FILE struct in harmattan differs from the one in bionic causing feof to be broken.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.