Coder Social home page Coder Social logo

Comments (9)

MisterTea avatar MisterTea commented on May 24, 2024 1

from eternalterminal.

MisterTea avatar MisterTea commented on May 24, 2024

Hey, I think you are missing the gflags dependency.

Here's a list of the deps you need:

sudo apt-get install libboost-dev, libsodium-dev, libncurses5-dev, libprotobuf-dev, protobuf-compiler, cmake, libgoogle-glog-dev, libgflags-dev

You can find this out from launchpad: https://launchpadlibrarian.net/307528352/et_2.0.1-1ubuntu1.dsc

Let me know if installing the gflags dev package fixes your issue.

from eternalterminal.

tiktuk avatar tiktuk commented on May 24, 2024

True, I didn't have that installed. I get the same error though.

But I solved it by changing gflags to google as mentioned in this comment. Apparently it's been renamed in version 2.1 of gflags and I guess my version of Debian install 2.0 though it says 2.0-2.1, confusingly:

# apt-cache policy libgflags-dev
libgflags-dev:
  Installed: 2.0-2.1
  Candidate: 2.0-2.1
  Version table:
 *** 2.0-2.1 0
        500 http://mirror.one.com/debian/ jessie/main i386 Packages
        100 /var/lib/dpkg/status

It's used here and here.

I don't know if it's possible to make it compatible with both versions.

from eternalterminal.

MisterTea avatar MisterTea commented on May 24, 2024

from eternalterminal.

tiktuk avatar tiktuk commented on May 24, 2024

No, I get

TerminalClient.cpp:21:17: error: ‘gflags’ is not a namespace-name
 using namespace gflags;
                 ^

😟 .

from eternalterminal.

tiktuk avatar tiktuk commented on May 24, 2024

Yes, that worked!

Thanks ☺️ !

from eternalterminal.

MisterTea avatar MisterTea commented on May 24, 2024

from eternalterminal.

tiktuk avatar tiktuk commented on May 24, 2024

Sure: #16.

from eternalterminal.

oqsh avatar oqsh commented on May 24, 2024

Hmm, how about this: namespace google {} namespace gflags {} using namespace google; using namespace gflags;

On Thu, Mar 9, 2017, 1:57 PM Tuk Bredsdorff @.***> wrote: No, I get TerminalClient.cpp:21:17: error: ‘gflags’ is not a namespace-name using namespace gflags; ^ 😟 . — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#12 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AASuv_PHVA1dLd6LewkOL4LEcaF9wtCeks5rkHXlgaJpZM4MYZoX .

Thanks! I just have the same problem, and your solution worked. It's a namspace problem.
I think it is because when I install the gflags, I use the command "cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON -DGFLAGS_NAMESPACE=google ../", and you can see the sentence "NAMESPACE=google". So when I use the function xxx in glags, I should use the namespace "google", such as the funtion "gflags::ParseCommandLineFlags(&argc, &argv, true);" I should write as "google::ParseCommandLineFlags(&argc, &argv, true);"

from eternalterminal.

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.