raulmur / ORB_SLAM2

Real-Time SLAM for Monocular, Stereo and RGB-D Cameras, with Loop Detection and Relocalization Capabilities
Other
9.17k stars 4.69k forks source link

Pangolin could not be found because dependency Eigen3 could not be found #1015

Open JonathanLJH opened 2 years ago

JonathanLJH commented 2 years ago

找不到 pangolin eigen How can I solve this problem?Thank you

liushuangliuliu commented 2 years ago

i have the same error,do you fixed it?

JonathanLJH commented 2 years ago

我有同样的错误,你解决了吗?

没有呢

shaoxh commented 2 years ago

have the same problem. did it just comes recently? never confronted with it before! I was going to build it on jetson xavier.

shaoxh commented 2 years ago

I solve it. I found Pangolin has a upgrade to version 0.6 and the author make it to comply with c++ 17 or something. but orbslam2 reconment to c++ 11. a higher version Pangolin is not suitble even it is installed. 1st, check the /usr/local/include. is there a signals derectory? if yes, delete it. 2ed, remove Pangolin files and clone 0.5 version codes. 3rd, rebuild it and install it. to end, build orbslam2 (I was using build.sh). hope it can help.

mgsteinkamp commented 2 years ago

Any idea what the last working commit was?

I tried 680fd76747e919d84cdaa7a18fb855f40c87dd38 (Dec 2020) and it doesn't work, so it must require something older than that

tsrobcvai commented 2 years ago

It is indeed caused by using a higher version of Pangolin, it can be solved by replacing it with a lower version of Pangolin

hl-yang96 commented 2 years ago

I solve it. I found Pangolin has a upgrade to version 0.6 and the author make it to comply with c++ 17 or something. but orbslam2 reconment to c++ 11. a higher version Pangolin is not suitble even it is installed. 1st, check the /usr/local/include. is there a signals derectory? if yes, delete it. 2ed, remove Pangolin files and clone 0.5 version codes. 3rd, rebuild it and install it. to end, build orbslam2 (I was using build.sh). hope it can help.

太牛了兄弟

Jason-xy commented 2 years ago

I solve it. I found Pangolin has a upgrade to version 0.6 and the author make it to comply with c++ 17 or something. but orbslam2 reconment to c++ 11. a higher version Pangolin is not suitble even it is installed. 1st, check the /usr/local/include. is there a signals derectory? if yes, delete it. 2ed, remove Pangolin files and clone 0.5 version codes. 3rd, rebuild it and install it. to end, build orbslam2 (I was using build.sh). hope it can help.

Great! Solved the problem!

Guo-hk commented 2 years ago

I solve it. I found Pangolin has a upgrade to version 0.6 and the author make it to comply with c++ 17 or something. but orbslam2 reconment to c++ 11. a higher version Pangolin is not suitble even it is installed. 1st, check the /usr/local/include. is there a signals derectory? if yes, delete it. 2ed, remove Pangolin files and clone 0.5 version codes. 3rd, rebuild it and install it. to end, build orbslam2 (I was using build.sh). hope it can help.

Great! Solved!

Roger-Sh commented 2 years ago

I solve it. I found Pangolin has a upgrade to version 0.6 and the author make it to comply with c++ 17 or something. but orbslam2 reconment to c++ 11. a higher version Pangolin is not suitble even it is installed. 1st, check the /usr/local/include. is there a signals derectory? if yes, delete it. 2ed, remove Pangolin files and clone 0.5 version codes. 3rd, rebuild it and install it. to end, build orbslam2 (I was using build.sh). hope it can help.

Great Job! 老哥牛逼

githubwys commented 2 years ago

稳啊

Li-Jesse-Jiaze commented 2 years ago

I found that changing find_package(Eigen3 3.1.0 REQUIRED) to find_package(Eigen3 3.1.0 REQUIRED NO_MODULE) in CmakeLists.txt on my mac solves the problem. Because Pangolin 0.5 has problems compiling on my laptop, I can only use 0.6. If you use version 0.6 like I do, this might help.

shuaikangma commented 2 years ago

I solve it. I found Pangolin has a upgrade to version 0.6 and the author make it to comply with c++ 17 or something. but orbslam2 reconment to c++ 11. a higher version Pangolin is not suitble even it is installed. 1st, check the /usr/local/include. is there a signals derectory? if yes, delete it. 2ed, remove Pangolin files and clone 0.5 version codes. 3rd, rebuild it and install it. to end, build orbslam2 (I was using build.sh). hope it can help.

Thanks, it's worked for me.

aseslamian commented 2 years ago

I solve it. I found Pangolin has a upgrade to version 0.6 and the author make it to comply with c++ 17 or something. but orbslam2 reconment to c++ 11. a higher version Pangolin is not suitble even it is installed. 1st, check the /usr/local/include. is there a signals derectory? if yes, delete it. 2ed, remove Pangolin files and clone 0.5 version codes. 3rd, rebuild it and install it. to end, build orbslam2 (I was using build.sh). hope it can help.

How can I find Pangolin version 0.5?

Jason-xy commented 2 years ago

You can find it in Pangolin's release tag page.

ngdyes commented 2 years ago

I found that changing find_package(Eigen3 3.1.0 REQUIRED) to find_package(Eigen3 3.1.0 REQUIRED NO_MODULE) in CmakeLists.txt on my mac solves the problem. Because Pangolin 0.5 has problems compiling on my laptop, I can only use 0.6. If you use version 0.6 like I do, this might help a bit. I love you!

imjrl commented 2 years ago

met the same problem on Ubuntu 20.04(WSL), ros neotic. changing find_package(Eigen3 3.1.0 REQUIRED) to find_package(Eigen3 3.1.0 REQUIRED NO_MODULE) in CMakeLists.txt could solve this problem.

TheSeanParker commented 1 year ago

I solve it. I found Pangolin has a upgrade to version 0.6 and the author make it to comply with c++ 17 or something. but orbslam2 reconment to c++ 11. a higher version Pangolin is not suitble even it is installed. 1st, check the /usr/local/include. is there a signals derectory? if yes, delete it. 2ed, remove Pangolin files and clone 0.5 version codes. 3rd, rebuild it and install it. to end, build orbslam2 (I was using build.sh). hope it can help.

I test ,it is good solution for this quenstion

fseasy commented 1 year ago

I found that changing find_package(Eigen3 3.1.0 REQUIRED) to find_package(Eigen3 3.1.0 REQUIRED NO_MODULE) in CmakeLists.txt on my mac solves the problem. Because Pangolin 0.5 has problems compiling on my laptop, I can only use 0.6. If you use version 0.6 like I do, this might help a bit.

this works. may be this is the real reason?

mgrallos commented 1 year ago

I found that changing find_package(Eigen3 3.1.0 REQUIRED) to find_package(Eigen3 3.1.0 REQUIRED NO_MODULE) in CmakeLists.txt on my mac solves the problem. Because Pangolin 0.5 has problems compiling on my laptop, I can only use 0.6. If you use version 0.6 like I do, this might help a bit.

this works. may be this is the real reason?

I have the same problem but got this error after I added NO MODULE

CMake Error in CMakeLists.txt: Imported target "pango_display" includes non-existent path

"/usr/local/include/eigen3"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

LuoXubo commented 10 months ago

If you do not want to change your Pangolin version, you can try to modify the find_package(Eigen3 REQUIRED) to find_package(Eigen3 REQUIRED NO_MODULE)

jeremy7703 commented 6 months ago

If you do not want to change your Pangolin version, you can try to modify the find_package(Eigen3 REQUIRED) to find_package(Eigen3 REQUIRED NO_MODULE)

Worked for me, thanks bro!!