This is how I try to build various projects under Termux. Probably a proper patch would fix the problem, but I'm not familiar with C++ (so the question is whether it makes sense to build the source code :P).
I wonder if you can fix it (as long as it's fixable so as not to break compatibility)
[ 18%] Building CXX object src/net/CMakeFiles/net.dir/fileman.cpp.o
/data/data/com.termux/files/home/termux/frabs/abuse/src/sdlport/hmi.cpp:302:97: error: non-constant-expression cannot be narrowed from type 'int' to 'uint8_t' (aka 'unsigned char') in initializer list
[-Wc++11-narrowing]
uint8_t midi_header[] = { 0x4D, 0x54, 0x68, 0x64, 0x00, 0x00, 0x00, 0x06, 0x00, 0x01, 0x00, (num_tracks + 1), 0x00, 0xC0 };
^~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/termux/frabs/abuse/src/sdlport/hmi.cpp:302:97: note: insert an explicit cast to silence this issue
uint8_t midi_header[] = { 0x4D, 0x54, 0x68, 0x64, 0x00, 0x00, 0x00, 0x06, 0x00, 0x01, 0x00, (num_tracks + 1), 0x00, 0xC0 };
^~~~~~~~~~~~~~~~
static_cast<uint8_t>( )
1 error generated.
make[2]: *** [src/sdlport/CMakeFiles/sdlport.dir/build.make:174: src/sdlport/CMakeFiles/sdlport.dir/hmi.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 19%] Building CXX object src/net/CMakeFiles/net.dir/sock.cpp.o
/data/data/com.termux/files/home/termux/frabs/abuse/src/net/fileman.cpp:310:33: error: non-constant-expression cannot be narrowed from type 'unsigned long' to 'uint8_t' (aka 'unsigned char') in
initializer list [-Wc++11-narrowing]
uint8_t sizes[3]={ CLIENT_NFS,strlen(filename)+1,strlen(mode)+1};
^~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/termux/frabs/abuse/src/net/fileman.cpp:310:33: note: insert an explicit cast to silence this issue
uint8_t sizes[3]={ CLIENT_NFS,strlen(filename)+1,strlen(mode)+1};
^~~~~~~~~~~~~~~~~~
static_cast<uint8_t>( )
/data/data/com.termux/files/home/termux/frabs/abuse/src/net/fileman.cpp:310:52: error: non-constant-expression cannot be narrowed from type 'unsigned long' to 'uint8_t' (aka 'unsigned char') in
initializer list [-Wc++11-narrowing]
uint8_t sizes[3]={ CLIENT_NFS,strlen(filename)+1,strlen(mode)+1};
^~~~~~~~~~~~~~
/data/data/com.termux/files/home/termux/frabs/abuse/src/net/fileman.cpp:310:52: note: insert an explicit cast to silence this issue
uint8_t sizes[3]={ CLIENT_NFS,strlen(filename)+1,strlen(mode)+1};
^~~~~~~~~~~~~~
static_cast<uint8_t>( )
This is how I try to build various projects under Termux. Probably a proper patch would fix the problem, but I'm not familiar with C++ (so the question is whether it makes sense to build the source code :P).
I wonder if you can fix it (as long as it's fixable so as not to break compatibility)
The compiler is clang, Termux doesn't have gcc