td icon indicating copy to clipboard operation
td copied to clipboard

Building a Vala binding of TdLib... may need help

Open ccnmxns opened this issue 6 years ago • 2 comments

Hello! Some months ago i tried to make a Telegram client for Granite library (elementary OS) but the problem is that there is no Vapi out there, but I tried to make some for TdJSON. Here's the sauce in .tar.gz; and feel free to tell me whether has errors or needs improvement :smile: tdjson vapi.tar.gz

ccnmxns avatar Mar 05 '19 11:03 ccnmxns

I have no experience with Vala, but vapi files looks correct for me. I've noticed only that TDLib dependencies OpenSSL and zlib aren't sprecified anywhere. Should -lcrypto -lssl -lz be added to libs, or they are automatically found in /usr/local/lib?

Have you tested it? Does it work for you?

levlam avatar Mar 06 '19 16:03 levlam

I have no experience with Vala, but vapi files looks correct for me. I've noticed only that TDLib dependencies OpenSSL and zlib aren't sprecified anywhere. Should -lcrypto -lssl -lz be added to libs, or they are automatically found in /usr/local/lib?

Have you tested it? Does it work for you?

I just compile TdLib then I install it on local. It works without these flags (in my case).

ccnmxns avatar Mar 06 '19 16:03 ccnmxns

See https://github.com/AYMENJD/td-vala for a working Vala binding.

levlam avatar Feb 04 '23 09:02 levlam