GithubHelp home page GithubHelp logo

Build problem about td HOT 5 CLOSED

tdlib avatar tdlib commented on May 1, 2024
Build problem

from td.

Comments (5)

levlam avatar levlam commented on May 1, 2024

It is a warning, not an error. The compiler is overly paranoid here, that warning can be safely ignored. We will fix it in the next update anyway.

Between, what version of GCC is used?

from td.

puryanms avatar puryanms commented on May 1, 2024

i just using this commands :

git clone https://github.com/vysheng/tdbot.git
cd tdbot
git submodule update --init --recursive
mkdir build && cd build
cmake ..
make telegram-bot

and after that warning :

[ 98%] Generate JSON tl source files
[ 98%] Built target tl_generate_json
[ 98%] Linking CXX executable telegram-bot
CMakeFiles/telegram-bot.dir/main.cpp.o: In function parse_config()': main.cpp:(.text+0x6fe): undefined reference to libconfig::Config::lookupValue(char const*, std::string&) const'
CMakeFiles/telegram-bot.dir/main.cpp.o: In function libconfig::Config::lookupValue(std::string const&, std::string&) const': main.cpp:(.text._ZNK9libconfig6Config11lookupValueERKSsRSs[_ZNK9libconfig6Config11lookupValueERKSsRSs]+0x32): undefined reference to libconfig::Config::lookupValue(char const*, std::string&) const'
collect2: error: ld returned 1 exit status
CMakeFiles/telegram-bot.dir/build.make:184: recipe for target 'telegram-bot' failed
make[3]: *** [telegram-bot] Error 1
CMakeFiles/Makefile2:74: recipe for target 'CMakeFiles/telegram-bot.dir/all' failed
make[2]: *** [CMakeFiles/telegram-bot.dir/all] Error 2
CMakeFiles/Makefile2:86: recipe for target 'CMakeFiles/telegram-bot.dir/rule' failed
make[1]: *** [CMakeFiles/telegram-bot.dir/rule] Error 2
Makefile:162: recipe for target 'telegram-bot' failed
make: *** [telegram-bot] Error 2

from td.

levlam avatar levlam commented on May 1, 2024

It is a problem with linking in libconfig++, required by tdbot. Here is the likely cause of the issue: hyperrealm/libconfig#10. And the only solution is that tdbot should be compiled with the same standard C++ library as libconfig++.

from td.

puryanms avatar puryanms commented on May 1, 2024

Im installed some libs
But steal i have this error
What should i install ?

from td.

levlam avatar levlam commented on May 1, 2024

Probably, you need to recompile libconfig++ with the same compiler that is used to compile tdbot.

from td.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.