Improving Android support

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
User avatar
AlexeyKnyshev
Goblin
Posts: 213
Joined: Sat May 26, 2012 10:37 am
Location: Russia
x 13

Re: Improving Android support

Post by AlexeyKnyshev »

mike_cyber wrote:Downloaded from first post. Now how to compile? Cannot find any tutorial. Simply run cmake-gui on Ubuntu and copy over to my Sony?

PS: Now that's what I get:
michael@michael-ubuntu:~/ogre/build/Samples$ make
[ 0%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreAutoParamDataSource.cpp.o
In file included from /home/michael/ogre/OgreMain/include/OgreMatrix4.h:35:0,
from /home/michael/ogre/OgreMain/include/OgreAutoParamDataSource.h:33,
from /home/michael/ogre/OgreMain/src/OgreAutoParamDataSource.cpp:30:
/home/michael/ogre/OgreMain/include/OgreMatrix3.h: In member function ‘Ogre::Real* Ogre::Matrix3::operator[](size_t) const’:
/home/michael/ogre/OgreMain/include/OgreMatrix3.h:117:24: warning: cast from type ‘const Real* {aka const float*}’ to type ‘Ogre::Real* {aka float*}’ casts away qualifiers [-Wcast-qual]
In file included from /home/michael/ogre/OgreMain/include/OgreRoot.h:39:0,
from /home/michael/ogre/OgreMain/src/OgreAutoParamDataSource.cpp:36:
/home/michael/ogre/OgreMain/include/OgreWorkQueue.h: At global scope:
/home/michael/ogre/OgreMain/include/OgreWorkQueue.h:475:4: error: expected ‘;’ at end of member declaration
/home/michael/ogre/OgreMain/include/OgreWorkQueue.h:532:3: error: expected ‘;’ at end of member declaration
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAutoParamDataSource.cpp.o] Error 1
make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
make: *** [all] Error 2
michael@michael-ubuntu:~/ogre/build/Samples$
I've fixed this in patch:
http://sourceforge.net/tracker/?func=de ... tid=302997

But I haven't successfully compiled SampleBrowser on my Desktop (Linux):

[ 97%] Built target Sample_ParticleGS
[ 97%] Built target Sample_SSAO
Linking CXX executable ../../bin/SampleBrowser
../../lib/libOgreMain.so.2.1.0: undefined reference to `Ogre::ETC1Codec::shutdown()'
../../lib/libOgreMain.so.2.1.0: undefined reference to `Ogre::ETC1Codec::startup()'
collect2: ld returned 1 exit status
make[2]: *** [bin/SampleBrowser] Ошибка 1
make[1]: *** [Samples/Browser/CMakeFiles/SampleBrowser.dir/all] Ошибка 2
make: *** [all] Ошибка 2

I have no ideas about fixing it (because of ETC1Codec is something line a new feature and I don't now it's architecture).

Sorry for my bad English.
Best regards. Alexey Knyshev.
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 100

Re: Improving Android support

Post by Wolfmanfx »

Hi,

Do not use my fork everything is merged back to main ogre repo - also the ETC1 bug is resolved.
mike_cyber
Halfling
Posts: 48
Joined: Thu Jun 21, 2012 11:45 am

Re: Improving Android support

Post by mike_cyber »

Just compiled but:

cc1plus: warning: unrecognized command line option "-Wno-unused-but-set-parameter"
Linking CXX static library ../../lib/libSample_SSAO.a
[100%] Built target Sample_SSAO
Scanning dependencies of target SampleBrowserDummy
[100%] Building CXX object Samples/Browser/CMakeFiles/SampleBrowserDummy.dir/dummy.cpp.o
Linking CXX shared module ../../lib/libSampleBrowserDummy.so
Updated and renamed default.properties to project.properties
Updated local.properties
No project name specified, using Activity name 'NativeActivity'.
If you wish to change it, edit the first line of build.xml.
Added file /home/michael/ogre/build/SampleBrowserNDK/build.xml
Added file /home/michael/ogre/build/SampleBrowserNDK/proguard-project.txt
/bin/sh: 1: ndk-build: not found
make[2]: *** [lib/libSampleBrowserDummy.so] Error 127
make[1]: *** [Samples/Browser/CMakeFiles/SampleBrowserDummy.dir/all] Error 2
make: *** [all] Error 2
michael@michael-ubuntu:~/ogre/build$

I've only added in CMakeCache.txt the path to OIS headers.

