Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<glog/logging.h> was not included correctly? #30

Open
Sarah-happyeveryday opened this issue Mar 29, 2024 · 4 comments
Open

<glog/logging.h> was not included correctly? #30

Sarah-happyeveryday opened this issue Mar 29, 2024 · 4 comments

Comments

@Sarah-happyeveryday
Copy link

Hi!
Please Help Me!!!

When I do "catkin build dvs_tracking" , it will appear error:
error <glog/logging.h> was not included correctly. See the documentation for how to consume the library.

[build] Summary: 20 of 35 packages succeeded.                                                            
[build]   Ignored:   9 packages were skipped or are skiplisted.                                          
[build]   Warnings:  None.                                                                               
[build]   Abandoned: 12 packages were abandoned.                                                         
[build]   Failed:    3 packages failed.                                                                  
[build] Runtime: 8.8 seconds total.   

This is just a few of the errors, ( a long list of similar ones that I have not put here), it seems that there is a problem with the path of glog. But I followed the steps exactly and didn't do anything extra.

I am using ros noetic on ubuntu 20.04 and opencv 3.4.5.

Has anyone had the same problem as me ?

Any suggestions!!!

@Sarah-happyeveryday
Copy link
Author

Sarah-happyeveryday commented Mar 30, 2024

OH MY GOD !!!
It turned out that glog version is just too new to cause the problem! It was recently updated to v0.7.0 in February 2024, git (in glog_catkin ) automatically downloaded the latest version. When I replaced the last update v0.6.0 for 2022, the problem was automatically solved. I should have known!

To make sure I can download the version I need, I add a line under GIT_REPOSITORY in the CMakeLists.txt file in the glog_catkin folder: GIT_TAG v0.6.0

@IfanLu
Copy link

IfanLu commented Apr 18, 2024

Hi,
I encountered the same problem as yours. After modifting the CMakeLists.txt under the path /src/glog_catkin, the problem was not solved.

Failed     << evo_utils:make                               [ Exited with code 2 ]                                      
Failed    <<< evo_utils                                    [ 1.8 seconds ]                                             
[build] Summary: 20 of 35 packages succeeded.                                                                          
[build]   Ignored:   9 packages were skipped or are blacklisted.                                                       
[build]   Warnings:  None.                                                                                             
[build]   Abandoned: 12 packages were abandoned.                                                                       
[build]   Failed:    3 packages failed.                                                                                
[build] Runtime: 3.2 seconds total.  

Have you made any other changes besides modifying the CMakeLists.txt?
Thanks!

@Sarah-happyeveryday
Copy link
Author

Hi, I encountered the same problem as yours. After modifting the CMakeLists.txt under the path /src/glog_catkin, the problem was not solved.

Failed     << evo_utils:make                               [ Exited with code 2 ]                                      
Failed    <<< evo_utils                                    [ 1.8 seconds ]                                             
[build] Summary: 20 of 35 packages succeeded.                                                                          
[build]   Ignored:   9 packages were skipped or are blacklisted.                                                       
[build]   Warnings:  None.                                                                                             
[build]   Abandoned: 12 packages were abandoned.                                                                       
[build]   Failed:    3 packages failed.                                                                                
[build] Runtime: 3.2 seconds total.  

Have you made any other changes besides modifying the CMakeLists.txt? Thanks!

抱歉,虽然我用ubuntu20.04解决了这个问题,但遇到了其他的问题,最终还是没办法运行。
所以我换了18.04版本的ubuntu,更换了glog版本后(添加GIT_TAG v0.6.0确保下载了旧版本glog),就不存在其他问题了。不知道你用的是不是18.04版本?

@IfanLu
Copy link

IfanLu commented May 3, 2024

@Sarah-happyeveryday 感谢你的回复,我虽然是18.04版本,但是看起来因为opencv版本不匹配,所以更换了glog版本后还是存在编译问题。我按照 https://github.com/uzh-rpg/rpg_dvs_evo_open/issues/13 更新了我的opencv配置,现在解决了。

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

No branches or pull requests

2 participants