版本
With the advent of the Wwise Launcher, installing the Cube Demo sample will list it under the Samples tab where you can directly click Run Cube to launch the demo.
For Mac®, however, there are a couple of extra steps to follow beforehand.
The Cube Demo for Mac requires libSDL2 to be installed. Without this, attempts to run the demo from the Launcher will present an error message: "The SDL2 library is not detected. The Cube Demo for Mac requires SDL2 to be installed according to the instructions at https://www.audiokinetic.com/library/<version>/?source=Cube&id=install_libSDL2_for_mac. Please restart the Wwise Launcher after the installation is complete." Likewise, attempts to run the game from the Terminal will display this message: "Library not loaded: @rpath / SDL2.framework / Versions /A / SDL2."
To install libSDL2 for Mac, do the following:
Download the latest libSDL2 Mac OS X Runtime Binaries package: http://www.libsdl.org/release/SDL2-2.0.3.dmg .
Follow the instructions provided in the libSDL2 README file.
For different reasons, it may be that users prefer not to use the Launcher to run the Cube Demo. There are alternative methods to run the Cube Demo, with some differences depending on whether it is run on Mac or Windows.
Note | |
---|---|
Before starting on Mac OS X, make sure the Wwise SDK for Mac is installed on the machine. |
On Mac OS X
Method 1: Run under Xcode.
Check that Xcode is installed. If Xcode is not present in the Applications folder, download and install it from the Mac App Store.
Make sure the unzipped Cube demo folder shares the same parent folder as the installed Wwise SDK Mac distribution. For example, if the Wwise SDK folder is ${HOME}/Wwise/wwise_${version_tag}/SDK, then the Cube demo root folder must be ${HOME}/Wwise/wwise_${version_tag}/CubeDemo.
In Xcode, open the following Xcode project: /path/to/CubeDemo/cube_source/src/Mac/CubeMac.xcodeproj.
Build and run the project.
Method 2: Use the shell scripts.
Make sure the unzipped Cube demo folder shares the same parent folder as the installed Wwise SDK Mac distribution. For example, if the Wwise SDK folder is ${HOME}/Wwise/wwise_${version_tag}/SDK, then the Cube demo root folder must be ${HOME}/Wwise/wwise_${version_tag}/CubeDemo.
Locate the executable shell script for the desired configuration: /path/to/CubeDemo/Mac/<configuration>/bin/RunCubeDemo.sh.
If the .sh files are configured to be opened by Terminal, double click them in Finder. Otherwise, open Terminal then type /path/to/RunCubeDemo.sh and press Enter.
Method 3: Run the executable in Terminal.
cd
(change directory) command from $HOME to ../path/to/CubeDemo/cube
. In Method 2, this detail is taken care of by the shell script.
Running Cube on Mac OS X Yosemite | |
---|---|
To allow the Cube Demo to run on Mac OS X Yosemite, users need to manually register the installed SDL by following this procedure:
For more information, please reference http://www.paradiso.cc/2015/04/18/using-sdlv2-with-osx-yosemite/ . |
On Windows
Method 1: Use the BAT scripts.
Whether using the Wwise Launcher or the previous Wwise installer, the Wwise installation creates BAT files in the "<WwiseRoot>\Cube\cube" folder.
Double click the BAT of the Cube Demo version you wish to run: debug, profiler, or release mode. Alternatively, open the Command Prompt and type the path to the BAT and press Enter.
Method 2: Run the executable from the Command Prompt.