Giter Site home page Giter Site logo

CMake failing due to "GFLAGS not found" error while Gflags is detected by cmake...help please about monoculartotalcapture HOT 1 CLOSED

cmu-perceptual-computing-lab avatar cmu-perceptual-computing-lab commented on May 26, 2024 1
CMake failing due to "GFLAGS not found" error while Gflags is detected by cmake...help please

from monoculartotalcapture.

Comments (1)

Tetsujinfr avatar Tetsujinfr commented on May 26, 2024 11

Ok, so doing some more research, I found the Gflag main install page:
https://gflags.github.io/gflags/

In there they mention that to force the detection of a gflag lib install you can specify the location of the library in the CMakeLists.txt file:
To use an external gflags installation, add the following CMake code to your CMakeLists.txt file.
Find gflags installation. The gflags_DIR variable must be set to the /lib/cmake/gflags directory containing the gflags-config.cmake file if is a non-standard location. Otherwise, CMake should find the gflags installation automatically.

So, assuming that CMake could not automatically identify the GFlags lib stuff, I did search for it on my /usr/lib/, and found those libs under /usr/lib/x86_64-linux-gnu/.
So in the MonocularTotalCapture project, I edited the CMakeLists.txt file under the FitAdam folder, and I ended up commenting out the auto detect instruction and adding the below set instruction to indicate where those GFlags libs where on my system:
#find_package(GFlags REQUIRED)
set(GFLAGS_INCLUDE_DIR /usr/lib/x86_64-linux-gnu)

Not sure why I had to bother doing all that instead of just relying on the autodetect but it did fix my problem and CMake did complete properly!
Hourray!

Now I have to re-compile CERES cause I did not pay attention to install the specific 1.13 version as per the instructions, and indeed I feel the pain now.
Oh boy!

from monoculartotalcapture.

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.