Getting Started with Voltair
|
Start up Qt Creator. It will look like this (on the Mac). Please Press the Open Project button, found here:
Navigate to the voltair
tree, and then one more level down into VoltAir
, in which you will find a file called VoltAir.pro
, as seen here:
Upon opening, you will be presented with the following dialog box about kits (if this dialog does not show up, hit the Projects button on the left). Kits are the way Qt Creator provides for building to multiple platforms. Please select the following two kits:
The name of the latter may be slightly different under Linux.
When you are done, hit the Configure Project button.
Next we must make certain that Qt Creator is properly configured to build for Android. To do this, first bring up the Preference dialog box (found in the Qt Creator menu on the mac). Then on the left, click on the Android section. There are four software subsystems you will have to populate:
VoltAir has scores of C++ files that need to get built. Given this, it makes sense to run its make in parallel. We take the following steps to set this up:
-j 8
.If you are building LiquidFun strictly for VoltAir, simply make sure it is cloned as specified in [Downloading VoltAir][] and built as stated in the LiquidFun Build Instructions.
As mentioned earlier, the VoltAir git repository is set up to include a LiquidFun submodule (see [Downloading VoltAir][] for more information). However, if you have a pre-existing version of LiquidFun that you wish to use instead, you can do so by appropriately setting a LIQUIDFUN variable in your build environment. Take the following steps:
This ONLY applies to the Android for armeabi-v7a (GCC 4.8, Qt 5.3.1). In the same Build Environment location, make certain that the ANDROID_NDK_PLATFORM is set to android-19.
You also need to make certain that your Android SDK has API 19 installed. This is done from within the Android SDK Manager. The image below shows what you should expect to see:
For more information on configuring Qt Creator, please see the Configuring Projects of the official Qt documentation.
You are now ready to proceed to Building and Running VoltAir.