Giter Site home page Giter Site logo

Debian build about tg2sip HOT 5 CLOSED

infactum avatar infactum commented on May 19, 2024
Debian build

from tg2sip.

Comments (5)

Infactum avatar Infactum commented on May 19, 2024

C++17 supported compiler is required to build TG2SIP.
AFAIK stable debian buils doesn't include GCC 7 support, thats why there is no sopprt for this distro now.
Maybe LLVM-6 package from Debian 9 backports would be enough to build, but I'm not totally sure.

from tg2sip.

SimonTheCat avatar SimonTheCat commented on May 19, 2024

i am very sad. Only unstable repo gcc 7 or build from source compiler.
LLVM-6 not work


Scanning dependencies of target gen_db
[  0%] Building CXX object CMakeFiles/gen_db.dir/tg2sip/gen_db.cpp.o
[  0%] Building CXX object CMakeFiles/gen_db.dir/tg2sip/settings.cpp.o
/root/src/tg2sip/settings.cpp:30:31: error: no member named 'clamp' in namespace 'std'
    console_min_level_ = std::clamp(static_cast<int>(reader.GetInteger("logging", "console_min_level", 0)), 0, 6);
                         ~~~~~^
/root/src/tg2sip/settings.cpp:31:28: error: no member named 'clamp' in namespace 'std'
    file_min_level_ = std::clamp(static_cast<int>(reader.GetInteger("logging", "file_min_level", 0)), 0, 6);
                      ~~~~~^
/root/src/tg2sip/settings.cpp:32:23: error: no member named 'clamp' in namespace 'std'
    log_level_ = std::clamp(static_cast<int>(reader.GetInteger("logging", "core", 2)), 0, 6);
                 ~~~~~^
/root/src/tg2sip/settings.cpp:33:29: error: no member named 'clamp' in namespace 'std'
    tdlib_log_level_ = std::clamp(static_cast<int>(reader.GetInteger("logging", "tdlib", 3)), 0, 6);
                       ~~~~~^
/root/src/tg2sip/settings.cpp:34:30: error: no member named 'clamp' in namespace 'std'
    tgvoip_log_level_ = std::clamp(static_cast<int>(reader.GetInteger("logging", "tgvoip", 5)), 0, 6);
                        ~~~~~^
/root/src/tg2sip/settings.cpp:35:29: error: no member named 'clamp' in namespace 'std'
    pjsip_log_level_ = std::clamp(static_cast<int>(reader.GetInteger("logging", "pjsip", 2)), 0, 6);
                       ~~~~~^
6 errors generated.
CMakeFiles/gen_db.dir/build.make:86: recipe for target 'CMakeFiles/gen_db.dir/tg2sip/settings.cpp.o' failed
make[2]: *** [CMakeFiles/gen_db.dir/tg2sip/settings.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/gen_db.dir/all' failed
make[1]: *** [CMakeFiles/gen_db.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

from tg2sip.

Infactum avatar Infactum commented on May 19, 2024

If missing std::clamp is the only problem, than you could make a shim for it.
Examples can be found here: https://en.cppreference.com/w/cpp/algorithm/clamp

from tg2sip.

SimonTheCat avatar SimonTheCat commented on May 19, 2024

not only std::clamp .
variant
optional
and others

from tg2sip.

Infactum avatar Infactum commented on May 19, 2024

Resolved by adding AppImage builds.

from tg2sip.

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.