Page 1 of 1

OgreJNI sample don't find a lib

Posted: Wed Jul 03, 2013 8:11 am
by josemi
Hello, I have built Ogre for android (with some warnings) and I'm trying to test OgreJni sample on my device but when I compile c++ part with ndk-build I got an error saying this:
Image

I have been looking for that path and I can't find anything... what can I do?

PD: Obviously the launch of the app crash and say that there are a error loading a library at "System.loadLibrary("OgreJNI");"

Re: OgreJNI sample don't find a lib

Posted: Wed Jul 03, 2013 10:01 am
by robert82h
Try to locate the file libstdc++.a on your machine to see what the path should be like

Re: OgreJNI sample don't find a lib

Posted: Wed Jul 03, 2013 10:26 am
by josemi
I did that, and I found many files with that name (in Android NDK and in Ogre's Android dependencies) but if y make the path ../systemlibs/armeabi" and put them on it, the command ndk show lots of fails at compiling (Undefined references), so I though that this is not a solution :(

Someone have any idea? I need help :( :(

Re: OgreJNI sample don't find a lib

Posted: Wed Jul 03, 2013 10:27 am
by Wolfmanfx
Do you use the precompiled Android-SDK?

Re: OgreJNI sample don't find a lib

Posted: Wed Jul 03, 2013 10:43 am
by josemi
Wolfmanfx wrote:Do you use the precompiled Android-SDK?
I'm using the Android SDK from ADT Bundle (http://developer.android.com/sdk/index.html)
I'm new to Ogre and I don't know if this is related o if I should use another SDK

PD: If I'm not mistaken that is what the cMake quick start guide says

Re: OgreJNI sample don't find a lib

Posted: Wed Jul 03, 2013 1:08 pm
by josemi
Is there any repository with the version for android already built? :P

Re: OgreJNI sample don't find a lib

Posted: Wed Jul 03, 2013 1:25 pm
by Wolfmanfx

Re: OgreJNI sample don't find a lib

Posted: Thu Jul 04, 2013 8:39 am
by josemi
Well, first, sorry for my ignorance and thanks for your patience! :P I had downloaded the sdk from the link but the examples there are 100% native, and I was looking for some example where I could use android events and java code to make an app. Thats the reason why I'm build Ogre from source, because it have a OgreJNI example that I think is what I am wanting, and the SDK doesn't have it :(
Anyway, There are any guide or tutorial to build an app with the Android sdk?

Re: OgreJNI sample don't find a lib

Posted: Thu Jul 04, 2013 8:55 am
by Wolfmanfx
As i see in the first thread - you did not build ogre because the system libs are generated during the full build.

Re: OgreJNI sample don't find a lib

Posted: Thu Jul 04, 2013 10:22 am
by josemi
Wolfmanfx wrote:As i see in the first thread - you did not build ogre because the system libs are generated during the full build.
I have some warnings when building Ogre, but when I saw the folders and files created, I thought that I compile well. Maybe it only compiled some parts and forgot others, here is the output when I compile Ogre:
Image
Image
Image

Re: OgreJNI sample don't find a lib

Posted: Thu Jul 04, 2013 10:35 am
by Wolfmanfx
this the configure step and as you see it went wrong it can not find the android deps - plz check the cmake guide again your adoing something there.

Re: OgreJNI sample don't find a lib

Posted: Thu Jul 04, 2013 12:19 pm
by josemi
Well, I think that this time we have done well! Thanks everybody for your help, this is my new output after building:
Image

buuuut I have another problem :P now when I import OgreJNI to eclipse and try to use ndk-build in the folder, there is no problem with libraries not found, but I have lots of errors like this:
Image

PD: Sorry about this mess :( and thanks again!

Re: OgreJNI sample don't find a lib

Posted: Fri Jul 05, 2013 9:37 am
by josemi
Ok ok, I forgot to "Nmake" :P sorry sorry!

Thanks again people, now it is working and it is thank to you all :)

Now when I build the OgreJNI it shows a big red window, It is normal? :P

Re: OgreJNI sample don't find a lib

Posted: Fri Jul 05, 2013 9:41 am
by Wolfmanfx
Yes its a minimal example