tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.23k stars 1.47k forks source link

Error run tdlib after building #1164

Closed Kruizi closed 4 years ago

Kruizi commented 4 years ago

Hello

I am building the project according to the instructions I am building to the instructions build Ubuntu 16 and clang ++

apt-get update && apt-get upgrade && apt-get install make git zlib1g-dev libssl-dev gperf php cmake clang libc++-dev nano wget golang && git clone https://github.com/tdlib/td.git && cd td && rm -rf build && mkdir build && cd build

export CXXFLAGS="-stdlib=libc++"

CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=/usr/local ..

cmake --build . --target install

After the build, I run go-tdlib I get an error that contains a lot of lines message. I attach file with errors at the comment.

The script ran on Ubuntu 16.04 from under docker-compose

version: "3"
services:
   ubuntu:
     image: addle / ubuntu-16.04
     working_dir: / srv / golang
     volumes:
       -.: / srv / golang

What could be the problem ?

error_logs.txt

levlam commented 4 years ago

You used libc++ as C++ standard library, but didn't link it to your go binary.

Kruizi commented 4 years ago

You used libc++ as C++ standard library, but didn't link it to your go binary.

Thank you

Tell me please, how create link to my go binary ?

Kruizi commented 4 years ago

Sorry, I figured out how to create a link, thanks