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

Airsim Build error: Cmake Windows #1753

Closed
ethbond opened this issue Jan 30, 2019 · 7 comments
Closed

Airsim Build error: Cmake Windows #1753

ethbond opened this issue Jan 30, 2019 · 7 comments
Labels

Comments

@ethbond
Copy link

ethbond commented Jan 30, 2019

Attempting to build Airsim, error reading what version cmake I have.
did cmake --version to check installed version (see screen cap), seems to be fine any ideas?


capture

@samuelgarca
Copy link

try install module C++ In Microsoft Visual Studio.
its worked for me.

@arian-amador
Copy link
Contributor

Initially looking at this it seems like an issue with find or cmake but then noticed that you cloned the AirSim repo into your c:\Windows\System32 directory AND you're also running the Native Tools CLI as an admin?

I recommend you try and start the native tools as a normal user and clone the AirSim repo into another non-system directory. Example: c:\AirSim\

@ethbond
Copy link
Author

ethbond commented Jan 31, 2019

@samuelgarcia321 So I verified that the C++ module was installed (see images) also included a list of the individual components perhaps I have missed something?
capture2
capture3

@arian-amador Moved it to my D: drive, ran as a normal user rather than admin, same problem.
capture1

@madratman
Copy link
Contributor

@ethbond, were you able to compile it?
can you try reinstalling cmake >=3.9 from here https://cmake.org/download/

@ethbond
Copy link
Author

ethbond commented Feb 19, 2019

@madratman

I managed to compile it, but by doing a workaround. The cmake install is fine. The problem seems to be with Check_cmake.bat, failing to find the cmake version, or writing the version it finds to the "cmake_version" variable. My workaround was to just type in my version into line 8 of Check_cmake.bat:

set "cmake_version= 3. 13"

Saved the .bat, ran the build again and it worked fine.

@madratman
Copy link
Contributor

@ethbond thanks for getting back quickly
hmm. that's weird, I haven't seen any other issue in which cmake wasn't found..
ok, I did a quick hunt again in old issues, and this comment seems related #755 (comment)

The issue seems to be this line https://github.com/Microsoft/AirSim/blob/master/check_cmake.bat#L12
'cmake --version ^| find "cmake version"'

Can you please share the output of where Find.exe on your machine? Maybe you and @vincedjango had similar causes.

In my machine, I don't have cygwin, so it's simply:

C:\Users\ramadaan>where Find.exe
C:\Windows\System32\find.exe

rajat2004 added a commit to rajat2004/AirSim that referenced this issue Feb 16, 2020
Remove docker build, add Ubuntu 18.04, 16.04, Windows, OSX builds
Hack for correct Path.exe on Windows, issue microsoft#1753
Hack for reducing compilation wrning output while still seeing errors
rajat2004 added a commit to rajat2004/AirSim that referenced this issue Feb 16, 2020
Remove docker build, add Ubuntu 18.04, 16.04, Windows, OSX builds
Hack for correct Find.exe on Windows, issue microsoft#1753
Hack for reducing compilation wrning output while still seeing errors
rajat2004 added a commit to rajat2004/AirSim that referenced this issue Feb 16, 2020
Remove docker build, add Ubuntu 18.04, 16.04, Windows, OSX builds
Hack for correct Find.exe on Windows, issue microsoft#1753
Hack for reducing compilation wrning output while still seeing errors
rajat2004 added a commit to rajat2004/AirSim that referenced this issue Feb 21, 2020
Remove docker build, add Ubuntu 18.04, 16.04, Windows, OSX builds
Hack for correct Find.exe on Windows, issue microsoft#1753
Hack for reducing compilation wrning output while still seeing errors
rajat2004 added a commit to ArduPilot/AirSim that referenced this issue Mar 5, 2020
Remove docker build, add Ubuntu 18.04, 16.04, Windows, OSX builds
Hack for correct Find.exe on Windows, issue microsoft#1753
Hack for reducing compilation wrning output while still seeing errors
rajat2004 added a commit to rajat2004/AirSim that referenced this issue Mar 24, 2020
Remove docker build, add Ubuntu 18.04, 16.04, Windows, OSX builds
Hack for correct Find.exe on Windows, issue microsoft#1753
Hack for reducing compilation wrning output while still seeing errors
rajat2004 added a commit to rajat2004/AirSim that referenced this issue Mar 24, 2020
Remove docker build, add Ubuntu 18.04, 16.04, Windows, OSX builds
Hack for correct Find.exe on Windows, issue microsoft#1753
Hack for reducing compilation wrning output while still seeing errors
rajat2004 added a commit to rajat2004/AirSim that referenced this issue Mar 24, 2020
Remove docker build, add Ubuntu 18.04, 16.04, Windows, OSX builds
Hack for correct Find.exe on Windows, issue microsoft#1753
Hack for reducing compilation warning output while still seeing errors
rajat2004 added a commit to rajat2004/AirSim that referenced this issue Mar 24, 2020
Remove docker build, add Ubuntu 18.04, 16.04, Windows, OSX builds
Hack for correct Find.exe on Windows, issue microsoft#1753
Hack for reducing compilation wrning output while still seeing errors
rajat2004 added a commit to rajat2004/AirSim that referenced this issue Mar 27, 2020
Remove docker build, add Ubuntu 18.04, 16.04, Windows, OSX builds
Hack for correct Find.exe on Windows, issue microsoft#1753
Hack for reducing compilation warning output while still seeing errors
saihv pushed a commit to saihv/AirSim that referenced this issue Apr 2, 2020
Remove docker build, add Ubuntu 18.04, 16.04, Windows, OSX builds
Hack for correct Find.exe on Windows, issue microsoft#1753
Hack for reducing compilation warning output while still seeing errors
pjreed pushed a commit to swri-robotics/AirSim that referenced this issue May 21, 2020
Remove docker build, add Ubuntu 18.04, 16.04, Windows, OSX builds
Hack for correct Find.exe on Windows, issue microsoft#1753
Hack for reducing compilation warning output while still seeing errors


Former-commit-id: 33b2ac60aae3e03b037d9281563352ab84599bfa
@ibadrather
Copy link

@madratman

I managed to compile it, but by doing a workaround. The cmake install is fine. The problem seems to be with Check_cmake.bat, failing to find the cmake version, or writing the version it finds to the "cmake_version" variable. My workaround was to just type in my version into line 8 of Check_cmake.bat:

set "cmake_version= 3. 13"

Saved the .bat, ran the build again and it worked fine.

Thank you for your solution. Worked for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants