termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
35.46k stars 3.72k forks source link

Build Android App with Native Activity #600

Closed ghost closed 6 years ago

ghost commented 6 years ago

Is it possible to build a fully native Android app [Native Activity with no Java code] using Termux? Built an Android OpenGL ES native activity app on Linux. Would like to work on my app with Termux during my commute on train to work.

SDRausty commented 6 years ago

@aeuxer are these the things you are seeking?

pacman -Ss OpenGL
extra/foobillard++ 3.42beta-5
    An OpenGL billiard game
extra/freeglut 3.0.0-2
    Provides functionality for small OpenGL programs
extra/ftgl 2.1.3rc5-10
    OpenGL library to use arbitrary fonts
extra/gl2ps 1.4.0-1
    an OpenGL to PostScript printing library
extra/glew 2.1.0-1
    The OpenGL Extension Wrangler Library
extra/glproto 1.4.17-1
    X11 OpenGL extension wire protocol
extra/glu 9.0.0-4
    Mesa OpenGL Utility library
extra/gtkglext 1.2.0-10
    opengl extensions for gtk2
extra/libepoxy 1.4.3-1
    Library handling OpenGL function pointer management
extra/mesa 17.3.2-2
    an open-source implementation of the OpenGL specification
extra/opengl-man-pages 20170404-1
    OpenGL Man Pages
extra/python-opengl 3.1.0-3
    The cross platform Python binding to OpenGL and related APIs
extra/python2-opengl 3.1.0-3
    The cross platform Python binding to OpenGL and related APIs
extra/qwtplot3d 0.2.7-9
    Qt/OpenGL-based C++ programming library containing 3d-widgets
community/blur-effect 1.1.3-1
    Off-screen image blurring utility using OpenGL ES 3.0
community/coin 3.1.3-15
    A high-level 3D graphics toolkit on top of OpenGL
community/erlang-sdl 1.3.1-2
    SDL and OpenGL bindings for Erlang
community/glew-wayland 2.1.0-2
    The OpenGL Extension Wrangler Library (for Wayland)
community/glitz 0.5.6-6
    OpenGL image compositing library
community/glm 0.9.8.5-2
    C++ mathematics library for 3D software based on the OpenGL Shading Language
    (GLSL) specification
community/glslang 3.0.git6.82ead04-1
    An OpenGL and OpenGL ES shader front end and validator
community/guichan 0.8.2-5
    A portable C++ GUI library designed for games using Allegro, SDL and/or
    OpenGL.
community/libvdpau-va-gl 0.4.2-2
    VDPAU driver with OpenGL/VAAPI backend
community/mupdf-gl 1.12.0-2
    Lightweight PDF and XPS viewer with OpenGL backend
community/opencsg 1.4.2-2
    Library for image-based CSG rendering using OpenGL.
community/openra 20171014-1
    An open-source implementation of the Red Alert engine using .NET/Mono and
    OpenGL
community/sdlmame 0.194-1
    A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL
    support.
community/simplescreenrecorder 0.3.9-4
    A feature-rich screen recorder that supports X11 and OpenGL.
community/soil 1.16-2
    A tiny C lib primarily for loading textures into OpenGL
community/virtualgl 2.5.2-2
    Redirects 3D commands from an OpenGL application onto a server-side 3D

If so, they are available today via https://sdrausty.github.io/TermuxArch/

ghost commented 6 years ago

@sdrausty Don't think so. Trying to build an Android APK with a Native Activity [no Java code] using Termux. Built an OpenGL ES Android APK for ARM architecture similar to the image below on Linux. Have used your build scripts before to build regular Android/Java APKs. Wanted to ask if it is even possible to build native Android APKs with Termux before I spend more time debugging. Your TermuxArch project is amazing though. You have a God-given talent.

https://www.ntu.edu.sg/home/ehchua/programming/android/images/NeheAndroid03.png

xloem commented 3 years ago

https://github.com/Lzhiyong/termux-sdl purports to offer this but crashed for me today