Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
install XMRig on termux

Monero XMR mining via termux ;ubuntu

  1. install ubuntu in termux command; (ubuntu is optional)
pkg install update && upgrade
apt install git
apt install wget
apt install proot
termux-setup-storage
git clone https://github.com/Neo-Oli/termux-ubuntu
cd termux-ubuntu
chmod +x ubuntu.sh
sh ubuntu.sh
./start-ubuntu.sh
  1. install xmrig cpu miner to ubuntu termux
apt update
apt upgrade
apt install git
apt install wget
apt install proot
apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev libssl-dev

git clone https://github.com/xmrig/xmrig
cd xmrig
mkdir build
cd bulid
cmake -DWITH_HWLOC=OFF ..
make

then you can creat a config.json file in /build dir ngayon copy nyo ang url galing sa minergate para maka pag mining kayo

./xmrig -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45700 -u magtangol2018@gmail.com -p x -3

or palitan nyo ng email nyo ang ginawa kung sample.. salamat wag kalimutang mag subscribe para ma update kayo sa mga bagong t

@pixyboi
Copy link

pixyboi commented Nov 2, 2021

Pls I'm stuck I'm newbie that's why ! What am doing wrong?

@joaonunes730
Copy link

joaonunes730 commented Nov 14, 2021

bro just go to upx and get some the mobile miner ;) https://uplexa.com

@savjaylade84
Copy link

savjaylade84 commented Nov 15, 2021

i was already in 64 % then error comes in and it always prompted unused '-maes' then i try again and this what happen pls help me
Screenshot_20211115_120252_com termux

@Ashu9784
Copy link

Ashu9784 commented Nov 19, 2021

Screenshot_20211119-070701_Termux
What to do now??

@wjoshua1984
Copy link

wjoshua1984 commented Dec 2, 2021

This is good stuff lol. My HTC u11 is pulling between 300 to 400 hs mwahaha

Edit: lineage os custom ROM, and I skipped installing Ubuntu

@Minecoin1234
Copy link

Minecoin1234 commented Dec 5, 2021

I have problem, plz help.me
Screenshot_20211204_201439

@Minecoin1234
Copy link

Minecoin1234 commented Dec 5, 2021

Screenshot_20211204_201505
Help me solve this problem

@aryanraval2
Copy link

aryanraval2 commented Mar 13, 2022

Screenshot_20211102-094458 how to stop and restart mining please help

Just took One now, check it out: i still have 0 Coins is it supossed to be like this?

Screenshot_20210918-175510

Wich apk u using

@aryanraval2
Copy link

aryanraval2 commented Mar 13, 2022

Wich apk using

@joaonunes730
Copy link

joaonunes730 commented Mar 13, 2022

Guys simple solution in uplexa mobile miner in:
https://uplexa.com/
https://uplexa.com/android-miner

@Salooter
Copy link

Salooter commented Mar 28, 2022

cc: error: unrecognized command-line option ‘-maes’
make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:76: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/argon2.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:164: src/3rdparty/argon2/CMakeFiles/argon2.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Pls help me

@Salooter
Copy link

Salooter commented Mar 28, 2022

Uploading Screenshot_20220328-203239_Termux.jpg…

cc: error: unrecognized command-line option ‘-maes’
make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:76: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/argon2.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:164: src/3rdparty/argon2/CMakeFiles/argon2.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

@wjoshua1984
Copy link

wjoshua1984 commented Mar 28, 2022

cc: error: unrecognized command-line option ‘-maes’ make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:76: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/argon2.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:164: src/3rdparty/argon2/CMakeFiles/argon2.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

Pls help me

Do this --> https://pastebin.com/Q6Nu93VE

@Salooter
Copy link

Salooter commented Mar 28, 2022

cc: error: unrecognized command-line option ‘-maes’ make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:76: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/argon2.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:164: src/3rdparty/argon2/CMakeFiles/argon2.dir/all] Error 2 make: *** [Makefile:91: all] Error 2
Pls help me

Do this --> https://pastebin.com/Q6Nu93VE

[ 1%] Building C object src/3rdparty/libethash/CMakeFiles/ethash.dir/ethash_internal.c.o
[ 1%] Building C object src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/argon2.c.o
cc: error: unrecognized command-line option ‘-maes’
cc: error: unrecognized command-line option ‘-maes’
[ 2%] Building C object src/crypto/ghostrider/CMakeFiles/ghostrider.dir/sph_cubehash.c.o
cc: error: unrecognized command-line option ‘-maes’ cc: error: unrecognized command-line option ‘-maes’
[ 2%] Building C object src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/genkat.c.o
[ 2%] Building C object src/3rdparty/libethash/CMakeFiles/ethash.dir/keccakf800.c.o make[2]: *** [src/3rdparty/libethash/CMakeFiles/ethash.dir/build.make:76: src/3rdparty/libethash/CMakeFiles/ethash.dir/ethash_internal.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [src/crypto/ghostrider/CMakeFiles/ghostrider.dir/build.make:76: src/crypto/ghostrider/CMakeFiles/ghostrider.dir/sph_blake.c.o] Error 1 make[2]: *** Waiting for unfinished jobs....
cc: error: unrecognized command-line option ‘-maes’
make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:104: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/encoding.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:90: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/core.c.o] Error 1

No bro not work same Error 😔

@wjoshua1984
Copy link

wjoshua1984 commented Mar 28, 2022

cc: error: unrecognized command-line option ‘-maes’ make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:76: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/argon2.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:164: src/3rdparty/argon2/CMakeFiles/argon2.dir/all] Error 2 make: *** [Makefile:91: all] Error 2
Pls help me

Do this --> https://pastebin.com/Q6Nu93VE

[ 1%] Building C object src/3rdparty/libethash/CMakeFiles/ethash.dir/ethash_internal.c.o [ 1%] Building C object src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/argon2.c.o cc: error: unrecognized command-line option ‘-maes’ cc: error: unrecognized command-line option ‘-maes’ [ 2%] Building C object src/crypto/ghostrider/CMakeFiles/ghostrider.dir/sph_cubehash.c.o cc: error: unrecognized command-line option ‘-maes’ cc: error: unrecognized command-line option ‘-maes’ [ 2%] Building C object src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/genkat.c.o [ 2%] Building C object src/3rdparty/libethash/CMakeFiles/ethash.dir/keccakf800.c.o make[2]: *** [src/3rdparty/libethash/CMakeFiles/ethash.dir/build.make:76: src/3rdparty/libethash/CMakeFiles/ethash.dir/ethash_internal.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [src/crypto/ghostrider/CMakeFiles/ghostrider.dir/build.make:76: src/crypto/ghostrider/CMakeFiles/ghostrider.dir/sph_blake.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... cc: error: unrecognized command-line option ‘-maes’ make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:104: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/encoding.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:90: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/core.c.o] Error 1

No bro not work same Error 😔

Delete everything that was built during the process and start over. If you're running android version that can handle xmrig that pastebin should work. If you do not know what to delete just delete termux and reinstall it

@Salooter
Copy link

Salooter commented Mar 28, 2022

cc: error: unrecognized command-line option ‘-maes’ make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:76: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/argon2.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:164: src/3rdparty/argon2/CMakeFiles/argon2.dir/all] Error 2 make: *** [Makefile:91: all] Error 2
Pls help me

Do this --> https://pastebin.com/Q6Nu93VE

