Giter Site home page Giter Site logo

lzhiyong / termux-sdl Goto Github PK

View Code? Open in Web Editor NEW
82.0 6.0 15.0 117.7 MB

termux sdl plugin

License: Apache License 2.0

Java 0.83% Makefile 0.66% C 78.17% C++ 10.31% CMake 0.11% Perl 0.09% Objective-C 2.58% Python 0.01% Shell 5.87% M4 0.51% Metal 0.01% Assembly 0.12% CSS 0.10% HTML 0.62%
termux-sdl termux sdlplugin sdl sdl2 android native-activity ffplay android-ffplay android-sdl2

termux-sdl's Issues

question

how to use it on proot-distro virtualized environment?

Example won't run, please advise.

So, I have gone through the install process on Termux, built the example as described in the reader, but get the following error when I do the "make run " step.

I'd appreciate it if you would be kind enough to tell me what I have done wrong if it is an obvious error on my part.

Thanks!

~/.../draw2/build $ ls CMakeCache.txt Makefile libdraw2.so CMakeFiles cmake_install.cmake ~/.../draw2/build $ make run [ 66%] Built target draw2 grep: warning: stray \ before - [100%] start running SDL2 program draw2 Starting: Intent { cmp=com.termux.sdl/.TermuxSDLActivity (has extras) } Error type 3 Error: Activity class {com.termux.sdl/com.termux.sdl.TermuxSDLActivity} does not exist. make[3]: *** [CMakeFiles/run.dir/build.make:71: CMakeFiles/run] Error 2 make[2]: *** [CMakeFiles/Makefile2:110: CMakeFiles/run.dir/all] Error 2 make[1]: *** [CMakeFiles/Makefile2:117: CMakeFiles/run.dir/rule] Error 2 make: *** [Makefile:137: run] Error 2

too dumb to figure out how to use graphics in Termux

ok , so i want to use sdl2 ta draw some graphics , anything would do even a simple red rectangle.
i guess you can do that with C++ and sdl right ? so what exactly do i need to do ?
like what apps do i need to install to see the graphical output ? and just tell me every steps

Examples fail to run

This is a great work.

I haven't yet gotten any examples to run.

When I launch termux-sdl I see a rapidly spinning cube.
If I then do make run in draw2/build or drawchessboard/build or showimage/build, I see a slowly spinning cube regardless which example I ran.
If I close termux-sdl, and then do make run, it opens the app and immediately closes. If I return to termux-sdl manually from the app switcher, it immediately closes again. If I relaunch it from the home screen manually, I see a rapidly spinning cube.

If I do make run in native/plasma/build and termux-sdl is already running, I see a slowly spinning cube. If I close termux-sdl and try again, I see an empty window with the title "termux-native". There is no content to the window and no menu to view a log. I get the same empty window for vulkan/build and colors/build.

Those are all the examples I've tried so far.

I'm just on an android phone right now, so I don't have a logcat or anything, I'm sorry. The phone is a BBB100-1 running Android 8.1.0 and kernel 3.18.71-perf-gc7467a0 aarch64.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.