Giter Club home page Giter Club logo

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 13, 2024
This has been implemented. In fact, any number of alternative namespaces can be 
configured next to the default/primary namespace using the GFLAGS_NAMESPACE 
CMake variable.

See commit 659b440f of the feature/#83-alternative-namespace branch.

Original comment by [email protected] on 2 May 2014 at 2:00

  • Changed state: Testing

from gflags.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 13, 2024
Link to commit: 
https://code.google.com/p/gflags/source/detail?r=659b440f9e403c9080eb304efc53b93
8c63cbe47&name=feature/#83-alternative-namespace

Original comment by [email protected] on 2 May 2014 at 2:02

from gflags.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 13, 2024
This branch works well for me; I can link glog to it and I don't have to change 
existing code. Please include it in a future release!

Original comment by [email protected] on 18 May 2014 at 11:17

from gflags.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 13, 2024
Hi Carles, thanks for the feedback. I will make another patch release available 
soon which hopefully concludes the transition to the new build system 
configuration and namespace.

Original comment by [email protected] on 18 May 2014 at 11:34

from gflags.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 13, 2024
Great! Thanks for your work.

Original comment by [email protected] on 19 May 2014 at 12:08

from gflags.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 13, 2024
I'm running into issues compiling glog because of this (running fresh built 
2.1.1) - any chance someone could post how I'd set the CMake variable 
GFLAGS_NAMESPACE so I can workaround the issue? Or is 2.1.2 release imminent?

Original comment by [email protected] on 7 Jul 2014 at 6:04

from gflags.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 13, 2024
Thanks for bumping it up... soon was meant to be sooner ;)

Regarding the CMake settings of 2.1.1, you will need to change GFLAGS_NAMESPACE 
to "google" and make sure that GFLAGS_INCLUDE_DIR is "gflags". See issue #80.

Original comment by [email protected] on 9 Jul 2014 at 1:19

from gflags.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 13, 2024
I've just had a chance to return to this. Not knowing anything about cmake, 
I've edited CMakeLists.txt & changed the line

set (GFLAGS_NAMESPACE   "${PACKAGE_NAME}" CACHE STRING "C++ namespace 
identifier of gflags library.")

to

set (GFLAGS_NAMESPACE   "google" CACHE STRING "C++ namespace identifier of 
gflags library.")

Then built and installed as per normal instructions. However when I try to 
compile glog I get a fail, with the error message

/usr/local/lib/libgflags.a: could not read symbols: Bad value

I guess I'm doing something wrong still...

Original comment by [email protected] on 26 Jul 2014 at 7:37

from gflags.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 13, 2024
For projects that use a system-installed gflags development package this is 
still more or less a problem. Since you don't have control of the CMake 
GFLAGS_NAMESPACE variable, and the config.h will not be distributed, there's no 
way to determine gflags version and namespace.

This could export a define for the namespace, and make sure that ends up in 
gflags.h. How about:

#define GFLAGS_NAMESPACE gflags


Original comment by [email protected] on 3 Nov 2014 at 4:17

from gflags.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 13, 2024
Thanks for the suggestion. As a matter of fact, such define was already added 
by commit a93de007 
(https://code.google.com/p/gflags/source/detail?r=a93de007a65eea5f0eea1eb830788d
bdb7c17112&name=feature/#83-alternative-namespace) in a feature branch.

Original comment by [email protected] on 9 Nov 2014 at 9:06

from gflags.

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.