[ 1%] Building C object src/3rdparty/libethash/CMakeFiles/ethash.dir/ethash_internal.c.o [ 1%] Building C object src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/argon2.c.o cc: error: unrecognized command-line option ‘-maes’ cc: error: unrecognized command-line option ‘-maes’ [ 2%] Building C object src/crypto/ghostrider/CMakeFiles/ghostrider.dir/sph_cubehash.c.o cc: error: unrecognized command-line option ‘-maes’ cc: error: unrecognized command-line option ‘-maes’ [ 2%] Building C object src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/genkat.c.o [ 2%] Building C object src/3rdparty/libethash/CMakeFiles/ethash.dir/keccakf800.c.o make[2]: *** [src/3rdparty/libethash/CMakeFiles/ethash.dir/build.make:76: src/3rdparty/libethash/CMakeFiles/ethash.dir/ethash_internal.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [src/crypto/ghostrider/CMakeFiles/ghostrider.dir/build.make:76: src/crypto/ghostrider/CMakeFiles/ghostrider.dir/sph_blake.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... cc: error: unrecognized command-line option ‘-maes’ make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:104: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/encoding.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:90: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/core.c.o] Error 1
No bro not work same Error 😔

Delete everything that was built during the process and start over. If you're running android version that can handle xmrig that pastebin should work. If you do not know what to delete just delete termux and reinstall it

Ok bro

@Salooter
Copy link

Salooter commented Mar 28, 2022

cc: error: unrecognized command-line option ‘-maes’ make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:76: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/argon2.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:164: src/3rdparty/argon2/CMakeFiles/argon2.dir/all] Error 2 make: *** [Makefile:91: all] Error 2
Pls help me

Do this --> https://pastebin.com/Q6Nu93VE

[ 1%] Building C object src/3rdparty/libethash/CMakeFiles/ethash.dir/ethash_internal.c.o [ 1%] Building C object src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/argon2.c.o cc: error: unrecognized command-line option ‘-maes’ cc: error: unrecognized command-line option ‘-maes’ [ 2%] Building C object src/crypto/ghostrider/CMakeFiles/ghostrider.dir/sph_cubehash.c.o cc: error: unrecognized command-line option ‘-maes’ cc: error: unrecognized command-line option ‘-maes’ [ 2%] Building C object src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/genkat.c.o [ 2%] Building C object src/3rdparty/libethash/CMakeFiles/ethash.dir/keccakf800.c.o make[2]: *** [src/3rdparty/libethash/CMakeFiles/ethash.dir/build.make:76: src/3rdparty/libethash/CMakeFiles/ethash.dir/ethash_internal.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [src/crypto/ghostrider/CMakeFiles/ghostrider.dir/build.make:76: src/crypto/ghostrider/CMakeFiles/ghostrider.dir/sph_blake.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... cc: error: unrecognized command-line option ‘-maes’ make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:104: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/encoding.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:90: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/core.c.o] Error 1
No bro not work same Error 😔

Delete everything that was built during the process and start over. If you're running android version that can handle xmrig that pastebin should work. If you do not know what to delete just delete termux and reinstall it

Screenshot_20220328-212523_Termux
Screenshot_20220328-212537_Termux
Screenshot_20220328-212441_Termux

@wjoshua1984
Copy link

wjoshua1984 commented Mar 28, 2022

Yeah I'm not sure then, I see you use Honey gain so I assume your android version is new enough. I've never encountered errors such as this.

@wjoshua1984
Copy link

wjoshua1984 commented Mar 28, 2022

cc: error: unrecognized command-line option ‘-maes’ make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:76: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/argon2.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:164: src/3rdparty/argon2/CMakeFiles/argon2.dir/all] Error 2 make: *** [Makefile:91: all] Error 2
Pls help me

Do this --> https://pastebin.com/Q6Nu93VE

