OgreJNI sample don't find a lib

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
josemi
Gnoblar
Posts: 20
Joined: Tue Jun 25, 2013 8:54 am
Location: Spain

OgreJNI sample don't find a lib

Post 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");"
robert82h
Gnoblar
Posts: 23
Joined: Thu Jun 13, 2013 5:41 pm
x 7

Re: OgreJNI sample don't find a lib

Post by robert82h »

Try to locate the file libstdc++.a on your machine to see what the path should be like
josemi
Gnoblar
Posts: 20
Joined: Tue Jun 25, 2013 8:54 am
Location: Spain

Re: OgreJNI sample don't find a lib

Post 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 :( :(
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: OgreJNI sample don't find a lib

Post by Wolfmanfx »

Do you use the precompiled Android-SDK?
josemi
Gnoblar
Posts: 20
Joined: Tue Jun 25, 2013 8:54 am
Location: Spain

Re: OgreJNI sample don't find a lib

Post 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
josemi
Gnoblar
Posts: 20
Joined: Tue Jun 25, 2013 8:54 am
Location: Spain

Re: OgreJNI sample don't find a lib

Post by josemi »

Is there any repository with the version for android already built? :P
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: OgreJNI sample don't find a lib

Post by Wolfmanfx »

josemi
Gnoblar
Posts: 20
Joined: Tue Jun 25, 2013 8:54 am
Location: Spain

Re: OgreJNI sample don't find a lib

Post 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?
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: OgreJNI sample don't find a lib

Post by Wolfmanfx »

As i see in the first thread - you did not build ogre because the system libs are generated during the full build.
josemi
Gnoblar
Posts: 20
Joined: Tue Jun 25, 2013 8:54 am
Location: Spain

Re: OgreJNI sample don't find a lib

Post 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
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: OgreJNI sample don't find a lib

Post 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.
josemi
Gnoblar
Posts: 20
Joined: Tue Jun 25, 2013 8:54 am
Location: Spain

Re: OgreJNI sample don't find a lib

Post 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!
josemi
Gnoblar
Posts: 20
Joined: Tue Jun 25, 2013 8:54 am
Location: Spain

Re: OgreJNI sample don't find a lib

Post 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
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: OgreJNI sample don't find a lib

Post by Wolfmanfx »

Yes its a minimal example
Post Reply