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

cmake version error on Windows #755

Closed
jayjagtap opened this issue Jan 25, 2018 · 9 comments
Closed

cmake version error on Windows #755

jayjagtap opened this issue Jan 25, 2018 · 9 comments

Comments

@jayjagtap
Copy link

jayjagtap commented Jan 25, 2018

I have installed Unreal which is working fine.
Windows 10 , Visulal Studio 2015 , Python 3.6.

Now , when I am running build.cmd(tried both with cmd VS cmd)
image

cmake 3.9 is properly installed and the path is properly set. What is going wrong.?

Error: find: 'cmake version': No such file or directory Newer AirSim requires cmake verion " 3. 9" but you have " . " which is older. Press any key to download and install cmake (make sure to add it in path in install options)

@sytelus
Copy link
Contributor

sytelus commented Jan 26, 2018

I think cmake is not on path. You can check this by just typing cmake from AirSim folder. If you get 'cmake' is not recognized as an internal or external command then it means its not on path. When you install cmake, it gives you a choice for putting it on path. Unfortunately default is no so you have to make sure this is changed in install screen. If you have already finished installing cmake, just add its bin folder in path (default path on Windows is C:\Program Files\CMake\bin)

@jayjagtap
Copy link
Author

jayjagtap commented Jan 26, 2018

Thak you for your reply.
I had selected the option of setting the path while installing and even checked in the environment variables. Its there.

This is the output when i type cmake from airsim folder.

image

More Information here.

image

Actually I have a urgency for drone training. Please show me a way to get out of this.

@SweetShot
Copy link

Not really sure but it is certainly working with cmake 3.10.2, you might want to try installing that, also it is the version mentioned in check_cmake.bat , link https://cmake.org/files/v3.10/cmake-3.10.2-win64-x64.msi

@tsbio
Copy link

tsbio commented Jan 30, 2018

I have the same problem! 'cmake was not found in path.'
installed VS2015 windows 10 unreal 4.18 ,but just can't run build.cmd

@jayjagtap
Copy link
Author

Check out the temporary solution which would work over here.

cc8a08c

@sytelus
Copy link
Contributor

sytelus commented Jan 30, 2018

Did you restarted command prompt after cmake install? Change in Path environment variable doesn't take effect until you restart app.

@sytelus sytelus changed the title find: 'cmake version': No such file or directory Newer AirSim requires cmake verion " 3. 9" but you have " . " which is older. Press any key to download and install cmake (make sure to add it in path in install options) cmake version error on Windows Apr 12, 2018
@sytelus sytelus closed this as completed Apr 12, 2018
@vincedjango
Copy link

What is said above is not wrong and has to be done, but it is not an answer to the question asked.

The problem here is not CMake, the problem is the Find command in this line:
'cmake --version ^| find "cmake version"'

In the cmd prompt, type:

where Find.exe

Output:
C:\cygwin64\bin\find.exe
C:\Windows\System32\find.exe

The find.exe of System32 has to come first. To do that, make sure that PATH of your System Environment Variable has cygwin64 paths at the end.

Once that your ouput is like that, it will work.

C:\Windows\System32\find.exe
C:\cygwin64\bin\find.exe

p.s: Cygwin64 was only used as an example, the second find.exe could come from another source

@mayank-technical
Copy link

Hi
Thanks @vincedjango . Great Help

But its better to try where Cmake in command promt
C:\cygwin64\bin\cmake.exe
C:\Program Files\CMake\bin\cmake.exe

here you can go to Environment Variables and make sure in user and system variable the position of C:\Program Files\CMake\bin\cmake.exe is above C:\cygwin64\bin\cmake.exe

It worked for me.

@AnukritiSinghh
Copy link

I am having the same issue with VS 2019. Can anyone please let me know if they were able to solve it?

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

No branches or pull requests

7 participants