its-pointless / its-pointless.github.io Goto Github PK
View Code? Open in Web Editor NEWFor info see https://github.com/its-pointless/gcc_termux
For info see https://github.com/its-pointless/gcc_termux
Trying to install g++ on a fresh install of termux (with just wget installed as an additional package and the setup-pointless-repo.sh script applied) fails with conflicting dependencies:
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
guile-2.2 : Conflicts: guile but 2.0.14 is to be installed
E: Unable to correct problems, you have held broken packages.
Greetings!
I followed the suggestion on the termux wiki and upgraded my repo's to version 24.
Now in the process of reinstalling some apps; here is my environment information:
Updatable packages: All packages up to date
Subscribed repositories: https://dl.bintray.com/xeffyr/x11-packages-24 x11/main
https://dl.bintray.com/grimler/science-packages-24 science/stable https://dl.bintray.com/grimler/termux-root-packages-24 root/stable
https://its-pointless.github.io/files/24 termux/extras https://its-pointless.github.io/files/24 termux/extras
https://dl.bintray.com/grimler/game-packages-24 games/stable https://dl.bintray.com/termux/termux-packages-24 stable/main
System information:
Linux localhost 3.14.79-x86_64-g7f80a31 #1 SMP PREEMPT Fri Oct 13 01:49:24 CST 2017 x86_64 Android
Termux-packages arch: x86_64 Android version: 7.1.1 Device manufacturer: LENOVO
Device model: Lenovo YB1-X90F
When I attempt:
$ pkg install ecl
I receive:
https://its-pointless.github.io/files/24 termux InRelease Ign:2 https://dl.bintray.com/termux/termux-packages-24 stable InRelease
Ign:3 https://dl.bintray.com/grimler/game-packages-24 games InRelease Ign:4 https://dl.bintray.com/grimler/termux-root-packages-24 root InRelease Ign:5 https://dl.bintray.com/grimler/science-packages-24 science InRelease Ign:6 https://dl.bintray.com/xeffyr/x11-packages-24 x11 InRelease Get:7 https://dl.bintray.com/termux/termux-packages-24 stable Release [6061 B] Hit:7 https://dl.bintray.com/termux/termux-packages-24 stable Release Get:8 https://dl.bintray.com/grimler/game-packages-24 games Release [5344 B] Hit:8 https://dl.bintray.com/grimler/game-packages-24 games Release Get:9 https://dl.bintray.com/grimler/termux-root-packages-24 root Release [6185 B] Hit:9 https://dl.bintray.com/grimler/termux-root-packages-24 root Release Get:12 https://dl.bintray.com/grimler/science-packages-24 science Release [5348 B] Hit:12 https://dl.bintray.com/grimler/science-packages-24 science Release Get:13 https://dl.bintray.com/xeffyr/x11-packages-24 x11 Release [6055 B] Hit:13 https://dl.bintray.com/xeffyr/x11-packages-24 x11 Release Reading package lists... Building dependency tree... Reading state information... All packages are up to date. Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation: The following packages have unmet dependencies:
ecl : Depends: libffi-dev but it is not installable Depends: libgc-dev but it is not installable
Depends: libgmp-dev but it is not installable
Not sure where to find those libraries; any suggestions would be appreciated.
Thank you.
It appears that the OpenCV package found here seems to have the same bug as 3.4.4-1, reported here: https://bugs.archlinux.org/task/60855
when I installing numpy
and scipy
as:
$ curl -L https://its-pointless.github.io/setup-pointless-repo.sh | sh
pkg install numpy scipy
then,the terminal print:
....
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
numpy : Depends: python-dev but it is not installable
Depends: libcrypt-dev but it is not installable
E: Unable to correct problems, you have held broken packages.
I tried to install python-dev
but failed:
......
Package python-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python
E: Package 'python-dev' has no installation candidate
finally, I find this answer in termux-app issue#1188: *-dev
packages will no longer be available for installation.
so, I want to ask how can I install scipy
now, thanks
control
package from Octave Forgepkg install -forge control
warning: LFLAGS is deprecated and will be removed in a future version of Octave, use LDFLAGS instead
sh: gfortran: not found
make: *** [Makefile:35: slicotlibrary.a] Error 127
make: *** Waiting for unfinished jobs....
make: Entering directory '/data/data/com.termux/files/usr/tmp/oct-yZH1kR/control-3.2.0/src'
tar -xzf slicot.tar.gz
/data/data/com.termux/files/usr/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations __control_helper_functions__.cc
mkdir sltmp
mv slicot/src/*.f ./sltmp
mv slicot/src_aux/*.f ./sltmp
cp TG04BX.fortran ./sltmp/TG04BX.f
cp TB01ZD.fortran ./sltmp/TB01ZD.f
cd sltmp; /data/data/com.termux/files/usr/bin/mkoctfile-5.1.0 -c *.f
make: Leaving directory '/data/data/com.termux/files/usr/tmp/oct-yZH1kR/control-3.2.0/src'
pkg: error running `make' for the control package.
error: called from
configure_make at line 99 column 9
install at line 184 column 7
pkg at line 441 column 9
Even after installing make
, clang
, gcc
and even also tried automake
, cmake
and build-essential
, I still cannot get Octave to install the control
package.
Hello, I hope I've come to the right place for this issue!
I've installed the termux build of vlc (from extras, I believe). It works fine on 'local' media but crashes with 'segmentation fault' on adding an http stream. See attachment.
Running under Android 10.3 on OnePlus 6.
Help much appreciated.
Thanks in anticipation.
Also vlc <video.mp4> -V x11 gives error:
get_buffer() failed
Decode slice error
No frame!
Though playing ascii output works fine.
Problem description
Readr package readr function fails to locate time zone info.
Steps to reproduce
#!/usr/bin/env Rscript
library(readr)
main <- function(argv) {
teams <- readr::read_csv("team_standings.csv", col_types = "ic",
locale = locale(tz = "Asia/Kolkata"))
print(teams)
return(0)
}
if (identical(environment(), globalenv())) {
quit(status = main(commandArgs(trailingOnly = TRUE)))
}
Csv file:
"Standing","Team"
1,"Spain"
2,"Netherlands"
3,"Germany"
4,"Uruguay"
5,"Argentina"
6,"Brazil"
7,"Ghana"
8,"Paraguay"
9,"Japan"
10,"Chile"
11,"Portugal"
12,"USA"
13,"England"
14,"Mexico"
15,"South Korea"
16,"Slovakia"
17,"Ivory Coast"
18,"Slovenia"
19,"Switzerland"
20,"South Africa"
21,"Australia"
22,"New Zealand"
23,"Serbia"
24,"Denmark"
25,"Greece"
26,"Italy"
27,"Nigeria"
28,"Algeria"
29,"France"
30,"Honduras"
31,"Cameroon"
32,"North Korea"
Error message:
$ ./readteamstandings.R
Error: Unknown TZ UTC (when no locale specified)
In addition: Warning message:
In OlsonNames() : no Olson database found
Execution halted
Expected behavior
Script should display first 10 records as follows:
# A tibble: 32 x 2
Standing Team
<int> <chr>
1 1 Spain
2 2 Netherlands
3 3 Germany
4 4 Uruguay
5 5 Argentina
6 6 Brazil
7 7 Ghana
8 8 Paraguay
9 9 Japan
10 10 Chile
# … with 22 more rows
The above script performs as expected on ArchLinux on Termux.
I have been unable to write images in octave because executing imwrite, print, or a number of other image-related functions causes the crash shown below. Does this have something to do with graphicsmagick? I used imformats to produce the error below but it is identical to what I get when I try to write a png file with imwrite.
$ octave
octave: no graphical display found
octave: disabling GUI features
GNU Octave, version 5.1.0
Copyright (C) 2019 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type 'warranty'.
Octave was configured for "aarch64-unknown-linux-android".
Additional information about Octave is available at https://www.octave.org.
Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html
Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.
octave:1> imformats
OMP: Error #15: Initializing libomp.a, but found libomp.a already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://openmp.llvm.org/
fatal: caught signal Aborted -- stopping myself...
Aborted
$
Hi, I just tried to update my packages and got the following error:
> pkg upgrade
Hit:1 https://its-pointless.github.io/files termux InRelease
Hit:2 https://termux.net stable InRelease
Reading package lists... Error!
E: Problem parsing dependency 20
E: Error occurred while processing opencv (NewVersion2)
E: Problem with MergeList /data/data/com.termux/files/usr/var/lib/apt/lists/its-pointless.github.io_files_dists_termux_extras_binary-aarch64_Packages
E: The package lists or status file could not be parsed or opened.
parallel
package from Octave Forgepkg install -forge parallel
checking for mkoctfile... /data/data/com.termux/files/usr/bin/mkoctfile-5.1.0
checking for octave-config... /data/data/com.termux/files/usr/bin/octave-config-5.1.0
checking for a sed that does not truncate output... /data/data/com.termux/files/usr/bin/sed
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking for clang++ option to enable C++11 features... none needed
checking how to run the C++ preprocessor... clang++ -E
checking for gcc... clang
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to enable C11 features... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /data/data/com.termux/files/usr/bin/grep
checking for egrep... /data/data/com.termux/files/usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking gnutls/gnutls.h usability... yes
checking gnutls/gnutls.h presence... yes
checking for gnutls/gnutls.h... yes
checking for gnutls_global_init in -lgnutls... yes
checking for pkg-config... pkg-config
checking for gnutls_global_init_extra in -lgnutls-extra... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for socket... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking sys/malloc.h usability... no
checking sys/malloc.h presence... no
checking for sys/malloc.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stdio_ext.h usability... yes
checking stdio_ext.h presence... yes
checking for stdio_ext.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for int32_t... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint32_t... yes
checking for error_at_line... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking return type of signal handlers... void
checking for memset... yes
checking for mkdir... yes
checking for modf... no
error: called from
install at line 192 column 5
pkg at line 441 column 9
pkg: error running the configure script for parallel.
error: called from
configure_make at line 82 column 9
install at line 184 column 7
pkg at line 441 column 9
I've installed the struct
octave package but libgnutls..-dev
doesn't seem to be installable.
I'm also not sure if it's some other problem preventing the package from installing.
Current version 1.33.0 is quiet old it's stable now(https://blog.rust-lang.org/2019/02/28/Rust-1.33.0.html)
Currently if you install rustc from this repo and try to run it,
I get
CANNOT LINK EXECUTABLE "rustc": library "libLLVM-4.0.so" not found
I suspect this is because main termux repository moved to llvm-5.0, so hopefully just rebuilding rust will be sufficient.
Cheers
I can't run any executable from the MongoDB pacakage due this library issue on aarch64.
I found your repo by chance. Installed octave and it complains on missing libGraphicsMagick++.so. I just started to use termux so I'm not sure on where to look up that library
After installing scipy
, I get the following error when import scipy
:
Traceback (most recent call last):
File "", line 1, in
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/scipy-1.2.1-py3.7-linux-aarch64.egg/scipy/init.py", line 119, in
from scipy._lib._ccallback import LowLevelCallable
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/scipy-1.2.1-py3.7-linux-aarch64.egg/scipy/_lib/_ccallback.py", line 1, in
from . import _ccallback_c
ImportError: dlopen failed: library "libandroid-support.so" not found
My installed package on my phone are:
apt/stable,now 1.4.9-4 aarch64 [installed]
bash/stable,now 5.0.7 aarch64 [installed]
binutils/stable,now 2.32-2 aarch64 [installed,automatic]
busybox/stable,now 1.30.1-1 aarch64 [installed]
ca-certificates/stable,now 20190124 all [installed]
clang/stable,now 8.0.0-2 aarch64 [installed]
command-not-found/stable,now 1.37 aarch64 [installed]
coreutils/stable,now 8.31 aarch64 [installed]
curl/stable,now 7.64.1-1 aarch64 [installed]
dash/stable,now 0.5.10.2-1 aarch64 [installed]
diffutils/stable,now 3.7 aarch64 [installed,automatic]
dnsutils/stable,now 9.13.6-3 aarch64 [installed]
dpkg/stable,now 1.19.4-1 aarch64 [installed]
fftw/stable,now 3.3.8 aarch64 [installed]
fftw-dev/stable,now 3.3.8 aarch64 [installed]
freetype/stable,now 2.10.0-1 aarch64 [installed]
freetype-dev/stable,now 2.10.0-1 aarch64 [installed]
game-repo/stable,now 1.1 all [installed]
gdbm/stable,now 1.18.1 aarch64 [installed,automatic]
getconf/stable,now 0.5 aarch64 [installed]
git/stable,now 2.21.0-2 aarch64 [installed]
glib/stable,now 2.58.3-2 aarch64 [installed,automatic]
gnupg/stable,now 2.2.15-1 aarch64 [installed]
gpgv/stable,now 2.2.15-1 aarch64 [installed]
krb5/stable,now 1.16.3-1 aarch64 [installed,automatic]
ldns/stable,now 1.7.0-5 aarch64 [installed,automatic]
less/stable,now 530-2 aarch64 [installed]
libandroid-glob/stable,now 0.4 aarch64 [installed,automatic]
libandroid-glob-dev/stable,now 0.4 aarch64 [installed]
libandroid-shmem/stable,now 0.2 aarch64 [installed]
libandroid-shmem-dev/stable,now 0.2 aarch64 [installed]
libandroid-support/stable,now 24 aarch64 [installed]
libassuan/stable,now 2.5.3 aarch64 [installed,automatic]
libbz2/stable,now 1.0.6-2 aarch64 [installed]
libc++/stable,now 19b aarch64 [installed]
libcrypt/stable,now 0.2-1 aarch64 [installed,automatic]
libcrypt-dev/stable,now 0.2-1 aarch64 [installed,automatic]
libcurl/stable,now 7.64.1-1 aarch64 [installed]
libdb/stable,now 18.1.32 aarch64 [installed,automatic]
libedit/stable,now 20190324-3.1-0 aarch64 [installed,automatic]
libffi/stable,now 3.2.1-2 aarch64 [installed,automatic]
libgcrypt/stable,now 1.8.4 aarch64 [installed]
libgfortran5/termux,now 8.3.0-2 aarch64 [installed,automatic]
libgpg-error/stable,now 1.36 aarch64 [installed]
libksba/stable,now 1.3.5-1 aarch64 [installed,automatic]
libllvm/stable,now 8.0.0-2 aarch64 [installed,automatic]
liblzma/stable,now 5.2.4 aarch64 [installed]
libnghttp2/stable,now 1.38.0 aarch64 [installed]
libnpth/stable,now 1.6 aarch64 [installed,automatic]
libpng/stable,now 1.6.37-1 aarch64 [installed]
libpng-dev/stable,now 1.6.37-1 aarch64 [installed]
libsodium/stable,now 1.0.17 aarch64 [installed,automatic]
libsqlite/stable,now 3.27.2-1 aarch64 [installed,automatic]
libtalloc/stable,now 2.1.14-1 aarch64 [installed,automatic]
libunistring/stable,now 0.9.10-1 aarch64 [installed,automatic]
libuuid/stable,now 1.0.3-2 aarch64 [installed,automatic]
libzmq/stable,now 4.3.1-1 aarch64 [installed]
libzmq-dev/stable,now 4.3.1-1 aarch64 [installed]
ncurses/stable,now 6.1.20181117-1 aarch64 [installed]
ncurses-ui-libs/stable,now 6.1.20181117-1 aarch64 [installed,automatic]
ndk-sysroot/stable,now 19b-3 aarch64 [installed,automatic]
numpy/termux,now 1.16.2 aarch64 [installed]
openblas/termux,now 0.3.5 aarch64 [installed,automatic]
openssh/stable,now 8.0p1-1 aarch64 [installed]
openssl/stable,now 1.1.1b-2 aarch64 [installed]
openssl-tool/stable,now 1.1.1b-2 aarch64 [installed]
pcre/stable,now 8.43-1 aarch64 [installed,automatic]
pcre2/stable,now 10.33 aarch64 [installed,automatic]
pinentry/stable,now 1.1.0-2 aarch64 [installed,automatic]
pkg-config/stable,now 0.29.2 aarch64 [installed]
proot/stable,now 5.1.107-20 aarch64 [installed]
pv/stable,now 1.6.6 aarch64 [installed]
python/stable,now 3.7.3-1 aarch64 [installed]
python-dev/stable,now 3.7.3-1 aarch64 [installed]
readline/stable,now 8.0 aarch64 [installed]
resolv-conf/stable,now 1.2 aarch64 [installed,automatic]
science-repo/stable,now 1.0 all [installed]
scipy/termux,now 1.2.1-1 aarch64 [installed]
tar/stable,now 1.32-1 aarch64 [installed]
termux-am/stable,now 0.2 all [installed]
termux-auth/stable,now 1.1 aarch64 [installed,automatic]
termux-exec/stable,now 0.4 aarch64 [installed]
termux-keyring/stable,now 1.2 all [installed]
termux-tools/stable,now 0.65 all [installed]
tsu/stable,now 2.3 all [installed]
vim/stable,now 8.1.1200-1 aarch64 [installed]
vim-runtime/stable,now 8.1.1200-1 all [installed,automatic]
wget/stable,now 1.20.3-1 aarch64 [installed]
xz-utils/stable,now 5.2.4 aarch64 [installed,automatic]
zip/stable,now 3.0-2 aarch64 [installed]
zlib/stable,now 1.2.11-3 aarch64 [installed]
zlib-dev/stable,now 1.2.11-3 aarch64 [installed]
zsh/stable,now 5.7.1 aarch64 [installed]
I've installed libandroid-support
, So I'm confused about what else I can do.
Can you give me some suggestions?
Thx
i tried to compile linux kernel for poco f1 android 9 with my phone poco kernel version 4.9 i started make defconfig i got some warnings after that make gived me lots of warnings for ELF I dunno is that related to it full log is here https://del.dog/elferror.txt maybe i missed something thx
Hi,
Found your OpenCV package to be very useful, when i tried the same to compile from source, I couldn't get the Install path for Python, I would like to know the instructions for the same.
Here are the Cmake Flags I used :
$
$ LDFLAGS=" -llog -lpython3 " \
cmake \
-DBUILD_JAVA=OFF \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DBUILD_opencv_python3=on \
-DBUILD_opencv_python2=off \
-DWITH_QT=OFF -DBUILD_ANDROID_EXAMPLES=OFF \
-DWITH_GTK=OFF \
-D PYTHON3_NUMPY_INCLUDE_DIRS=$(python3 -c "import numpy; print(numpy.get_include())") \
-D PYTHON3_LIBRARY=$(python3 -c "import distutils.sysconfig as sysconfig; import os; print(os.path.join(sysconfig.get_config_var('LIBDIR'), sysconfig.get_config_var('LDLIBRARY')))") \
-D PYTHON3_INCLUDE_DIR=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
-D PYTHON_DEFAULT_EXECUTABLE=$(which python3) \
-D PYTHON3_EXECUTABLE=$(which python3) \
-D PYTHON3_PACKAGES_PATH=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") \
-D WITH_OPENCL=ON ..
Even after all this, I end with
-- Python 3:
-- Interpreter: /data/data/com.termux/files/usr/bin/python3 (ver 3.8.1)
-- Libraries: NO
-- numpy: /data/data/com.termux/files/usr/lib/python3.8/site-packages/numpy-1.18.0-py3.8-linux-aarch64.egg/numpy/core/include (ver )
-- install path: -
Here are the Details Cmake Details :
Output of termux-info
Android version:
10
Kernel build information:
Linux localhost 4.9.179-perf+ #1 SMP PREEMPT Wed Jan 15 19:28:25 CST 2020 aarch64 Android
Device manufacturer:
OnePlus
Device model:
ONEPLUS A6010
-- General configuration for OpenCV 4.2.0-dev =====================================
-- Version control: 4.2.0-276-gaa2777ed61
--
-- Platform:
-- Timestamp: 2020-02-11T18:18:02Z
-- Host: Android 4.9.179-perf+ aarch64
-- CMake: 3.16.4
-- CMake generator: Unix Makefiles
-- CMake build tool: /data/data/com.termux/files/usr/bin/make
-- Configuration: RELEASE
--
-- CPU/HW features:
-- Baseline: NEON FP16
--
-- C/C++:
-- Built as dynamic libs?: NO
-- C++ Compiler: /data/data/com.termux/files/usr/bin/c++ (ver 9.0.1)
-- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
-- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
-- C Compiler: /data/data/com.termux/files/usr/bin/cc
-- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
-- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
-- Linker flags (Release): -llog -lpython3 -Wl,--as-needed
-- Linker flags (Debug): -llog -lpython3 -Wl,--as-needed
-- ccache: NO
-- Precompiled headers: NO
-- Extra dependencies: z dl m log
-- 3rdparty dependencies: libcpufeatures ittnotify libprotobuf libjpeg-turbo libwebp libpng libtiff libjasper IlmImf quirc tegra_hal
--
-- OpenCV modules:
-- To be built: calib3d core dnn features2d flann highgui imgcodecs imgproc ml objdetect photo stitching ts video videoio
-- Disabled: world
-- Disabled by dependency: -
-- Unavailable: gapi java js python2 python3
-- Applications: tests perf_tests
-- Documentation: NO
-- Non-free algorithms: NO
--
-- Android NDK: location:
-- Android ABI:
-- STL type:
-- Native API level:
-- Android SDK: (tools: build tools: )
--
-- GUI:
--
-- Media I/O:
-- ZLib: z (ver 1.2.11)
-- JPEG: build-libjpeg-turbo (ver 2.0.2-62)
-- WEBP: build (ver encoder: 0x020e)
-- PNG: build (ver 1.6.37)
-- TIFF: build (ver 42 - 4.0.10)
-- JPEG 2000: build (ver 1.900.1)
-- OpenEXR: build (ver 2.3.0)
-- HDR: YES
-- SUNRASTER: YES
-- PXM: YES
-- PFM: YES
--
-- Video I/O:
--
-- Parallel framework: pthreads
--
-- Trace: YES (with Intel ITT)
--
-- Other third-party libraries:
-- Eigen: NO
-- Custom HAL: YES (carotene (ver 0.0.1))
-- Protobuf: build (3.5.1)
--
-- OpenCL: YES (no extra features)
-- Include path: /data/data/com.termux/files/home/opencv/3rdparty/include/opencl/1.2
-- Link libraries: Dynamic load
--
-- Python 3:
-- Interpreter: /data/data/com.termux/files/usr/bin/python3 (ver 3.8.1)
-- Libraries: NO
-- numpy: /data/data/com.termux/files/usr/lib/python3.8/site-packages/numpy-1.18.0-py3.8-linux-aarch64.egg/numpy/core/include (ver )
-- install path: -
--
-- Python (for build): /data/data/com.termux/files/usr/bin/python3
--
-- Install to: /data/data/com.termux/files/usr
-- -----------------------------------------------------------------
I would like to cross compile an executable using cargo xbuild or xargo. These tools recompile libcore, liballoc, and other crates of the sysroot for a custom target (e.g. needed when writing an OS kernel). For doing this, they need access to the rust source code. Normally this is provided through a rustup component called "rust-src". The problem is that it needs to be the exact same version as rustc
uses, because otherwise they might not fit together.
Would it be possible to add some kind of rust-src-nightly package that puts the source code belonging to rustc-nightly
somewhere in the file system?
Hi,
having installed octave on my tablet I tried
pkg install - forgé interval
But there is the common problem that (make) scripts use /usr/bin/sh
which would have to be fixed on Termux.
How can I do that?
Many thanks,
Helmut
When I exec R, "utile" and "stats" packages can't be found
Add to repo please
Hi
I can't install httpuv from cran. It gives me the following error:
byte-compile and prepare package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/data/data/com.termux/files/usr/lib/R/library/Rcpp/libs/Rcpp.so':
dlopen failed: library "libgnuiconv.so" not found
Calls: ... asNamespace -> loadNamespace -> library.dynam -> dyn.load
Execution halted
ERROR: lazy loading failed for package ‘httpuv’
I tried pkg install libgnuiconv but there are no packages with that name.
Thank you for all this work.
Is there a specific reason why the fp-compiler is only available in the arm repository, and not the aarch64 repository? How much effort would it take to create a fp-compiler package for aarch64.
can you also tell the build steps too please
Hey there, cargo started breaking after termux upgraded openssl to 1.1.1-1. Do you have an automated process to rebuild or should we submit a change to rebuild it?
Here is cargo's output
$ cargo
CANNOT LINK EXECUTABLE "cargo": library "libssl.so.1.0.0" not found
Aborted
installed openssl
$ dpkg -l | grep -i openssl
ii openssl 1.1.1-1 aarch64 Library implementing the SSL and TLS protocols as well as general purpose cryptography functions
termux info
$ termux-info
Updatable packages:
All packages up to date
System information:
Linux localhost 4.4.111-14023573-QB19093103 #1 SMP PREEMPT Wed Jul 25 16:35:37 KST 2018 aarch64 Android
Termux-packages arch:
aarch64
Android version:
8.0.0
Device manufacturer:
samsung
Device model:
SM-G950F
Hello, I installed opencv for Python with pkg install opencv
from this repository. But when I try to
import cv2
in Python 3.7.5, it gives me this error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/cv2/_init_.py", line 89, in <module> bootstrap() File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/cv2/_init_.py", line 79, in bootstrap import cv2 ImportError: dlopen failed: library "libpng16.so" not found
Any idea to fix this?
Hi,
I don't know if I'm in the right place to ask but you seem to know Rust and Termux so here I am.
I try to build a pacake with cargo
and struggle upon openssl
.
Could not find directory of OpenSSL installation, and this `-sys` crate cannot
proceed without this knowledge. If OpenSSL is installed and this crate had
trouble finding it, you can set the `OPENSSL_DIR` environment variable for the
compilation process.
Make sure you also have the development packages of openssl installed.
For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.
If you're in a situation where you think the directory *should* be found
automatically, please open a bug at https://github.com/sfackler/rust-openssl
and include information about your system as well as this message.
$HOST = armv7-linux-androideabi
$TARGET = armv7-linux-androideabi
openssl-sys = 0.9.39
What can I do to fix that ?
Thanks
When using https://its-pointless.github.io/files/24
as the package repo, apt will complain about package suitesparse
missing.
I ran "pkg upgrade" and "pkg install r-base".
When I launch R I get the following error:
_Error: package or namespace load failed for ‘stats’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/data/data/com.termux/files/usr/lib/R/library/stats/libs/stats.so':
dlopen failed: cannot locate symbol "_aeabi_d2ulz" referenced by "/data/data/com.termux/files/usr/lib/R/library/stats/libs/stats.so"...
During startup - Warning message:
package ‘stats’ in options("defaultPackages") was not found
Octave. 5.1.0
octave: no graphical display found
octave: disabling GUI features
GNU Octave, version 5.1.0
Copyright (C) 2019 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type 'warranty'.
Octave was configured for "arm-unknown-linux-androideabi".
Additional information about Octave is available at https://www.octave.org.
Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html
Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.
lw
error: 'lw' undefined near line 1 column 1
fatal: caught signal Segmentation fault -- stopping myself...
Segmentation fault
Latest upgrade of the 32-bit r-base seems to have broken install.packages, which aborts every time.
The 64-bit version is working fine
After running a recent update in Termux, my R package broke. I think that r-base need to be recompiled? When I try to run R now, I get the following:
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/lib/R/bin/exec/R": cannot locate symbol "nl_langinfo" referenced by "/data/data/com.termux/files/usr/lib/libgnuiconv.so"...
Aborted (core dumped)
Any assistance would be greatly appreciated.
communications
package from Octave Forgepkg install -forge communications
make: Entering directory '/data/data/com.termux/files/usr/tmp/oct-de06t8/communications-1.2.1/src'
/data/data/com.termux/files/usr/bin/mkoctfile-5.1.0 -DGALOIS_DISP_PRIVATES __errcore__.cc -o __errcore__.oct
/data/data/com.termux/files/usr/bin/mkoctfile-5.1.0 -DGALOIS_DISP_PRIVATES __gfweight__.cc -o __gfweight__.oct
/data/data/com.termux/files/usr/bin/mkoctfile-5.1.0 -DGALOIS_DISP_PRIVATES cyclgen.cc -o cyclgen.oct
/data/data/com.termux/files/usr/bin/mkoctfile-5.1.0 -DGALOIS_DISP_PRIVATES cyclpoly.cc -o cyclpoly.oct
/data/data/com.termux/files/usr/bin/mkoctfile-5.1.0 -DGALOIS_DISP_PRIVATES genqamdemod.cc -o genqamdemod.oct
/data/data/com.termux/files/usr/bin/mkoctfile-5.1.0 -DGALOIS_DISP_PRIVATES -c galois-def.cc -o galois-def.o
/data/data/com.termux/files/usr/bin/mkoctfile-5.1.0 -DGALOIS_DISP_PRIVATES -c galois.cc -o galois.o
/data/data/com.termux/files/usr/bin/mkoctfile-5.1.0 -DGALOIS_DISP_PRIVATES -c galoisfield.cc -o galoisfield.o
make: Leaving directory '/data/data/com.termux/files/usr/tmp/oct-de06t8/communications-1.2.1/src'
error: called from
install at line 192 column 5
pkg at line 441 column 9
pkg: error running `make' for the communications package.
error: called from
configure_make at line 99 column 9
install at line 184 column 7
pkg at line 441 column 9
I'm not sure what I'm missing other than the signal
octave package.
I'm also not sure if it's a bug within the package itself that makes it not installable.
The script contains
mkdir $PREFIX/etc/apt/sources.list.d
which will fail if the directory exists. I would suggest to add the -p
option:
mkdir -p $PREFIX/etc/apt/sources.list.d
ImportError: dlopen failed: "/data/data/com.termux/files/usr/lib/python3.7/site-packages/scipy-1.2.1-py3.7-linux-armv8l.egg/scipy/_lib/_ccallback_c.cpython-37m.so" is 64-bit instead of 32-bit
$ octave
octave: no graphical display found
octave: disabling GUI features
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/bin/octave-cli-4.4.0": cannot locate symbol "__powisf2" referenced by "/data/data/com.termux/files/usr/lib/octave/4.4.0/liboctave.so"...
Aborted
$
scim fails and terminates the application with segmentation fault when trying to save a file.
I cant install some of my favorite packages because rust is out of date :(
Is it possible to update it or add a rustup package?
Reading package lists... Done
E: The repository 'https://its-pointless.github.io/files termux Release' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
When I try to use SciPy (version 1.1.0) in termux then I get an import error.
I run
echo "import scipy.stats as st" | python
and get:
Traceback (most recent call last):
File "", line 1, in
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-aarch64.egg/scipy/stats/init.py", line 345, in
from .stats import *
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-aarch64.egg/scipy/stats/stats.py", line 171, in
from . import distributions
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-aarch64.egg/scipy/stats/distributions.py", line 10, in
from ._distn_infrastructure import (entropy, rv_discrete, rv_continuous,
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-aarch64.egg/scipy/stats/_distn_infrastructure.py", line 16, in
from scipy.misc import doccer
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-aarch64.egg/scipy/misc/init.py", line 68, in
from scipy.interpolate._pade import pade as _pade
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-aarch64.egg/scipy/interpolate/init.py", line 175, in
from .interpolate import *
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-aarch64.egg/scipy/interpolate/interpolate.py", line 32, in
from .interpnd import _ndim_coords_from_arrays
File "interpnd.pyx", line 1, in init scipy.interpolate.interpnd
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-aarch64.egg/scipy/spatial/init.py", line 94, in
from .kdtree import *
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-aarch64.egg/scipy/spatial/kdtree.py", line 8, in
import scipy.sparse
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-aarch64.egg/scipy/sparse/init.py", line 229, in
from .csr import *
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-aarch64.egg/scipy/sparse/csr.py", line 15, in
from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks,
ImportError: dlopen failed: cannot locate symbol "_Unwind_Resume" referenced by "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-aarch64.egg/scipy/sparse/_sparsetools.cpython-36m.so"...
Error message:
CANNOT LINK EXECUTABLE "julia": cannot locate symbol "LLVMInitializeWebAssemblyTargetMC" referenced by "/data/data/com.termux/files/usr/opt/julia/lib/libjulia.so.1.0"
This package needs graphicsmagick++ but what is available is graphicsmagick
octave: no graphical display found
octave: disabling GUI features
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/bin/octave-cli-4.4.1": library "libreadline.so.8" not found
Aborted
Hi,
after termux-repo-update Octave doesn't start anymore. It cannot find libandroid-support.so.
The same happens on a fresh install of Termux under Android 9.
Increase opencv for python3.8
Hi. I am not sure how to contribute build scripts to have a new package introduced into the extras repository. It took me some time to get it compiled, as it builds 3 binaries, one for X11, one for the Linux VC, and one for ncurses. It builds using CMake, so I needed to also familiarize myself with how to configure the build correctly.
efte repo: https://github.com/lanurmi/efte/
In order to have it compiled, lines 227-233 need to be completely removed as Android doesn't have Linux console support, so when it tries to build vefte it will fail, and will most likely not even run anyways.
The dependencies needed to build it were: cmake and ncurses-dev. There might be a few others, however my Termux install had everything but these two. The code itself is C++, so that compiler and related libraries are also required to build.
The CMake build command I used is as follows:
$ cmake . -DCMAKE_INSTALL_PREFIX=/data/data/com.termux/files/usr -DUSE_GPM=OFF
GPM isn't needed to make use of efte's excellent mouse support, as the ANSI/VT100 specification has full mouse support and works fully in Termux to navigate menus and dialog boxes within the app.
Overall, this editor is great to have on Termux, and fits right in next to Midnight Commander, as efte has a similar colour scheme which can be applied. It's a very user-friendly editor that also supports full syntax highlighting out of the box for most popular languages and scripting formats. Also, being menu based, and supported by the Android touchscreen, it makes it easier to save, exit, and use other common editing features without needing to use a special android keyboard or have the Termux shortcut bar constantly on-sceen, giving more screen real estate to the code editor.
included from /data/data/com.termux/files/usr/include/features.h:33,
from /data/data/com.termux/files/usr/include/c++/v1/__config:204,
from /data/data/com.termux/files/usr/include/c++/v1/iostream:37,
from main.cpp:1:
/data/data/com.termux/files/usr/include/string.h:205:9: error: attributes are not allowed on a function-definition
__prefer_this_overload {
^~~~~~~~~~~~~~~~~~~~~~
In file included from /data/data/com.termux/files/usr/include/c++/v1/string.h:61,
from /data/data/com.termux/files/usr/include/stdio.h:47,
from /data/data/com.termux/files/usr/include/c++/v1/stdio.h:108,
from /data/data/com.termux/files/usr/include/wchar.h:33,
from /data/data/com.termux/files/usr/include/c++/v1/wchar.h:119,
from /data/data/com.termux/files/usr/include/c++/v1/iosfwd:90,
from /data/data/com.termux/files/usr/include/c++/v1/ios:215,
from /data/data/com.termux/files/usr/include/c++/v1/iostream:38,
from main.cpp:1:
/data/data/com.termux/files/usr/include/string.h:204:13: error: ambiguating new declaration of 'const void* memchr(const void*, int, size_t)'
const void* memchr(const void* const s __pass_object_size, int c, size_t n)
^~~~~~
/data/data/com.termux/files/usr/include/string.h:45:7: note: old declaration 'void* memchr(const void*, int, size_t)'
void* memchr(const void* __s, int __ch, size_t __n) attribute_pure;
^~~~~~
In file included from /data/data/com.termux/files/usr/include/features.h:33,
from /data/data/com.termux/files/usr/include/c++/v1/__config:204,
from /data/data/com.termux/files/usr/include/c++/v1/iostream:37,
from main.cpp:1:
/data/data/com.termux/files/usr/include/string.h:210:65: error: attributes are not allowed on a function-definition
void* memchr(void* const s __pass_object_size, int c, size_t n) __prefer_this_overload {
^~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/usr/include/string.h:221:9: error: attributes are not allowed on a function-definition
__prefer_this_overload {
^~~~~~~~~~~~~~~~~~~~~~
In file included from /data/data/com.termux/files/usr/include/c++/v1/string.h:61,
from /data/data/com.termux/files/usr/include/stdio.h:47,
from /data/data/com.termux/files/usr/include/c++/v1/stdio.h:108,
from /data/data/com.termux/files/usr/include/wchar.h:33,
from /data/data/com.termux/files/usr/include/c++/v1/wchar.h:119,
from /data/data/com.termux/files/usr/include/c++/v1/iosfwd:90,
from /data/data/com.termux/files/usr/include/c++/v1/ios:215,
from /data/data/com.termux/files/usr/include/c++/v1/iostream:38,
from main.cpp:1:
/data/data/com.termux/files/usr/include/string.h:220:13: error: ambiguating new declaration of 'const char* strchr(const char*, int)'
const char* strchr(const char* const s __pass_object_size, int c)
^~~~~~
/data/data/com.termux/files/usr/include/string.h:65:7: note: old declaration 'char* strchr(const char*, int)'
char* strchr(const char* __s, int __ch) attribute_pure;
^~~~~~
In file included from /data/data/com.termux/files/usr/include/features.h:33,
from /data/data/com.termux/files/usr/include/c++/v1/__config:204,
from /data/data/com.termux/files/usr/include/c++/v1/iostream:37,
from main.cpp:1:
/data/data/com.termux/files/usr/include/string.h:227:9: error: attributes are not allowed on a function-definition
__prefer_this_overload {
^~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/usr/include/string.h:237:68: error: attributes are not allowed on a function-definition
const char* strrchr(const char* const s __pass_object_size, int c) __prefer_this_overload {
^~~~~~~~~~~~~~~~~~~~~~
In file included from /data/data/com.termux/files/usr/include/c++/v1/string.h:61,
from /data/data/com.termux/files/usr/include/stdio.h:47,
from /data/data/com.termux/files/usr/include/c++/v1/stdio.h:108,
from /data/data/com.termux/files/usr/include/wchar.h:33,
from /data/data/com.termux/files/usr/include/c++/v1/wchar.h:119,
from /data/data/com.termux/files/usr/include/c++/v1/iosfwd:90,
from /data/data/com.termux/files/usr/include/c++/v1/ios:215,
from /data/data/com.termux/files/usr/include/c++/v1/iostream:38,
from main.cpp:1:
/data/data/com.termux/files/usr/include/string.h:237:13: error: ambiguating new declaration of 'const char* strrchr(const char*, int)'
const char* strrchr(const char* const s __pass_object_size, int c) __prefer_this_overload
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.