start .build\projects\vs2015\bgfx.sln
+start .build\projects\vs2015\bgfx.sln
@@ -198,10 +201,10 @@ git clone git://github.com/bkaradzic/bgfx.git
Set following enironment variables:
-setx ANDROID_NDK_ROOT <path to AndroidNDK directory>
-setx ANDROID_NDK_ARM <path to AndroidNDK directory>\toolchains\arm-linux-androideabi-4.7\prebuilt\windows-x86_64
-setx ANDROID_NDK_MIPS <path to AndroidNDK directory>\toolchains\mipsel-linux-android-4.7\prebuilt\windows-x86_64
-setx ANDROID_NDK_X86 <path to AndroidNDK directory>\toolchains\x86-4.7\prebuilt\windows-x86_64
+setx ANDROID_NDK_ROOT <path to AndroidNDK directory>
+setx ANDROID_NDK_ARM <path to AndroidNDK directory>\toolchains\arm-linux-androideabi-4.7\prebuilt\windows-x86_64
+setx ANDROID_NDK_MIPS <path to AndroidNDK directory>\toolchains\mipsel-linux-android-4.7\prebuilt\windows-x86_64
+setx ANDROID_NDK_X86 <path to AndroidNDK directory>\toolchains\x86-4.7\prebuilt\windows-x86_64
To deploy on Android you can use bgfx android activity:
@@ -213,7 +216,7 @@ setx ANDROID_NDK_X86 <path to AndroidNDK directory>\toolchains\x86-4.7\pre
Linux
-
sudo apt-get install libgl1-mesa-dev x11proto-core-dev libx11-dev
+sudo apt-get install libgl1-mesa-dev x11proto-core-dev libx11-dev
@@ -226,7 +229,7 @@ setx ANDROID_NDK_X86 <path to AndroidNDK directory>\toolchains\x86-4.7\pre
Set following enironment variables:
-
setx NACL_SDK_ROOT <path to Native Client SDK directory>
+setx NACL_SDK_ROOT <path to Native Client SDK directory>
@@ -254,36 +257,36 @@ to generate project files for various platform. Binaries for Linux, OSX, and Win
bx repository.
General
-
cd bgfx
-make
+
After calling make, .build/projects/* directory will be generated.
All intermediate files generated by compiler will be inside .build
directory structure. Deleting .build directory at any time is safe.
-make <configuration>
+
Configuration is <platform>-<debug/release>[32/64]. For example:
-linux-release32, nacl-debug64, nacl-arm-debug, pnacl-release,
-android-release, etc.
+linux-release32, nacl-debug64, nacl-arm-debug, pnacl-release,
+android-release, etc.
Windows
Visual Studio 2008 command line:
-
make vs2008-release64
+
Visual Studio 2008 IDE:
-start .build/projects/vs2008/bgfx.sln
+start .build/projects/vs2008/bgfx.sln
Xcode
-
open .build/projects/xcode4-osx/bgfx.xcworkspace
+open .build/projects/xcode4-osx/bgfx.xcworkspace
Due to inability
@@ -298,13 +301,13 @@ configuration file, it has to be set manually for each example project:
Linux
-
WinRT / Windows Phone 8.1
-
../bx/tools/bin/windows/genie --vs=winphone81 vs2015
+../bx/tools/bin/windows/genie --vs=winphone81 vs2015
Build the resulting solution and deploy to device.
@@ -326,18 +329,18 @@ instead) inside different build system.
OculusVR Integration
To build with OculusVR HMD support enabled you must set OVR_DIR enviroment variable:
-
set OVR_DIR=<path to OculusSDK>
+set OVR_DIR=<path to OculusSDK>
And generate project files with --with-ovr option:
-genie --with-ovr vs2015
+