# Owner: glow # KeyID: E65A8520F36AEE13CFE4F56BEB8FE331063A4794 # Key: https://glow.li/pgp # Verify: curl "https://glow.li/posts/compiling-aclock-on-termux/index.html.asc" | gpg -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 +++ { "date": "2016-01-17", "layout": "post", "oldurls": ["technology/2016/1/17/compiling-aclock-on-termux/"], "tags": ["Technology", "Tutorial", "Termux", "Android", "CLI", "Compiling"], "title": "Compile aclock on Termux" } +++ ![Screenshot](media/images/Screenshot-aclock){.right .size-half} [Aclock](https://github.com/tenox7/aclock) is a another clock program, but this time it's an analog clock. To compile it on [Termux](https://termux.dev/) you'll need to downloaded the source. ``` wget https://raw.githubusercontent.com/tenox7/aclock/master/sources/aclock-unix-curses.c ``` You'll also need the `ncurses-dev` package. ``` apt install ncurses-dev ``` Now you simply have to compile it. ``` gcc aclock-unix-curses.c -o aclock -lncurses -lm ``` After that you can simply run it with `./aclock`. -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE5lqFIPNq7hPP5PVr64/jMQY6R5QFAmYUIqUACgkQ64/jMQY6 R5RUrw/8C2DzgAxqN6YjXKuZZqLJBz8HhOITlH6Yfnlx2Tv8ZByL/Pu6SyGHku58 hPEu1fWBUh+g5apEXSL862KlwecbKxKil0ttOSHSr43G3B4IWd3uwOuMlUKtfa8v fwCAJZV0G1iRsjplVggyhlHHQnTkKLGBrcMtvtiHz3bx7hHUrKec0+XJIaVmsJ0p a/2yKU8kLaQilThNACCHimuE+4v4U2gFG0sj46wDdVJah35DA2Bc2bYcVcwwPY88 tOb6PmpB/+tSztC831oxy9LzcXIVc0WKVeOwO0kVUv2EJE7mTbMjFfjd0sbtO8KA zoA2Harkto43eq9FTWr5DZELShd7j6q4Xf0iDs1tVHMN1oW6E9Llzpubrd67epZl kwIIokRXnrNLgDoYPM/JXDYpUZKq0aa3n0gk+AnQF/uC+UyOHjZWARngSSfViOXH dma9vb0I+rWo7FEKXXObiKwx3FTPLEOwWffYEQeaCzAWyeIydIilMNHjTIpNXEiG N1rJz97/G0qbEGen8O1gpEYNHlet2Fc0u+4/zlgCWuhgedBtGqcaga1AiyxHRqt7 mnt8jCM2sBtnd8Zx1AsKyo7mcgf0M7Grs6+k4gMCEHsqXu5BT2v1Jb88n04foZS8 ifYlf1vwaZdmJpJT2PZyvewzW1H5DtZDNrrOVaXio7ZPl4M5/kY= =4Mfn -----END PGP SIGNATURE-----