You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I try to build it on termux.
toxcore and libsodium got installed with few acrobatics.
now i get error from tuntox :
~/tuntox $ make CFLAGS="-I$PREFIX/include"
GEN gitversion.h
CC cJSON.o
CC client.o
CC gitversion.o
CC log.o
CC main.o
main.c:647:37: warning: passing arguments to 'handle_pong_frame' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
647 | return handle_pong_frame(frame);
| ^
1 warning generated.
CC tox_bootstrap_json.o
CC util.o
Package toxcore was not found in the pkg-config search path.
Perhaps you should add the directory containing `toxcore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'toxcore' found
cc -o tuntox cJSON.o client.o gitversion.o log.o main.o tox_bootstrap_json.o util.o -lpthread -g -pthread -lm -static -lrt
ld.lld: error: unable to find library -lpthread
ld.lld: error: unable to find library -lm
ld.lld: error: unable to find library -lrt
ld.lld: error: unable to find library -lc
cc: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:45: tuntox] Error 1
Which is of course because android/termux use different libc and pthreads implementation.
Perhaps you have any idea how to work around that?
The text was updated successfully, but these errors were encountered:
I'll definitely merge your Makefile-related PR but this project is not using autoconf/automake as a choice. I apreciate the effort though.
I've packaged it for Debian and FreeBSD (not in repos though) and at no point I regretted not having autoconf. Out of curiosity I asked Claude to create a Termux package for a Makefile-only program and it generated a script without any issues, I did not try it though, lack of time now.
Hi.
I try to build it on termux.
toxcore and libsodium got installed with few acrobatics.
now i get error from tuntox :
~/tuntox $ make CFLAGS="-I$PREFIX/include"
GEN gitversion.h
CC cJSON.o
CC client.o
CC gitversion.o
CC log.o
CC main.o
main.c:647:37: warning: passing arguments to 'handle_pong_frame' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
647 | return handle_pong_frame(frame);
| ^
1 warning generated.
CC tox_bootstrap_json.o
CC util.o
Package toxcore was not found in the pkg-config search path.
Perhaps you should add the directory containing `toxcore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'toxcore' found
cc -o tuntox cJSON.o client.o gitversion.o log.o main.o tox_bootstrap_json.o util.o -lpthread -g -pthread -lm -static -lrt
ld.lld: error: unable to find library -lpthread
ld.lld: error: unable to find library -lm
ld.lld: error: unable to find library -lrt
ld.lld: error: unable to find library -lc
cc: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:45: tuntox] Error 1
Which is of course because android/termux use different libc and pthreads implementation.
Perhaps you have any idea how to work around that?
The text was updated successfully, but these errors were encountered: