Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make tg on debian #1802

Open
OlegTiurin opened this issue Jan 25, 2024 · 8 comments
Open

make tg on debian #1802

OlegTiurin opened this issue Jan 25, 2024 · 8 comments

Comments

@OlegTiurin
Copy link

Hi!
How to make tg on Debian?
configure script works ok, but make gives me:
make: *** No rule to make target 'tgl/scheme.tl', needed by 'auto/scheme.tl'. Stop.
what should I do?

My system: Debian GNU/Linux 11 (bullseye)

@Paulchen232
Copy link

Do you have the whole command "git clone --recursive https://github.com/vysheng/tg.git && cd tg " is used?

@OlegTiurin
Copy link
Author

Do as you say and got this:
tgl/queries.c: In function ‘_tgl_do_send_photo’:
tgl/queries.c:2091:10: error: cast between incompatible function types from ‘void (*)(struct tgl_state *, void *, int, struct tgl_message )’ to ‘void ()(struct tgl_state *, void , int)’ [-Werror=cast-function-type]
2091 | ((void (
)(struct tgl_state *, void , int))callback) (TLS, callback_extra, 0);
| ^
tgl/queries.c:2108:10: error: cast between incompatible function types from ‘void (
)(struct tgl_state *, void *, int, struct tgl_message )’ to ‘void ()(struct tgl_state *, void , int)’ [-Werror=cast-function-type]
2108 | ((void (
)(struct tgl_state *, void , int))callback) (TLS, callback_extra, 0);
| ^
tgl/queries.c:2141:10: error: cast between incompatible function types from ‘void (
)(struct tgl_state *, void *, int, struct tgl_message )’ to ‘void ()(struct tgl_state *, void , int)’ [-Werror=cast-function-type]
2141 | ((void (
)(struct tgl_state *, void *, int))callback) (TLS, callback_extra, 0);
2024-01-27-181801_889x227_scrot

@Paulchen232
Copy link

Paulchen232 commented Jan 27, 2024

try this:
with modified tg/Makefile and deleted -Werror

nano Makefile
delete -Werror
./configure
make

Because warnings as error.

@OlegTiurin
Copy link
Author

OlegTiurin commented Jan 30, 2024 via email

@OlegTiurin
Copy link
Author

OlegTiurin commented Jan 30, 2024 via email

@Paulchen232
Copy link

Have you alle what on "On Ubuntu/Debian use:" is?
I think try this fork https://github.com/kenorb-contrib/tgl but the updates are also old.

@OlegTiurin
Copy link
Author

OlegTiurin commented Feb 1, 2024 via email

@OlegTiurin
Copy link
Author

It doesn't accept my phone number for some reason. Will try it with keys.
Thanks for you help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants