Closed maximveksler closed 4 years ago
maxim@maxim-ThinkPad-E480:~/projects/td$ find /usr/ | grep include | grep algorithm
/usr/include/c++/10/ext/algorithm
/usr/include/c++/10/algorithm
/usr/include/c++/10/bits/algorithmfwd.h
/usr/include/c++/10/experimental/algorithm
/usr/include/c++/10/pstl/glue_algorithm_defs.h
/usr/include/c++/10/pstl/algorithm_fwd.h
/usr/include/c++/10/pstl/glue_algorithm_impl.h
/usr/include/c++/10/pstl/algorithm_impl.h
/usr/include/c++/10/parallel/algorithm
/usr/include/c++/10/parallel/algorithmfwd.h
/usr/include/c++/9/ext/algorithm
/usr/include/c++/9/algorithm
/usr/include/c++/9/bits/algorithmfwd.h
/usr/include/c++/9/experimental/algorithm
/usr/include/c++/9/pstl/glue_algorithm_defs.h
/usr/include/c++/9/pstl/algorithm_fwd.h
/usr/include/c++/9/pstl/glue_algorithm_impl.h
/usr/include/c++/9/pstl/algorithm_impl.h
/usr/include/c++/9/parallel/algorithm
/usr/include/c++/9/parallel/algorithmfwd.h
/usr/lib/llvm-10/include/c++/v1/algorithm
/usr/lib/llvm-10/include/c++/v1/experimental/algorithm
/usr/lib/llvm-6.0/lib/clang/6.0.1/include/cuda_wrappers/algorithm
I'd like to point out that switching to g++ based build system does seem to work (so far..)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install make git zlib1g-dev libssl-dev gperf php cmake g++
git clone https://github.com/tdlib/td.git
cd td
git checkout v1.6.0
rm -rf build
mkdir build
cd build
export CXXFLAGS=""
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=../tdlib ..
cmake --build . --target install
Use
sudo apt-get install clang-10
And then replace everywhere "-6.0" wirh "-10".
Thanks @levlam,
I've sudo apt remove libstdc++-10-dev
and
sudo apt update
sudo apt upgrade
sudo apt install make git zlib1g-dev libssl-dev gperf php cmake clang-10 libc++-dev libc++abi-dev
git clone https://github.com/tdlib/td.git
cd td
git checkout v1.6.0
rm -rf build
mkdir build
cd build
export CXXFLAGS="-stdlib=libc++"
CC=/usr/bin/clang-10 CXX=/usr/bin/clang++-10 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=../tdlib -DCMAKE_AR=/usr/bin/llvm-ar-10 -DCMAKE_NM=/usr/bin/llvm-nm-10 -DCMAKE_OBJDUMP=/usr/bin/llvm-objdump-10 -DCMAKE_RANLIB=/usr/bin/llvm-ranlib-10 ..
cmake --build . --target install
so far seems to be working.
Should I close this issue or keep it open for a fix to be applied in the branch?
The build instructions are already fixed in the private repository. The fix will be pushed to Github next week.
Fixed in master.
Hello, trying to get tdlib to compile, not very successfully so far.
I'm on Ubuntu 20.04.
I got all the basic install instructions from https://tdlib.github.io/td/build.html?language=Go, i.e.
It failed with:
Attempts
I figured I best add
sudo apt install libstdc++-10-dev
, same error. Then I tried to uncommentset(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
from CMakeLists.txt, same error.LD config:
Any help please?