praat on android (<= 11, > 12, >= 12L, 13)
from within termux, build praat fetched via git (commit 5d42679c)
pkg upgrade
pkg install x11-repo
pkg install make clang binutils pkg-config gtk3 pulseaudio xorgproto
pkg install git
cd /data/data/com.termux/files/usr/include/sys
ln -s ../linux/soundcard.h .
cd ~
mkdir src && cd src
git clone https://github.com/praat/praat
cd praat
# File: makefile.defs.linux.termux
# System: Android via termux
CC ?= gcc
CXX ?= g++
LINK ?= g++
PKG_CONFIG ?= "pkg-config"
COMMONFLAGS = -D_FILE_OFFSET_BITS=64 -DUNIX -Dlinux -DHAVE_PULSEAUDIO `$(PKG_CONFIG) --cflags gtk+-3.0` \
-Wreturn-type -Wunused -Wunused-parameter -Wuninitialized -O1 -g1 -pthread
CFLAGS = -std=gnu99 $(COMMONFLAGS) -Werror=missing-prototypes -Werror=implicit
CXXFLAGS = -std=c++17 $(COMMONFLAGS) -Wshadow
EXECUTABLE = praat
LIBS = `$(PKG_CONFIG) --libs gtk+-3.0` -lm -lpulse -lpthread
ICON =
MAIN_ICON =
make -j
ls -al praat
pkg install tigervnc
vncserver -localhost
pkg install fluxbox
export DISPLAY=":1"
fluxbox
-
ensure an android vnc client app (e.g. VNC Viewer from RealVNC) has been installed
-
start android vnc client app
-
create new connection with parameters:
127.0.0.1:5901
(N.B. 5901 = 5900 + 1, where 1 is from earlier $DISPLAY value) -
start the new vnc connection (may need password from earlier) - should end up seeing the window manager launched earlier (e.g. fluxbox)
-
start aterm via right-click menu
-
start praat from inside aterm window
cd ~/src/praat ./praat