Well it crashes. :( Any log or something to do? I've updated my Mini:
http://forum.xda-developers.com/showthr ... ?t=1636501

Thanks Wolfmanfx and evbd. keep up the good work.

PS: Extract of the log. How much RAM does this app need?
----------
I/ActivityManager( 1493): Start proc org.ogre3d.browser for activity org.ogre3d.browser/android.app.NativeActivity: pid=2339 uid=10076 gids={}
I/ActivityManager( 1493): Process com.google.android.googlequicksearchbox (pid 2207) has died.
E/AndroidRuntime( 2339): FATAL EXCEPTION: main
E/AndroidRuntime( 2339): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.ogre3d.browser/android.app.NativeActivity}: android.view.InflateException: Binary XML file line #26: Error inflating class com.android.internal.widget.ActionBarContainer
E/AndroidRuntime( 2339): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2079)
E/AndroidRuntime( 2339): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2104)
E/AndroidRuntime( 2339): at android.app.ActivityThread.access$600(ActivityThread.java:132)
E/AndroidRuntime( 2339): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1157)
E/AndroidRuntime( 2339): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2339): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2339): at android.app.ActivityThread.main(ActivityThread.java:4575)
E/AndroidRuntime( 2339): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2339): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2339): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
E/AndroidRuntime( 2339): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
E/AndroidRuntime( 2339): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2339): Caused by: android.view.InflateException: Binary XML file line #26: Error inflating class com.android.internal.widget.ActionBarContainer
E/AndroidRuntime( 2339): at android.view.LayoutInflater.createView(LayoutInflater.java:606)
E/AndroidRuntime( 2339): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
E/AndroidRuntime( 2339): at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
E/AndroidRuntime( 2339): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
E/AndroidRuntime( 2339): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
E/AndroidRuntime( 2339): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
E/AndroidRuntime( 2339): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2707)
E/AndroidRuntime( 2339): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2767)
E/AndroidRuntime( 2339): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:266)
E/AndroidRuntime( 2339): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:260)
E/AndroidRuntime( 2339): at android.app.Activity.setContentView(Activity.java:1855)
E/AndroidRuntime( 2339): at android.app.NativeActivity.onCreate(NativeActivity.java:161)
E/AndroidRuntime( 2339): at android.app.Activity.performCreate(Activity.java:4465)
E/AndroidRuntime( 2339): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
E/AndroidRuntime( 2339): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2033)
E/AndroidRuntime( 2339): ... 11 more
E/AndroidRuntime( 2339): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 2339): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 2339): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
E/AndroidRuntime( 2339): at android.view.LayoutInflater.createView(LayoutInflater.java:586)
E/AndroidRuntime( 2339): ... 25 more
E/AndroidRuntime( 2339): Caused by: java.lang.ArrayIndexOutOfBoundsException: length=2; index=2
E/AndroidRuntime( 2339): at android.content.res.AssetManager.getPooledString(AssetManager.java:296)
E/AndroidRuntime( 2339): at android.content.res.TypedArray.loadStringValueAt(TypedArray.java:726)
E/AndroidRuntime( 2339): at android.content.res.TypedArray.getValueAt(TypedArray.java:711)
E/AndroidRuntime( 2339): at android.content.res.TypedArray.getDrawable(TypedArray.java:591)
E/AndroidRuntime( 2339): at android.view.View.<init>(View.java:2785)
E/AndroidRuntime( 2339): at android.view.ViewGroup.<init>(ViewGroup.java:385)
E/AndroidRuntime( 2339): at android.widget.FrameLayout.<init>(FrameLayout.java:99)
E/AndroidRuntime( 2339): at android.widget.FrameLayout.<init>(FrameLayout.java:95)
E/AndroidRuntime( 2339): at com.android.internal.widget.ActionBarContainer.<init>(ActionBarContainer.java:52)
E/AndroidRuntime( 2339): ... 28 more
W/ActivityManager( 1493): Force finishing activity org.ogre3d.browser/android.app.NativeActivity
Last edited by mike_cyber on Fri Jul 20, 2012 4:52 pm, edited 2 times in total.
User avatar
AlexeyKnyshev
Goblin
Posts: 213
Joined: Sat May 26, 2012 10:37 am
Location: Russia
x 13

Re: Improving Android support

Post by AlexeyKnyshev »

Wolfmanfx wrote:Hi,

Do not use my fork everything is merged back to main ogre repo - also the ETC1 bug is resolved.

Code: Select all

hg pull
hg merge
hg commit -m "remote update"
...
cmake
make
...

[ 81%] Built target OgreRTShaderSystem                                                                                               
[ 81%] Building CXX object Tools/MeshUpgrader/CMakeFiles/OgreMeshUpgrader.dir/src/main.cpp.o
../../lib/libOgreMain.so.2.1.0: undefined reference to `boost::thread::start_thread()'                                               
../../lib/libOgreMain.so.2.1.0: undefined reference to `boost::this_thread::interruption_point()'
../../lib/libOgreMain.so.2.1.0: undefined reference to `boost::detail::get_tss_data(void const*)'
../../lib/libOgreMain.so.2.1.0: undefined reference to `boost::this_thread::get_id()'
../../lib/libOgreMain.so.2.1.0: undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
../../lib/libOgreMain.so.2.1.0: undefined reference to `typeinfo for boost::detail::thread_data_base'
../../lib/libOgreMain.so.2.1.0: undefined reference to `boost::detail::get_current_thread_data()'
../../lib/libOgreMain.so.2.1.0: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
../../lib/libOgreMain.so.2.1.0: undefined reference to `boost::thread::hardware_concurrency()'
../../lib/libOgreMain.so.2.1.0: undefined reference to `boost::thread::~thread()'
../../lib/libOgreMain.so.2.1.0: undefined reference to `boost::thread::join()'
../../lib/libOgreMain.so.2.1.0: undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
../../lib/libOgreMain.so.2.1.0: undefined reference to `vtable for boost::detail::thread_data_base'
../../lib/libOgreMain.so.2.1.0: undefined reference to `boost::this_thread::disable_interruption::disable_interruption()'
collect2: ld returned 1 exit status
make[2]: *** [bin/OgreXMLConverter] Ошибка 1
make[1]: *** [Tools/XMLConverter/CMakeFiles/OgreXMLConverter.dir/all] Ошибка 2
make[1]: *** Ожидание завершения заданий...
Before merge Ogre compiled without boost linking problems.
P.S boost 1.46.1 in /usr. Other proj uses boost and compiles and links successfully.

P.P.S I have successfully recompiled Ogre without samples and tools...
Nick Johnson
Gnoblar
Posts: 3
Joined: Mon Jul 16, 2012 8:34 am

Re: Improving Android support

Post by Nick Johnson »

Hey Haydenli,,
Thanx for the guidance,, I followed the steps you mention and got success......
Nodrev
Gremlin
Posts: 193
Joined: Fri Jan 25, 2008 6:55 pm
Location: Nantes / France
x 17

Re: Improving Android support

Post by Nodrev »

Hi guys.
I'm currently trying to build Ogre for Android, and I have a strange error.
I had extracted as much information as i could from this thread, but i'm facing a weird compilation issue (i'm using nmake process explained before, with vs2010express, and a fresh official ogre trunk, as i read commits in mercurial that were mentioning that Wolfmanfx's fork was back in trunk).
The compilation generation process using cmake seems ok to me:

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.4.3

-- 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: d:/Programmation/Lib/OgreAndroid/AndroidDependencies;D:/Programmation/Lib/OgreAndroid/Builds/Dependencies;d:/Programmation/Lib/OgreAndroid/Dependencies;D:/Programmation/Lib/OgreAndroid/Builds/../Dependencies;d:/Programmation/Lib/OgreAndroid/../Dependencies
-- Looking for ZLIB...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Found ZLIB: optimized;D:/Programmation/tools/android/ndk-r8b/platforms/android-14/arch-arm/usr/lib/libz.so;debug;D:/Programmation/tools/android/ndk-r8b/platforms/android-14/arch-arm/usr/lib/libz.so
-- Looking for ZZip...
-- ZZip_PREFIX_PATH changed.
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Found ZZip: optimized;d:/Programmation/Lib/OgreAndroid/AndroidDependencies/lib/libzzip.a;debug;d:/Programmation/Lib/OgreAndroid/AndroidDependencies/lib/libzzip.a
-- Looking for FreeImage...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Found FreeImage: optimized;d:/Programmation/Lib/OgreAndroid/AndroidDependencies/lib/libFreeImage.a;debug;d:/Programmation/Lib/OgreAndroid/AndroidDependencies/lib/libFreeImage.a
-- Looking for FREETYPE...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- CMAKE_PREFIX_PATH: d:/Programmation/Lib/OgreAndroid/AndroidDependencies;D:/Programmation/Lib/OgreAndroid/Builds/Dependencies;d:/Programmation/Lib/OgreAndroid/Dependencies;D:/Programmation/Lib/OgreAndroid/Builds/../Dependencies;d:/Programmation/Lib/OgreAndroid/../Dependencies;/usr/local;/usr/lib/armv7-a-linux-gnu
-- CMAKE_PREFIX_PATH: d:/Programmation/Lib/OgreAndroid/AndroidDependencies;D:/Programmation/Lib/OgreAndroid/Builds/Dependencies;d:/Programmation/Lib/OgreAndroid/Dependencies;D:/Programmation/Lib/OgreAndroid/Builds/../Dependencies;d:/Programmation/Lib/OgreAndroid/../Dependencies;/usr/local;/usr/lib/armv7-a-linux-gnu
-- Found FREETYPE: optimized;d:/Programmation/Lib/OgreAndroid/AndroidDependencies/lib/libfreetype.a;debug;d:/Programmation/Lib/OgreAndroid/AndroidDependencies/lib/libfreetype.a
-- 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;d:/Programmation/Lib/OgreAndroid/AndroidDependencies/lib/libOIS.a;debug;d:/Programmation/Lib/OgreAndroid/AndroidDependencies/lib/libOIS.a
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Looking for Softimage...
-- Softimage_PREFIX_PATH changed.
-- Could not locate Softimage
-- 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
+ OIS
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ 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>
+ CppUnit: Library for performing unit tests <http://cppunit.sourceforge.net>
-----------------------------------------------------------------------------

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

Building components:
  + RTShader System
  + RTShader System Core Shaders
  + RTShader System Extensions Shaders
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: D:/Programmation/Lib/OgreAndroid/Builds
But when launching nmake:

Code: Select all

d:\Programmation\Lib\OgreAndroid\Builds>nmake

Microsoft (R) Program Maintenance Utility Version 10.00.40219.01
Copyright (C) Microsoft Corporation. Tous droits réservés.

[  0%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o
In file included from ..\..\OgreMain\src\OgreAlignedAllocator.cpp:30:
..\..\OgreMain\include/OgrePrerequisites.h:33:18: error: string: No such file or directory
In file included from ..\..\OgreMain\include/OgrePrerequisites.h:334,
                 from ..\..\OgreMain\src\OgreAlignedAllocator.cpp:30:
..\..\OgreMain\include/OgreStdHeaders.h:22:19: error: cassert: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:23:18: error: cstdio: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:24:19: error: cstdlib: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:25:17: error: ctime: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:26:19: error: cstring: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:27:19: error: cstdarg: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:28:17: error: cmath: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:31:18: error: vector: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:32:15: error: map: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:34:15: error: set: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:35:16: error: list: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:36:17: error: deque: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:37:17: error: queue: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:38:18: error: bitset: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:44:36: error: tr1/unordered_map: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:45:37: error: tr1/unordered_set: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:69:21: error: algorithm: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:70:22: error: functional: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:71:18: error: limits: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:74:19: error: fstream: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:75:20: error: iostream: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:76:19: error: iomanip: No such file or directory
..\..\OgreMain\include/OgreStdHeaders.h:77:19: error: sstream: No such file or directory
It fails at finding std includes in every file. I suppose it should use "${ANDROID_NDK}\sources\cxx-stl\gnu-libstdc++\4.4.3\include" as include dir, but I thought it was done by cmake, which is apparently not done correctly in my case. Any idea?
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 100

Re: Improving Android support

Post by Wolfmanfx »

@Nodrev
I never build it on windows and thats something i have to prepare for 1.9 but i think somebody succeed at building on win32.
Did you switch to 1.9 branch? I will dig into this after my vacation i am one week off :) back on 13 Aug.
chopsui
Gnoblar
Posts: 3
Joined: Sat Jul 14, 2012 5:52 pm

Re: Improving Android support

Post by chopsui »

@Nodrev

I had the same problem yesterday. I found out that by switching back to android-ndk-r8 rather than android-ndk-r8b, it fixed that issue. Apparently they changed a bunch of stuff in the latest NDK release and I didn't feel like tracking them all down. :)
Last edited by chopsui on Sun Aug 05, 2012 8:24 pm, edited 1 time in total.
chopsui
Gnoblar
Posts: 3
Joined: Sat Jul 14, 2012 5:52 pm

Re: Improving Android support

Post by chopsui »

@Wolfmanfx

Do you know why some of the samples in the SDK sample browser do not run on Androind? Is it because of OpenGLES limitations? In particular I'd like to get the Instancing sample running.
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 100

Re: Improving Android support

Post by Wolfmanfx »

Just a new NDK is out will fix it asap and hopefully these crashes on the qualcomm devices (i get one next week).

A few samples are excepted to fail.
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 100

Re: Improving Android support

Post by Wolfmanfx »

I am locking this topic i have the feeling its getting a mess :) feel free to start new threads regarding android.