open-mmlab / denseflow

Extracting optical flow and frames

Home Page:https://open-mmlab.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

target "Eigen3::Eigen" error

Tortoise17 opened this issue · comments

I am facing error while compilation. Tried to fix several ways and unsuccessful.
Can you hint me which flag needed to add to fix this in CMAKE?

CMake Error at CMakeLists.txt:36 (add_library):
  Target "zzdenseflow" links to target "Eigen3::Eigen" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
commented

Do you have anaconda in PATH? If so, please try to remove it when compiling (can add it back after installation)

@innerlee I tried now twice. It is the same.

I tried in all ways. Extremely fresh install. no conda in shell env. no conda in terminal. using CentOS 7. OpenCV 3.5 / 4.5.0 tried both. and complete failing . ending with the above mentioned error.

commented

Hi @Tortoise17 do you want to try docker? we have a docker file. You can modify the cuda option in the beginning of the file.

Debugging system problems via github is nearly impossible. From the message, it says that cmake cannot find Eigen3.

  • case 1: Eigen3 is not installed on the system. Then maybe try sudo apt install libeigen3-dev or install from source, or seek for help from google/stackoverflow
  • case 2: Multi-version of Eigen3 was installed, and somehow cmake was confused. Cmake has a reputation of hard to debug. I do not understand cmake either.

If you have, please share. I would like to try for sure docker.
It would be really kind if you can share docker file. Than I can also share my experience.

For CentOS this also didn't work

Thank you great man. It finally worked

@innerlee thank you so much.

commented

You are welcome!