Skip to content

Commit

Permalink
more info on linux build.
Browse files Browse the repository at this point in the history
  • Loading branch information
lovettchris committed Feb 16, 2017
1 parent aa9bd67 commit ef7f958
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
3 changes: 2 additions & 1 deletion docs/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ AirSim code has two external dependencies: Eigen library and Boost library.
2. Start VS2015 x64 Native Tools Command Prompt. Create a folder for repo and run
`git clone https://github.com/Microsoft/AirSim.git`
3. Run `build`. If everything goes ok, it will copy all the binaries that you need to Unreal/Plugins folder in your repo. This Plugins folder can then be simply copied to your Unreal environment.

4. [Linux build](linux_build.md) is coming... stay tuned.

## Create Unreal Environment Project
To run the simulator, you need an environment and its very easy to create one! [Unreal Marketplace](https://www.unrealengine.com/marketplace) has dozens of prebuilt extra-ordinarily detailed [environments](https://www.unrealengine.com/marketplace/content-cat/assets/environments) ranging from Moon to Mars and everything in between. The one we have used for testing is called [Modular Neighborhood Pack](https://www.unrealengine.com/marketplace/modular-neighborhood-pack) but you can use any environment.
1. Either purchase an environment from Unreal Marketplace or choose one of the free ones such as [Infinity Blade series](https://www.unrealengine.com/marketplace/infinity-blade-plain-lands). Alternatively, if you look under the Learn tab in Epic Game Launcher, you will find many free samples that you can use. One of our favorites is "A Boy and His Kite" which is a 100 square miles of highly detailed environment (caution: you will need *very* beefy PC to run it!).
Expand Down
17 changes: 9 additions & 8 deletions docs/linux_build.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Linux Build

THe Linux build system is in progress... please stay tuned...
The Linux build system is in progress... please stay tuned...

First you will need at least [cmake version 3.4](https://cmake.org/install/).

## Linux
## cmake

First you will need at least [cmake version 3.4](https://cmake.org/install/).
If you don't have cmake version 3.* (for example, that is not the default on Ubuntu 14) you can run the following:

````
sudo add-apt-repository ppa:george-edison55/cmake-3.x -y
sudo apt-get update
Expand Down Expand Up @@ -42,16 +42,17 @@ difference in how GCC implements some -std=c++14 features... stay tuned...
## Windows

You can also use cmake on Windows, but we have already checked in a .sln and .vcxproj files that are nicer than what
cmake creates. This is why we have separate cmake build into a different directory, so cmake doesn't override our
hand built VS project files.
cmake creates. This is why we have separated the CMakeLists.txt files into a different directory, this ensures cmake
doesn't override our hand built VS project files.

This will create the debug build:

cmake -G "Visual Studio 14 2015 Win64" -D CMAKE_BUILD_TYPE=Debug CMakeLists.txt
msbuild /p:Platform=x64 /p:Configuration=Debug AirSim.sln

To build release bits you have to delete CMakeCache.txt and run this (it's not clear that cmake supports building
one set of vcxproj make files that can do both debug and release, if someone knows how please submit a pull request!):
To build release bits you have to delete CMakeCache.txt (it's not clear that cmake supports building
one set of vcxproj make files that can do both debug and release, if someone knows how please submit a pull request!)
and run this:

cmake -G "Visual Studio 14 2015 Win64" -D CMAKE_BUILD_TYPE=Release CMakeLists.txt
msbuild /p:Platform=x64 /p:Configuration=Release AirSim.sln
Expand Down

0 comments on commit ef7f958

Please sign in to comment.