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

Build instructions lead to #include error on Eigen/Dense #1

Closed
jwusch opened this issue Feb 15, 2017 · 15 comments
Closed

Build instructions lead to #include error on Eigen/Dense #1

jwusch opened this issue Feb 15, 2017 · 15 comments

Comments

@jwusch
Copy link

jwusch commented Feb 15, 2017

Following build instructions from here gives me an error inside of VS2015 "cannot open source file "Eigen/Dense" AirLib c:\boost_1_63_0\AirSim\AirSim\AirLib\include\common\VectorMath.hpp 12

I have set EIGEN_HOME env variable, and manually added that to the project's "Include Directories" under the property panel, but no joy.

@clovett
Copy link
Contributor

clovett commented Feb 15, 2017

Ah, sorry about that, perhaps we need to fix the docs, the variable should be named EIGEN_ROOT.

@jwusch
Copy link
Author

jwusch commented Feb 15, 2017

Ah sorry my bad. I did call it EIGEN_ROOT, but have HOME on the brain for some reason. Still not working though.

@jwusch
Copy link
Author

jwusch commented Feb 15, 2017

So searching through the source, I don't seen any references to EIGEN_ROOT, within the source code. I am assuming that path should be referenced in the "Include Directores" right?

@clovett
Copy link
Contributor

clovett commented Feb 15, 2017

It will be in the make files, either cmake or .vcxproj. It looks for eigen3 folder inside EIGEN_ROOT, so if you removed that you may need to put that back, and you do not include eigen3 in the EIGEN_ROOT.

@NicoJuicy
Copy link

NicoJuicy commented Feb 15, 2017

I had the same problem.

  • Cloned the project locally
  • Downloaded Eigen and Boost
  • Installed boost ( running the bat file)
  • Run the *.sln on Windows ( VS 2015), building it. - make sure you quit and restart VS for loading the environment variables.

Try to run the test "HelloDrone". The Boost environment variable has been found while building the project, the EIGEN_ROOT variable isn't.

Error: Error C1083 Cannot open include file: 'Eigen/Dense': No such file or directory AirLib e:\projects\airsim\airlib\include\common\vectormath.hpp 12

Here's what i found in the "Project Properties" of Airlib under C/C++ - Additional Include Directories:

include;$(EIGEN_ROOT)\Eigen3;$(BOOST_ROOT);deps\rpclib\include;..\MavLinkCom\include

The fix was that the EIGEN_ROOT should contain another folder named Eigen3. I moved all files of the directory in that folder and it was fixed :)

@jwusch does that fix your problem?

@sytelus
Copy link
Contributor

sytelus commented Feb 16, 2017

As long as you have environment variable EIGEN_ROOT that points to the root folder of Eigen library installation, you shouldn't have a problem. The root of Eigen library would should have child folder called eigen3.

@lovettchris
Copy link
Member

I also tried to make the Eigen install instructions more clear, see install_eigen.md.

@morrisonbrett
Copy link
Contributor

I ran into this issue today while setting up. I modified the docs for both Eigen and Boost to be clearer and created a PR: #23

@sytelus sytelus closed this as completed Feb 25, 2017
sytelus pushed a commit that referenced this issue Oct 28, 2017
Changing ImageWrapper.h for compilation with UE 4.18
sytelus pushed a commit that referenced this issue Mar 29, 2018
lovettchris pushed a commit that referenced this issue Apr 5, 2018
Removed a cast to float to fix a bug in the time delta calculation.
sytelus pushed a commit that referenced this issue Apr 23, 2018
@AloshkaD
Copy link
Contributor

AloshkaD commented Jun 24, 2018

I had this issue on win 10 and UE4.18 . Inside AirSim\AirLib\deps there are two folders, eign-eign- and eign3. The latter was empty so I copied the contents of eign-eign- into eign3 and the compilation worked

sytelus pushed a commit that referenced this issue Jul 18, 2018
sytelus pushed a commit that referenced this issue Aug 1, 2018
DsLiner pushed a commit to 0x0184/AirSim that referenced this issue May 20, 2019
madratman pushed a commit that referenced this issue Aug 26, 2019
JaySurplus pushed a commit to JaySurplus/AirSim that referenced this issue Jan 6, 2020
saihv pushed a commit that referenced this issue May 8, 2020
* Reduced warning level in Unity build

* Pr/2672 (#1)

* [Unity] Reduce build warnings

Change -Weverything to -Wextra

* [Travis] Simplify Unity build command

* [Unity] Fix missing override warnings

Co-authored-by: Rajat Singhal <[email protected]>
@yejuns
Copy link

yejuns commented May 12, 2020

when i meet this question, i try to open the script file 'build.cmd', according to the contents of this script file
IF NOT EXIST AirLib\deps\eigen3 (
powershell -command "& { [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iwr https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.zip -OutFile eigen3.zip }"
powershell -command "& { Expand-Archive -Path eigen3.zip -DestinationPath AirLib\deps }"
powershell -command "& { Move-Item -Path AirLib\deps\eigen* -Destination AirLib\deps\del_eigen }"
We can know we should to download Eigen, then decompression the package in AirLib\deps\eigen,
this is fix my problem.

nightduck referenced this issue in nightduck/AirSim Oct 3, 2020
@denmonz
Copy link

denmonz commented Feb 12, 2021

I ran into this issue today while setting up. I modified the docs for both Eigen and Boost to be clearer and created a PR: #23

The link you reference to download Eigen does not work anymore. Site says, "Repository eigen/eigen not found."

@M1NDX
Copy link

M1NDX commented Feb 13, 2021

I had the same issue: first "Repository eigen/eigen not found." but the link is correct, I think you need to open the Developer prompt as admin

In order to solve the problem of "Eigen/Dense" error I copied all files of eigen-3.3.7 to eigen3 as indicated by yejuns here https://github.com/microsoft/AirSim/issues/1#issuecomment-627275245

@lovettchris
Copy link
Member

This is done for you in build.cmd on Windows or build.sh on Linux.

@Gastastrophe
Copy link
Contributor

If anyone is still having this issue, I found that I only had an empty eigen3 folder and no eigen-eigen- folder. I had to grab the contents of an old installation that worked and put it inside eigen3 to fix it. I've attached the folder I placed inside eigen3 here.
Eigen.zip
.

Delaunay pushed a commit to kiwi-lang/AirSimUE5 that referenced this issue Jun 21, 2024
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

12 participants