Skip to content

Commit

Permalink
Adds linux (ubuntu 16.10) build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
codedreality committed Nov 16, 2016
1 parent 39a6705 commit 364c1f1
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
37 changes: 35 additions & 2 deletions README.md
Expand Up @@ -44,9 +44,42 @@ Intrinsic is a Vulkan based cross-platform game and rendering engine. The projec
14. If everything went well, you'll find the solution in the newly created "build" folder. You can also use one of the many build scripts: "Build_Release.bat", ... to get started
15. Execute "Intrinsic.exe" or "IntrinsicEd.exe" in the "app" directory - yey!

## Linux
## Linux (Fresh Ubuntu 16.10 Install)

Coming soon...
### Prerequisites

sudo apt install git cmake ninja-build libsdl2-dev

### Setup Instructions
1. Download and install the Qt (open-source) distribution
Add environment variables to your .zshrc or .bashrc:
# Intrinsic
export INTR_QTDIR="[...]/Qt/x.x/gcc_64"

2. Download and install the Vulkan SDK
Add environment variables to your .zshrc or .bashrc:
# vulkan sdk
VULKAN_SDK=~/[...]/VulkanSDK/1.0.30.0/x86_64
VK_LAYER_PATH=$VULKAN_SDK/etc/explicit_layer.d

export VK_LAYER_PATH
export PATH=$VULKAN_SDK/bin:$PATH

3. Get access to the latest PhysX SDK
After cloning of the git repository apply patches from https://github.com/NVIDIAGameWorks/PhysX-3.3/pull/57
cd [...]/PhysX-3.3/PhysXSDK/Source/compiler/linux64
make release profile debug

Add environment variables to your .zshrc or .bashrc:
export PHYSX_HOME="$HOME/[...]/PhysX-3.3/PhysXSDK/"

4. Download and install Autodesk FBX SDK

5. Go to the "scripts_linux" folder in the Intrinsic repository dir
6. Execute "ConfigAndBuildDependencies"
7. Execute "Config_Release"
8. Execute "Build"
9. Execute "Run_Release"

# Build Status

Expand Down
7 changes: 6 additions & 1 deletion cmake/FindPhysX.cmake
Expand Up @@ -10,7 +10,7 @@
# PhysX_PROFILE

FIND_PATH(PhysX_INCLUDE_DIR PxPhysicsAPI.h
PATH_SUFFIXES include
PATH_SUFFIXES include Include
PATHS
${PHYSX_HOME}
$ENV{PHYSX_HOME}
Expand Down Expand Up @@ -54,6 +54,7 @@ FIND_LIBRARY(PhysX_LIBRARY_RELEASE PhysX3${PHYSXPREFIX}
PATH_SUFFIXES lib64 lib Lib/${LIBFOLDERSUFFIX}
PATHS
${PhysX_LIBRARY_DIR}
${PhysX_LIBRARY_DIR}/../../Bin/${LIBFOLDER}
${PHYSX_HOME}
$ENV{PHYSX_HOME}
${CMAKE_SOURCE_DIR}/../Intrinsic_Dependencies/physx/
Expand All @@ -71,6 +72,7 @@ FIND_LIBRARY(PhysX_LIBRARY_PROFILE PhysX3PROFILE${PHYSXPREFIX}
PATH_SUFFIXES lib lib64 Lib/${LIBFOLDERSUFFIX}
PATHS
${PhysX_LIBRARY_DIR}
${PhysX_LIBRARY_DIR}/../../Bin/${LIBFOLDER}
${PHYSX_HOME}
$ENV{PHYSX_HOME}
${CMAKE_SOURCE_DIR}/../Intrinsic_Dependencies/physx/
Expand All @@ -88,6 +90,7 @@ FIND_LIBRARY(PhysX_LIBRARY_DEBUG PhysX3DEBUG${PHYSXPREFIX}
PATH_SUFFIXES lib lib64 Lib/${LIBFOLDERSUFFIX}
PATHS
${PhysX_LIBRARY_DIR}
${PhysX_LIBRARY_DIR}/../../Bin/${LIBFOLDER}
${PHYSX_HOME}
$ENV{PHYSX_HOME}
${CMAKE_SOURCE_DIR}/../Intrinsic_Dependencies/physx/
Expand Down Expand Up @@ -117,6 +120,7 @@ FOREACH(component ${PhysX_FIND_COMPONENTS})
PATH_SUFFIXES lib lib64 Lib/${LIBFOLDERSUFFIX}
PATHS
${PhysX_LIBRARY_DIR}
${PhysX_LIBRARY_DIR}/../../Bin/${LIBFOLDER}
${PHYSX_HOME}
$ENV{PHYSX_HOME}
${CMAKE_SOURCE_DIR}/../Intrinsic_Dependencies/physx/
Expand All @@ -141,6 +145,7 @@ FOREACH(component ${PhysX_FIND_COMPONENTS})
PATH_SUFFIXES lib lib64 Lib/${LIBFOLDERSUFFIX}
PATHS
${PhysX_LIBRARY_DIR}
${PhysX_LIBRARY_DIR}/../../Bin/${LIBFOLDER}
${PHYSX_HOME}
$ENV{PHYSX_HOME}
${CMAKE_SOURCE_DIR}/../Intrinsic_Dependencies/physx/
Expand Down

0 comments on commit 364c1f1

Please sign in to comment.