forked from microsoft/AirSim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux build working with Unreal 4.16
- Loading branch information
Showing
10 changed files
with
129 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,5 @@ | |
"Name": "AirSim", | ||
"Enabled": true | ||
} | ||
], | ||
"EngineAssociation": "4.16" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#! /bin/bash | ||
|
||
# get path of current script: https://stackoverflow.com/a/39340259/207661 | ||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
pushd "$SCRIPT_DIR" >/dev/null | ||
|
||
set -e | ||
set -x | ||
|
||
#confirm unreal install directory | ||
UnrealDir=$1 | ||
if [[ !(-z "UnrealDir") ]]; then | ||
UnrealDir="$SCRIPT_DIR/UnrealEngine" | ||
fi | ||
|
||
read -p "Unreal will be installed in $UnrealDir. To change it invoke script with path argument. Continue? " -n 1 -r | ||
echo | ||
if [[ ! $REPLY =~ ^[Yy]$ ]] | ||
then | ||
popd >/dev/null | ||
exit 0 | ||
fi | ||
|
||
#install unreal | ||
if [[ !(-d "$UnrealDir") ]]; then | ||
git clone -b 4.16 https://github.com/EpicGames/UnrealEngine.git "$UnrealDir" | ||
pushd "$UnrealDir" >/dev/null | ||
|
||
./Setup.sh | ||
./GenerateProjectFiles.sh | ||
make | ||
|
||
popd >/dev/null | ||
fi | ||
|
||
#install airsim | ||
./setup.sh | ||
./build.sh | ||
|
||
#start Unreal editor with Blocks project | ||
pushd "$UnrealDir" >/dev/null | ||
Engine/Binaries/Linux/UE4Editor "$SCRIPT_DIR/AirSim/Unreal/Environments/Blocks/Blocks.uproject" -game -log | ||
popd >/dev/null | ||
|
||
popd >/dev/null |