AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Not Building VS

Open spencerh-b opened this issue 9 years ago • 23 comments

1>------ Build started: Project: Blocks, Configuration: DebugGame_Game x64 ------
1>  Creating makefile for Blocks (no existing makefile)
1>  Performing full C++ include scan (no include cache file)
1>  Parsing headers for Blocks
1>    Running UnrealHeaderTool "C:\AirSim\Unreal\Environments\Blocks\Blocks.uproject" "C:\AirSim\Unreal\Environments\Blocks\Intermediate\Build\Win64\Blocks\DebugGame\Blocks.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
1>  Reflection code generated for Blocks in 6.6600012 seconds
1>  Performing 10 actions (4 in parallel)
1>  PCH.UELinkerFixups.cpp
1>  PCH.Blocks.cpp
1>  Module.AirSim.cpp
1>  AirSim.generated.cpp
1>  [5/10] Resource PCLaunch.rc
1>  UELinkerFixups.cpp
1>  [7/10] Resource PCLaunch.rc
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(536): warning C4005: 'TEXT': macro redefinition
1>  c:\program files\epic games\ue_4.16\engine\source\runtime\core\public\HAL/Platform.h(822): note: see previous definition of 'TEXT'
1>
1>  You have included windows.h before MinWindows.h
1>  All useless stuff from the windows headers won't be excluded !!!
1>
1>C:\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\include\controllers/MavLinkDroneController.hpp(7): fatal error C1083: Cannot open include file: 'MavLinkVehicle.hpp': No such file or directory
1>  Blocks.cpp
1>ERROR : UBT error : Failed to produce item: C:\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Binaries\Win64\UE4-AirSim-Win64-DebugGame.lib
1>  Total build time: 54.18 seconds (Local executor: 0.00 seconds)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command ""C:\Program Files\Epic Games\UE_4.16\Engine\Build\BatchFiles\Build.bat" Blocks Win64 DebugGame "C:\AirSim\Unreal\Environments\Blocks\Blocks.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I have gone through the instructions a couple times, still not able to figure out what is happening

spencerh-b avatar Sep 22 '17 18:09 spencerh-b

Multiple repo's do not exist. For example, Droneshell, Hellodrone, DroneServer all appear to be missing build repo

spencerh-b avatar Sep 22 '17 19:09 spencerh-b

Did you followed step 2 in this instructions: https://github.com/Microsoft/AirSim/blob/master/docs/unreal_blocks.md

most likely Plugins\AirSim folder doesn't exist under Blocks project folder.

sytelus avatar Sep 22 '17 22:09 sytelus

@sytelus The airsim folder exists, but it seems incomplete. I did indeed follow step 2. I am unable to build any AirSim Projects and I have deleted and reinstalled AirSim again and followed all instructions as well as I can. I am on windows 10, using VS 2015. Is there anything else I should check?

spencerh-b avatar Sep 25 '17 20:09 spencerh-b

Also having the same issue, windows 10 VS 2015 with exact same build output. Plugins\AirSim folder contains Binaries, Content, Intermediate and Source folders, and a file called AirSim.uplugin.

DavidLSmyth avatar Sep 26 '17 09:09 DavidLSmyth

This is very strange. Are you sure that you are double clicking on Blocks\update_from_git.bat file?

This batch file is very simple:

robocopy /MIR ..\..\Plugins\AirSim Plugins\AirSim /XD temp *. /njh /njs /ndl /np
robocopy /MIR ..\..\..\AirLib Plugins\AirSim\Source\AirLib /XD temp *. /njh /njs /ndl /np
cmd /c clean.bat
cmd /c GenerateProjectFiles.bat

The 2nd line copies AirLib folder which should have had missing file. Could you please check if Plugins\AirSim\Source\AirLib exists? Does it has files? If not, could you please try running this command from Blocks folder:

robocopy /MIR ..\..\..\AirLib Plugins\AirSim\Source\AirLib /XD temp *. /njh /njs /ndl /np

Please let me know. I'd really like to get to the bottom of this...

sytelus avatar Sep 28 '17 09:09 sytelus

Well, I am facing the same issue currently. I checked the AirSim\Unreal\Plugins\AirSim\Source folder and the AirLib directory exists along with its contents.

Mayankm96 avatar Sep 28 '17 14:09 Mayankm96

Ok... here are some steps for debugging. Could you please confirm result of following steps?

  1. First make sure you have run build command in AirSim folder from VS x64 command prompt and that build was successful. You should have this file exist: AirSim\AirLib\deps\MavLinkCom\include\MavLinkVehicle.hpp.

  2. Go to Unreal\Environments\Blocks project. Double click on update_from_git.bat. After this step you should have this file exist: AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\deps\MavLinkCom\include\MavLinkVehicle.hpp

  3. Double click on .sln file. Make sure you have DebugGame-Editor and x64 build configuration selected. Hit F5.

sytelus avatar Sep 28 '17 19:09 sytelus

I started the build process again (by first running clean.bat and then doing git clean -dxf). Step 1 and 2 are cleared since the files you have mentioned are present over at their respective places. Step 3, however is leading to the same error as before:

>------ Build started: Project: Blocks, Configuration: DebugGame_Editor x64 ------
1>  Creating makefile for BlocksEditor (no existing makefile)
1>  Performing full C++ include scan (no include cache file)
1>  Parsing headers for BlocksEditor
1>    Running UnrealHeaderTool "C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Blocks.uproject" "C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Intermediate\Build\Win64\BlocksEditor\DebugGame\BlocksEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
1>  Reflection code generated for BlocksEditor in 6.9423431 seconds
1>  Performing 11 actions (4 in parallel)
1>  [2/11] Resource ModuleVersionResource.rc.inl
1>  [3/11] Resource PCLaunch.rc
1>  [4/11] Resource PCLaunch.rc
1>  SharedPCH.Engine.NonOptimized.cpp
1>  Module.AirSim.cpp
1>  Blocks.cpp
1>  AirSim.generated.cpp
1>  [8/11] Link UE4Editor-Blocks-Win64-DebugGame.lib
1>     Creating library C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-Blocks-Win64-DebugGame.lib and object C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-Blocks-Win64-DebugGame.exp
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(536): warning C4005: 'TEXT': macro redefinition
1>  c:\program files\epic games\ue_4.16\engine\source\runtime\core\public\HAL/Platform.h(822): note: see previous definition of 'TEXT'
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(17005): warning C4668: '_APISET_RTLSUPPORT_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\interlockedapi.h(73): warning C4668: '_APISET_INTERLOCKED_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\processthreadsapi.h(1170): warning C4668: '_WIN32_WINNT_WINTHRESHOLD' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(357): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(472): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(1302): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8618): warning C4668: 'NTDDI_WIN7SP1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\include\controllers/Waiter.hpp(24): error C4003: not enough actual parameters for macro 'max'
1>C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\include\controllers/Waiter.hpp(24): error C2589: '(': illegal token on right side of '::'
1>C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\include\controllers/Waiter.hpp(24): error C2059: syntax error: '::'
1>C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\src\controllers\DroneControllerBase.cpp(23): error C2589: '(': illegal token on right side of '::'
1>C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\src\controllers\DroneControllerBase.cpp(23): error C2059: syntax error: '::'
1>C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\src\controllers\DroneControllerBase.cpp(159): error C2664: 'msr::airlib::Waiter::Waiter(msr::airlib::Waiter &&)': cannot convert argument 1 from 'float' to 'const msr::airlib::Waiter &'
1>  C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\src\controllers\DroneControllerBase.cpp(159): note: Reason: cannot convert from 'float' to 'const msr::airlib::Waiter'
1>  C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\src\controllers\DroneControllerBase.cpp(159): note: No constructor could take the source type, or constructor overload resolution was ambiguous
1>C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\src\controllers\DroneControllerBase.cpp(299): error C2664: 'msr::airlib::Waiter::Waiter(msr::airlib::Waiter &&)': cannot convert argument 1 from 'float' to 'const msr::airlib::Waiter &'
1>  C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\src\controllers\DroneControllerBase.cpp(299): note: Reason: cannot convert from 'float' to 'const msr::airlib::Waiter'
1>  C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\src\controllers\DroneControllerBase.cpp(299): note: No constructor could take the source type, or constructor overload resolution was ambiguous
1>
1>  You have included windows.h before MinWindows.h
1>  All useless stuff from the windows headers won't be excluded !!!
1>
1>ERROR : UBT error : Failed to produce item: C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-AirSim-Win64-DebugGame.lib
1>  Total build time: 24.27 seconds (Local executor: 0.00 seconds)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command ""C:\Program Files\Epic Games\UE_4.16\Engine\Build\BatchFiles\Build.bat" BlocksEditor Win64 DebugGame "C:\Users\BERSERK\Desktop\Mayank\AirSim\Unreal\Environments\Blocks\Blocks.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

PS: I am using UE4Editor 4.16.3 on Windows 10 with VS 2015 Community Update 3.

Mayankm96 avatar Sep 28 '17 20:09 Mayankm96

I just fixed above issue. Would you like to try again? Thanks for helping us debug this issue.

sytelus avatar Sep 28 '17 22:09 sytelus

@sytelus 1>------ Build started: Project: Blocks, Configuration: DebugGame_Editor x64 ------ 1> Performing full C++ include scan (building a new target) 1> Creating makefile for BlocksEditor (no existing makefile) 1> Parsing headers for BlocksEditor 1> Running UnrealHeaderTool "C:\AirSim\Unreal\Environments\Blocks\Blocks.uproject" "C:\AirSim\Unreal\Environments\Blocks\Intermediate\Build\Win64\BlocksEditor\DebugGame\BlocksEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed 1> Reflection code generated for BlocksEditor in 8.8460935 seconds 1> Performing 12 actions (4 in parallel) 1> [2/12] Resource ModuleVersionResource.rc.inl 1> [4/12] Resource PCLaunch.rc 1> SharedPCH.Engine.NonOptimized.cpp 1> PCH.Blocks.cpp 1> [5/12] Resource PCLaunch.rc 1> Blocks.cpp 1> [7/12] Link UE4Editor-Blocks-Win64-DebugGame.lib 1> Creating library C:\AirSim\Unreal\Environments\Blocks\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-Blocks-Win64-DebugGame.lib and object C:\AirSim\Unreal\Environments\Blocks\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-Blocks-Win64-DebugGame.exp 1> Module.AirSim.cpp 1> AirSim.generated.cpp 1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(536): warning C4005: 'TEXT': macro redefinition 1> c:\program files\epic games\ue_4.16\engine\source\runtime\core\public\HAL/Platform.h(822): note: see previous definition of 'TEXT' 1> 1> You have included windows.h before MinWindows.h 1> All useless stuff from the windows headers won't be excluded !!! 1> 1> [10/12] Link UE4Editor-AirSim-Win64-DebugGame.lib 1> [11/12] Link UE4Editor-AirSim-Win64-DebugGame.dll 1> Creating library C:\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-AirSim-Win64-DebugGame.lib and object C:\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-AirSim-Win64-DebugGame.exp 1> [12/12] Link UE4Editor-Blocks-Win64-DebugGame.dll 1>LINK : fatal error LNK1181: cannot open input file 'C:\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\deps\MavLinkCom\lib\x64\Release\MavLinkCom.lib' 1>LINK : fatal error LNK1181: cannot open input file 'C:\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\deps\MavLinkCom\lib\x64\Release\MavLinkCom.lib' 1>ERROR : UBT error : Failed to produce item: C:\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Binaries\Win64\UE4Editor-AirSim-Win64-DebugGame.dll 1> Total build time: 151.98 seconds (Local executor: 0.00 seconds) 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command ""C:\Program Files\Epic Games\UE_4.16\Engine\Build\BatchFiles\Build.bat" BlocksEditor Win64 DebugGame "C:\AirSim\Unreal\Environments\Blocks\Blocks.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

It progressed much further, but still failing

spencerh-b avatar Oct 03 '17 05:10 spencerh-b

Please look at the error and see if you can help debug.

  1. Does this file exist? C:\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\deps\MavLinkCom\lib\x64\Release\MavLinkCom.lib?

  2. If not then does it exist in AirSim\AirLib\deps\MavLinkCom\lib\x64\Release\MavLinkCom.lib?

  3. If not then did you ran the build.cmd? If yes, then did you clicked on update_from_git.bat in Blocks folder?

sytelus avatar Oct 04 '17 06:10 sytelus

@sytelus After AirLib\deps the MavLinkCom folder does not exist

spencerh-b avatar Oct 06 '17 05:10 spencerh-b

That means you haven't done build. Try running build.cmd. It should copy those files to deps. Then when you double click on update_from_git.bat, it will copy deps to Blocks project.

sytelus avatar Oct 06 '17 06:10 sytelus

I have gone through the steps multiple times now and the MavLinkCom folder still does not appear. @sytelus

spencerh-b avatar Oct 06 '17 20:10 spencerh-b

Do you mean you type build at VS x64 Command Prompt in AirSim folder and deps\MavLinkCom still doesn't exist?

sytelus avatar Oct 07 '17 10:10 sytelus

@sytelus Thank you for the help, everything is running great now

spencerh-b avatar Oct 09 '17 22:10 spencerh-b

@spencerh-b Hi, I met the same problem as you had and I dont know how to fix it at all. Cant finish build because of this: LINK : fatal error LNK1181: cannot open input file 'rpc.lib' [D:\Jack\AirSim-1.1.7\AirLib\AirLib.vcxproj]

Jackyjae avatar Dec 07 '17 07:12 Jackyjae

@Jackyjae just make sure that you are running VS 2015 and insure that you use the VS x64 Command Line to complete all of the tasks, don't just click on the build.cmd file in the folder, that will not complete the build.

spencerh-b avatar Dec 07 '17 19:12 spencerh-b

@spencerh-b sorry to border you again~ Did you use the APIs of AieSim? I tried the sample of using "getOneImage()" in the Image APIs of the docs of AirSim, but it's not working and give me the error "cannot open include file "vehicles/multirotor/api/MultirotorRpcLibClient.hpp" ". I tried to add include and library directories in the property page of vs and it's still not working. BTW, it also has another error like this: Severity Code Description Project File Line Suppression State Error MSB3075 The command ""D:\Epic Games\UE_4.18\Engine\Build\BatchFiles\Build.bat" Task1Editor Win64 DebugGame "C:\Users\angus\Documents\Unreal Projects\Task1\Task1.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command. Task1 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 41 Could you help me to fix it if you know? Thanks so much.

Jackyjae avatar Dec 14 '17 09:12 Jackyjae

@Jackyjae I'm sorry for responding so late I have been on vacation. It sounds like the build command didnt execute properly make sure you run it as an admin from with in the VS Native command prompt. I have as well experienced this issue and this seemed to fix my problems

spencerh-b avatar Jan 30 '18 18:01 spencerh-b