Android build quick start guide

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
User avatar
hebdemnobad
Goblin
Posts: 274
Joined: Wed Feb 09, 2005 5:09 pm
Location: catskill escarpment, new york, usa
Contact:

Re: Android build quick start guide

Post by hebdemnobad » Sat Jul 13, 2013 3:10 pm

The wiki guide, http://www.ogre3d.org/tikiwiki/tiki-ind ... on=Android, does not state that Visual Studio is necessary to build ogre for android. Is it in fact a necessary app to follow the guide? Or can you open a visual studio command prompt without having visual studio installed? (I did a google search on this but couldn't find any guidance.)

The guide states that you need ant, but it doesn't say how, if at all, ant is used in any of the command line commands.

In any case, downloading visual studio express 2012 for win7 atm...
0 x

Emerich
Halfling
Posts: 64
Joined: Wed Oct 24, 2012 10:59 am

Re: Android build quick start guide

Post by Emerich » Sat Jul 13, 2013 8:01 pm

Yea you need Visual Studio since it uses the visual studio compiler and nmake.

Ant is used later on (nmake calls it) to pack the whole file so you can use it on the device
0 x

User avatar
hebdemnobad
Goblin
Posts: 274
Joined: Wed Feb 09, 2005 5:09 pm
Location: catskill escarpment, new york, usa
Contact:

Re: Android build quick start guide

Post by hebdemnobad » Sat Jul 13, 2013 8:43 pm

I see that makes sense to me now....those points should be in the wiki. Maybe I will add them myself (once I know how to achieve successfully what that wiki page lays out).

Thanks!
-h
0 x

User avatar
hebdemnobad
Goblin
Posts: 274
Joined: Wed Feb 09, 2005 5:09 pm
Location: catskill escarpment, new york, usa
Contact:

Re: Android build quick start guide

Post by hebdemnobad » Sat Jul 13, 2013 8:51 pm

Emerich wrote:Yea you need Visual Studio since it uses the visual studio compiler and nmake.

Ant is used later on (nmake calls it) to pack the whole file so you can use it on the device
Thanks again. It seems like several steps have to be taken before using the quick start guide, so

