rpg_dvs_evo_open icon indicating copy to clipboard operation
rpg_dvs_evo_open copied to clipboard

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

Open Sarah-happyeveryday opened this issue 10 months ago • 4 comments

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 avatar Mar 29 '24 14:03 Sarah-happyeveryday

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

Sarah-happyeveryday avatar Mar 30 '24 10:03 Sarah-happyeveryday

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!

IfanLu avatar Apr 18 '24 19:04 IfanLu

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版本?

Sarah-happyeveryday avatar Apr 21 '24 08:04 Sarah-happyeveryday

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

IfanLu avatar May 03 '24 14:05 IfanLu