Veka
Veka
TTermux
Created by Veka on 6/9/2024 in #support
Running moderngl (and glcontext) python library
Ty for help!
14 replies
TTermux
Created by Veka on 6/9/2024 in #support
Running moderngl (and glcontext) python library
Ahh nvm, I'm an idiot. I had a typo env DISPLAY:=1 instead of env DISPLAY=:1 So the solution to installing and running moderngl (and glcontext) python library in termux is: Install necessary packages
pgk install mesa xorgproto libx11 x11-repo && pkg install termux-x11-nightly
pgk install mesa xorgproto libx11 x11-repo && pkg install termux-x11-nightly
Install python library
pip install moderngl
pip install moderngl
Install companion app APK from https://github.com/termux/termux-x11 Launch X11 server
termux-x11 :1 &
termux-x11 :1 &
Launch python script with a DISPLAY=:1 prefix
DISPLAY=:1 python script.py
DISPLAY=:1 python script.py
14 replies
TTermux
Created by Veka on 6/9/2024 in #support
Running moderngl (and glcontext) python library
Ok, got it working again, when I ran it with termux-x11 :1 -xstartup "command goes here". Is there a way to fix it so that the server can run in the background while I can interactively run command directly in the shell? So basically the method that I've used in previous message.
14 replies
TTermux
Created by Veka on 6/9/2024 in #support
Running moderngl (and glcontext) python library
the same XOpenDisplay: cannot open display error
14 replies
TTermux
Created by Veka on 6/9/2024 in #support
Running moderngl (and glcontext) python library
Alright, so I had it for a second there, but then I cleared termux data to try & do it again, to make an exact step by step instructions, and now it no longer works. I've installed the following packages mesa xorgproto libx11 x11-repo termux-x11-nightly, installed latest apk, launched the server via termux-x11 :1 & and then run the python tool with env DISPLAY=:1 command prefix.
14 replies
TTermux
Created by Veka on 6/9/2024 in #support
Running moderngl (and glcontext) python library
Didn't fix. I uninstalled moderngl and glcontext libraries, cleared cache (pip cache purge), then installed moderngl with your command, but it still shows the same issue with XOpenDisplay: cannot open display
14 replies
TTermux
Created by Veka on 6/9/2024 in #support
Running moderngl (and glcontext) python library
Already have that installed, didn't fix
14 replies