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

README building instruction does not work for latest tdlib #104

Open
allwhatineedis opened this issue Aug 19, 2022 · 2 comments
Open

README building instruction does not work for latest tdlib #104

allwhatineedis opened this issue Aug 19, 2022 · 2 comments

Comments

@allwhatineedis
Copy link

Hi *,

As by following the readme file to compile the example code but I got linking errors. I typed the following for building the example

go build --ldflags "-extldflags '-static -L/usr/local/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdactor -ltddb -ltdsqlite -ltdnet -ltdutils -ldl -lm -lssl -lcrypto -lstdc++ -lz'" -o /tmp/getChats getChats.go

I tried as well with -lc++

go build --ldflags "-extldflags '-static -L/usr/local/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdactor -ltddb -ltdsqlite -ltdnet -ltdutils -ldl -lm -lssl -lcrypto -lc++ -lz'" -o /tmp/getChats getChats.go

but got same outcome.
The full error logs is here

it seems there are linking errors with the tdlib I installed by compiling from source.

go env

go version go1.18.5 linux/amd64

os info:

Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy

td-lib latest installed following building instructions for go

any suggestions?

thanks

@allwhatineedis allwhatineedis changed the title README building instruction does not work anymore for latest tdlib README building instruction does not work for latest tdlib Aug 19, 2022
@fomotrader
Copy link

I'm facing the same issue right now

@fomotrader
Copy link

Is this library still functional and supported? The docker build instructions don't work for me

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