OgreJNI sample don't find a lib
-
- Gnoblar
- Posts: 20
- Joined: Tue Jun 25, 2013 8:54 am
- Location: Spain
OgreJNI sample don't find a lib
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:
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");"
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");"
-
- Gnoblar
- Posts: 23
- Joined: Thu Jun 13, 2013 5:41 pm
- x 7
Re: OgreJNI sample don't find a lib
Try to locate the file libstdc++.a on your machine to see what the path should be like
-
- Gnoblar
- Posts: 20
- Joined: Tue Jun 25, 2013 8:54 am
- Location: Spain
Re: OgreJNI sample don't find a lib
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
Someone have any idea? I need help
- Wolfmanfx
- OGRE Team Member
- Posts: 1525
- Joined: Fri Feb 03, 2006 10:37 pm
- Location: Austria - Leoben
- x 99
- Contact:
-
- Gnoblar
- Posts: 20
- Joined: Tue Jun 25, 2013 8:54 am
- Location: Spain
Re: OgreJNI sample don't find a lib
I'm using the Android SDK from ADT Bundle (http://developer.android.com/sdk/index.html)Wolfmanfx wrote:Do you use the precompiled Android-SDK?
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
-
- Gnoblar
- Posts: 20
- Joined: Tue Jun 25, 2013 8:54 am
- Location: Spain
Re: OgreJNI sample don't find a lib
Is there any repository with the version for android already built?
- Wolfmanfx
- OGRE Team Member
- Posts: 1525
- Joined: Fri Feb 03, 2006 10:37 pm
- Location: Austria - Leoben
- x 99
- Contact:
-
- Gnoblar
- Posts: 20
- Joined: Tue Jun 25, 2013 8:54 am
- Location: Spain
Re: OgreJNI sample don't find a lib
Well, first, sorry for my ignorance and thanks for your patience! 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?
Anyway, There are any guide or tutorial to build an app with the Android sdk?
- Wolfmanfx
- 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
As i see in the first thread - you did not build ogre because the system libs are generated during the full build.
-
- Gnoblar
- Posts: 20
- Joined: Tue Jun 25, 2013 8:54 am
- Location: Spain
Re: OgreJNI sample don't find a lib
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:Wolfmanfx wrote:As i see in the first thread - you did not build ogre because the system libs are generated during the full build.
- Wolfmanfx
- 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
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.
-
- Gnoblar
- Posts: 20
- Joined: Tue Jun 25, 2013 8:54 am
- Location: Spain
Re: OgreJNI sample don't find a lib
Well, I think that this time we have done well! Thanks everybody for your help, this is my new output after building:
buuuut I have another problem 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:
PD: Sorry about this mess and thanks again!
buuuut I have another problem 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:
PD: Sorry about this mess and thanks again!
-
- Gnoblar
- Posts: 20
- Joined: Tue Jun 25, 2013 8:54 am
- Location: Spain
Re: OgreJNI sample don't find a lib
Ok ok, I forgot to "Nmake" 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?
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?
- Wolfmanfx
- OGRE Team Member
- Posts: 1525
- Joined: Fri Feb 03, 2006 10:37 pm
- Location: Austria - Leoben
- x 99
- Contact: