<div dir="ltr"><div><div>Hi.<br><br></div>I've successfully used ADT bundle (year 2014) to build OSG 3.0.1 (year 2011) GLES2 example, but AndroidStudio (year 2016) can't build it.<br></div><div>It's not clear what causes it, but I will continue to investigate.<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-20 21:30 GMT+07:00 Jordi Torres <span dir="ltr"><<a href="mailto:jtorresfabra@gmail.com" target="_blank">jtorresfabra@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Michael, <br></div><div><br></div><div>I'm sorry I don't have the time now to dig into the problems you have. But I strongly recommend you base your work in <a href="http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/178-building-openscenegraph-for-android-3-4" target="_blank">http://www.openscenegraph.<wbr>org/index.php/documentation/<wbr>platform-specifics/android/<wbr>178-building-openscenegraph-<wbr>for-android-3-4</a>, I've tested it a number of times with success. Then you can make use of osgAndroid if you target GL_ES 1 ( <a href="https://github.com/miragetech/osgAndroid" target="_blank">https://github.com/miragetech/<wbr>osgAndroid</a> ). If GL_ES 2 is a must you are on your own, but I tested it with success some time ago. </div><div><br></div><div>Cheers. </div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2016-10-20 15:45 GMT+02:00 michael kapelko <span dir="ltr"><<a href="mailto:kornerr@gmail.com" target="_blank">kornerr@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div></div>Since I can't find the starting point for Android with latest OSG, I'll try to dive back into year 2011 to the point where it first worked for <span>Jorge Izquierdo Ciges who wrote the first Android docs: <a href="http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/44-building-openscenegraph-for-android-3-0-3-0-1" target="_blank">http://www.openscenegraph.org/<wbr>index.php/documentation/platfo<wbr>rm-specifics/android/44-buildi<wbr>ng-openscenegraph-for-android-<wbr>3-0-3-0-1</a><br></span></div><div><span>I'll recreate mid-2011 development environment and challenge my luck.<br></span></div><span></span></div><span></span></div><div class="m_-7614013817890542227HOEnZb"><div class="m_-7614013817890542227h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-10-20 1:38 GMT+07:00 Robert Osfield <span dir="ltr"><<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Michael,<br>
<br>
I haven't done any development under Android myself so can't comment<br>
on the specifics. A few general comments might help a bit perhaps.<br>
Hopefully others in the community with Android experience will be chip<br>
in with specifics.<br>
<br>
The osgViewer library doesn't have any Android support built into it,<br>
so it's not possible to just use osgViewer like you do on the desktop.<br>
Instead you'll need to have create an GLES graphics window from within<br>
Android and then get osgViewer to render to this via the<br>
GraphicsWindowEmbedded adapter. This is the route that the<br>
OpenSceneGraph/examples/osgAnd<wbr>oidExampleGLES1/GLES2 take, this is what<br>
the setUpViewerAsEmbeddedInWindow(<wbr>..) call will be doing.<br>
<br>
Robert.<br>
<div><div class="m_-7614013817890542227m_-3808467540844648643h5"><br>
<br>
On 19 October 2016 at 15:26, michael kapelko <<a href="mailto:kornerr@gmail.com" target="_blank">kornerr@gmail.com</a>> wrote:<br>
> Hi.<br>
> I'm trying to make a minimal OSG application to work under Android.<br>
> I closely follow GLES2 example.<br>
> Upon viewer->realize() call I get the following errors:<br>
><br>
> I/OSGLog: Warning:<br>
> GraphicsContext::WindowingSyst<wbr>emInterfaces::getWindowingSyst<wbr>emInterface()<br>
> failed, no interfaces available.<br>
> I/OSGLog: AcrossAllScreens::configure() : Error, no WindowSystemInterface<br>
> available, cannot create windows.<br>
> I/OSGLog: Viewer::realize() - failed to set up any windows<br>
><br>
> This leads to a viewer without instantiated Camera.<br>
><br>
> Is it normal to have those errors? Is there any windowing interface for<br>
> Android?<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> osg-users mailing list<br>
> <a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph<wbr>.org</a><br>
> <a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
><br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph<wbr>.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
</blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph<wbr>.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_-7614013817890542227gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Jordi Torres<br><br><br></div></div>
</font></span></div></div>
<br>______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
<br></blockquote></div><br></div>