|
@@ -167,11 +167,11 @@ process has two steps:
|
|
|
|
|
|
|
|
For Eclipse, import the Eclipse's project generated by CMake into
|
|
For Eclipse, import the Eclipse's project generated by CMake into
|
|
|
the workspace as a general project. The Eclipse's project is generated in
|
|
the workspace as a general project. The Eclipse's project is generated in
|
|
|
- "build" sub-directory. See "Importing existing projects" in Eclipse Help for
|
|
|
|
|
|
|
+ "Build" sub-directory. See "Importing existing projects" in Eclipse Help for
|
|
|
detail steps. Select "Build All" or "Build Project" in the menu. Note that
|
|
detail steps. Select "Build All" or "Build Project" in the menu. Note that
|
|
|
Eclipse requires CDT plugin to build C/C++ project.
|
|
Eclipse requires CDT plugin to build C/C++ project.
|
|
|
|
|
|
|
|
- For GCC, execute make in the "build" sub-directory (by default, cmake_gcc.sh
|
|
|
|
|
|
|
+ For GCC, execute make in the "Build" sub-directory (by default, cmake_gcc.sh
|
|
|
specifies to make a RelWithDebInfo build).
|
|
specifies to make a RelWithDebInfo build).
|
|
|
|
|
|
|
|
For Xcode, open Urho3D.xcodeproj and build.
|
|
For Xcode, open Urho3D.xcodeproj and build.
|
|
@@ -221,7 +221,7 @@ from the command line.
|
|
|
On Windows, execute cmake_android.bat then go to the Android directory and execute
|
|
On Windows, execute cmake_android.bat then go to the Android directory and execute
|
|
|
the following commands. On OS X or Linux, execute cmake_gcc.sh (the ANDROID_NDK
|
|
the following commands. On OS X or Linux, execute cmake_gcc.sh (the ANDROID_NDK
|
|
|
environment variable distinguishes from a normal desktop build) then go to the
|
|
environment variable distinguishes from a normal desktop build) then go to the
|
|
|
-android-build directory (which is a GCC out-of-source build) and execute the
|
|
|
|
|
|
|
+android-Build directory (which is a GCC out-of-source build) and execute the
|
|
|
following commands.
|
|
following commands.
|
|
|
|
|
|
|
|
- android update project -p . -t 1 (only needed on the first time,
|
|
- android update project -p . -t 1 (only needed on the first time,
|
|
@@ -245,13 +245,13 @@ activity subclasses the SDLActivity from org.libsdl.app package, whose name
|
|
|
Note that the native code is built by default for armeabi-v7a ABI. To make your
|
|
Note that the native code is built by default for armeabi-v7a ABI. To make your
|
|
|
program compatible also with old Android devices, build also an armeabi version
|
|
program compatible also with old Android devices, build also an armeabi version
|
|
|
by executing the CMake batch file again with the parameter -DANDROID_ABI=armeabi
|
|
by executing the CMake batch file again with the parameter -DANDROID_ABI=armeabi
|
|
|
-added, then execute make again in the Android directory on Windows or android-build
|
|
|
|
|
|
|
+added, then execute make again in the Android directory on Windows or android-Build
|
|
|
directory on Mac/Linux.
|
|
directory on Mac/Linux.
|
|
|
|
|
|
|
|
You can also build and deploy using Eclipse IDE with ADT plugin. To do that, after
|
|
You can also build and deploy using Eclipse IDE with ADT plugin. To do that, after
|
|
|
setting the ANDROID_NDK environment variable then run cmake_eclipse.sh. Import
|
|
setting the ANDROID_NDK environment variable then run cmake_eclipse.sh. Import
|
|
|
"Existing Android Code into Workspace" from the CMake generated Eclipse's project
|
|
"Existing Android Code into Workspace" from the CMake generated Eclipse's project
|
|
|
-found in the android-build directory. Switch Eclipse IDE to use Java Perspective.
|
|
|
|
|
|
|
+found in the android-Build directory. Switch Eclipse IDE to use Java Perspective.
|
|
|
Update project properties to choose the desired Android API target and that's it.
|
|
Update project properties to choose the desired Android API target and that's it.
|
|
|
Just choose "Run" to let ADT automatically build and deploy the application to
|
|
Just choose "Run" to let ADT automatically build and deploy the application to
|
|
|
Android (virtual) device.
|
|
Android (virtual) device.
|
|
@@ -289,12 +289,12 @@ crosstool-NG (http://crosstool-ng.org/) or just download one from
|
|
|
https://github.com/raspberrypi/tools. The RASPI_TOOL environment variable tells
|
|
https://github.com/raspberrypi/tools. The RASPI_TOOL environment variable tells
|
|
|
build script to generate additional build directory for cross-compiling.
|
|
build script to generate additional build directory for cross-compiling.
|
|
|
|
|
|
|
|
-Run cmake_gcc.sh then go to the raspi-build directory and proceed to execute make.
|
|
|
|
|
|
|
+Run cmake_gcc.sh then go to the raspi-Build directory and proceed to execute make.
|
|
|
After the build is complete, the ARM executables can be found in Bin-CC directory.
|
|
After the build is complete, the ARM executables can be found in Bin-CC directory.
|
|
|
|
|
|
|
|
You can also build, deploy, run/debug (as C/C++ Remote Application) using Eclipse
|
|
You can also build, deploy, run/debug (as C/C++ Remote Application) using Eclipse
|
|
|
IDE, if you run cmake_eclipse.sh to generate the project file. Import the CMake
|
|
IDE, if you run cmake_eclipse.sh to generate the project file. Import the CMake
|
|
|
-generated Eclipse project in the raspi-build directory into Eclipse's workspace.
|
|
|
|
|
|
|
+generated Eclipse project in the raspi-Build directory into Eclipse's workspace.
|
|
|
Build the project as usual. Use the SCP_TO_TARGET build option to automatically
|
|
Build the project as usual. Use the SCP_TO_TARGET build option to automatically
|
|
|
deploy the ARM executables to target Raspberry Pi as part of every project build
|
|
deploy the ARM executables to target Raspberry Pi as part of every project build
|
|
|
or configure Eclipse to perform a "download to target path" in the Run/Debug
|
|
or configure Eclipse to perform a "download to target path" in the Run/Debug
|
|
@@ -464,4 +464,4 @@ V1.1 - Object and scene model refactoring.
|
|
|
- Added OpenGL and cross-platform support.
|
|
- Added OpenGL and cross-platform support.
|
|
|
- Switched to kNet library for networking.
|
|
- Switched to kNet library for networking.
|
|
|
|
|
|
|
|
-V1.0 - Original release.
|
|
|
|
|
|
|
+V1.0 - Original release.
|