1. Which source code download should I use? Since I am using Visual Studio Express 2010, is there a specific source folder and ogre version in the 1.9rc that I should use?
2. I am confused about what dependencies I should use. Should I use the Ogre Android dependencies (http://sourceforge.net/projects/ogre/fi ... p/download) or the Visual Studio dependencies (http://sourceforge.net/projects/ogre/fi ... p/download)
3. Given I do the right thing on steps 1 and 2, how do I then configure cmake so that I have the files needed to run step 6 of the ogre android quickstart guide?

thanks for your help. I'll share whatever revelations that I can to this thread or the wiki.

-h
0 x

Emerich
Halfling
Posts: 64
Joined: Wed Oct 24, 2012 10:59 am

Re: Android build quick start guide

Post by Emerich » Sat Jul 13, 2013 9:44 pm

hebdemnobad wrote:
Emerich wrote:Yea you need Visual Studio since it uses the visual studio compiler and nmake.

Ant is used later on (nmake calls it) to pack the whole file so you can use it on the device
Thanks again. It seems like several steps have to be taken before using the quick start guide, so

1. Which source code download should I use? Since I am using Visual Studio Express 2010, is there a specific source folder and ogre version in the 1.9rc that I should use?
2. I am confused about what dependencies I should use. Should I use the Ogre Android dependencies (http://sourceforge.net/projects/ogre/fi ... p/download) or the Visual Studio dependencies (http://sourceforge.net/projects/ogre/fi ... p/download)
3. Given I do the right thing on steps 1 and 2, how do I then configure cmake so that I have the files needed to run step 6 of the ogre android quickstart guide?

thanks for your help. I'll share whatever revelations that I can to this thread or the wiki.

-h
Unfortunately, I didn't work much with the new versions.

You can use precompiled SDK from the website with all the necessary files to develop Apps using Ogre for Android.

I recommed downloading that and using the dependencies from that zip.

If you do want to compile Ogre yourself:

Basically what I did for this version was with Visual Studio and all from the wiki already installed:

Download source from bitbucket (revision 1.9) with whichever client you fancy

copy the dependencies folder into the ogre one. Name it according to the wiki "AndroidDependencies"

make a folder in your ogre source folder called "androidbuild" or whatever you fancy

open the visual studio command promp (the simple one - not the fancy x64 or whatever. Not sure if you get that with VS Express)

cd to your "androidbuild" folder

"cmake -G"NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE=..\cmake\toolchain\android.toolchain.cmake -DOGRE_DEPENDENCIES_DIR=..\AndroidDependencies -DANDROID_NATIVE_API_LEVEL=9 .."

Afterwards i did "nmake OgreMain" if i recall well

That built the libs i needed.

If you wanna build the sample browser you can try
"nmake SampleBrowserDummy"

I am not sure whether that got updated recently and if it works at all anymore.


And yes.. feel free to update the wiki. That's what open-source is all about.
0 x

User avatar
hebdemnobad
Goblin
Posts: 274
Joined: Wed Feb 09, 2005 5:09 pm
Location: catskill escarpment, new york, usa
Contact:

Re: Android build quick start guide

Post by hebdemnobad » Sat Jul 13, 2013 10:18 pm

Thanks Emerich ....thank you very much. How did you configure cmake? That is one of the steps that isn't clear to me.
0 x

Emerich
Halfling
Posts: 64
Joined: Wed Oct 24, 2012 10:59 am

Re: Android build quick start guide

Post by Emerich » Sat Jul 13, 2013 10:42 pm

hebdemnobad wrote:Thanks Emerich ....thank you very much. How did you configure cmake? That is one of the steps that isn't clear to me.
Welcome!

I didn't! Basically the script should find all packages that are needed and the rest you give it through that huge command line command.

What exactly do you want to configure?
0 x

User avatar
hebdemnobad
Goblin
Posts: 274
Joined: Wed Feb 09, 2005 5:09 pm
Location: catskill escarpment, new york, usa
Contact:

Re: Android build quick start guide

Post by hebdemnobad » Sun Jul 14, 2013 3:48 am

You can use precompiled SDK from the website with all the necessary files to develop Apps using Ogre for Android.

I recommed downloading that and using the dependencies from that zip.

Would this work: download the prcompiled SDK from http://sourceforge.net/projects/ogre/fi ... -9-0RC1.7z and extract that to c:/ogreandroid_directory

Then download http://sourceforge.net/projects/ogre/fi ... 2_2012.zip and extract that to c:/ogreandroid/AndroidDependencies

Then download cmake.

Then download visual studio 2010.

Then cd- a Visual Studio Command Prompt to c:/ogreandroid/AndroidDependencies

Then enter

Code: Select all

cmake -G"NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE=..\cmake\toolchain\android.toolchain.cmake -DOGRE_DEPENDENCIES_DIR=..\AndroidDependencies -DANDROID_NATIVE_API_LEVEL=9 ..
at the Visual Studio Command Prompt. Is that what you mean?

It's a bit confusing because the http://sourceforge.net/projects/ogre/fi ... -9-0RC1.7z contains a folder named "Dependencies" and then AndroidDependencies_17_12_2012.zip contains a folder AndroidDependencies.

I think I can see the light at the end of this...but with a little help I'll get there. (and share a clearer (for me) route to getting an ogre android app to android)
0 x

Emerich
Halfling
Posts: 64
Joined: Wed Oct 24, 2012 10:59 am

Re: Android build quick start guide

Post by Emerich » Sun Jul 14, 2013 9:13 am

Use these dependencies:
i think these are outdated so don't bother:
The dependencies are what the ogre project depends on. You need them to compile ogre (and likely for your projects)
If you want to compile Ogre on your own, download the ogre v1.9 branch from https://bitbucket.org/sinbad/ogre

then copy the "Dependencies" folder from the extracted SDK
and rename the copy in your ogre v1.9 folder to "AndroidDependencies"

That way you should be set up with the proper dependencies.

So other than that the rest of the wiki seems good. (with ant and the NDK and so forth - just skip the dependencies part of the wiki article since you're using already compiled ones from the SDK)

Then you should be able to follow the wiki.
0 x

User avatar
hebdemnobad
Goblin
Posts: 274
Joined: Wed Feb 09, 2005 5:09 pm
Location: catskill escarpment, new york, usa
Contact:

Re: Android build quick start guide

Post by hebdemnobad » Sun Jul 14, 2013 2:36 pm

Thank you Emerich.

So I will download the ogre 1.9 just now from sinbad-ogre-0bba4f7cdb95.zip, and will extract to C:\Ogre_1_9....AHA, that one contains cmakelists.txt. I think I have reached the end of stage 6. Here is what the visual studio 2010 console displayed:

Code: Select all

Setting environment for using Microsoft Visual Studio 2010 x86 tools.

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>cd..

C:\Program Files (x86)\Microsoft Visual Studio 10.0>cd..

C:\Program Files (x86)>cd..

C:\>cd Ogre_Android_SDK

C:\Ogre_Android_SDK>cd build

C:\Ogre_Android_SDK\build>cmake -G"NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE=..\cm
ake\android.toolchain.cmake -DANDROID_ABI=armeabi ..
CMake Error: The source directory "C:/Ogre_Android_SDK" does not appear to conta
in CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

C:\Ogre_Android_SDK\build>cd..

C:\Ogre_Android_SDK>cmake -G"NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE=..\cmake\an
droid.toolchain.cmake -DANDROID_ABI=armeabi ..
CMake Error: The source directory "C:/" is a file, not a directory.
Specify --help for usage, or press the help button on the CMake GUI.

C:\Ogre_Android_SDK>cd AndroidDependencies

C:\Ogre_Android_SDK\AndroidDependencies>cmake -G"NMake Makefiles" -DCMAKE_TOOLCH
AIN_FILE=..\cmake\android.toolchain.cmake -DANDROID_ABI=armeabi ..
CMake Error: The source directory "C:/Ogre_Android_SDK" does not appear to conta
in CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

C:\Ogre_Android_SDK\AndroidDependencies>cmake -G"NMake Makefiles" -DCMAKE_TOOLCH
AIN_FILE=..\cmake\android.toolchain.cmake -DANDROID_ABI=armeabi ..
CMake Error: The source directory "C:/Ogre_Android_SDK" does not appear to conta
in CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

C:\Ogre_Android_SDK\AndroidDependencies>cd..

C:\Ogre_Android_SDK>cd..

C:\>cd ogre_1_9

C:\Ogre_1_9>cd android_build

C:\Ogre_1_9\android_build>cmake -G"NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE=..\cm
ake\toolchain\android.toolchain.cmake -DOGRE_DEPENDENCIES_DIR=..\AndroidDependen
cies -DANDROID_NATIVE_API_LEVEL=9 ..
-- Configuring OGRE 2.0.0unstable
-- Check size of void*
-- Check size of void* - done
-- Performing Test OGRE_GCC_HAS_SSE
-- Performing Test OGRE_GCC_HAS_SSE - Failed
-- Performing Test OGRE_GCC_VISIBILITY
-- Performing Test OGRE_GCC_VISIBILITY - Success
-- Detected g++ 4.6

-- Enabling GCC visibility flags
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Search path: C:/Ogre_1_9/AndroidDependencies;C:/Ogre_1_9/android_build/Depend
encies;C:/Ogre_1_9/Dependencies;C:/Ogre_1_9/android_build/../Dependencies;C:/Ogr
e_1_9/../Dependencies
-- Looking for ZLIB...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Found ZLIB: optimized;C:/android/ndk/platforms/android-9/arch-arm/usr/lib/lib
z.so;debug;C:/android/ndk/platforms/android-9/arch-arm/usr/lib/libz.so
-- Looking for ZZip...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Found ZZip: optimized;C:/Ogre_1_9/AndroidDependencies/lib/armeabi-v7a/libzzip
.a;debug;C:/Ogre_1_9/AndroidDependencies/lib/armeabi-v7a/libzzip.a
-- Looking for FreeImage...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Found FreeImage: optimized;C:/Ogre_1_9/AndroidDependencies/lib/armeabi-v7a/li
bFreeImage.a;debug;C:/Ogre_1_9/AndroidDependencies/lib/armeabi-v7a/libFreeImage.
a
-- Looking for FREETYPE...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- CMAKE_PREFIX_PATH: C:/Ogre_1_9/AndroidDependencies;C:/Ogre_1_9/android_build/
Dependencies;C:/Ogre_1_9/Dependencies;C:/Ogre_1_9/android_build/../Dependencies;
C:/Ogre_1_9/../Dependencies;/usr/local;/usr/lib/armv7-a-linux-gnu
-- CMAKE_PREFIX_PATH: C:/Ogre_1_9/AndroidDependencies;C:/Ogre_1_9/android_build/
Dependencies;C:/Ogre_1_9/Dependencies;C:/Ogre_1_9/android_build/../Dependencies;
C:/Ogre_1_9/../Dependencies;/usr/local;/usr/lib/armv7-a-linux-gnu
-- Found FREETYPE: optimized;C:/Ogre_1_9/AndroidDependencies/lib/armeabi-v7a/lib
freetype.a;debug;C:/Ogre_1_9/AndroidDependencies/lib/armeabi-v7a/libfreetype.a
-- Could NOT find OpenGL (missing:  OPENGL_gl_LIBRARY)
-- Looking for POCO...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Could not locate POCO
-- Looking for TBB...
-- Could not locate TBB
-- Looking for GLSL_Optimizer...
-- GLSL_Optimizer_PREFIX_PATH changed.
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Could not locate GLSL_Optimizer
-- Looking for HLSL2GLSL...
-- HLSL2GLSL_PREFIX_PATH changed.
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Could not locate HLSL2GLSL
-- Looking for OIS...
-- OIS_PREFIX_PATH changed.
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Found OIS: optimized;C:/Ogre_1_9/AndroidDependencies/lib/armeabi-v7a/libOIS.a
;debug;C:/Ogre_1_9/AndroidDependencies/lib/armeabi-v7a/libOIS.a
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- Looking for Softimage...
-- Softimage_PREFIX_PATH changed.
-- Could not locate Softimage
-- Could NOT find TinyXML (missing:  TINYXML_INCLUDE_DIR TINYXML_LIBRARIES)
-- Looking for CppUnit...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Could not locate CppUnit
--
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ zlib
+ zziplib
+ freeimage
+ freetype
+ OpenGL ES 1.x
+ OpenGL ES 2.x
+ OpenGL ES 3.x
+ OIS
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ OpenGL 3+: Support for the OpenGL 3+ render system <http://www.opengl.org/>
+ boost: Boost (general) <http://boost.org>
+ boost-thread: Used for threading support <http://boost.org>
+ boost-date_time: Used for threading support <http://boost.org>
+ POCO: POCO framework <http://pocoproject.org/>
+ tbb: Threading Building Blocks <http://www.threadingbuildingblocks.org/>
+ GLSL Optimizer: GLSL Optimizer <http://github.com/aras-p/glsl-optimizer/>
+ HLSL2GLSL: HLSL2GLSL <http://hlsl2glslfork.googlecode.com/>
+ Doxygen: Tool for building API documentation <http://doxygen.org>
+ Softimage: Softimage SDK needed for building XSIExporter <FALSE>
+ TinyXML: TinyXML needed for building OgreXMLConverter <FALSE>
+ CppUnit: Library for performing unit tests <http://cppunit.sourceforge.net>
-----------------------------------------------------------------------------

--
----------------------------------------------------------------------------
  FEATURE SUMMARY
----------------------------------------------------------------------------

Building components:
  + RTShader System
  + RTShader System Core Shaders
  + RTShader System Extensions Shaders
  + Overlay
Building plugins:
  + Octree scene manager
  + Particle FX
Building rendersystems:
  + OpenGL ES 2.x
Building executables:
  + Samples
Building core features:
  + DDS image codec
  + PVRTC image codec
  + ETC1 image codec
  + FreeImage codec
  + ZIP archives

Build type:                      static
Threading support:               none
Use double precision:            disabled
Allocator type:                  nedmalloc (pooling)
STL containers use allocator:    enabled
Strings use allocator:           disabled
Memory tracker (debug):          disabled
Memory tracker (release):        disabled
Use new script compilers:
Use Boost:                       disabled

----------------------------------------------------------------------------

-- Configuring done
-- Generating done
-- Build files have been written to: C:/Ogre_1_9/android_build

Now I've entered nmake at the visual studio 2010 command line prompt, it looks like this will take a while:

Code: Select all

Setting environment for using Microsoft Visual Studio 2010 x86 tools.

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>cd..

C:\Program Files (x86)\Microsoft Visual Studio 10.0>cd..

C:\Program Files (x86)>cd..

C:\>cd ogre_1_9

C:\Ogre_1_9>cd andoid_build
The system cannot find the path specified.

C:\Ogre_1_9>cd android_build

C:\Ogre_1_9\android_build>nmake

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Scanning dependencies of target OgreMain
[  0%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreAlignedAlloc
ator.cpp.o
[  0%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimable.cpp
.o
[  1%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimation.cp
p.o
[  1%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimationSta
te.cpp.o
[  1%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimationTra
ck.cpp.o
[  1%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreArchiveManag
er.cpp.o
[  2%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreAutoParamDat
aSource.cpp.o
[  2%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreAxisAlignedB
ox.cpp.o
[  2%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreBillboard.cp
p.o
[  2%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreBillboardCha
in.cpp.o
[  3%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreBillboardPar
ticleRenderer.cpp.o
I'll do my morning things and come back later. Kudos to all those posts, I think I am getting nearer to the end of the wiki article (which is putting the actual application on my android device). End then on to my grand plan of making an android ogre .mesh/.skeleton viewer so that when people ask me what I do, I'll show them an animated 3d model of one of these:
Attachments
1013194_10200516210242573_2069560637_n.jpg
1013194_10200516210242573_2069560637_n.jpg (89.41 KiB) Viewed 3683 times
0 x

Emerich
Halfling
Posts: 64
Joined: Wed Oct 24, 2012 10:59 am

Re: Android build quick start guide

Post by Emerich » Sun Jul 14, 2013 3:35 pm

What I saw from your command line log was:
-- Configuring OGRE 2.0.0unstable
It MIGHT work like that, but I only tested the v1-9 branch

You might want to download tortoiseHG and download just the v1-9 branch.

Godspeed mate! I'm curious to see what you manage =)
0 x

User avatar
hebdemnobad
Goblin
Posts: 274
Joined: Wed Feb 09, 2005 5:09 pm
Location: catskill escarpment, new york, usa
Contact:

Re: Android build quick start guide

Post by hebdemnobad » Sun Jul 14, 2013 4:39 pm

Oops I will go ahead and compile 1.9 then thx. I downloaded hg tortoise, and then downloaded the 1.9rc source to my local machine with the following command line in the folder where I wanted to have my ogre source code (C:\Ogre_1_9)

Code: Select all

hg clone http://bitbucket.org/sinbad/ogre/ -u v1-9
And I think I just downloaded the 1.9 source code!
Last edited by hebdemnobad on Mon Jul 15, 2013 3:28 pm, edited 2 times in total.
0 x

User avatar
hebdemnobad
Goblin
Posts: 274
Joined: Wed Feb 09, 2005 5:09 pm
Location: catskill escarpment, new york, usa
Contact:

Re: Android build quick start guide

Post by hebdemnobad » Mon Jul 15, 2013 2:10 pm

A question about the command line commands in step 6. The wiki states:

Code: Select all

cmake -G"NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE=..\cmake\android.toolchain.cmake -DANDROID_ABI=armeabi ..
nmake
Does that mean I execute: "cmake -G"NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE=..\cmake\android.toolchain.cmake -DANDROID_ABI=armeabi .."

and then wait for the visual studio command prompt to execute the command, and then, when the console is done executing , enter:
nmake

Or do I enter

Code: Select all

cmake -G"NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE=..\cmake\android.toolchain.cmake -DANDROID_ABI=armeabi ..
nmake
at once time at the console command line?

And then there is the question about steps 6 and 7. Are they alternatives (i.e., if I have Visual Studio, do I have to go to step 7, or do I stop at step 6?) , or do I have to do both steps?

thx again for your help.

I'm getting there I know it.
-Dan
Last edited by hebdemnobad on Mon Jul 15, 2013 3:22 pm, edited 1 time in total.
0 x

User avatar
hebdemnobad
Goblin
Posts: 274
Joined: Wed Feb 09, 2005 5:09 pm
Location: catskill escarpment, new york, usa
Contact:

Re: Android build quick start guide

Post by hebdemnobad » Mon Jul 15, 2013 3:16 pm

What follows is what the visual studio 2010 console output after entering the command:

Code: Select all

C:\Ogre_1_9\ogre\android_build>cmake -G"NMake Makefiles" -DCMAKE_TOOL
..\cmake\toolchain\android.toolchain.cmake -DOGRE_DEPENDENCIES_DIR=..
endencies -DANDROID_NATIVE_API_LEVEL=9 ..

Here is what the visual studio 2010 console displayed after running the command immediately above and before entering the command nmake: (It looks like some libraries, such as boost, are not found....is that what I am supposed to be seeing when compiling for android?

Code: Select all

-- Configuring OGRE 1.9.0unstable
-- Check size of void*
-- Check size of void* - done
-- Performing Test OGRE_GCC_HAS_SSE
-- Performing Test OGRE_GCC_HAS_SSE - Failed
-- Performing Test OGRE_GCC_VISIBILITY
-- Performing Test OGRE_GCC_VISIBILITY - Success
-- Detected g++ 4.6

-- Enabling GCC visibility flags
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Search path: C:/Ogre_1_9/ogre/AndroidDependencies;C:/Ogre_1_9/ogre
ild/Dependencies;C:/Ogre_1_9/ogre/Dependencies;C:/Ogre_1_9/ogre/andro
/Dependencies;C:/Ogre_1_9/ogre/../Dependencies
-- Looking for ZLIB...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Found ZLIB: optimized;C:/android/ndk/platforms/android-9/arch-arm/
z.so;debug;C:/android/ndk/platforms/android-9/arch-arm/usr/lib/libz.s
-- Looking for ZZip...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Found ZZip: optimized;C:/Ogre_1_9/ogre/AndroidDependencies/lib/arm
bzzip.a;debug;C:/Ogre_1_9/ogre/AndroidDependencies/lib/armeabi-v7a/li
-- Looking for FreeImage...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Found FreeImage: optimized;C:/Ogre_1_9/ogre/AndroidDependencies/li
7a/libFreeImage.a;debug;C:/Ogre_1_9/ogre/AndroidDependencies/lib/arme
FreeImage.a
-- Looking for FREETYPE...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- CMAKE_PREFIX_PATH: C:/Ogre_1_9/ogre/AndroidDependencies;C:/Ogre_1_
oid_build/Dependencies;C:/Ogre_1_9/ogre/Dependencies;C:/Ogre_1_9/ogre
ild/../Dependencies;C:/Ogre_1_9/ogre/../Dependencies;/usr/local;/usr/
-linux-gnu
-- CMAKE_PREFIX_PATH: C:/Ogre_1_9/ogre/AndroidDependencies;C:/Ogre_1_
oid_build/Dependencies;C:/Ogre_1_9/ogre/Dependencies;C:/Ogre_1_9/ogre
ild/../Dependencies;C:/Ogre_1_9/ogre/../Dependencies;/usr/local;/usr/
-linux-gnu
-- Found FREETYPE: optimized;C:/Ogre_1_9/ogre/AndroidDependencies/lib
a/libfreetype.a;debug;C:/Ogre_1_9/ogre/AndroidDependencies/lib/armeab
eetype.a
-- Could NOT find OpenGL (missing:  OPENGL_gl_LIBRARY)
-- Looking for POCO...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Could not locate POCO
-- Looking for TBB...
-- Could not locate TBB
-- Looking for GLSL_Optimizer...
-- GLSL_Optimizer_PREFIX_PATH changed.
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Found GLSL_Optimizer: optimized;C:/Ogre_1_9/ogre/AndroidDependenci
abi-v7a/libglsl_optimizer.a;debug;C:/Ogre_1_9/ogre/AndroidDependencie
bi-v7a/libglsl_optimizer.a
-- Looking for HLSL2GLSL...
-- HLSL2GLSL_PREFIX_PATH changed.
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Could not locate HLSL2GLSL
-- Looking for OIS...
-- OIS_PREFIX_PATH changed.
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Found OIS: optimized;C:/Ogre_1_9/ogre/AndroidDependencies/lib/arme
OIS.a;debug;C:/Ogre_1_9/ogre/AndroidDependencies/lib/armeabi-v7a/libO
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- Looking for Softimage...
-- Softimage_PREFIX_PATH changed.
-- Could not locate Softimage
-- Could NOT find TinyXML (missing:  TINYXML_INCLUDE_DIR TINYXML_LIBR
-- Looking for CppUnit...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Could not locate CppUnit
--
---------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these p
+ zlib
+ zziplib
+ freeimage
+ freetype
+ OpenGL ES 1.x
+ OpenGL ES 2.x
+ OpenGL ES 3.x
+ GLSL Optimizer
+ OIS
---------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your syste
-- Consider installing them to enable more features from this softwar
+ OpenGL 3+: Support for the OpenGL 3+ render system <http://www.open
+ boost: Boost (general) <http://boost.org>
+ boost-thread: Used for threading support <http://boost.org>
+ boost-date_time: Used for threading support <http://boost.org>
+ POCO: POCO framework <http://pocoproject.org/>
+ tbb: Threading Building Blocks <http://www.threadingbuildingblocks.
+ HLSL2GLSL: HLSL2GLSL <http://hlsl2glslfork.googlecode.com/>
+ Doxygen: Tool for building API documentation <http://doxygen.org>
+ Softimage: Softimage SDK needed for building XSIExporter <FALSE>
+ TinyXML: TinyXML needed for building OgreXMLConverter <FALSE>
+ CppUnit: Library for performing unit tests <http://cppunit.sourcefo
---------------------------------------------------------------------

--
---------------------------------------------------------------------
  FEATURE SUMMARY
---------------------------------------------------------------------

Building components:
  + RTShader System
  + RTShader System Core Shaders
  + RTShader System Extensions Shaders
  + Overlay
Building plugins:
  + Octree scene manager
  + Particle FX
Building rendersystems:
  + OpenGL ES 2.x
Building executables:
  + Samples
Building core features:
  + DDS image codec
  + PVRTC image codec
  + ETC image codec
  + FreeImage codec
  + ZIP archives

Build type:                      static
Threading support:               none
Use double precision:            disabled
Allocator type:                  nedmalloc (pooling)
STL containers use allocator:    enabled
Strings use allocator:           disabled
Memory tracker (debug):          disabled
Memory tracker (release):        disabled
Use new script compilers:
Use Boost:                       disabled

---------------------------------------------------------------------

-- Configuring done
-- Generating done
-- Build files have been written to: C:/Ogre_1_9/ogre/android_build
0 x

Emerich
Halfling
Posts: 64
Joined: Wed Oct 24, 2012 10:59 am

Re: Android build quick start guide

Post by Emerich » Mon Jul 15, 2013 4:30 pm

You execute the commands seperately - so you did everything right.

The log looks okay as far as I can tell. What it tells you is "Hey I'm done setting up! You can build now!"

Now you can enter

Code: Select all

nmake help
to see the possible build targets and then for example

Code: Select all

nmake SampleBrowserDummy
The compiling will take a while and with some luck it will succeed.

Godspeed
0 x

User avatar
hebdemnobad
Goblin
Posts: 274
Joined: Wed Feb 09, 2005 5:09 pm
Location: catskill escarpment, new york, usa
Contact:

Re: Android build quick start guide

Post by hebdemnobad » Mon Jul 15, 2013 4:56 pm

Thank you Emerich, another note to make, issue the two commands in step 6 separately. Now I am stalled at step 6 and 1/2, acccording to what happened in the Visual Studio Console window after I entered "nmake". Earlier in this thread, Wolfmanfx stated that he corrected the source code concerning a similar error message, but this error message may be generic and due to something else.

A fatal error. :( : Note: the visual studio console does not allow me to select everything after I entered nmake, but it stopped executing when it encountered that fatal error.

Code: Select all

.cpp.o
[ 39%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreShadowTextur
eManager.cpp.o
[ 39%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreShadowVolume
ExtrudeProgram.cpp.o
[ 39%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSimpleRender
able.cpp.o
[ 39%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSimpleSpline
.cpp.o
[ 40%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSkeleton.cpp
.o
[ 40%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSkeletonInst
ance.cpp.o
[ 40%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSkeletonMana
ger.cpp.o
[ 40%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSkeletonSeri
alizer.cpp.o
[ 41%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSmallVector.
cpp.o
[ 41%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreStaticGeomet
ry.cpp.o
[ 41%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreStreamSerial
iser.cpp.o
[ 41%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreString.cpp.o

[ 42%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreStringConver
ter.cpp.o
[ 42%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreStringInterf
ace.cpp.o
[ 42%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSubEntity.cp
p.o
..\..\OgreMain\src\OgreSubEntity.cpp: In member function 'void Ogre::SubEntity::
setIndexDataStartIndex(size_t)':
..\..\OgreMain\src\OgreSubEntity.cpp:166:21: warning: comparison of unsigned exp
ression >= 0 is always true [-Wtype-limits]
[ 43%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSubMesh.cpp.
o
[ 43%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreTagPoint.cpp
.o
[ 43%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreTangentSpace
Calc.cpp.o
[ 43%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreTechnique.cp
p.o
[ 44%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreTexture.cpp.
o
[ 44%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreTextureManag
er.cpp.o
[ 44%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreTextureUnitS
tate.cpp.o
[ 44%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreUnifiedHighL
evelGpuProgram.cpp.o
[ 45%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreUserObjectBi
ndings.cpp.o
[ 45%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreUTFString.cp
p.o
[ 45%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreVector2.cpp.
o
[ 45%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreVector3.cpp.
o
[ 46%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreVector4.cpp.
o
[ 46%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreVertexIndexD
ata.cpp.o
[ 46%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreViewport.cpp
.o
[ 46%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreWindowEventU
tilities.cpp.o
[ 47%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreWireBounding
Box.cpp.o
[ 47%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreWorkQueue.cp
p.o
[ 47%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreFreeImageCod
ec.cpp.o
[ 47%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreDDSCodec.cpp
.o
[ 48%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgrePVRTCCodec.c
pp.o
[ 48%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreETCCodec.cpp
.o
[ 48%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreZip.cpp.o
[ 48%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/Android/OgreAndr
oidLogListener.cpp.o
[ 49%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/Android/OgreAPKF
ileSystemArchive.cpp.o
[ 49%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/Android/OgreAPKZ
ipArchive.cpp.o
[ 49%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/Android/OgreConf
igDialog.cpp.o
[ 50%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/Android/OgreErro
rDialog.cpp.o
[ 50%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/Android/OgreFile
SystemLayer.cpp.o
[ 50%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/Android/OgreTime
r.cpp.o
[ 50%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSearchOps.cp
p.o
[ 51%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/Threading/OgreDe
faultWorkQueueStandard.cpp.o
Linking CXX static library ..\lib\libOgreMainStatic.a
[ 51%] Built target OgreMain
Scanning dependencies of target RenderSystem_GLES2
[ 51%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/gles2w.cpp.o
[ 52%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2Context.cpp.o
[ 52%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2DefaultHardwareBufferManager.cpp.o
..\..\..\RenderSystems\GLES2\src\OgreGLES2DefaultHardwareBufferManager.cpp: In m
ember function 'virtual Ogre::RenderToVertexBufferSharedPtr Ogre::GLES2DefaultHa
rdwareBufferManagerBase::createRenderToVertexBuffer()':
..\..\..\RenderSystems\GLES2\src\OgreGLES2DefaultHardwareBufferManager.cpp:274:2
: warning: control reaches end of non-void function [-Wreturn-type]
[ 52%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2DepthBuffer.cpp.o
..\..\..\RenderSystems\GLES2\src\OgreGLES2DepthBuffer.cpp: In constructor 'Ogre:
:GLES2DepthBuffer::GLES2DepthBuffer(Ogre::uint16, Ogre::GLES2RenderSystem*, Ogre
::GLES2Context*, Ogre::GLES2RenderBuffer*, Ogre::GLES2RenderBuffer*, Ogre::uint3
2, Ogre::uint32, Ogre::uint32, Ogre::uint32, bool)':
..\..\..\RenderSystems\GLES2\src\OgreGLES2DepthBuffer.cpp:38:24: warning: declar
ation of 'isManual' shadows a member of 'this' [-Wshadow]
[ 53%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2EngineDll.cpp.o
[ 53%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2FBOMultiRenderTarget.cpp.o
[ 53%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2FBORenderTexture.cpp.o
[ 53%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2FrameBufferObject.cpp.o
..\..\..\RenderSystems\GLES2\src\OgreGLES2FrameBufferObject.cpp: In member funct
ion 'void Ogre::GLES2FrameBufferObject::initialise()':
..\..\..\RenderSystems\GLES2\src\OgreGLES2FrameBufferObject.cpp:210:16: warning:
 variable 'bufs' set but not used [-Wunused-but-set-variable]
..\..\..\RenderSystems\GLES2\src\OgreGLES2FrameBufferObject.cpp:211:11: warning:
 variable 'n' set but not used [-Wunused-but-set-variable]
[ 54%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2GpuProgram.cpp.o
[ 54%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2GpuProgramManager.cpp.o
[ 54%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2HardwareBufferManager.cpp.o
[ 54%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2HardwareIndexBuffer.cpp.o
[ 55%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2HardwareOcclusionQuery.cpp.o
[ 55%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2HardwarePixelBuffer.cpp.o
..\..\..\RenderSystems\GLES2\src\OgreGLES2HardwarePixelBuffer.cpp: In constructo
r 'Ogre::GLES2HardwarePixelBuffer::GLES2HardwarePixelBuffer(size_t, size_t, size
_t, Ogre::PixelFormat, Ogre::HardwareBuffer::Usage)':
..\..\..\RenderSystems\GLES2\src\OgreGLES2HardwarePixelBuffer.cpp:67:81: warning
: declaration of 'mFormat' shadows a member of 'this' [-Wshadow]
..\..\..\RenderSystems\GLES2\src\OgreGLES2HardwarePixelBuffer.cpp:67:81: warning
: declaration of 'mDepth' shadows a member of 'this' [-Wshadow]
..\..\..\RenderSystems\GLES2\src\OgreGLES2HardwarePixelBuffer.cpp:67:81: warning
: declaration of 'mHeight' shadows a member of 'this' [-Wshadow]
..\..\..\RenderSystems\GLES2\src\OgreGLES2HardwarePixelBuffer.cpp:67:81: warning
: declaration of 'mWidth' shadows a member of 'this' [-Wshadow]
..\..\..\RenderSystems\GLES2\src\OgreGLES2HardwarePixelBuffer.cpp: In member fun
ction 'virtual void Ogre::GLES2TextureBuffer::download(const Ogre::PixelBox&)':
..\..\..\RenderSystems\GLES2\src\OgreGLES2HardwarePixelBuffer.cpp:696:16: warnin
g: variable 'texBinding' set but not used [-Wunused-but-set-variable]
..\..\..\RenderSystems\GLES2\src\OgreGLES2HardwarePixelBuffer.cpp: In member fun
ction 'void Ogre::GLES2TextureBuffer::buildMipmaps(const Ogre::PixelBox&)':
..\..\..\RenderSystems\GLES2\src\OgreGLES2HardwarePixelBuffer.cpp:1107:13: warni
ng: variable 'depth' set but not used [-Wunused-but-set-variable]
[ 55%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2HardwareUniformBuffer.cpp.o
[ 55%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2HardwareVertexBuffer.cpp.o
[ 56%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2PixelFormat.cpp.o
[ 56%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2Plugin.cpp.o
[ 56%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2RenderSystem.cpp.o
..\..\..\RenderSystems\GLES2\src\OgreGLES2RenderSystem.cpp: In member function '
virtual void Ogre::GLES2RenderSystem::_render(const Ogre::RenderOperation&)':
..\..\..\RenderSystems\GLES2\src\OgreGLES2RenderSystem.cpp:1719:6: warning: 'num
berOfInstances' may be used uninitialized in this function [-Wmaybe-uninitialize
d]
..\..\..\RenderSystems\GLES2\src\OgreGLES2RenderSystem.cpp:1717:75: warning: 'ha
sInstanceData' may be used uninitialized in this function [-Wmaybe-uninitialized
]
..\..\..\RenderSystems\GLES2\src\OgreGLES2RenderSystem.cpp:1617:64: warning: 'gl
obalVertexDeclaration' may be used uninitialized in this function [-Wmaybe-unini
tialized]
[ 56%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2RenderTexture.cpp.o
[ 57%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2RenderToVertexBuffer.cpp.o
[ 57%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2StateCacheManager.cpp.o
[ 57%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2Support.cpp.o
[ 57%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2Texture.cpp.o
[ 58%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2TextureManager.cpp.o
[ 58%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2UniformCache.cpp.o
[ 58%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/OgreGLES2VertexDeclaration.cpp.o
[ 58%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/StateCacheManager/OgreGLES2NullStateCacheManagerImp.cpp.o
[ 59%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/StateCacheManager/OgreGLES2NullUniformCacheImp.cpp.o
[ 59%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/GLSLES/src/OgreGLSLESExtSupport.cpp.o
[ 59%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/GLSLES/src/OgreGLSLESGpuProgram.cpp.o
[ 60%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/GLSLES/src/OgreGLSLESLinkProgram.cpp.o
..\..\..\RenderSystems\GLES2\src\GLSLES\include/OgreGLSLESGpuProgram.h: In membe
r function 'virtual void Ogre::GLSLESLinkProgram::updateUniforms(Ogre::GpuProgra
mParametersSharedPtr, Ogre::uint16, Ogre::GpuProgramType)':
..\..\..\RenderSystems\GLES2\src\GLSLES\include/OgreGLSLESGpuProgram.h:93:60: wa
rning: 'prog' may be used uninitialized in this function [-Wmaybe-uninitialized]

..\..\..\RenderSystems\GLES2\src\GLSLES\src\OgreGLSLESLinkProgram.cpp:256:27: no
te: 'prog' was declared here
[ 60%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/GLSLES/src/OgreGLSLESLinkProgramManager.cpp.o
[ 60%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/GLSLES/src/OgreGLSLESPreprocessor.cpp.o
[ 60%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/GLSLES/src/OgreGLSLESProgram.cpp.o
[ 61%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/GLSLES/src/OgreGLSLESProgramCommon.cpp.o
[ 61%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/GLSLES/src/OgreGLSLESProgramFactory.cpp.o
[ 61%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/GLSLES/src/OgreGLSLESProgramManagerCommon.cpp.o
[ 61%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/GLSLES/src/OgreGLSLESProgramPipeline.cpp.o
..\..\..\RenderSystems\GLES2\src\GLSLES\include/OgreGLSLESGpuProgram.h: In membe
r function 'virtual void Ogre::GLSLESProgramPipeline::updateUniforms(Ogre::GpuPr
ogramParametersSharedPtr, Ogre::uint16, Ogre::GpuProgramType)':
..\..\..\RenderSystems\GLES2\src\GLSLES\include/OgreGLSLESGpuProgram.h:93:60: wa
rning: 'prog' may be used uninitialized in this function [-Wmaybe-uninitialized]

..\..\..\RenderSystems\GLES2\src\GLSLES\src\OgreGLSLESProgramPipeline.cpp:259:27
: note: 'prog' was declared here
[ 62%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/GLSLES/src/OgreGLSLESProgramPipelineManager.cpp.o
[ 62%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/EGL/Android/OgreAndroidEGLContext.cpp.o
[ 62%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/EGL/Android/OgreAndroidEGLSupport.cpp.o
[ 62%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/EGL/Android/OgreAndroidEGLWindow.cpp.o
..\..\..\RenderSystems\GLES2\src\EGL\Android\OgreAndroidEGLWindow.cpp: In member
 function 'virtual void Ogre::AndroidEGLWindow::create(const String&, Ogre::uint
, Ogre::uint, bool, const NameValuePairList*)':
..\..\..\RenderSystems\GLES2\src\EGL\Android\OgreAndroidEGLWindow.cpp:149:17: wa
rning: variable 'ctxHandle' set but not used [-Wunused-but-set-variable]
[ 63%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/EGL/Android/OgreAndroidResource.cpp.o
[ 63%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/EGL/Android/OgreAndroidResourceManager.cpp.o
[ 63%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/EGL/OgreEGLContext.cpp.o
[ 63%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/EGL/OgreEGLRenderTexture.cpp.o
[ 64%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/EGL/OgreEGLSupport.cpp.o
[ 64%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir
/src/EGL/OgreEGLWindow.cpp.o
..\..\..\RenderSystems\GLES2\include\EGL/OgreEGLWindow.h: In constructor 'Ogre::
EGLWindow::EGLWindow(Ogre::EGLSupport*)':
..\..\..\RenderSystems\GLES2\include\EGL/OgreEGLWindow.h:56:17: warning: 'Ogre::
EGLWindow::mEglSurface' will be initialized after [-Wreorder]
..\..\..\RenderSystems\GLES2\include\EGL/OgreEGLWindow.h:50:21: warning:   'ANat
iveWindow* Ogre::EGLWindow::mWindow' [-Wreorder]
..\..\..\RenderSystems\GLES2\src\EGL\OgreEGLWindow.cpp:47:5: warning:   when ini
tialized here [-Wreorder]
..\..\..\RenderSystems\GLES2\src\EGL\OgreEGLWindow.cpp: In member function 'virt
ual void Ogre::EGLWindow::copyContentsToMemory(const Ogre::PixelBox&, Ogre::Rend
erTarget::FrameBuffer)':
..\..\..\RenderSystems\GLES2\src\EGL\OgreEGLWindow.cpp:190:19: warning: comparis
on of unsigned expression < 0 is always false [-Wtype-limits]
..\..\..\RenderSystems\GLES2\src\EGL\OgreEGLWindow.cpp:191:15: warning: comparis
on of unsigned expression < 0 is always false [-Wtype-limits]
Linking CXX static library ..\..\lib\libRenderSystem_GLES2Static.a
[ 64%] Built target RenderSystem_GLES2
Scanning dependencies of target OgreJNIDummy
[ 64%] Building CXX object CMakeFiles/OgreJNIDummy.dir/dummyJNI.cpp.o
Linking CXX shared module lib\libOgreJNIDummy.so
The system cannot find the path specified.
NMAKE : fatal error U1077: 'C:\androidsdk\androidsdk64bit\tools\android' : retur
n code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\Ogre_1_9\ogre\android_build>
Attachments
photo2forogre.jpg
Those monsters want to get onto those Android Phones!
photo2forogre.jpg (179.3 KiB) Viewed 3639 times
0 x

Emerich
Halfling
Posts: 64
Joined: Wed Oct 24, 2012 10:59 am

Re: Android build quick start guide

Post by Emerich » Mon Jul 15, 2013 11:57 pm

The ogreJNIdummy didn't work for me either when i tried it months ago.
Something about either some wrong linebreaks or wrong build order somewhere in the files

if you type "nmake help" you can see the different build targets

if nmake OgreMain works you should have most the important libraries you need.
Personally I try for nmake SampleBrowserDummy
0 x

User avatar
hebdemnobad
Goblin
Posts: 274
Joined: Wed Feb 09, 2005 5:09 pm
Location: catskill escarpment, new york, usa
Contact:

Re: Android build quick start guide

Post by hebdemnobad » Tue Jul 16, 2013 2:42 am

I agree. I think I messed up by entering the commands in step 6 and step 7 in the folder "C:\Ogre_1_9\ogre\android_build", whereas I assume step 6 should be executed the "C:\Ogre_1_9\ogre\" folder and step 7 in the "C:\Ogre_1_9\ogre\android_build" folder. (I think I am making the right assumption, I guess I will see.)

I intend to write the mother of all quickstart ogre android guides.


[edit] wait, I can't execute step 6 in the ""C:\Ogre_1_9\ogre\" folder, as the cmake command looks for files in "C:\"....so in what folder do I execute the commands in step 6? :(
-h

[edit 2] I will try steps 6 and 7 in the C:\Ogre_1_9\ogre\android_build folder as the step 6 command migrates one folder up and then back down into the cmake folder, so since my android_build folder and androiddependencies folder are at the same level, it shouldn't matter where the command is entered, as long as it targets the cmake folder of the ogre root (at least I hope this)
0 x

Emerich
Halfling
Posts: 64
Joined: Wed Oct 24, 2012 10:59 am

Re: Android build quick start guide

Post by Emerich » Tue Jul 16, 2013 7:16 am

you do not have to execute step 6 at all as wolfman posted
(this is necessary only if you are building the dependencies from source)
If you followed my earlier advice, you should have fully functional dependencies and needn't compile them yourself.
0 x

User avatar
hebdemnobad
Goblin
Posts: 274
Joined: Wed Feb 09, 2005 5:09 pm
Location: catskill escarpment, new york, usa
Contact:

Re: Android build quick start guide

Post by hebdemnobad » Tue Jul 16, 2013 12:40 pm

Emerich wrote:you do not have to execute step 6 at all as wolfman posted
(this is necessary only if you are building the dependencies from source)
If you followed my earlier advice, you should have fully functional dependencies and needn't compile them yourself.
I see, since the AndroidDependencies folder I copied from the Andriod SDK has already been compiled, step 6 is unnecessary.
0 x

Emerich
Halfling
Posts: 64
Joined: Wed Oct 24, 2012 10:59 am

Re: Android build quick start guide

Post by Emerich » Tue Jul 16, 2013 2:01 pm

hebdemnobad wrote:
Emerich wrote:you do not have to execute step 6 at all as wolfman posted
(this is necessary only if you are building the dependencies from source)
If you followed my earlier advice, you should have fully functional dependencies and needn't compile them yourself.
I see, since the AndroidDependencies folder I copied from the Andriod SDK has already been compiled, step 6 is unnecessary.
Correct. At least that's my guess =)
0 x

User avatar
hebdemnobad
Goblin
Posts: 274
Joined: Wed Feb 09, 2005 5:09 pm
Location: catskill escarpment, new york, usa
Contact:

Re: reached step 7, build.xml not found

Post by hebdemnobad » Tue Jul 16, 2013 6:15 pm

Encountered the missing build.xml message, and looked through this thread:

I downloaded and installed all of the files/folders for Android 2.3.3 (API 10), then restarted, and then encountered the missing build.xml error above. Could a mistake earlier in the process have caused this? I downloaded ogre 1.9 source with hgtortoise (C:\Ogre_1_9>hg clone http://bitbucket.org/sinbad/ogre/ -u v1-9), then copied the AndroidDependencies from the downloaded Ogre_Android_SDK to my ogre root folder (C:\Ogre_1_9\ogre), skipped step 6, at step 7 entered:

Code: Select all

cmake -G"NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE=..\cmake\toolchain\android.toolchain.cmake -DOGRE_DEPENDENCIES_DIR=..\AndroidDependencies -DANDROID_ABI=armeabi -DANDROID_NATIVE_API_LEVEL=9 ..


at the visual studio command prompt after cd-ing to C:\Ogre_1_9\ogre\android_build\

then executed "nmake SampleBrowserDummy" at the visual studio command prompt in C:\Ogre_1_9\ogre\android_build\ (with no fatal errors)

I have come to a halt at step 7.

I navigated to the samplebrowserndk folder, then executed the ndk-build all -j command, here is the command and the visual studio command prompt result:

Code: Select all

C:\Ogre_1_9\ogre\android_build\SampleBrowserNDK>ndk-build all -j
StaticLibrary  : libandroid_native_app_glue.a
StaticLibrary  : libcpufeatures.a
Prebuilt       : libgnustl_static.a <= <NDK>/sources/cxx-stl/gnu-libstdc++/4.6/l
ibs/armeabi/
SharedLibrary  : libOgreSampleBrowser.so
Install        : libOgreSampleBrowser.so => libs/armeabi/libOgreSampleBrowser.so
Then I entered ant debug install, and I got the dreaded build.xml missing message:

Code: Select all

C:\Ogre_1_9\ogre\android_build\SampleBrowserNDK>ant debug install
Buildfile: build.xml does not exist!
Build failed
:(
0 x

Emerich
Halfling
Posts: 64
Joined: Wed Oct 24, 2012 10:59 am

Re: Android build quick start guide

Post by Emerich » Wed Jul 17, 2013 7:56 am

Strange, the nmake SampleBrowserDummy used to do all of those.

After the failed builds earlier, did you clean the project?
I ran into a similar issue when not building from the start.

You could like delete your build folder and execute the cmake part and possibly the nmake part again, since you seem to have the correct setup already.

Also I'd like to see your folder setup. I assume you have an ogre folder in your ogre19 folder? And the AndroidDependencies as well as your build folder are both inside that ogre folder?
0 x

User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
Contact:

Re: Android build quick start guide

Post by Wolfmanfx » Wed Jul 17, 2013 9:20 am

I guess you do not have the android command in the global path.
0 x

User avatar
hebdemnobad
Goblin
Posts: 274
Joined: Wed Feb 09, 2005 5:09 pm
Location: catskill escarpment, new york, usa
Contact:

Re: Android build quick start guide

Post by hebdemnobad » Wed Jul 17, 2013 1:37 pm

Wolfmanfx wrote:I guess you do not have the android command in the global path.
Thanks for the reply Wolfmanfx. Is this what you mean by the global path (I have it set as a system and user variable)

Code: Select all

C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\mingw\bin;C:\androidsdk\androidsdk64bit\sdk\tools;C:\androidsdk\androidsdk64bit\sdk\platform-tools;C:\android\ndk;C:\android\ant\bin;C:\Program Files (x86)\CMake 2.8\bin;C:\Program Files\Java\jdk1.7.0_25;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\TortoiseHg\
Emerich wrote:Strange, the nmake SampleBrowserDummy used to do all of those.

After the failed builds earlier, did you clean the project?
I ran into a similar issue when not building from the start.

You could like delete your build folder and execute the cmake part and possibly the nmake part again, since you seem to have the correct setup already.

Also I'd like to see your folder setup. I assume you have an ogre folder in your ogre19 folder? And the AndroidDependencies as well as your build folder are both inside that ogre folder?
Thanks for the reply Emerich. I copied the AndroidDependencies folder from the extracted OgreSDK_Android_v1-9-0RC1.7z file into my Ogre root foldwer, which is c:\Ogre_1_9\ogre. here is the directory of c:\Ogre_1_9\ogre:

Code: Select all

 Volume Serial Number is 24D4-B70E

 Directory of C:\Ogre_1_9\ogre

07/16/2013  09:16 PM    <DIR>          .
07/16/2013  09:16 PM    <DIR>          ..
07/16/2013  09:11 PM    <DIR>          .hg
07/16/2013  07:38 PM               528 .hgignore
07/16/2013  07:38 PM               808 .hgtags
07/16/2013  09:16 PM    <DIR>          AndroidDependencies
07/16/2013  09:22 PM    <DIR>          android_build
07/16/2013  07:38 PM             8,966 AUTHORS
07/16/2013  07:38 PM             1,390 BUGS
07/16/2013  07:38 PM             9,270 BuildingOgre.txt
07/16/2013  07:38 PM             7,007 BuildingOgreWindowsPhone.txt
07/16/2013  07:38 PM             5,493 BuildingOgreWinRT.txt
07/16/2013  09:13 PM    <DIR>          CMake
07/16/2013  07:38 PM            26,461 CMakeLists.txt
07/16/2013  09:13 PM    <DIR>          Components
07/16/2013  07:38 PM             1,155 COPYING
07/16/2013  07:38 PM               593 CTestConfig.cmake
07/16/2013  09:13 PM    <DIR>          Docs
07/16/2013  09:13 PM    <DIR>          OgreMain
07/16/2013  09:13 PM    <DIR>          Other
07/16/2013  09:14 PM    <DIR>          PlugIns
07/16/2013  07:39 PM             1,211 README
07/16/2013  09:14 PM    <DIR>          RenderSystems
07/16/2013  09:14 PM    <DIR>          Samples
07/16/2013  09:14 PM    <DIR>          Scripts
07/16/2013  09:14 PM    <DIR>          SDK
07/16/2013  09:15 PM    <DIR>          Tests
07/16/2013  09:15 PM    <DIR>          Tools
              11 File(s)         62,882 bytes
              17 Dir(s)  342,860,075,008 bytes free
0 x

Post Reply