xmrig cmake .. error termux

i’ve compiled xmrig accordingly but got stuck on the cmake …

cmake …
– Use ARM_TARGET=7 (armv7l)
CMake Error at /data/data/com.termux/files/usr/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find HWLOC (missing: HWLOC_LIBRARY HWLOC_INCLUDE_DIR)
Call Stack (most recent call first): /data/data/com.termux/files/usr/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/FindHWLOC.cmake:25 (find_package_handle_standard_args)
src/backend/cpu/cpu.cmake:29 (find_package)
src/backend/backend.cmake:1 (include)
CMakeLists.txt:29 (include)

– Configuring incomplete, errors occurred!
See also “/data/data/com.termux/files/home/xmrig/build/CMakeFiles/CMakeOutput.log”.

how to solve the cmake … error problem? kindly assist me and looking forward to hear from you soon. thx.

It looks like you are missing the hwloc library / module.  Did you install it according to the build instructions?

How you install the library depends on your platform.

If that doesn’t help, you might get better feedback by contacting the team via one of the contact methods mentioned in the readme.

1 Like

$ apt update
$ apt upgrade
$ apt install wget
$ apt install proot
$ apt install git

$ apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev libssl-dev

$ git clone https://github.com/xmrig/xmrig.git

$ cd xmrig
$ ls
$ mkdir build
$ cd build
$ cmake …

$ make

i install it xmrig on termux android… ubuntu termux…

the only error is cmake …

how to solve the cmake … error?

kindly assist me and looking forward to hear from you soon. thx.