Open dominicschaff opened 8 years ago
I second this request. Having Pandoc available on my Android devices would be a big help.
I spent some time researching that, that is, trying to muck through building a binary. Any binary. No success so far.
The sum total of my findings is as follows:
sseefried/debian-wheezy-ghc-android
which is apparently based on https://github.com/neurocyte/ghc-android/ The docker image is a bit out of date, and, building it from scratch fails, but the image works for suitably small quantities of 'works'.arm-linux-androideabi-cabal
is apparently the way to go.The final stumbling point was the JuicyPixels library which chokes on this:
Loading package ghc-prim ... linking ... ghc: /home/androidbuilder/.ghc/android-14/arm-linux-androideabi-4.8/lib/arm-unknown-linux-androideabi-ghc-7.8.3/ghc-prim-0.3.1.0/HSghc-prim-0.3.1.0.o: unhandled ELF relocation(Rel) type 28
ghc: unable to load package `ghc-prim'
I googled about for a while, but found no solution -- see https://github.com/neurocyte/ghc-android/issues/25
So far, it looks kinda grim, and since I don't know my way around GHC or Haskell at all, I don't have any more ideas.
I third this request, I use emacs and org mode on termux quite a bit and having pandoc would be amazing!
Indeed, pandoc would be a great way for me to make pdfs from Markdown in Termux.
I was writing some stories on my phone, and wanted to convert it (markdown) to HTML for a friend to view, on the go, so i second this, pandoc is great.
Haskel-pandoc is available https://www.archlinux.org/packages/community/x86_64/pandoc/ for x86_64 devices in Arch Linux in Termux PRoot. If you have success with pandoc in Termux on Android, Chromebook and Fire OS, post here.
I'd love to be able to use pandoc, too. Has anybody successfully installed it?
For anyone who's still looking for a solution for arm devices, (I did not try the Arch way cited above and don't know if it will or will not work on arm. For x86_64 it's not really worth it, since a static binary is available and should work.) pandoc is available in https://github.com/xeffyr/termux-extra-packages
There is a catch, though: This is accomplished by running an x86_64 static binary under qemu-user
, which is about the brutest force solution available, slow and memory hungry. I would not call this issue settled, if only because of that.
However, it works with my emacs-based text pipeline with no changes in my makefiles at all, which is more than can be said of any prior attempts.
Probably not the most efficient way, but if it helps anyone, I've got R, pandoc and pandoc-citeproc running fine with Termux on arm Android after installing Debian using debian_on_termux.sh. You need to get pandoc v2.2 from the debian buster testing repository, as the default installation (1.12) has segmentation fault issues. Buster also has lots of R libraries precompiled such as r-cran-tidyverse, which avoids tedious compiling issues on low RAM devices.
For anyone who's still looking for a solution for arm devices, _(I did not try the Arch way cited above and don't know if it will or will not work on arm. For x8664 it's not really worth it, since a static binary is available and should work.) pandoc is available in https://github.com/xeffyr/termux-extra-packages
I downloaded the unstable pandoc package, and it runs miserably. Sending info in the image attached. Apparently this is an issue with the glibc library on this particular device.
On the other hand, I could compile and install other packages seamlessly.
Apparently this is an issue with the glibc library on this particular device.
It's with QEMU issue and glib (not glibc !) shows errors. We don't have native pandoc package and using official x86_64 pandoc build with QEMU which is broken for now (though, it was broken previously too in different ways on Termux for arches other than aarch64).
Has anyone found a way to have pandoc on termux ?
Fedora, CentOS, and OpenSUSE have Pandoc packages compiled for armv7hl
, Debian and Ubunu have it built for arm64
and armhf
, and ALT Linux has it for aarch64
and armh
. What target architecture is needed on a typical modern Android phone? My uname -a
reports aarch64. Unfortunately the ALT Linux package is not statically compiled, but it may not be that difficult to rebuilt it with static options to get a stand alone binary. Even if not the packaging should have some tips for how to get Pandoc builds going.
What target architecture is needed on a typical modern Android phone?
GHC toolchain compatible with Android OS (NDK, Bionic libc). Unfortunately, none of maintainers are familiar with Haskell GHC and its build tools.
Package request labels well describe what we need:
to anyone who wants a working pandoc aarch64 static binary, I found this repo and so far it seems to work without any hiccups!
I guess it was built for a raspberry pi, but it apparently works all the same on Android in termux.
to anyone who wants a working pandoc aarch64 static binary, I found this repo and so far it seems to work without any hiccups!
I guess it was built for a raspberry pi, but it apparently works all the same on Android in termux.
repo binary release that worked for me
How to install the package for pandoc?
just extract it to a directory in your $PATH, (or just run it locally by using ./pandoc
or bash ./pandoc
.
Otherwise copy it into ~/bin
,/usr/bin
, or somewhere else in your path :-]
Thanks, it can work.
another solution to install pandoc
nix-env --install pandoc
I'm closing the issue since we already have package pandoc
. (only 64 bit devices supported)
I use pandoc on all my machines and I would really like to have it on termux, then I can use my device for almost all my computer usage.