uzh-rpg / rpg_dvs_evo_open

Implementation of EVO (RA-L 17)
158 stars 42 forks source link

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

Open Sarah-happyeveryday opened 3 months ago

Sarah-happyeveryday commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 2 months ago

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