Hi Akhtar,
> However, now when i try to load a model (cessna.osg) it shows error: dlopen
> failed: library osgPlugins-3.4.0/osgdb_osg.so" not found.
> DynamicLibrary::failed loading "osgPlugins-3.4.0/osgdb_osg.so"
The compile instructions state to compile it all in static mode - also the
Thanks for the explanation - never digged so much into the linker behaviour
because usually libraries generate shared or static libraries consitently. This
way into the Java sandbox and how to link dependency code for it was new to me.
Still, in this case it was the only way I could make it
Hi,
In the meanwhile, I was working further on the topic - and cracked it this
time, I think. First and foremost, I use OpenSceneGraph 3.3.8 (still) and
compile it for Android, while having the necessary 3rdParty-folder inside the
OpenSceneGraph root folder (little suggestion: at some point
Today, I changed the strategy a bit: because the linker fails to reference the
functions, the NDK says there is the option to include the whole static
library, which I did by now (see Android.mk.txt file).
The new error does not find the base functions of the pre-compiled 3rd party
libraries:
As in my second post, I already tried that solution and still end up with the
same problem, so in the case of our plugins, this either doesn't seem to work
or I still have a mistake in the mk-file when building the local modules.
(probably the second :-) )
Cheers,
Christian
--
Hi,
I re-open the earlier question because the momentary questions fits into it: as
Rafa already mentions, until now the osgPlugins for jpeg, png, tiff, curl etc.
are not included in the package. For just rendering a .osg file that includes
such texture references, it is sufficient to put the
to b) from myself:
I read through the android doc, and it suggests to include the libraries as
prebuild, so I added lines like this (see Android.mk.txt for the full file):
OSG_SDK:=/media/christian/DATA/android-osg-sdk/gles1/${APP_ABI}
OSG_SDK_3RDPARTY_LIB_PATH:=${OSG_SDK}/obj/local/${APP_ABI}
A final remark on the question: I now implemented the memory-intensive method
as a static native-JNI method in C++, having a static function call in Java
left. First experiments with formerly crashing data indicate to really use C++
native methods for full-geometry modification processes (e.g.
Hi Rafa,
Thanks for the feedback - I'll have a look into the osgjni part again. The
extended wrappers work well until now, but the arrays (Vec2,3,4Array) I just
wrapped via their object pointer in osgAndroid, as all other classes. So, I can
add them to the upper-level geometry, but somwhere
Hi to everyone,
I currently extend the osgAndroid project (attempt) to do Texture Projection
and Mapping with mobile images. I already extended the codebase so to get
access to the geometry, Vector Arrays etc. of a loaded geometry. Now, the
geometry loading function looks as follows:
Code:
Hi,
So, I got to made it work. I re-compiled OSG with the ABI platform 15 in
separate gles1 and gles2 folder, then made to linking in the Android.mk of
osgAndroid. Then, I put the glider.osg from the OSG Datasets repository on the
device, I removed my Backround adaptation (which seems to
Hi,
I recompiled erverything, re-transmitted the models to the device, and modified
the code to change the background colour (to make sure the rest of the code is
working). Well, surprise surprise, the application runs and the background is
changes. unfortunately, the models are still not
Thanks for the encouragement!
The model I try to load there is the cow.osg from the OpenSceneGraph-Data 3.0.0
repository. I also tried it with cessna and robot, but the results were the
same ... I try in on wednesday again to extract the sole geometry.
Cheers,
Christian
--
Hi Jan,
Your last post suggests we are talking about different repositories. What I did
is compile osg 3.3.8 for Android using the cmake command line. Then, I use
Rafa's osgAndroid from github. This package includes 4 projects: osgAndroid,
osgjni, osgSimple and osgcamera. osgAndroid (at least
I went through the build process again and have to correct: osgAndroid already
comes with a jar-file. What the project and its ndk-build does is to generate a
libjniosg-gles1.so file that links to the static c++ libraries. HENCE, my
question would be now how the pre-compiled
yep Rafa, these are exactly the steps I saw already just minutes ago, but I did
not know that one can unpack the apk. I'll do taht and see if the files are
actually also there for me - thanks for the hint! I stay tuned to see if it
works :-)
Cheers,
Christian
--
Read this
Hi,
I still didn't get it to work. I spoke with an Android developer the recent
days, told him the problem. His suggestion: move the requested library files in
the libs-folder of your project, which is how the Android jni usually works.
Said and done, I created a folder in osgSimple called
Hi Jan,
I join your thinking. The compilation is done using the cmake line from Rafa
(see post Sat May 02, 2015 7:48 am), and because it compiles OSG as static, I
somehow doubt the compilation is wrong. That said, you may be right that the
library is registered incorrectly. Thing is: I have
Hi,
Thanks Rafa, I'm giving it a try! Could you also quickly tell me which osg
version you use ? The 3.3.3 from svn, or a different one ?
Cheers,
Christian
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63577#63577
Hi,
So, I needed to uncomment my submitted fix in GLDefines again, but with that, I
actually made it through the compilation (yeaha).
Now, it generates the jar, I start osgSimple (I also created the osgAndroid
folder on the phone and put the cessna in it) - buuut: the ap doesn't find the
Hi,
So, what I tried now is to revert to the old OpenSceneGraph. I was looking up
in the internet for the rand() error on the android platform, where people say
cstdlib needs to be explicitly included in the header that uses the function.
The stat64 error is an ample ifdef construct in
Hi,
I had a closer look to the errors and the Android.mk file.
osgdb_serializers_osgpresentation doesn't exist in my build (perhaps missing in
general - it wasn't in the 3.0.2 Android.mk file either, so that's new things
that is added and missing in the build).
leaving the following errors:
I posted the changes on the osg-submissions mailing list. I still have the
problem of building the JNI libraries using Eclipse. Rafael, perhaps you can
give me a hint on how to do that, or extend the readme on the project a bit
further so this last step is clear on howto-do ?
Thanks and
Hi,
Thank you for the clarification. I followed the example, which gave me this
output:
christian@PROMETHEUS:/media/christian/DATA/osgAndroid/org.openscenegraph.android$
${ANDROID_NDK}/ndk-build
[armeabi] Compile++ thumb: jniosg-gles1 = JNIosgViewer.cpp
jni/JNIosgViewer.cpp:23:28: fatal error:
Christian Kehl Christian.Kehl@... writes:
Hi Jan,
so, yeah, I added in line 35 of OpenSceneGraph/include/osg/GLDefines the line:
typedef GLfloat GLdouble;
Now GLES1 compiles. I get back to you with news after that is done.
So, compilation is done. Now, the readme of osgAndroid
Jan Ciger jan.ciger@... writes:
On Fri, Apr 24, 2015 at 12:09 AM, Christian Kehl Christian.Kehl at
uni.no wrote:just switching the -DOPENGL_PROFILE flag to GLES2 did have no
effect
on the error. So, I added the old flags to enforce GLES2 built.
successfully.
Um, if you force
Christian Kehl Christian.Kehl@... writes:
Rafa Gaitan rafa.gaitan at ... writes:
Hi Hi,
so, I downloaded osgAndroid, imported the projects into my Eclipse. I
like this more elegant way of jni-wrapping - comes close to what I've
seen in OpenCV when compiling it for mobile.
Then, I needed
Rafa Gaitan rafa.gaitan@... writes:
Hello Christian,
Just to clarify a little bit the things:
- All the versions until 3.3.2 (I think that's the last one), should be
compiled using the old system (generating the Android.mk files through cmake)
- Newer version must use the new
Christian Kehl Christian.Kehl@... writes:
Jordi Torres jtorresfabra at ... writes:
Hi Christian,
I just compiled OSG for Android and executed the example with the fresh
build for GLES1 without major problems.
What version of OSG are you running? Does the example shipped
Jordi Torres jtorresfabra@... writes:
Hi Christian,
I just compiled OSG for Android and executed the example with the fresh
build for GLES1 without major problems.
What version of OSG are you running? Does the example shipped with OSG
works for you? Are you compiling using the toolchain?
Jan Ciger jan.ciger@... writes:
On Fri, Apr 17, 2015 at 1:26 PM, Christian Kehl Christian.Kehl at
uni.no wrote:
checked - only .a files available. No shared objects/dynamic libraries
build, all static.
Then I am really at the end with ideas :( Perhaps Jordi will know what
could
Jan Ciger jan.ciger@... writes:
On Thu, Apr 16, 2015 at 3:33 PM, Christian Kehl Christian.Kehl at
uni.no wrote:
How do I make sure it uses the .a-files (static libraries) ?
Check whether you have any .so files generated for OSG. You shouldn't have
any, only .a libraries.
J
Jan Ciger jan.ciger@... writes:
Hello Christian,
On Wed, Apr 15, 2015 at 4:15 PM, Christian Kehl
christian.kehl-fu+0ignv...@public.gmane.org wrote:
Hi,
I had a look on the OsgMainApp.hpp, where these plugin links are all active
(looks as follows):
//Static plugins Macro
Jan Ciger jan.ciger@... writes:
On Mon, Apr 13, 2015 at 11:16 AM, Christian Kehl Christian.Kehl at
uni.no wrote:Hi Jordi,
I encounter the same problem in the same situation. I've build OSG for
Android in static mode (only way it even compiles), all static libraries
(for me: .a-files
Jan Ciger jan.ciger@... writes:
On Mon, Apr 13, 2015 at 11:16 AM, Christian Kehl Christian.Kehl at
uni.no wrote:Hi Jordi,
I encounter the same problem in the same situation. I've build OSG for
Android in static mode (only way it even compiles), all static libraries
(for me: .a-files
Hi Jordi,
I encounter the same problem in the same situation. I've build OSG for
Android in static mode (only way it even compiles), all static libraries
(for me: .a-files) are in my local installation folder, together with the
libraries for armeabi and armeabi-v7a from the Android Native
36 matches
Mail list logo