[ 1%] Building C object src/3rdparty/libethash/CMakeFiles/ethash.dir/ethash_internal.c.o [ 1%] Building C object src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/argon2.c.o cc: error: unrecognized command-line option ‘-maes’ cc: error: unrecognized command-line option ‘-maes’ [ 2%] Building C object src/crypto/ghostrider/CMakeFiles/ghostrider.dir/sph_cubehash.c.o cc: error: unrecognized command-line option ‘-maes’ cc: error: unrecognized command-line option ‘-maes’ [ 2%] Building C object src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/genkat.c.o [ 2%] Building C object src/3rdparty/libethash/CMakeFiles/ethash.dir/keccakf800.c.o make[2]: *** [src/3rdparty/libethash/CMakeFiles/ethash.dir/build.make:76: src/3rdparty/libethash/CMakeFiles/ethash.dir/ethash_internal.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [src/crypto/ghostrider/CMakeFiles/ghostrider.dir/build.make:76: src/crypto/ghostrider/CMakeFiles/ghostrider.dir/sph_blake.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... cc: error: unrecognized command-line option ‘-maes’ make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:104: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/encoding.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [src/3rdparty/argon2/CMakeFiles/argon2.dir/build.make:90: src/3rdparty/argon2/CMakeFiles/argon2.dir/lib/core.c.o] Error 1
No bro not work same Error 😔

Delete everything that was built during the process and start over. If you're running android version that can handle xmrig that pastebin should work. If you do not know what to delete just delete termux and reinstall it

Screenshot_20220328-212523_Termux Screenshot_20220328-212537_Termux Screenshot_20220328-212441_Termux

Forgot to reply on my last comment. Anyhow, in this original thread they have you installing Ubuntu which is totally unnecessary since android is already basically Linux. If you we're using that method I would scrap all that and use just the pastebin I posted.

If those errors still remain im unsure what is going on though I've never encountered these type of errors before it seems like there's a previous process not finished yet that the script needs.

Anyhow aside from scrapping everything and starting as fresh as can be Im not sure of what else can be done to correct these type of errors.

@Salooter
Copy link

Salooter commented Mar 28, 2022

@Salooter
Copy link

Salooter commented Mar 28, 2022

@bundysplayhouse
Copy link

bundysplayhouse commented Mar 28, 2022

I never got this working spent ages trying and ened up using userland for installing Ubuntu bionic and this guide for installing xmrig https://xmrig.com/docs/miner/build/ubuntu
I personally used the advanced guide. And one thing I must add that I found out is it won't work unless after you 1st sudo apt update run apt-get install apt-utils xmrig won't install and apt upgrade also won't work

@Salooter
Copy link

Salooter commented Mar 28, 2022

@bundysplayhouse
Copy link

bundysplayhouse commented Mar 28, 2022

Thanks for the tip!

On Mon 28 Mar, 2022, 11:01 PM bundysplayhouse, @.> wrote: @.* commented on this gist. ------------------------------ I never got this working spent ages trying and ened up using userland for installing Ubuntu bionic and this guide for installing xmrig https://xmrig.com/docs/miner/build/ubuntu I personally used the advanced guide. And one thing I must add that I found out is it won't work unless after you 1st sudo apt update run apt-get install apt-utils xmrig won't install and apt upgrade also won't work — Reply to this email directly, view it on GitHub https://gist.github.com/f9c0a1168ebc02bd0b89ffdb7ed21f6c#gistcomment-4113471, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW33VYGMUNFC77CCU6B4CTTVCHUFTANCNFSM4TN66LQA . You are receiving this because you commented.Message ID: @.***>

No problems

@Anirudh110504
Copy link

Anirudh110504 commented Mar 29, 2022

IMG-20220329-WA0000
IMG-20220329-WA0002
IMG-20220329-WA0001
Am unable to solve this error,i have uninstalled and reinstalled mu termux several times but not yet found solution to this,can i get this solved

@bundysplayhouse
Copy link

bundysplayhouse commented Mar 29, 2022

I had similar issues I ended up using userland to install Ubuntu bionic and this guide to install xmrig https://xmrig.com/docs/miner/build/ubuntu
Once you have installed Ubuntu run sudo apt update and after that run sudo apt-get install apt-utils other wise xmrig won't install and sudo apt upgrade won't work

@Salooter
Copy link

Salooter commented Mar 29, 2022

@TukangM
Copy link

TukangM commented Jul 31, 2022

if get error cuz you not run on ubuntu proot or other distro. @everyone

@TukangM
Copy link

TukangM commented Jul 31, 2022

for arm cpu boost cmake -DARM_TARGET= -DWITH_HWLOC=OFF ..
override ARM target, possible values 7 (ARMv7) and 8 (ARMv8).
cmake -DARM_TARGET=8
cmake -DWITH_HWLOC=OFF -DARM_TARGET=8 ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment