Git Product home page Git Product logo

Comments (5)

sandwichmaker avatar sandwichmaker commented on May 25, 2024

Comment #1 originally posted by sandwichmaker on 2012-05-02T15:24:55.000Z:

This looks like a gflags/glog related issue. Could you describe your cmake command line please?

from ceres-solver.

sandwichmaker avatar sandwichmaker commented on May 25, 2024

Comment #2 originally posted by sandwichmaker on 2012-05-02T17:02:36.000Z:

I ran into the same error (among a couple of other problems). It looks like DECLARE_string is supposed to be defined in glog/logging.h
However, in glog/logging.h the macros are only temporarily defined and they seem to be gflag related (the undef in logging.h is guarded by a MUST_UNDEF_GFLAGS_DECLARE_MACROS macro).

In conclusion, I found that including gflags/gflags.h in the affected files solves the problem.

from ceres-solver.

sandwichmaker avatar sandwichmaker commented on May 25, 2024

Comment #3 originally posted by sandwichmaker on 2012-05-02T17:15:05.000Z:

Additionally, it seems that this only happens when glog is compiled without gflags support, as otherwise it includes gflags itself. And this only happens when you do not read the build instructions, as they say that glog needs to be compiled with gflags support... so if Arnaud's problem is a different one, I'm sorry for the noise.

from ceres-solver.

sandwichmaker avatar sandwichmaker commented on May 25, 2024

Comment #4 originally posted by sandwichmaker on 2012-05-03T05:12:44.000Z:

Please compile with glog linked with gflags. That should fix this issue.
I am closing this bug for now. If it is still an issue, we will revisit it.

from ceres-solver.

sandwichmaker avatar sandwichmaker commented on May 25, 2024

Comment #5 originally posted by sandwichmaker on 2012-05-03T06:17:19.000Z:

Compiling glog linked with gflags fixed the error. Thanks!!
Sorry for the noise...

from ceres-solver.

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.