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 » Wed Jul 03, 2013 8:11 am

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");"
0 x

robert82h
Gnoblar
Posts: 23
Joined: Thu Jun 13, 2013 5:41 pm

Re: OgreJNI sample don't find a lib

Post by robert82h » Wed Jul 03, 2013 10:01 am

Try to locate the file libstdc++.a on your machine to see what the path should be like
0 x

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 » Wed Jul 03, 2013 10:26 am

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 :( :(
0 x

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

Re: OgreJNI sample don't find a lib

Post by Wolfmanfx » Wed Jul 03, 2013 10:27 am

Do you use the precompiled Android-SDK?
0 x

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 » Wed Jul 03, 2013 10:43 am

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
0 x

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 » Wed Jul 03, 2013 1:08 pm

Is there any repository with the version for android already built? :P
0 x

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

Re: OgreJNI sample don't find a lib

Post by Wolfmanfx » Wed Jul 03, 2013 1:25 pm

0 x

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 » Thu Jul 04, 2013 8:39 am

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?
0 x

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

Re: OgreJNI sample don't find a lib

Post by Wolfmanfx » Thu Jul 04, 2013 8:55 am

As i see in the first thread - you did not build ogre because the system libs are generated during the full build.
0 x

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 » Thu Jul 04, 2013 10:22 am

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
0 x

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

Re: OgreJNI sample don't find a lib

Post by Wolfmanfx » Thu Jul 04, 2013 10:35 am

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.
0 x

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 » Thu Jul 04, 2013 12:19 pm

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!
0 x

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 » Fri Jul 05, 2013 9:37 am

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
0 x

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

Re: OgreJNI sample don't find a lib

Post by Wolfmanfx » Fri Jul 05, 2013 9:41 am

Yes its a minimal example
0 x

Post Reply