Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

error: ‘gflags’ has not been declared #2

Closed
waitwaitwaitforME opened this issue May 27, 2019 · 3 comments
Closed

error: ‘gflags’ has not been declared #2

waitwaitwaitforME opened this issue May 27, 2019 · 3 comments

Comments

@waitwaitwaitforME
Copy link

Hello! Thank you for your open source! And I have some problems when I built the EGSfM:
In function ‘int main(int, char**)’:
/home/**/EGSfM/ext/libvot/src/examples/image_search.cpp:61:2: error: ‘gflags’ has not been declared gflags::ParseCommandLineFlags(&argc, &argv, true);

and
/home//EGSfM/app/fisher_vector_similarity.cpp:101:5: error: ‘gflags’ has not been declared
gflags::ParseCommandLineFlags(&argc, &argv, false);
/home/
/EGSfM/app/fisher_vector_trainer.cpp:76:5: error: ‘gflags’ has not been declared
gflags::ParseCommandLineFlags(&argc, &argv, false);

I have already installed the gflags and some paths are shown below.
GFLAGS_INCLUDE_DIR:PATH=/usr/include
GFLAGS_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libgflags.so
// gflags namespace (google or gflags)
GFLAGS_NAMESPACE:STRING=google

So could you please give me some advice on how to deal with this problem? Thank you so much!

@AIBluefisher
Copy link
Owner

Does the cmake find the path of gflag? Could you provide more information, as it's hard for me to reproduce this issue.

@waitwaitwaitforME
Copy link
Author

Sorry to bother you. In cmake step, the corresponding messages are as follows.
-- Check for Google Log
-- Found Glog: /usr/local/include
-- Found Google Logging: /usr/local/include
-- Check for gflags
-- Found GFlags: /usr/include
...
-- Found GFlags: /usr/local/include
-- Found gflags (include: /usr/local/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- Found glog (include: /usr/local/include, library: /usr/local/lib/libglog.so)
...
-- Found required Ceres dependency: gflags
No error occured in the cmake step.

@waitwaitwaitforME
Copy link
Author

I have solved this problem. Thank you so much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants