Known good build environment?
Having trouble compiling the Unreal plugin everywhere--in Ubuntu 16.04 and Win10, VS 2017 and VS 2015, Unreal 4.16 and 4.17. What's a best-practice build environment (OS, Unreal version, VS version, etc.) to test against so I can figure out what's going wrong?
Works great for me on Windows 10, Unreal 4.16.3 and Visual Studio 2015 Community Update 3.
I'm able to compile from scratch on Win 10 as well as Ubuntu 16.04 LTS. What is the issue you are facing? Please post complete error messages and/or log files.
Oops--just found https://github.com/Microsoft/AirSim/blob/master/docs/unreal_custenv.md instructions, going to start over. Meanwhile, using @saihv's recommended setup, build fails with:
1>C:\Users\nick\Documents\GitHub\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\PIPCamera.h(6): fatal error C1083: Cannot open include file: 'controllers/VehicleCameraBase.hpp': No such file or directory
1>C:\Users\nick\Documents\GitHub\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirBlueprintLib.cpp(11): fatal error C1083: Cannot open include file: 'common/common_utils/Utils.hpp': No such file or directory
1> Blocks.cpp
1> [9/12] Link UE4Editor-Blocks.lib
1> Creating library C:\Users\nick\Documents\GitHub\AirSim\Unreal\Environments\Blocks\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-Blocks.lib and object C:\Users\nick\Documents\GitHub\AirSim\Unreal\Environments\Blocks\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-Blocks.exp
1>ERROR : UBT error : Failed to produce item: C:\Users\nick\Documents\GitHub\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-AirSim.lib
Also fails with a very similar error in Ubuntu 16.04 with both UE 4.16 and UE 4.17: ERROR: UBT ERROR: Failed to produce item: ~/Projects/Wise/AirSim/Unreal/Environments/Blocks 4.16/Plugins/AirSim/Binaries/Linux/libUE4Editor-AirSim.so
ERROR: UBT ERROR: Failed to produce item: ~/Projects/Wise/AirSim/Unreal/Environments/Blocks 4.17/Plugins/AirSim/Binaries/Linux/libUE4Editor-AirSim.so
I must be making the same mistake in all four scenarios (Win10/VS 2015/UE 4.16, Win10/VS 2017, UE 4.17, Ubuntu 16.04/UE 4.16, Ubuntu 16.04/UE 4.17)
Are you following this instructions? https://github.com/Microsoft/AirSim/blob/master/docs/unreal_blocks.md
Specifically step #2, which will copy Plugins/AirSim folder in Blocks project. Above errors seems to indicate you don't have this folder.
Turns out I can't complete the pre-build step for rpclib--when run through build.cmd CMake complains:
No CMAKE_C_COMPILER could be found.
No CMAKE_CXX_COMPILER could be found.
(Should clarify that other projects can be build normally so I don't think it's an overall system config issue. ) Experimented with various configurations for VS 2015, VS 2017, and standalone CMake install as per docs...any suggestions?
OK, found the issue: when both VS 2015 and VS 2017 are installed, build.cmd must be run with VS 2017. The Unreal project can still optionally be built with VS 2015. I see the VS 2017 flag for cmake is already provided in build.cmd and commented out; would be great to add an explainer note in the docs. Thanks for the suggestions!
So the fix was uncommenting?
Yeah afaik if you have both VS 2017 and VS 2015 installed, you must run build.cmd for VS 2017 (by uncommenting the VS 2017 CMake command string that's already there, and commenting out the VS 2015 one). After you've built the plugin, you can still build your Unreal project with either VS 2015 or VS 2017.
I'm still stuck on compiling on Ubuntu 16.04 for both 4.16 and 4.17 though.
@n1ckfg Sweet I will try this
@n1ckfg Were you ever able to compile on Ubuntu 16.04? Stuck on this same issue now.
Yup, for Unreal 4.17. Where does it break for you?
When I run Unreal Engine and try and pick a project it says that Airsim isn't compatible

I click No to disabling it and then it says:

Then if I try to rebuild I get

So afaik you can't build the AirSim plugin in a new project from UE--you have build it in the AirSim repo first and then copy from the AirSim/Unreal folder to your own project. Next delete Binaries, Intermediate, and Saved folders from your project (this will all be recreated). Then run GenerateProjectFiles.sh in the UE folder on your new.uproject file. Finally try opening the project in Unreal again and see if it builds.
How do you build in the AIrSim repo? Is that just running ./build.sh ? Should that create a .so file?
First run setup, then build.