Giter VIP home page Giter VIP logo

Comments (8)

levlam avatar levlam commented on July 18, 2024 1

I have just received the same error on OpenBSD 6.7. It seems that there is not enough RAM or something other for system tools to finish building and they silently create broken static libraries. To fix the issue install php-7.2.10 package and do this:

cd telegram-bot-api/td
php-7.2 SplitSource.php
cd ../build
cmake --build . --target install
cd ../..
ls -l telegram-bot-api/bin/telegram-bot-api*

from telegram-bot-api.

levlam avatar levlam commented on July 18, 2024 1

@la-ninpre Yes, In the previous comment I expected that you already have a directory with failed build. See https://tdlib.github.io/telegram-bot-api/build.html?os=OpenBSD for full updated build instructions for OpenBSD.

from telegram-bot-api.

la-ninpre avatar la-ninpre commented on July 18, 2024

Update: same thing fails with the same error in QEMU

from telegram-bot-api.

levlam avatar levlam commented on July 18, 2024

Do you have enough RAM on the server? g++ needs at least 4GB.

from telegram-bot-api.

la-ninpre avatar la-ninpre commented on July 18, 2024

Do you have enough RAM on the server? g++ needs at least 4GB.

Yes, I tried it with 16GB RAM. Same error.

from telegram-bot-api.

la-ninpre avatar la-ninpre commented on July 18, 2024

And similarly fails on real hardware, not virtualized.

from telegram-bot-api.

la-ninpre avatar la-ninpre commented on July 18, 2024

Oh, sure, it actually worked, thanks!
And on OpenBSD 6.8 too.

But it worked exactly in this order:

  1. Clone repo as usual
  2. cd telegram-bot-api
  3. mkdir build && cd build
  4. cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=.. ..
  5. Then try to compile
    cmake --build . --target install
    and catch an error as described earlier
  6. And only after that run php-7.2 SplitSource.php in telegram-bot-api/td
  7. And, finally, recompile like in step 5.

from telegram-bot-api.

la-ninpre avatar la-ninpre commented on July 18, 2024

@levlam , okay, thanks!

from telegram-bot-api.

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.