# ROOT on my smartphone

**URL:** <https://root-forum.cern.ch/t/root-on-my-smartphone/47155>\
**Category:** Newbie\
**Created:** [October 7, 2021, 1:56pm UTC](https://root-forum.cern.ch/t/root-on-my-smartphone/47155 "2021-10-07T13:56:20Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![xtovo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/xtovo/32/25250_2.png) [@xtovo](https://root-forum.cern.ch/u/xtovo)\
**Post date:** [October 7, 2021, 1:56pm UTC](https://root-forum.cern.ch/t/root-on-my-smartphone/47155/1 "2021-10-07T13:56:20Z")

</div>

Hi.  
How to build ROOT from the git head on Android device?

aarch64, clang version 12.0.1 or gcc-10, python 3.10

Thanks.  
Regards. Valeriy

---

<div class="post-metadata">

**Author:** ![xtovo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/xtovo/32/25250_2.png) [@xtovo](https://root-forum.cern.ch/u/xtovo)\
**Post date:** [October 7, 2021, 7:03pm UTC](https://root-forum.cern.ch/t/root-on-my-smartphone/47155/2 "2021-10-07T19:03:06Z")

</div>

Recently I built the opencv git head - 635K (vs 225K of ROOT ). It took a couple of hours to complete on my moderate old school phone and it runs opencv python like a charm.  
I dream about doing a data analysis laying in my bed with smarty & ROOT runing in jupyter notebook 🙂

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [October 8, 2021, 7:12am UTC](https://root-forum.cern.ch/t/root-on-my-smartphone/47155/3 "2021-10-08T07:12:50Z")

</div>

Hi @xtovo ,  
I know @Axel built ROOT for ARM before, let’s see if he has some suggestions. Did you try building ROOT? What happened?

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![xtovo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/xtovo/32/25250_2.png) [@xtovo](https://root-forum.cern.ch/u/xtovo)\
**Post date:** [October 8, 2021, 8:56am UTC](https://root-forum.cern.ch/t/root-on-my-smartphone/47155/4 "2021-10-08T08:56:26Z")

</div>

…/wrk/root\_build $ cmake -DCMAKE\_INSTALL\_PREFIX=…/root\_install …/root\_src

– Looking for Python  
– Could NOT find Python2 (missing: Python2\_NumPy\_INCLUDE\_DIRS NumPy) (found version “2.7.18”)  
– ROOT Platform:  
– ROOT Compiler: Clang 12.0.1  
– ROOT Processor: aarch64  
– ROOT Architecture:  
– Build Type: ‘RelWithDebInfo’ (flags = ‘-O2 -g -DNDEBUG’)  
– Compiler Flags: -std=c++14 -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -pthread -O2 -g -DNDEBUG  
– ROOT default compression algorithm: zlib  
– PyROOT will be built for versions 3.10.0 (Main) and 2.7.18  
– Looking for ZLib  
– Looking for Freetype  
– Looking for PCRE  
– Looking for LZMA  
– Looking for ZSTD  
– Looking for xxHash  
– Looking for LZ4  
– Looking for X11  
CMake Error at cmake/modules/SearchInstalledSoftware.cmake:345 (message):  
libXpm and Xpm headers must be installed.  
Call Stack (most recent call first):  
CMakeLists.txt:219 (include)

– Configuring incomplete, errors occurred!  
See also “/sdcard/wrk/root\_build/CMakeFiles/CMakeOutput.log”.  
See also “/sdcard/wrk/root\_build/CMakeFiles/CMakeError.log”.

Comments?

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [October 8, 2021, 9:34am UTC](https://root-forum.cern.ch/t/root-on-my-smartphone/47155/5 "2021-10-08T09:34:10Z")

</div>

> [@xtovo](#):
>
> – Looking for X11  
> CMake Error at cmake/modules/SearchInstalledSoftware.cmake:345 (message):  
> libXpm and Xpm headers must be installed.  
> Call Stack (most recent call first):  
> CMakeLists.txt:219 (include)

You are missing required ROOT dependencies, see [Dependencies - ROOT](https://root.cern/install/dependencies) (a development package for libxpm is listed there). If there is no libxpm on your platform I think turning off X11 support (`-Dx11=OFF` cmake option) will remove the dependency on libxpm – if that’s a reasonable trade-off.

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [October 8, 2021, 10:20am UTC](https://root-forum.cern.ch/t/root-on-my-smartphone/47155/6 "2021-10-08T10:20:28Z")

</div>

It’s probably a better use of your time to enable the new web-based GUI + graphics and use that on your phone - i.e. run ROOT on some regular box and connect to it through your browser, to see canvases, `RBrowser` etc? Or indeed you connect to to your ROOT session (again running on a regular computer) through Jupyter.

---

<div class="post-metadata">

**Author:** ![xtovo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/xtovo/32/25250_2.png) [@xtovo](https://root-forum.cern.ch/u/xtovo)\
**Post date:** [October 8, 2021, 2:44pm UTC](https://root-forum.cern.ch/t/root-on-my-smartphone/47155/7 "2021-10-08T14:44:36Z")

</div>

Hi Axel,  
first of all many thanks for your bothering about my free time. I really appritiate it.  
Recently I recognized that my phone brick can be good working horse. It has 8 cores, 4 Gb & 128 Gb of memory and is much more poweful than my former CERN machine.  
l’m on vacation and decided to make an experiment. I said myself - forget about “bigs” and try to do everything on the little cutie.  
There are several encouraging nice IDE appeared on Android recently: PyDroid3, C# shell.  
I also found very impressive Devxpress, Syncfusion charts (you can find all of them on the google play), and thought why not to do the same with ROOT?  
I’ve just read Rene’s article about the future of the HEP software and IMHO Rene’s ingineous intution didn’t notice the blast of smartphone software.

++  
I’m afraid of Olivier statement.  
It sounds like ROOT team is afraid of innovatons. I hope that I’m wrong.

Best regards.  
Wish to see you & me & couple of cantine beers 🙂

Valeriy

- List item

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [October 8, 2021, 3:25pm UTC](https://root-forum.cern.ch/t/root-on-my-smartphone/47155/9 "2021-10-08T15:25:53Z")

</div>

Support for Android is not in the plan of work (I think this might be the first time it was ever requested) but as you know things might change if there is enough request for it.

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![xtovo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/xtovo/32/25250_2.png) [@xtovo](https://root-forum.cern.ch/u/xtovo)\
**Post date:** [October 8, 2021, 3:39pm UTC](https://root-forum.cern.ch/t/root-on-my-smartphone/47155/10 "2021-10-08T15:39:52Z")

</div>

Enrico,  
It’s a pity to hear it from you 🙂  
driving by user request is a bad way for software development, because outstanding programs usually appeared with zero user community and common user often do not know what he/she wants.  
Software developer must always open up new horizons for user view, always make suprizes and only then expect & follow user requests.

Cheers. Valeriy

++  
at present the only disgusting thing in programming on smarty is thumb text input. There is also no good editor because emacs, vim and nano are ugly.  
Is there any portable&compact bluetooth keyboard for smartphone?

---

<div class="post-metadata">

**Author:** ![xtovo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/xtovo/32/25250_2.png) [@xtovo](https://root-forum.cern.ch/u/xtovo)\
**Post date:** [October 8, 2021, 3:41pm UTC](https://root-forum.cern.ch/t/root-on-my-smartphone/47155/11 "2021-10-08T15:41:43Z")

</div>

cmake -Dx11=off -DCMAKE\_INSTALL\_PREFIX=…/root\_install …/root\_src \> q.log 2\>&1

cat q.log  
– Looking for Python – Could NOT find Python2 (missing: Python2\_NumPy\_INCLUDE\_DIRS NumPy) (found version “2.7.18”) – ROOT Platform:  
– ROOT Compiler: Clang 12.0.1  
– ROOT Processor: aarch64  
– ROOT Architecture:  
– Build Type: ‘RelWithDebInfo’ (flags = ‘-O2 -g -DNDEBUG’)  
– Compiler Flags: -std=c++14 -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -pthread -O2 -g -DNDEBUG  
– ROOT default compression algorithm: zlib  
– PyROOT will be built for versions 3.10.0 (Main) and 2.7.18  
– Looking for ZLib  
– Looking for Freetype  
– Looking for PCRE  
– Looking for LZMA  
– Looking for ZSTD  
– Looking for xxHash  
– Looking for LZ4  
– Looking for GSL  
– Looking for LibXml2  
– Looking for PostgreSQL  
– Looking for SQLite  
– Looking for FFTW3  
– Downloading and building XROOTD version  
– Cannot select cudnn without selecting cuda or tmva-gpu. Option is ignored  
– Looking for BLAS for optional parts of TMVA  
– Building LLVM in ‘Release’ mode.  
– Could NOT find Z3: Found unsuitable version “0.0.0”, but required is at least “4.7.1” (found Z3\_LIBRARIES-NOTFOUND)  
– Could NOT find Backtrace (missing: Backtrace\_LIBRARY Backtrace\_INCLUDE\_DIR)  
– Native target architecture is AArch64  
– Threads disabled.  
– Doxygen disabled.  
– Go bindings disabled.  
– Could NOT find OCaml (missing: OCAMLFIND OCAML\_VERSION OCAML\_STDLIB\_PATH)  
– OCaml bindings disabled.  
– LLVM host triple: aarch64-unknown-linux-gnu  
– LLVM default target triple: aarch64-unknown-linux-gnu  
– Building with -fPIC  
– Constructing LLVMBuild project information  
CMake Error at interpreter/llvm/src/CMakeLists.txt:715 (message):  
Unexpected failure executing llvm-build:  
/data/data/com.termux/files/usr/bin/python3.10: can’t open file  
‘/sdcard/wrk/root\_src/interpreter/llvm/src/utils/llvm-build/llvm-build’:  
[Errno 2] No such file or directory

– Configuring incomplete, errors occurred!  
See also “/sdcard/wrk/root\_build/CMakeFiles/CMakeOutput.log”.  
See also “/sdcard/wrk/root\_build/CMakeFiles/CMakeError.log”.  
…/wrk/root\_build $

---

<div class="post-metadata">

**Author:** ![xtovo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/xtovo/32/25250_2.png) [@xtovo](https://root-forum.cern.ch/u/xtovo)\
**Post date:** [October 14, 2021, 6:08pm UTC](https://root-forum.cern.ch/t/root-on-my-smartphone/47155/12 "2021-10-14T18:08:02Z")

</div>

Hi  
Is it possible to compile llvm (c++ repl) on android (aarch64 v8 sdk30)?

Please help me.

Regards. Valery

---

<div class="post-metadata">

**Author:** ![sbinet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/sbinet/32/13166_2.png) [@sbinet](https://root-forum.cern.ch/u/sbinet)\
**Post date:** [October 16, 2021, 2:19pm UTC](https://root-forum.cern.ch/t/root-on-my-smartphone/47155/13 "2021-10-16T14:19:27Z")

</div>

depending on what you want to achieve, using [go-hep/groot](https://go-hep.org/x/hep/groot) may be an option.  
`groot` can read/write ROOT files, handle `TTrees`, `TGraphs` and `TH{1,2}s`.  
it’s written in pure-Go so can be easily cross-compiled to one of the OS/platforms supported by [Go](https://golang.org):

```auto
$> go tool dist list
aix/ppc64
android/386
android/amd64
android/arm
android/arm64
darwin/amd64
darwin/arm64
dragonfly/amd64
freebsd/386
freebsd/amd64
freebsd/arm
freebsd/arm64
illumos/amd64
ios/amd64
ios/arm64
js/wasm
linux/386
linux/amd64
linux/arm
linux/arm64
linux/mips
linux/mips64
linux/mips64le
linux/mipsle
linux/ppc64
linux/ppc64le
linux/riscv64
linux/s390x
netbsd/386
netbsd/amd64
netbsd/arm
netbsd/arm64
openbsd/386
openbsd/amd64
openbsd/arm
openbsd/arm64
openbsd/mips64
plan9/386
plan9/amd64
plan9/arm
solaris/amd64
windows/386
windows/amd64
windows/arm
windows/arm64

```

---

<div class="post-metadata">

**Author:** ![qiutum](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/q/958977/32.png) [@qiutum](https://root-forum.cern.ch/u/qiutum)\
**Post date:** [October 17, 2021, 6:15am UTC](https://root-forum.cern.ch/t/root-on-my-smartphone/47155/14 "2021-10-17T06:15:16Z")

</div>

With termux and proot, you can run linux without root on android device. For example, [https://github.com/EXALAB/AnLinux-App](https://github.com/EXALAB/AnLinux-App)

When you have a linux on your android phone, it is easy to install root, vnc server and even code server in your phone. You can do nearly everything as what you can do in your computer! 😀
