Android Port

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
navitas
Posts: 1
Joined: Sun Dec 21, 2008 2:32 am

Re: Android Port

Post by navitas »

reizencroft wrote:I have made an attempt on making ogles2 work and was somehow successful. I forked it from the ogles branch(r4073) and borrowed some code from the OP.

here's github link:
https://github.com/reizencroft/irrAndroid

and a video of example 8 running on Samsung Galaxy S2(android 2.3)
http://youtu.be/TPtO4UDSMrM
Amazing..
I have just compiled the whole thing
I just did some changes to enable Android 2.2(android-8)
Everything works properly.
Congratulations

I would like to know, what was the problem with the texture in OGLES 2.0 Thx

from the OP, what is it? :oops:
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Re: Android Port

Post by pera »

i built the project under ndk r8b and download it on htc desire c device, I get this error in logcat when app starts:

Fatal signal 11 (SIGSEGV) at 0x00000014 (code=1)
V/WindowManager(  193): onProposedRotationChanged, rotation changed to 0
I/ActivityManager(  193): Process com.metago.astro (pid 16800) has died.
I/DEBUG   ( 7892): debuggerd: 2012-11-05 17:14:33
I/DEBUG   ( 7892): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   ( 7892): Build fingerprint: 'htc_europe/htc_golfu/golfu:4.0.3/IML74K/65553.4:user/release-keys'
I/DEBUG   ( 7892): pid: 16992, tid: 17005  >>> com.ellismarkov.irrlicht <<<
I/DEBUG   ( 7892): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000014
I/DEBUG   ( 7892):  r0 00000010  r1 00000002  r2 4ca15a84  r3 00000001
I/DEBUG   ( 7892):  r4 01b27818  r5 00000000  r6 4c9109f0  r7 00000001
I/DEBUG   ( 7892):  r8 4c8f1548  r9 01d712b8  10 4c8ebff4  fp 4ca15b30
I/DEBUG   ( 7892):  ip 4ca15a84  sp 4ca15a50  lr 4c612b08  pc 4c60f54c  cpsr 60000010
I/DEBUG   ( 7892):  d0  6465746e656d6545  d1  204c476e65704f53
I/DEBUG   ( 7892):  d2  2072656461687320  d3  2e6d6172676f7241
I/DEBUG   ( 7892):  d4  34636576090a3b72  d5  3d206c6578657420
I/DEBUG   ( 7892):  d6  6572757478657420  d7  7478655475284432
I/DEBUG   ( 7892):  d8  0000000000000000  d9  0000000000000000
I/DEBUG   ( 7892):  d10 0000000000000000  d11 0000000000000000
I/DEBUG   ( 7892):  d12 0000000000000000  d13 0000000000000000
I/DEBUG   ( 7892):  d14 0000000000000000  d15 0000000000000000
I/DEBUG   ( 7892):  d16 2c74696e55657275  d17 4378655472617620
I/DEBUG   ( 7892):  d18 2979782e64726f6f  d19 5575286669090a3b
I/DEBUG   ( 7892):  d20 7275747865546573  d21 09090a7b090a2965
I/DEBUG   ( 7892):  d22 3d2a20726f6c6f63  d23 0a3b6c6578657420
I/DEBUG   ( 7892):  d24 3e66376972bea4d0  d25 3fc39a09d078c69f
I/DEBUG   ( 7892):  d26 0000000000000000  d27 0000000000000000
I/DEBUG   ( 7892):  d28 0000000000000000  d29 0000000000000000
I/DEBUG   ( 7892):  d30 0000000000000000  d31 0000000000000000
I/DEBUG   ( 7892):  scr 20000012
I/DEBUG   ( 7892):
I/DEBUG   ( 7892):          #00  pc 0013c54c  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so (_ZN3irr5video25COGLES2SLMaterialRenderer10setUniformEiPKvi)
I/DEBUG   ( 7892):          #01  pc 0013fb04  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so (_ZN3irr5video17COGLES2Renderer2dC1EPNS0_13COGLES2DriverEPNS_2io11IFileSystemE
I/DEBUG   ( 7892):          #02  pc 00133774  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so (_ZN3irr5video13COGLES2Driver17genericDriverInitERKNS_4core11dimension2dIjEEb)
I/DEBUG   ( 7892):          #03  pc 00133dc4  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so (_ZN3irr5video13COGLES2DriverC1ERKNS_27SIrrlichtCreationParametersERKNS0_17SEx
I/DEBUG   ( 7892):          #04  pc 001365fc  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so (_ZN3irr5video18createOGLES2DriverERKNS_27SIrrlichtCreationParametersERNS0_17S
I/DEBUG   ( 7892):          #05  pc 00103980  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so (_ZN3irr17CIrrDeviceAndroid12createDriverEv)
I/DEBUG   ( 7892):          #06  pc 00103a6c  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so (_ZN3irr17CIrrDeviceAndroidC1ERKNS_27SIrrlichtCreationParametersE)
I/DEBUG   ( 7892):          #07  pc 00320dbc  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so (createDeviceEx)
I/DEBUG   ( 7892):          #08  pc 00320ee4  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so (createDevice)
I/DEBUG   ( 7892):          #09  pc 00102e60  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so (Java_com_ellismarkov_irrlicht_IrrlichtTest_nativeInitGL)
I/DEBUG   ( 7892):          #10  pc 0001fcb0  /system/lib/libdvm.so (dvmPlatformInvoke)
I/DEBUG   ( 7892):          #11  pc 0005ab58  /system/lib/libdvm.so (_Z16dvmCallJNIMethodPKjP6JValuePK6MethodP6Thread)
I/DEBUG   ( 7892):
I/DEBUG   ( 7892): code around pc:
I/DEBUG   ( 7892): 4c60f52c e3a01c8b e2811031 eaffff64 e92d4038  ....1...d...8@-.
I/DEBUG   ( 7892): 4c60f53c e590501c e1a04000 e1a0c002 e0850181  .P...@..........
I/DEBUG   ( 7892): 4c60f54c e5900004 e3700001 0a000039 e795e181  ......p.9.......
I/DEBUG   ( 7892): 4c60f55c e3a01c8b e2811052 e15e0001 0a00003d  ....R.....^.=...
I/DEBUG   ( 7892): 4c60f56c 9a000013 e3a02c8b e282205b e15e0002  .....,..[ ....^.
I/DEBUG   ( 7892):
I/DEBUG   ( 7892): code around lr:
I/DEBUG   ( 7892): 4c612ae8 e1a00004 ebfff316 e28d2028 e5225004  ........( ...P".
I/DEBUG   ( 7892): 4c612af8 e1a00004 e3a01002 e1a03007 ebfff28b  .........0......
I/DEBUG   ( 7892): 4c612b08 e1a00004 e28dd02c e8bd85f0 002fdfe0  ....,........./.
I/DEBUG   ( 7892): 4c612b18 00000eac 0000110c 00001168 00000fc4  ........h.......
I/DEBUG   ( 7892): 4c612b28 002abe4c 002abe4c 002abe78 e52de004  L.*.L.*.x.*...-.
I/DEBUG   ( 7892):
I/DEBUG   ( 7892): stack:
I/DEBUG   ( 7892):     4ca15a10  00000038
I/DEBUG   ( 7892):     4ca15a14  400c2463  /system/lib/libc.so
I/DEBUG   ( 7892):     4ca15a18  01b27818  [heap]
I/DEBUG   ( 7892):     4ca15a1c  4016d9af  /system/lib/libstdc++.so
I/DEBUG   ( 7892):     4ca15a20  01b27818  [heap]
I/DEBUG   ( 7892):     4ca15a24  4c610d60  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
I/DEBUG   ( 7892):     4ca15a28  01b278c0  [heap]
I/DEBUG   ( 7892):     4ca15a2c  00000038
I/DEBUG   ( 7892):     4ca15a30  00000038
I/DEBUG   ( 7892):     4ca15a34  1252f40d
I/DEBUG   ( 7892):     4ca15a38  000000ab
I/DEBUG   ( 7892):     4ca15a3c  01b27818  [heap]
I/DEBUG   ( 7892):     4ca15a40  00000000
I/DEBUG   ( 7892):     4ca15a44  4c9109f0  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
I/DEBUG   ( 7892):     4ca15a48  df0027ad
I/DEBUG   ( 7892):     4ca15a4c  00000000
I/DEBUG   ( 7892): #00 4ca15a50  00000001
I/DEBUG   ( 7892):     4ca15a54  01b27818  [heap]
I/DEBUG   ( 7892):     4ca15a58  00000000
I/DEBUG   ( 7892):     4ca15a5c  4c612b08  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
I/DEBUG   ( 7892): #01 4ca15a60  00000000
I/DEBUG   ( 7892):     4ca15a64  00000000
I/DEBUG   ( 7892):     4ca15a68  4c8ebff4  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
I/DEBUG   ( 7892):     4ca15a6c  4ca15a7c
I/DEBUG   ( 7892):     4ca15a70  00000000
I/DEBUG   ( 7892):     4ca15a74  01d70ce8  [heap]
I/DEBUG   ( 7892):     4ca15a78  00000000
I/DEBUG   ( 7892):     4ca15a7c  00000005
I/DEBUG   ( 7892):     4ca15a80  ffffffff
I/DEBUG   ( 7892):     4ca15a84  00000000
I/DEBUG   ( 7892):     4ca15a88  01d712b8  [heap]
I/DEBUG   ( 7892):     4ca15a8c  01d70ce8  [heap]
I/DEBUG   ( 7892):     4ca15a90  00000000
I/DEBUG   ( 7892):     4ca15a94  01b3388c  [heap]
I/DEBUG   ( 7892):     4ca15a98  01b27818  [heap]
I/DEBUG   ( 7892):     4ca15a9c  4c04ea66  /system/lib/egl/libGLESv1_CM_adreno200.so
I/DEBUG   ( 7892):     4ca15aa0  01b3e980  [heap]
I/DEBUG   ( 7892):     4ca15aa4  4c606778  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Android Port

Post by Nadro »

You can also try an official Android port (ogl-es branch and define an android device in IrrCompileConfig.h). Currently only statically linking (libIrrlicht.a) is supported.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Re: Android Port

Post by pera »

Nadro wrote:You can also try an official Android port (ogl-es branch and define an android device in IrrCompileConfig.h). Currently only statically linking (libIrrlicht.a) is supported.
how do i do this? where is this code? how to build it?
Auradrummer
Posts: 260
Joined: Thu Apr 17, 2008 1:38 pm
Location: Brasopolis - Brazil

Re: Android Port

Post by Auradrummer »

Hi Guys,

Im trying to render two Scene Managers in Android. The program stucks on the Draw All. It's only for me or everyone had this problem?
Professional Software Developer and Amateur Game Designer ;-)
Auradrummer
Posts: 260
Joined: Thu Apr 17, 2008 1:38 pm
Location: Brasopolis - Brazil

Re: Android Port

Post by Auradrummer »

Hey guys, worked here.

I created the new Scene Manager inside a class. Now, I created in main and passed to the class and worked fine.
Professional Software Developer and Amateur Game Designer ;-)
JLouisB
Posts: 67
Joined: Tue Jul 24, 2012 12:36 pm
Location: France

Re: Android Port

Post by JLouisB »

Hi,
I try to compil the example 8-specialFX of IrrAndroid-master (page 11 of this topic), but I have an error that I don't understand.
My log :
Jean-Louis@Jean-Louis-PC /cygdrive/c/android-ndk-r8c-windows/android-ndk-r8c/sources/IrrAndroid-master/IrrAndroid-Master/examples/08.SpecialFX
$ ../../../../../ndk-build
/cygdrive/c/android-ndk-r8c-windows/android-ndk-r8c/build/core/add-application.mk:128: Android NDK: WARNING: APP_PLATFORM android-9 is larger than android:minSdkVersion 8 in ./AndroidManifest.xml
Cygwin : Generating dependency file converter script
Compile++ thumb : SFX <= main.cpp
Compile thumb : android_native_app_glue <= android_native_app_glue.c
StaticLibrary : libandroid_native_app_glue.a
Compile++ thumb : IrrAndroid <= CIrrDeviceAndroid.cpp
Compile++ thumb : IrrAndroid <= aescrypt.cpp
Compile++ thumb : IrrAndroid <= aeskey.cpp
Compile++ thumb : IrrAndroid <= aestab.cpp
Compile++ thumb : IrrAndroid <= fileenc.cpp
Compile++ thumb : IrrAndroid <= hmac.cpp
Compile++ thumb : IrrAndroid <= prng.cpp
Compile++ thumb : IrrAndroid <= pwd2key.cpp
Compile++ thumb : IrrAndroid <= sha1.cpp
Compile++ thumb : IrrAndroid <= sha2.cpp
Compile++ thumb : IrrAndroid <= C3DSMeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= CAnimatedMeshHalfLife.cpp
Compile++ thumb : IrrAndroid <= CAnimatedMeshMD2.cpp
Compile++ thumb : IrrAndroid <= CAnimatedMeshMD3.cpp
Compile++ thumb : IrrAndroid <= CAnimatedMeshSceneNode.cpp
Compile++ thumb : IrrAndroid <= CAttributes.cpp
Compile++ thumb : IrrAndroid <= CB3DMeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= CBillboardSceneNode.cpp
Compile++ thumb : IrrAndroid <= CBoneSceneNode.cpp
Compile++ thumb : IrrAndroid <= CBSPMeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= CBurningShader_Raster_Reference.cpp
Compile++ thumb : IrrAndroid <= CCameraSceneNode.cpp
Compile++ thumb : IrrAndroid <= CColladaFileLoader.cpp
Compile++ thumb : IrrAndroid <= CColladaMeshWriter.cpp
Compile++ thumb : IrrAndroid <= CColorConverter.cpp
Compile++ thumb : IrrAndroid <= CCSMLoader.cpp
Compile++ thumb : IrrAndroid <= CCubeSceneNode.cpp
Compile++ thumb : IrrAndroid <= CD3D8Driver.cpp
Compile++ thumb : IrrAndroid <= CD3D8NormalMapRenderer.cpp
Compile++ thumb : IrrAndroid <= CD3D8ParallaxMapRenderer.cpp
Compile++ thumb : IrrAndroid <= CD3D8ShaderMaterialRenderer.cpp
Compile++ thumb : IrrAndroid <= CD3D8Texture.cpp
Compile++ thumb : IrrAndroid <= CD3D9Driver.cpp
Compile++ thumb : IrrAndroid <= CD3D9HLSLMaterialRenderer.cpp
Compile++ thumb : IrrAndroid <= CD3D9NormalMapRenderer.cpp
Compile++ thumb : IrrAndroid <= CD3D9ParallaxMapRenderer.cpp
Compile++ thumb : IrrAndroid <= CD3D9ShaderMaterialRenderer.cpp
Compile++ thumb : IrrAndroid <= CD3D9Texture.cpp
Compile++ thumb : IrrAndroid <= CDefaultGUIElementFactory.cpp
Compile++ thumb : IrrAndroid <= CDefaultSceneNodeAnimatorFactory.cpp
Compile++ thumb : IrrAndroid <= CDefaultSceneNodeFactory.cpp
Compile++ thumb : IrrAndroid <= CDepthBuffer.cpp
Compile++ thumb : IrrAndroid <= CDMFLoader.cpp
Compile++ thumb : IrrAndroid <= CDummyTransformationSceneNode.cpp
Compile++ thumb : IrrAndroid <= CEmptySceneNode.cpp
Compile++ thumb : IrrAndroid <= CFileList.cpp
Compile++ thumb : IrrAndroid <= CFileSystem.cpp
Compile++ thumb : IrrAndroid <= CFPSCounter.cpp
Compile++ thumb : IrrAndroid <= CGeometryCreator.cpp
Compile++ thumb : IrrAndroid <= CGUIButton.cpp
Compile++ thumb : IrrAndroid <= CGUICheckBox.cpp
Compile++ thumb : IrrAndroid <= CGUIColorSelectDialog.cpp
Compile++ thumb : IrrAndroid <= CGUIComboBox.cpp
Compile++ thumb : IrrAndroid <= CGUIContextMenu.cpp
Compile++ thumb : IrrAndroid <= CGUIEditBox.cpp
Compile++ thumb : IrrAndroid <= CGUIEnvironment.cpp
Compile++ thumb : IrrAndroid <= CGUIFileOpenDialog.cpp
Compile++ thumb : IrrAndroid <= CGUIFont.cpp
Compile++ thumb : IrrAndroid <= CGUIImage.cpp
Compile++ thumb : IrrAndroid <= CGUIImageList.cpp
Compile++ thumb : IrrAndroid <= CGUIInOutFader.cpp
Compile++ thumb : IrrAndroid <= CGUIListBox.cpp
Compile++ thumb : IrrAndroid <= CGUIMenu.cpp
Compile++ thumb : IrrAndroid <= CGUIMeshViewer.cpp
Compile++ thumb : IrrAndroid <= CGUIMessageBox.cpp
Compile++ thumb : IrrAndroid <= CGUIModalScreen.cpp
Compile++ thumb : IrrAndroid <= CGUIScrollBar.cpp
Compile++ thumb : IrrAndroid <= CGUISkin.cpp
Compile++ thumb : IrrAndroid <= CGUISpinBox.cpp
Compile++ thumb : IrrAndroid <= CGUISpriteBank.cpp
Compile++ thumb : IrrAndroid <= CGUIStaticText.cpp
Compile++ thumb : IrrAndroid <= CGUITabControl.cpp
Compile++ thumb : IrrAndroid <= CGUITable.cpp
Compile++ thumb : IrrAndroid <= CGUIToolBar.cpp
Compile++ thumb : IrrAndroid <= CGUITreeView.cpp
Compile++ thumb : IrrAndroid <= CGUIWindow.cpp
Compile++ thumb : IrrAndroid <= CImage.cpp
Compile++ thumb : IrrAndroid <= CImageLoaderBMP.cpp
Compile++ thumb : IrrAndroid <= CImageLoaderDDS.cpp
Compile++ thumb : IrrAndroid <= CImageLoaderJPG.cpp
Compile++ thumb : IrrAndroid <= CImageLoaderPCX.cpp
Compile++ thumb : IrrAndroid <= CImageLoaderPNG.cpp
Compile++ thumb : IrrAndroid <= CImageLoaderPPM.cpp
Compile++ thumb : IrrAndroid <= CImageLoaderPSD.cpp
Compile++ thumb : IrrAndroid <= CImageLoaderRGB.cpp
Compile++ thumb : IrrAndroid <= CImageLoaderTGA.cpp
Compile++ thumb : IrrAndroid <= CImageLoaderWAL.cpp
Compile++ thumb : IrrAndroid <= CImageWriterBMP.cpp
Compile++ thumb : IrrAndroid <= CImageWriterJPG.cpp
Compile++ thumb : IrrAndroid <= CImageWriterPCX.cpp
Compile++ thumb : IrrAndroid <= CImageWriterPNG.cpp
Compile++ thumb : IrrAndroid <= CImageWriterPPM.cpp
Compile++ thumb : IrrAndroid <= CImageWriterPSD.cpp
Compile++ thumb : IrrAndroid <= CImageWriterTGA.cpp
Compile++ thumb : IrrAndroid <= CIrrDeviceConsole.cpp
Compile++ thumb : IrrAndroid <= CIrrDeviceFB.cpp
Compile++ thumb : IrrAndroid <= CIrrDeviceIPhone.cpp
Compile++ thumb : IrrAndroid <= CIrrDeviceLinux.cpp
Compile++ thumb : IrrAndroid <= CIrrDeviceSDL.cpp
Compile++ thumb : IrrAndroid <= CIrrDeviceStub.cpp
Compile++ thumb : IrrAndroid <= CIrrDeviceWin32.cpp
Compile++ thumb : IrrAndroid <= CIrrDeviceWinCE.cpp
Compile++ thumb : IrrAndroid <= CIrrMeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= CIrrMeshWriter.cpp
Compile++ thumb : IrrAndroid <= CLightSceneNode.cpp
Compile++ thumb : IrrAndroid <= CLimitReadFile.cpp
Compile++ thumb : IrrAndroid <= CLMTSMeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= CLogger.cpp
Compile++ thumb : IrrAndroid <= CLWOMeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= CMD2MeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= CMD3MeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= CMemoryFile.cpp
Compile++ thumb : IrrAndroid <= CMeshCache.cpp
Compile++ thumb : IrrAndroid <= CMeshManipulator.cpp
Compile++ thumb : IrrAndroid <= CMeshSceneNode.cpp
Compile++ thumb : IrrAndroid <= CMetaTriangleSelector.cpp
Compile++ thumb : IrrAndroid <= CMountPointReader.cpp
Compile++ thumb : IrrAndroid <= CMS3DMeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= CMY3DMeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= CNPKReader.cpp
Compile++ thumb : IrrAndroid <= CNullDriver.cpp
Compile++ thumb : IrrAndroid <= COBJMeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= COBJMeshWriter.cpp
Compile++ thumb : IrrAndroid <= COCTLoader.cpp
Compile++ thumb : IrrAndroid <= COctreeSceneNode.cpp
Compile++ thumb : IrrAndroid <= COctreeTriangleSelector.cpp
Compile++ thumb : IrrAndroid <= COGLES2Driver.cpp
Compile++ thumb : IrrAndroid <= COGLES2ExtensionHandler.cpp
Compile++ thumb : IrrAndroid <= COGLES2FixedPipelineShader.cpp
Compile++ thumb : IrrAndroid <= COGLES2NormalMapRenderer.cpp
Compile++ thumb : IrrAndroid <= COGLES2ParallaxMapRenderer.cpp
Compile++ thumb : IrrAndroid <= COGLES2Renderer2D.cpp
Compile++ thumb : IrrAndroid <= COGLES2SLMaterialRenderer.cpp
Compile++ thumb : IrrAndroid <= COGLES2Texture.cpp
Compile++ thumb : IrrAndroid <= COGLESDriver.cpp
Compile++ thumb : IrrAndroid <= COGLESExtensionHandler.cpp
Compile++ thumb : IrrAndroid <= COGLESTexture.cpp
Compile++ thumb : IrrAndroid <= COgreMeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= COpenGLDriver.cpp
Compile++ thumb : IrrAndroid <= COpenGLExtensionHandler.cpp
Compile++ thumb : IrrAndroid <= COpenGLNormalMapRenderer.cpp
Compile++ thumb : IrrAndroid <= COpenGLParallaxMapRenderer.cpp
Compile++ thumb : IrrAndroid <= COpenGLShaderMaterialRenderer.cpp
Compile++ thumb : IrrAndroid <= COpenGLSLMaterialRenderer.cpp
Compile++ thumb : IrrAndroid <= COpenGLTexture.cpp
Compile++ thumb : IrrAndroid <= COSOperator.cpp
Compile++ thumb : IrrAndroid <= CPakReader.cpp
Compile++ thumb : IrrAndroid <= CParticleAnimatedMeshSceneNodeEmitter.cpp
Compile++ thumb : IrrAndroid <= CParticleAttractionAffector.cpp
Compile++ thumb : IrrAndroid <= CParticleBoxEmitter.cpp
Compile++ thumb : IrrAndroid <= CParticleCylinderEmitter.cpp
Compile++ thumb : IrrAndroid <= CParticleFadeOutAffector.cpp
Compile++ thumb : IrrAndroid <= CParticleGravityAffector.cpp
Compile++ thumb : IrrAndroid <= CParticleMeshEmitter.cpp
Compile++ thumb : IrrAndroid <= CParticlePointEmitter.cpp
Compile++ thumb : IrrAndroid <= CParticleRingEmitter.cpp
Compile++ thumb : IrrAndroid <= CParticleRotationAffector.cpp
Compile++ thumb : IrrAndroid <= CParticleScaleAffector.cpp
Compile++ thumb : IrrAndroid <= CParticleSphereEmitter.cpp
Compile++ thumb : IrrAndroid <= CParticleSystemSceneNode.cpp
Compile++ thumb : IrrAndroid <= CPLYMeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= CPLYMeshWriter.cpp
Compile++ thumb : IrrAndroid <= CQ3LevelMesh.cpp
Compile++ thumb : IrrAndroid <= CQuake3ShaderSceneNode.cpp
Compile++ thumb : IrrAndroid <= CReadFile.cpp
Compile++ thumb : IrrAndroid <= CSceneCollisionManager.cpp
Compile++ thumb : IrrAndroid <= CSceneLoaderIrr.cpp
Compile++ thumb : IrrAndroid <= CSceneManager.cpp
Compile++ thumb : IrrAndroid <= CSceneNodeAnimatorCameraFPS.cpp
Compile++ thumb : IrrAndroid <= CSceneNodeAnimatorCameraMaya.cpp
Compile++ thumb : IrrAndroid <= CSceneNodeAnimatorCollisionResponse.cpp
Compile++ thumb : IrrAndroid <= CSceneNodeAnimatorDelete.cpp
Compile++ thumb : IrrAndroid <= CSceneNodeAnimatorFlyCircle.cpp
Compile++ thumb : IrrAndroid <= CSceneNodeAnimatorFlyStraight.cpp
Compile++ thumb : IrrAndroid <= CSceneNodeAnimatorFollowSpline.cpp
Compile++ thumb : IrrAndroid <= CSceneNodeAnimatorRotation.cpp
Compile++ thumb : IrrAndroid <= CSceneNodeAnimatorTexture.cpp
Compile++ thumb : IrrAndroid <= CShadowVolumeSceneNode.cpp
Compile++ thumb : IrrAndroid <= CSkinnedMesh.cpp
Compile++ thumb : IrrAndroid <= CSkyBoxSceneNode.cpp
Compile++ thumb : IrrAndroid <= CSkyDomeSceneNode.cpp
Compile++ thumb : IrrAndroid <= CSMFMeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= CSoftwareDriver.cpp
Compile++ thumb : IrrAndroid <= CSoftwareDriver2.cpp
Compile++ thumb : IrrAndroid <= CSoftwareTexture.cpp
Compile++ thumb : IrrAndroid <= CSoftwareTexture2.cpp
Compile++ thumb : IrrAndroid <= CSphereSceneNode.cpp
Compile++ thumb : IrrAndroid <= CSTLMeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= CSTLMeshWriter.cpp
Compile++ thumb : IrrAndroid <= CTarReader.cpp
Compile++ thumb : IrrAndroid <= CTerrainSceneNode.cpp
Compile++ thumb : IrrAndroid <= CTerrainTriangleSelector.cpp
Compile++ thumb : IrrAndroid <= CTextSceneNode.cpp
Compile++ thumb : IrrAndroid <= CTRFlat.cpp
Compile++ thumb : IrrAndroid <= CTRFlatWire.cpp
Compile++ thumb : IrrAndroid <= CTRGouraud.cpp
Compile++ thumb : IrrAndroid <= CTRGouraud2.cpp
Compile++ thumb : IrrAndroid <= CTRGouraudAlpha2.cpp
Compile++ thumb : IrrAndroid <= CTRGouraudAlphaNoZ2.cpp
Compile++ thumb : IrrAndroid <= CTRGouraudWire.cpp
Compile++ thumb : IrrAndroid <= CTriangleBBSelector.cpp
Compile++ thumb : IrrAndroid <= CTriangleSelector.cpp
Compile++ thumb : IrrAndroid <= CTRNormalMap.cpp
Compile++ thumb : IrrAndroid <= CTRStencilShadow.cpp
Compile++ thumb : IrrAndroid <= CTRTextureBlend.cpp
Compile++ thumb : IrrAndroid <= CTRTextureDetailMap2.cpp
Compile++ thumb : IrrAndroid <= CTRTextureFlat.cpp
Compile++ thumb : IrrAndroid <= CTRTextureFlatWire.cpp
Compile++ thumb : IrrAndroid <= CTRTextureGouraud.cpp
Compile++ thumb : IrrAndroid <= CTRTextureGouraud2.cpp
Compile++ thumb : IrrAndroid <= CTRTextureGouraudAdd.cpp
Compile++ thumb : IrrAndroid <= CTRTextureGouraudAdd2.cpp
Compile++ thumb : IrrAndroid <= CTRTextureGouraudAddNoZ2.cpp
Compile++ thumb : IrrAndroid <= CTRTextureGouraudAlpha.cpp
Compile++ thumb : IrrAndroid <= CTRTextureGouraudAlphaNoZ.cpp
Compile++ thumb : IrrAndroid <= CTRTextureGouraudNoZ.cpp
Compile++ thumb : IrrAndroid <= CTRTextureGouraudNoZ2.cpp
Compile++ thumb : IrrAndroid <= CTRTextureGouraudVertexAlpha2.cpp
Compile++ thumb : IrrAndroid <= CTRTextureGouraudWire.cpp
Compile++ thumb : IrrAndroid <= CTRTextureLightMap2_Add.cpp
Compile++ thumb : IrrAndroid <= CTRTextureLightMap2_M1.cpp
Compile++ thumb : IrrAndroid <= CTRTextureLightMap2_M2.cpp
Compile++ thumb : IrrAndroid <= CTRTextureLightMap2_M4.cpp
Compile++ thumb : IrrAndroid <= CTRTextureLightMapGouraud2_M4.cpp
Compile++ thumb : IrrAndroid <= CTRTextureWire2.cpp
Compile++ thumb : IrrAndroid <= CVideoModeList.cpp
Compile++ thumb : IrrAndroid <= CVolumeLightSceneNode.cpp
Compile++ thumb : IrrAndroid <= CWADReader.cpp
Compile++ thumb : IrrAndroid <= CWaterSurfaceSceneNode.cpp
Compile++ thumb : IrrAndroid <= CWriteFile.cpp
Compile++ thumb : IrrAndroid <= CXMeshFileLoader.cpp
Compile++ thumb : IrrAndroid <= CXMLReader.cpp
Compile++ thumb : IrrAndroid <= CXMLWriter.cpp
Compile++ thumb : IrrAndroid <= CZBuffer.cpp
Compile++ thumb : IrrAndroid <= CZipReader.cpp
Compile++ thumb : IrrAndroid <= IBurningShader.cpp
Compile++ thumb : IrrAndroid <= Irrlicht.cpp
Compile++ thumb : IrrAndroid <= irrXML.cpp
Compile++ thumb : IrrAndroid <= os.cpp
Compile thumb : IrrAndroid <= blocksort.c
Compile thumb : IrrAndroid <= bzcompress.c
Compile thumb : IrrAndroid <= bzlib.c
Compile thumb : IrrAndroid <= crctable.c
Compile thumb : IrrAndroid <= decompress.c
Compile thumb : IrrAndroid <= huffman.c
Compile thumb : IrrAndroid <= randtable.c
Compile thumb : IrrAndroid <= jaricom.c
Compile thumb : IrrAndroid <= jcapimin.c
Compile thumb : IrrAndroid <= jcapistd.c
Compile thumb : IrrAndroid <= jcarith.c
Compile thumb : IrrAndroid <= jccoefct.c
Compile thumb : IrrAndroid <= jccolor.c
Compile thumb : IrrAndroid <= jcdctmgr.c
Compile thumb : IrrAndroid <= jchuff.c
Compile thumb : IrrAndroid <= jcinit.c
Compile thumb : IrrAndroid <= jcmainct.c
Compile thumb : IrrAndroid <= jcmarker.c
Compile thumb : IrrAndroid <= jcmaster.c
Compile thumb : IrrAndroid <= jcomapi.c
Compile thumb : IrrAndroid <= jcparam.c
Compile thumb : IrrAndroid <= jcprepct.c
Compile thumb : IrrAndroid <= jcsample.c
Compile thumb : IrrAndroid <= jctrans.c
Compile thumb : IrrAndroid <= jdapimin.c
Compile thumb : IrrAndroid <= jdapistd.c
Compile thumb : IrrAndroid <= jdarith.c
Compile thumb : IrrAndroid <= jdatadst.c
Compile thumb : IrrAndroid <= jdatasrc.c
Compile thumb : IrrAndroid <= jdcoefct.c
Compile thumb : IrrAndroid <= jdcolor.c
Compile thumb : IrrAndroid <= jddctmgr.c
Compile thumb : IrrAndroid <= jdhuff.c
Compile thumb : IrrAndroid <= jdinput.c
Compile thumb : IrrAndroid <= jdmainct.c
Compile thumb : IrrAndroid <= jdmarker.c
Compile thumb : IrrAndroid <= jdmaster.c
Compile thumb : IrrAndroid <= jdmerge.c
Compile thumb : IrrAndroid <= jdpostct.c
Compile thumb : IrrAndroid <= jdsample.c
Compile thumb : IrrAndroid <= jdtrans.c
Compile thumb : IrrAndroid <= jerror.c
Compile thumb : IrrAndroid <= jfdctflt.c
Compile thumb : IrrAndroid <= jfdctfst.c
Compile thumb : IrrAndroid <= jfdctint.c
Compile thumb : IrrAndroid <= jidctflt.c
Compile thumb : IrrAndroid <= jidctfst.c
Compile thumb : IrrAndroid <= jidctint.c
Compile thumb : IrrAndroid <= jmemmgr.c
Compile thumb : IrrAndroid <= jmemnobs.c
Compile thumb : IrrAndroid <= jquant1.c
Compile thumb : IrrAndroid <= jquant2.c
Compile thumb : IrrAndroid <= jutils.c
Compile thumb : IrrAndroid <= png.c
Compile thumb : IrrAndroid <= pngerror.c
Compile thumb : IrrAndroid <= pngget.c
Compile thumb : IrrAndroid <= pngmem.c
Compile thumb : IrrAndroid <= pngpread.c
Compile thumb : IrrAndroid <= pngread.c
Compile thumb : IrrAndroid <= pngrio.c
Compile thumb : IrrAndroid <= pngrtran.c
Compile thumb : IrrAndroid <= pngrutil.c
Compile thumb : IrrAndroid <= pngset.c
Compile thumb : IrrAndroid <= pngtrans.c
Compile thumb : IrrAndroid <= pngwio.c
Compile thumb : IrrAndroid <= pngwrite.c
Compile thumb : IrrAndroid <= pngwtran.c
Compile thumb : IrrAndroid <= pngwutil.c
Compile thumb : IrrAndroid <= LzmaDec.c
Compile thumb : IrrAndroid <= adler32.c
Compile thumb : IrrAndroid <= compress.c
Compile thumb : IrrAndroid <= crc32.c
Compile thumb : IrrAndroid <= deflate.c
Compile thumb : IrrAndroid <= gzclose.c
Compile thumb : IrrAndroid <= gzlib.c
Compile thumb : IrrAndroid <= gzread.c
Compile thumb : IrrAndroid <= gzwrite.c
Compile thumb : IrrAndroid <= infback.c
Compile thumb : IrrAndroid <= inffast.c
Compile thumb : IrrAndroid <= inflate.c
Compile thumb : IrrAndroid <= inftrees.c
Compile thumb : IrrAndroid <= trees.c
Compile thumb : IrrAndroid <= uncompr.c
Compile thumb : IrrAndroid <= zutil.c
StaticLibrary : libstdc++.a
StaticLibrary : libIrrAndroid.a
SharedLibrary : libSFX.so
Link arguments : .linkargs
arm-linux-androideabi-g++.exe: error: missing filename after '-o'
/cygdrive/c/android-ndk-r8c-windows/android-ndk-r8c/build/core/build-binary.mk:390: recipe for target `obj/local/armeabi/libSFX.so' failed
make: *** [obj/local/armeabi/libSFX.so] Error 1
Have you an idea to fix this problem ?
Auradrummer
Posts: 260
Joined: Thu Apr 17, 2008 1:38 pm
Location: Brasopolis - Brazil

Re: Android Port

Post by Auradrummer »

Hi JLouisB

Seems that we have some problem in the makefile. Check paths.

Regards
Professional Software Developer and Amateur Game Designer ;-)
JLouisB
Posts: 67
Joined: Tue Jul 24, 2012 12:36 pm
Location: France

Re: Android Port

Post by JLouisB »

Thank's for your answer :)
I have check my makefile, try to change somes things, but I have always the same error...

Link arguments : .linkargs
arm-linux-androideabi-g++.exe: error: missing filename after '-o'
/cygdrive/c/android-ndk-r8c-windows/android-ndk-r8c/build/core/build-binary.mk:390: recipe for target `obj/local/armeabi/libSFX.so' failed

my .linkarg file
-Wl,-soname, -shared --sysroot=C:/android-ndk-r8c-windows/android-ndk-r8c/platforms/android-9/arch-arm
./obj/local/armeabi/objs/SFX/__/__/examples/08.SpecialFX/main.o
./obj/local/armeabi/libandroid_native_app_glue.a ./obj/local/armeabi/libIrrAndroid.a ./obj/local/armeabi/libstdc++.a c:/android-ndk-r8c-windows/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/libgcc.a -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -LC:/android-ndk-r8c-windows/android-ndk-r8c/platforms/android-9/arch-arm/usr/lib -llog -landroid -lEGL -lGLESv2 -lz -llog -lstdc++ -lc -lm -o
makefile
JNI_FOLDER := $(call my-dir)
 
include $(CLEAR_VARS)
 
LOCAL_MODULE    := SFX
 
### Add all source file names to be included in lib separated by a whitespace
LOCAL_SRC_FILES :=  ../../examples/08.SpecialFX/main.cpp
 
LOCAL_C_INCLUDES := \
                    ../../include
 
LOCAL_CFLAGS := -DBUILD_OGLES2 -g -D_DEBUG
 
ifeq ($(TARGET_ARCH_ABI),x86)
LOCAL_CFLAGS += -fno-stack-protector
endif
 
LOCAL_LDLIBS :=  \
                -llog \
                -landroid \
                -lEGL \
                -lGLESv2 \
                -lz
 
LOCAL_STATIC_LIBRARIES := \
                          android_native_app_glue \
                          IrrAndroid
 
include $(BUILD_SHARED_LIBRARY)
 
$(call import-module,android/native_app_glue)
IrrAndroid makefile
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := IrrAndroid

LOCAL_SRC_FILES := \
// All the Irrlicht source files.

LOCAL_C_INCLUDES := \
../../include

LOCAL_CFLAGS := -DBUILD_OGLES2 -g -D_DEBUG

#ifeq ($(TARGET_ARCH_ABI),x86)
#LOCAL_CFLAGS += -fno-stack-protector
#endif

################################################################
#following code is modified copy of `cmd-build-shared-library` from %NDK%/toolchains/arm-linux-androideabi-4.4.3/setup.mk
# it is modified to use separate .linkargs file for linker, because otherwise 'Argument list too long' error occurs.
# /dnick
define cmd-build-shared-library
$(eval linkargs := $(call host-path,$@.linkargs))
@ echo 'Link arguments : ' $(linkargs)
$(hide) echo \
-Wl,-soname,$(notdir $@) \
-shared \
--sysroot=$(call host-path,$(PRIVATE_SYSROOT)) \
> $(linkargs)

$(hide) $(foreach object, $(call host-path, $(PRIVATE_OBJECTS)), echo '$(object)' >> $(linkargs); )

$(hide) echo \
$(call link-whole-archives,$(PRIVATE_WHOLE_STATIC_LIBRARIES)) \
$(call host-path,\
$(PRIVATE_STATIC_LIBRARIES) \
$(PRIVATE_LIBGCC) \
$(PRIVATE_SHARED_LIBRARIES)) \
$(PRIVATE_LDFLAGS) \
$(PRIVATE_LDLIBS) \
-o $(call host-path,$@) \
>> $(linkargs)

$(hide) $(PRIVATE_CXX) @$(linkargs)
endef
################################################################

include $(BUILD_STATIC_LIBRARY)
magic_did
Posts: 1
Joined: Fri Nov 23, 2012 8:43 am

Re: Android Port

Post by magic_did »

Hi all,

I've tried an android port from

https://git.gitorious.org/irrlichtandro ... ndroid.git

but gave up cause I've got some unsolved issues on texture (texture not shown on sydney sample for example).

As mentioned in this thread, I try to use an official android port from SF, but I don't know how to build it. I've tried to call the ndk-build from /source/Irrlicht/Android folder but got this message :
 
$ ../../../../../../ndk-build
/cygdrive/d/Tools/IDE/android-ndk-windows/build/core/add-application.mk:128: Android NDK: WARNING: APP_PLATFORM android-9 is larger than android:minSdkVersion 8 in ./AndroidManifest.xml
Android NDK: There is no Android.mk under ./jni
Android NDK: If this is intentional  please define APP_BUILD_SCRIPT to point
Android NDK: to a valid NDK build script.
/cygdrive/d/Tools/IDE/android-ndk-windows/build/core/add-application.mk:175: *** Android NDK: Aborting...    . Arrêt.
 
Did I miss something ?

Thanks for your help !
Did
KyleS
Posts: 3
Joined: Mon Apr 08, 2013 6:37 pm

Re: Android Port

Post by KyleS »

I'm having the same problem as JLouisB when using reizencroft's code:

Code: Select all

error: missing filename after '-o'
I am using NDK r8e if that matters. The Android.mk file under source/Irrlicht seems strange to me. It seems to use a $@.linkargs FILE to evaluate arguments?

Code: Select all

$(eval linkargs := $(call host-path,$@.linkargs))
The code:

Code: Select all

-o $(call host-path,$@) \
seems to be the source the problem. It uses an ampersat so are we supposed to pass in some parameters? I simply ran a ndk-build on top of an example folder (e.g. 02.Quake3Map) and I'm receiving that error.

Any help would be appreicated. Thank you.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Android Port

Post by Nadro »

@KyleS
You can try official Android port. Build system is fixed now (if you will see some problems with the latest revision of ogl-es branch you can use rev4486, in last time we merged trunk to ogl-es branch and some files for Android platform may need fix eg. files related to AES).
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
KyleS
Posts: 3
Joined: Mon Apr 08, 2013 6:37 pm

Re: Android Port

Post by KyleS »

@Nadro
Can you point me to the right direction of the official Android port? I found the ogles branch here: https://irrlicht.svn.sourceforge.net/sv ... es/ogl-es/ , but the examples do not have Android make files.

Thanks!
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Android Port

Post by Nadro »

In rev4486 you can find make files for example no 8 (SpecialFX).
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
tinhtoitrangtay
Posts: 70
Joined: Tue Oct 28, 2008 12:59 pm

Re: Android Port

Post by tinhtoitrangtay »

We have a irrlicht and a ogl-es but why we don't merge ogl-es to irrlicht.
Post Reply