Browse Source

Back-port 2016 october recap

pull/1/head
parent
commit
cdf2b55611
12 changed files with 593 additions and 2 deletions
  1. BIN
      2016-11-19_2016-october-recap.png
  2. +158
    -0
      2016-october-recap-ru.html
  3. +157
    -0
      2016-october-recap.html
  4. +4
    -0
      archives.html
  5. +20
    -0
      author/opensource-game-studio2.html
  6. +20
    -0
      category/news2.html
  7. +62
    -1
      feeds/all.atom.xml
  8. +31
    -1
      feeds/news.atom.xml
  9. +20
    -0
      index2.html
  10. +61
    -0
      pelican/content/articles/2016-11-19_2016-october-recap-ru.md
  11. +60
    -0
      pelican/content/articles/2016-11-19_2016-october-recap.md
  12. BIN
      pelican/content/images/2016-11-19_2016-october-recap.png

BIN
2016-11-19_2016-october-recap.png View File

Before After
Width: 1024  |  Height: 768  |  Size: 496KB

+ 158
- 0
2016-october-recap-ru.html View File

@@ -0,0 +1,158 @@
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<!-- Set the viewport width to device width for mobile -->
<meta name="viewport" content="width=device-width" />

<title>Октябрь 2016 кратко</title>

<link rel="stylesheet" href="http://opengamestudio.org/theme/css/normalize.css" />
<link rel="stylesheet" href="http://opengamestudio.org/theme/css/foundation.min.css" />
<link rel="stylesheet" href="http://opengamestudio.org/theme/css/style.css" />
<link rel="stylesheet" href="http://opengamestudio.org/theme/css/pygments.css" />
<script src="http://opengamestudio.org/theme/js/custom.modernizr.js"></script>

<!-- So Firefox can bookmark->"abo this site" -->
<link href="feeds/all.atom.xml" rel="alternate" title="Opensource Game Studio" type="application/atom+xml">

</head>

<body>

<!-- Nav Bar -->
<nav>

<!-- Show menu items and pages -->
<div class="row">
<div class="large-12 columns top-bar">
<h1><a href="http://opengamestudio.org">Opensource Game Studio</a></h1>
</div>
</div>
<div class="row top-menu">
<div class="large-12 columns">
<a href="/pages/projects.html" class="menu-button secondary">Projects</a>
<a href="/pages/about.html" class="menu-button secondary">About</a>

</div>
</div>
</nav>
<!-- End Nav -->


<!-- Main Page Content and Sidebar -->
<div class="row">

<!-- Main Blog Content -->
<div class="large-9 columns">
<article>
<header>
<h3 class="article-title"><a href="http://opengamestudio.org/2016-october-recap-ru.html" rel="bookmark"
title="Permalink to Октябрь 2016 кратко">Октябрь 2016 кратко</a></h3>
</header>

<h6 class="subheader" title="2016-11-19T00:00:00+03:00">Сб 19 Ноябрь 2016
<a class="button secondary small translation-button" href="http://opengamestudio.org/2016-october-recap.html">en</a>

</h6> <p><img alt="October recap" src="http://opengamestudio.org/2016-11-19_2016-october-recap.png" /></p>
<p>Эта статья описывает, как мы потратили месяц на сборку OpenSceneGraph (OSG) под Android: первая попытка собрать OSG, поиск альтернатив OSG и успех в сборке OSG.</p>
<p><strong>Первая попытка собрать OSG.</strong></p>
<p>Не имея опыта разработки под Android, мы взяли последнюю версию Android Studio и начали проходить самоучители для начинающих.
Java далась легко. Всё работало из коробки. Затем наступил черёд C++ и проблем.</p>
<p><strong>CMake. </strong>Android Studio для работы с C++ использует собственную версию CMake, которая конфликтует с системной. Для нас это было явным сигналом о необходимости подготовить отдельное окружение разработки специально под Android.</p>
<p><strong>KVM. </strong>Мы установили Ubuntu на VirtualBox. Всё шло замечательно до того момента, пока мы не запустили эмулятор Android. Оказалось, что VirtualBox не может запустить эмулятор, т.к. виртуальная машина не предоставляет виртуализацию внутри уже виртуализированного окружения.</p>
<p><strong>Chroot для Android. </strong>Вспомнив о положительном опыте работы с chroot для сборки OGS Editor, мы решили поместить окружение разработки Android в chroot. После небольших настроек мы сумели запустить эмулятор Android и собрать проект C++.</p>
<p><strong>OSG. </strong>К этому моменту мы считали, что собрать OSG не составит труда, но не тут-то было. Всё, что мы получили, - это падение.
Предположив, что мы ошиблись где-то при первой сборке, мы решили пересобрать OSG ещё раз. И снова получили ту же ошибку.
Поиск решения проблемы не дал результатов.
Никто не помог нам в списке рассылок OSG.</p>
<p>Мы были в отчаянии.</p>
<p><strong>Поиск альтернатив OSG.</strong></p>
<p>Раз сообщество OSG нам не помогло, мы решили поискать альтернативный открытый проект, который мог решить наши задачи на Android (и, возможно, на других платформах).</p>
<p>Такой проект мы нашли: <a href="http://babylonhx.gamestudiohx.com/">BabylonHX</a>. Домашняя страница выглядела замечательно: она отображала WebGL в фоне!
Промелькнула мысль, что мы наконец нашли алмаз. К сожалению, пример на домашней странице просто не работал.</p>
<p>Думаем, вы понимаете наши чувства на тот момент.</p>
<p><strong>Успех в сборке OSG.</strong></p>
<p>Мы осознали, что никто за нас не запустит OSG на Android. Нужно было сделать это самостоятельно.</p>
<p>Потеряв доверие к очень короткой <a href="http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/178-building-openscenegraph-for-android-3-4">документации OSG 3.4</a> по сборке для Android, мы решили использовать <a href="http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/44-building-openscenegraph-for-android-3-0-3-0-1">первоначальную документацию OSG 3.0</a>.
В ходе следования ей мы наткнулись на мёртвую ссылку, которая должна была содержать зависимости.
Поиск альтернативной ссылки вывел нас на <a href="https://xinyustudio.wordpress.com/2013/09/24/install-osg-for-android-on-ubuntu-13-04-step-by-step-tutorials/">самоучитель 2013 года</a> по сборке OSG 3.0 для Android.</p>
<p>После прохождения самоучителя мы наконец смогли запустить OSG под Android!
Тем не менее, был нюанс: используемые в самоучителе версии OSG и средств разработки Android были древними.
В течение нескольких дней мы постепенно довели версии OSG и средств разработки Android до последних.</p>
<p>В ходе этого обновления мы узнали о двух вещах, помешавших нам запустить OSG с первого раза:</p>
<ul>
<li>Изменение заголовков Android API в NDK r12</li>
<li>OSG работает под Android лишь в виде статической библиотеки</li>
</ul>
<p>На этом мы заканчиваем описание того, как мы потратили месяц на сборку OSG под Android: первая попытка собрать OSG, поиск альтернатив OSG и успех в сборке OSG.</p>
<p class="subheader">Category: <a href="http://opengamestudio.org/category/news.html">News</a>

</p>



</article>
</div>
<!-- End Main Content -->

<!-- Sidebar -->
<aside class="large-3 columns">
<!--k
<h5 class="sidebar-title">Site</h5>
<ul class="side-nav">
<li><a href="http://opengamestudio.org/archives.html">Archives</a>
<li><a href="http://opengamestudio.org/tags.html">Tags</a>


<li><a href="http://opengamestudio.org/feeds/all.atom.xml" rel="alternate">Atom feed</a></li>
</ul>

<h5 class="sidebar-title">Categories</h5>
<ul class="side-nav">
<li><a href="http://opengamestudio.org/category/news.html">News</a></li>
</ul>
-->


<h5 class="sidebar-title">Ads</h5>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ogs2 -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-4473792248813084"
data-ad-slot="9024247127"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

</aside> <!-- End Sidebar -->

</div> <!-- End Main Content and Sidebar -->


<!-- Footer -->
<footer class="row">
<div class="large-12 columns">
<hr />
<div class="row">
<div class="large-7 columns">
<p>Proudly powered by <a href="http://getpelican.com">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.</p>
</div>
</div>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-3773114-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</footer>

+ 157
- 0
2016-october-recap.html View File

@@ -0,0 +1,157 @@
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<!-- Set the viewport width to device width for mobile -->
<meta name="viewport" content="width=device-width" />

<title>October 2016 recap</title>

<link rel="stylesheet" href="http://opengamestudio.org/theme/css/normalize.css" />
<link rel="stylesheet" href="http://opengamestudio.org/theme/css/foundation.min.css" />
<link rel="stylesheet" href="http://opengamestudio.org/theme/css/style.css" />
<link rel="stylesheet" href="http://opengamestudio.org/theme/css/pygments.css" />
<script src="http://opengamestudio.org/theme/js/custom.modernizr.js"></script>

<!-- So Firefox can bookmark->"abo this site" -->
<link href="feeds/all.atom.xml" rel="alternate" title="Opensource Game Studio" type="application/atom+xml">

</head>

<body>

<!-- Nav Bar -->
<nav>

<!-- Show menu items and pages -->
<div class="row">
<div class="large-12 columns top-bar">
<h1><a href="http://opengamestudio.org">Opensource Game Studio</a></h1>
</div>
</div>
<div class="row top-menu">
<div class="large-12 columns">
<a href="/pages/projects.html" class="menu-button secondary">Projects</a>
<a href="/pages/about.html" class="menu-button secondary">About</a>

</div>
</div>
</nav>
<!-- End Nav -->


<!-- Main Page Content and Sidebar -->
<div class="row">

<!-- Main Blog Content -->
<div class="large-9 columns">
<article>
<header>
<h3 class="article-title"><a href="http://opengamestudio.org/2016-october-recap.html" rel="bookmark"
title="Permalink to October 2016 recap">October 2016 recap</a></h3>
</header>

<h6 class="subheader" title="2016-11-19T00:00:00+03:00">Сб 19 Ноябрь 2016
<a class="button secondary small translation-button" href="http://opengamestudio.org/2016-october-recap-ru.html">ru</a>

</h6> <p><img alt="October recap" src="http://opengamestudio.org/2016-11-19_2016-october-recap.png" /></p>
<p>This article describes how we spent a month building OpenSceneGraph (OSG) for Android: the first attempt to build OSG, the search for OSG alternatives, and the success in building OSG.</p>
<p><strong>First attempt to build OSG.</strong></p>
<p>Having no prior knowledge of Android development, we grabbed the latest Android Studio and started doing beginner tutorials.
We passed Java part pretty fast. Everything worked out of the box. Then came C++ part and related problems.</p>
<p><strong>CMake. </strong>To work with C++, Android Studio uses custom CMake, which conflicts with the system one. This was a clear indication that we had to set up a separate development environment specifically for Android.</p>
<p><strong>KVM. </strong>We got Ubuntu under VirtualBox installed. All went fine until we tried to use Android Emulator. Turned out, VirtualBox could not run Android Emulator, because a virtual machine cannot provide kernel virtualization inside already virtualized environment.</p>
<p><strong>Chroot for Android. </strong>Since we had a successful experience with chroot to build OGS Editor before, we decided to place Android development environment into chroot. With minor tweaking, we could finally run Android Emulator and build C++ project.</p>
<p><strong>OSG. </strong>Building OSG seemed like a piece of cake at the time. However, all we got was a crash. Thinking that we got it wrong the first time, we tried to rebuild OSG once again. And the same crash again.
Searching for the problem did not reveal any hint.
Nobody helped us at the OSG mailing list.</p>
<p>We were in despair.</p>
<p><strong>The search for OSG alternatives.</strong></p>
<p>Since OSG community did not help us, we decided to search for an alternative open source project to fit our Android needs (and may be more).</p>
<p>And we found it: <a href="http://babylonhx.gamestudiohx.com/">BabylonHX</a>. The home page looked awesome: it rendered WebGL in the background!
We thought we finally found the gem we were looking for. However, the example on the home page simply did not work.</p>
<p>You can probably understand our feelings at the time.</p>
<p><strong>The success in building OSG.</strong></p>
<p>We realized nobody would make OSG work under Android for us. We had to do it ourselves.</p>
<p>Since <a href="http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/178-building-openscenegraph-for-android-3-4">OSG 3.4 document</a> on building for Android was very short, we no longer trusted it and headed to <a href="http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/44-building-openscenegraph-for-android-3-0-3-0-1">original OSG 3.0 document</a>.
While following it, we faced a dead link to third party dependencies.
The search for an alternative download link lead us to a <a href="https://xinyustudio.wordpress.com/2013/09/24/install-osg-for-android-on-ubuntu-13-04-step-by-step-tutorials/">2013 tutorial</a> on building OSG 3.0 for Android.</p>
<p>After following the tutorial, we finally got OSG to run under Android!
But there was a nuance: both OSG and Android tools used in the tutorial were ancient.
In a few days, we gradually updated both OSG and Android tools to their latest versions.</p>
<p>During the update process, we learned two things that prevented us from having OSG to work in the first place:</p>
<ul>
<li>Android API headers changed in NDK r12</li>
<li>OSG only works as a static library under Android</li>
</ul>
<p>That's it for describing how we spent the month building OSG for Android: the first attempt to build OSG, the search for OSG alternatives, and the success in building OSG.</p>
<p class="subheader">Category: <a href="http://opengamestudio.org/category/news.html">News</a>

</p>



</article>
</div>
<!-- End Main Content -->

<!-- Sidebar -->
<aside class="large-3 columns">
<!--k
<h5 class="sidebar-title">Site</h5>
<ul class="side-nav">
<li><a href="http://opengamestudio.org/archives.html">Archives</a>
<li><a href="http://opengamestudio.org/tags.html">Tags</a>


<li><a href="http://opengamestudio.org/feeds/all.atom.xml" rel="alternate">Atom feed</a></li>
</ul>

<h5 class="sidebar-title">Categories</h5>
<ul class="side-nav">
<li><a href="http://opengamestudio.org/category/news.html">News</a></li>
</ul>
-->


<h5 class="sidebar-title">Ads</h5>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ogs2 -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-4473792248813084"
data-ad-slot="9024247127"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

</aside> <!-- End Sidebar -->

</div> <!-- End Main Content and Sidebar -->


<!-- Footer -->
<footer class="row">
<div class="large-12 columns">
<hr />
<div class="row">
<div class="large-7 columns">
<p>Proudly powered by <a href="http://getpelican.com">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.</p>
</div>
</div>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-3773114-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</footer>

+ 4
- 0
archives.html View File

@@ -97,6 +97,10 @@
<td>Чт 15 Декабрь 2016</td>
<td><a href='2016-november-recap.html'>November 2016 recap</a></td>
</tr>
<tr>
<td>Сб 19 Ноябрь 2016</td>
<td><a href='2016-october-recap.html'>October 2016 recap</a></td>
</tr>
</tbody>
</table>



+ 20
- 0
author/opensource-game-studio2.html View File

@@ -83,6 +83,26 @@
<hr class="gradient"/>
</article>



<article>
<a href="http://opengamestudio.org/2016-october-recap.html"><h3 class="article-title">October 2016 recap</h3></a>
<h6 class="subheader" title="2016-11-19T00:00:00+03:00">Сб 19 Ноябрь 2016
<a class="button secondary small translation-button" href="http://opengamestudio.org/2016-october-recap-ru.html">ru</a>

</h6><p><img alt="October recap" src="http://opengamestudio.org/2016-11-19_2016-october-recap.png" /></p>
<p>This article describes how we spent a month building OpenSceneGraph (OSG) for Android: the first attempt to build OSG, the search for OSG alternatives, and the success in building OSG.</p>
<p><strong>First attempt to build OSG.</strong></p>
<p>Having no prior knowledge of Android development, we grabbed the latest Android Studio and started ...</p><p class="subheader">Category: <a href="http://opengamestudio.org/category/news.html">News</a>

</p>


<a class="button radius secondary small right" href="http://opengamestudio.org/2016-october-recap.html">Read More</a>
<hr class="gradient"/>
</article>

<!-- /#posts-list -->
<div class="pagination-centered">
<h6 class="subheader">Page 2 of 2</h6>


+ 20
- 0
category/news2.html View File

@@ -83,6 +83,26 @@
<hr class="gradient"/>
</article>



<article>
<a href="http://opengamestudio.org/2016-october-recap.html"><h3 class="article-title">October 2016 recap</h3></a>
<h6 class="subheader" title="2016-11-19T00:00:00+03:00">Сб 19 Ноябрь 2016
<a class="button secondary small translation-button" href="http://opengamestudio.org/2016-october-recap-ru.html">ru</a>

</h6><p><img alt="October recap" src="http://opengamestudio.org/2016-11-19_2016-october-recap.png" /></p>
<p>This article describes how we spent a month building OpenSceneGraph (OSG) for Android: the first attempt to build OSG, the search for OSG alternatives, and the success in building OSG.</p>
<p><strong>First attempt to build OSG.</strong></p>
<p>Having no prior knowledge of Android development, we grabbed the latest Android Studio and started ...</p><p class="subheader">Category: <a href="http://opengamestudio.org/category/news.html">News</a>

</p>


<a class="button radius secondary small right" href="http://opengamestudio.org/2016-october-recap.html">Read More</a>
<hr class="gradient"/>
</article>

<!-- /#posts-list -->
<div class="pagination-centered">
<h6 class="subheader">Page 2 of 2</h6>


+ 62
- 1
feeds/all.atom.xml View File

@@ -509,4 +509,65 @@ The easiest way to achieve it was to use C API, because C ABI rules are much sim
&lt;/ul&gt;
&lt;p&gt;Модули Sound и UIQt на текущий момент статически линкуются в MJIN, тогда как модуль Android линкуется динамически из-за ограничений JNI.&lt;/p&gt;
&lt;p&gt;В следующем году мы изменим структуру MJIN так, чтобы её можно было легче собрать под разные платформы.&lt;/p&gt;
&lt;p&gt;На этом мы заканчиваем статью о начале разделения библиотеки MJIN на модули.&lt;/p&gt;</summary></entry></feed>
&lt;p&gt;На этом мы заканчиваем статью о начале разделения библиотеки MJIN на модули.&lt;/p&gt;</summary></entry><entry><title>October 2016 recap</title><link href="http://opengamestudio.org/2016-october-recap.html" rel="alternate"></link><updated>2016-11-19T00:00:00+03:00</updated><author><name>Opensource Game Studio</name></author><id>tag:opengamestudio.org,2016-11-19:2016-october-recap.html</id><summary type="html">&lt;p&gt;&lt;img alt="October recap" src="http://opengamestudio.org/2016-11-19_2016-october-recap.png" /&gt;&lt;/p&gt;
&lt;p&gt;This article describes how we spent a month building OpenSceneGraph (OSG) for Android: the first attempt to build OSG, the search for OSG alternatives, and the success in building OSG.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;First attempt to build OSG.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Having no prior knowledge of Android development, we grabbed the latest Android Studio and started doing beginner tutorials.
We passed Java part pretty fast. Everything worked out of the box. Then came C++ part and related problems.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CMake. &lt;/strong&gt;To work with C++, Android Studio uses custom CMake, which conflicts with the system one. This was a clear indication that we had to set up a separate development environment specifically for Android.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;KVM. &lt;/strong&gt;We got Ubuntu under VirtualBox installed. All went fine until we tried to use Android Emulator. Turned out, VirtualBox could not run Android Emulator, because a virtual machine cannot provide kernel virtualization inside already virtualized environment.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Chroot for Android. &lt;/strong&gt;Since we had a successful experience with chroot to build OGS Editor before, we decided to place Android development environment into chroot. With minor tweaking, we could finally run Android Emulator and build C++ project.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;OSG. &lt;/strong&gt;Building OSG seemed like a piece of cake at the time. However, all we got was a crash. Thinking that we got it wrong the first time, we tried to rebuild OSG once again. And the same crash again.
Searching for the problem did not reveal any hint.
Nobody helped us at the OSG mailing list.&lt;/p&gt;
&lt;p&gt;We were in despair.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The search for OSG alternatives.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Since OSG community did not help us, we decided to search for an alternative open source project to fit our Android needs (and may be more).&lt;/p&gt;
&lt;p&gt;And we found it: &lt;a href="http://babylonhx.gamestudiohx.com/"&gt;BabylonHX&lt;/a&gt;. The home page looked awesome: it rendered WebGL in the background!
We thought we finally found the gem we were looking for. However, the example on the home page simply did not work.&lt;/p&gt;
&lt;p&gt;You can probably understand our feelings at the time.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The success in building OSG.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;We realized nobody would make OSG work under Android for us. We had to do it ourselves.&lt;/p&gt;
&lt;p&gt;Since &lt;a href="http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/178-building-openscenegraph-for-android-3-4"&gt;OSG 3.4 document&lt;/a&gt; on building for Android was very short, we no longer trusted it and headed to &lt;a href="http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/44-building-openscenegraph-for-android-3-0-3-0-1"&gt;original OSG 3.0 document&lt;/a&gt;.
While following it, we faced a dead link to third party dependencies.
The search for an alternative download link lead us to a &lt;a href="https://xinyustudio.wordpress.com/2013/09/24/install-osg-for-android-on-ubuntu-13-04-step-by-step-tutorials/"&gt;2013 tutorial&lt;/a&gt; on building OSG 3.0 for Android.&lt;/p&gt;
&lt;p&gt;After following the tutorial, we finally got OSG to run under Android!
But there was a nuance: both OSG and Android tools used in the tutorial were ancient.
In a few days, we gradually updated both OSG and Android tools to their latest versions.&lt;/p&gt;
&lt;p&gt;During the update process, we learned two things that prevented us from having OSG to work in the first place:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Android API headers changed in NDK r12&lt;/li&gt;
&lt;li&gt;OSG only works as a static library under Android&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That's it for describing how we spent the month building OSG for Android: the first attempt to build OSG, the search for OSG alternatives, and the success in building OSG.&lt;/p&gt;</summary></entry><entry><title>Октябрь 2016 кратко</title><link href="http://opengamestudio.org/2016-october-recap-ru.html" rel="alternate"></link><updated>2016-11-19T00:00:00+03:00</updated><author><name>Opensource Game Studio</name></author><id>tag:opengamestudio.org,2016-11-19:2016-october-recap-ru.html</id><summary type="html">&lt;p&gt;&lt;img alt="October recap" src="http://opengamestudio.org/2016-11-19_2016-october-recap.png" /&gt;&lt;/p&gt;
&lt;p&gt;Эта статья описывает, как мы потратили месяц на сборку OpenSceneGraph (OSG) под Android: первая попытка собрать OSG, поиск альтернатив OSG и успех в сборке OSG.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Первая попытка собрать OSG.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Не имея опыта разработки под Android, мы взяли последнюю версию Android Studio и начали проходить самоучители для начинающих.
Java далась легко. Всё работало из коробки. Затем наступил черёд C++ и проблем.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CMake. &lt;/strong&gt;Android Studio для работы с C++ использует собственную версию CMake, которая конфликтует с системной. Для нас это было явным сигналом о необходимости подготовить отдельное окружение разработки специально под Android.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;KVM. &lt;/strong&gt;Мы установили Ubuntu на VirtualBox. Всё шло замечательно до того момента, пока мы не запустили эмулятор Android. Оказалось, что VirtualBox не может запустить эмулятор, т.к. виртуальная машина не предоставляет виртуализацию внутри уже виртуализированного окружения.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Chroot для Android. &lt;/strong&gt;Вспомнив о положительном опыте работы с chroot для сборки OGS Editor, мы решили поместить окружение разработки Android в chroot. После небольших настроек мы сумели запустить эмулятор Android и собрать проект C++.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;OSG. &lt;/strong&gt;К этому моменту мы считали, что собрать OSG не составит труда, но не тут-то было. Всё, что мы получили, - это падение.
Предположив, что мы ошиблись где-то при первой сборке, мы решили пересобрать OSG ещё раз. И снова получили ту же ошибку.
Поиск решения проблемы не дал результатов.
Никто не помог нам в списке рассылок OSG.&lt;/p&gt;
&lt;p&gt;Мы были в отчаянии.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Поиск альтернатив OSG.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Раз сообщество OSG нам не помогло, мы решили поискать альтернативный открытый проект, который мог решить наши задачи на Android (и, возможно, на других платформах).&lt;/p&gt;
&lt;p&gt;Такой проект мы нашли: &lt;a href="http://babylonhx.gamestudiohx.com/"&gt;BabylonHX&lt;/a&gt;. Домашняя страница выглядела замечательно: она отображала WebGL в фоне!
Промелькнула мысль, что мы наконец нашли алмаз. К сожалению, пример на домашней странице просто не работал.&lt;/p&gt;
&lt;p&gt;Думаем, вы понимаете наши чувства на тот момент.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Успех в сборке OSG.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Мы осознали, что никто за нас не запустит OSG на Android. Нужно было сделать это самостоятельно.&lt;/p&gt;
&lt;p&gt;Потеряв доверие к очень короткой &lt;a href="http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/178-building-openscenegraph-for-android-3-4"&gt;документации OSG 3.4&lt;/a&gt; по сборке для Android, мы решили использовать &lt;a href="http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/44-building-openscenegraph-for-android-3-0-3-0-1"&gt;первоначальную документацию OSG 3.0&lt;/a&gt;.
В ходе следования ей мы наткнулись на мёртвую ссылку, которая должна была содержать зависимости.
Поиск альтернативной ссылки вывел нас на &lt;a href="https://xinyustudio.wordpress.com/2013/09/24/install-osg-for-android-on-ubuntu-13-04-step-by-step-tutorials/"&gt;самоучитель 2013 года&lt;/a&gt; по сборке OSG 3.0 для Android.&lt;/p&gt;
&lt;p&gt;После прохождения самоучителя мы наконец смогли запустить OSG под Android!
Тем не менее, был нюанс: используемые в самоучителе версии OSG и средств разработки Android были древними.
В течение нескольких дней мы постепенно довели версии OSG и средств разработки Android до последних.&lt;/p&gt;
&lt;p&gt;В ходе этого обновления мы узнали о двух вещах, помешавших нам запустить OSG с первого раза:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Изменение заголовков Android API в NDK r12&lt;/li&gt;
&lt;li&gt;OSG работает под Android лишь в виде статической библиотеки&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;На этом мы заканчиваем описание того, как мы потратили месяц на сборку OSG под Android: первая попытка собрать OSG, поиск альтернатив OSG и успех в сборке OSG.&lt;/p&gt;</summary></entry></feed>

+ 31
- 1
feeds/news.atom.xml View File

@@ -255,4 +255,34 @@ The easiest way to achieve it was to use C API, because C ABI rules are much sim
&lt;/ul&gt;
&lt;p&gt;Sound and UIQt modules are currently statically linked into MJIN library, while Android module is already a separate library due to JNI requirements.&lt;/p&gt;
&lt;p&gt;In the coming year, we're going to significantly restructure MJIN so that it suits as many platforms as possible.&lt;/p&gt;
&lt;p&gt;That's it for describing the start of MJIN library separation into modules.&lt;/p&gt;</summary></entry></feed>
&lt;p&gt;That's it for describing the start of MJIN library separation into modules.&lt;/p&gt;</summary></entry><entry><title>October 2016 recap</title><link href="http://opengamestudio.org/2016-october-recap.html" rel="alternate"></link><updated>2016-11-19T00:00:00+03:00</updated><author><name>Opensource Game Studio</name></author><id>tag:opengamestudio.org,2016-11-19:2016-october-recap.html</id><summary type="html">&lt;p&gt;&lt;img alt="October recap" src="http://opengamestudio.org/2016-11-19_2016-october-recap.png" /&gt;&lt;/p&gt;
&lt;p&gt;This article describes how we spent a month building OpenSceneGraph (OSG) for Android: the first attempt to build OSG, the search for OSG alternatives, and the success in building OSG.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;First attempt to build OSG.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Having no prior knowledge of Android development, we grabbed the latest Android Studio and started doing beginner tutorials.
We passed Java part pretty fast. Everything worked out of the box. Then came C++ part and related problems.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CMake. &lt;/strong&gt;To work with C++, Android Studio uses custom CMake, which conflicts with the system one. This was a clear indication that we had to set up a separate development environment specifically for Android.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;KVM. &lt;/strong&gt;We got Ubuntu under VirtualBox installed. All went fine until we tried to use Android Emulator. Turned out, VirtualBox could not run Android Emulator, because a virtual machine cannot provide kernel virtualization inside already virtualized environment.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Chroot for Android. &lt;/strong&gt;Since we had a successful experience with chroot to build OGS Editor before, we decided to place Android development environment into chroot. With minor tweaking, we could finally run Android Emulator and build C++ project.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;OSG. &lt;/strong&gt;Building OSG seemed like a piece of cake at the time. However, all we got was a crash. Thinking that we got it wrong the first time, we tried to rebuild OSG once again. And the same crash again.
Searching for the problem did not reveal any hint.
Nobody helped us at the OSG mailing list.&lt;/p&gt;
&lt;p&gt;We were in despair.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The search for OSG alternatives.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Since OSG community did not help us, we decided to search for an alternative open source project to fit our Android needs (and may be more).&lt;/p&gt;
&lt;p&gt;And we found it: &lt;a href="http://babylonhx.gamestudiohx.com/"&gt;BabylonHX&lt;/a&gt;. The home page looked awesome: it rendered WebGL in the background!
We thought we finally found the gem we were looking for. However, the example on the home page simply did not work.&lt;/p&gt;
&lt;p&gt;You can probably understand our feelings at the time.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The success in building OSG.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;We realized nobody would make OSG work under Android for us. We had to do it ourselves.&lt;/p&gt;
&lt;p&gt;Since &lt;a href="http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/178-building-openscenegraph-for-android-3-4"&gt;OSG 3.4 document&lt;/a&gt; on building for Android was very short, we no longer trusted it and headed to &lt;a href="http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/44-building-openscenegraph-for-android-3-0-3-0-1"&gt;original OSG 3.0 document&lt;/a&gt;.
While following it, we faced a dead link to third party dependencies.
The search for an alternative download link lead us to a &lt;a href="https://xinyustudio.wordpress.com/2013/09/24/install-osg-for-android-on-ubuntu-13-04-step-by-step-tutorials/"&gt;2013 tutorial&lt;/a&gt; on building OSG 3.0 for Android.&lt;/p&gt;
&lt;p&gt;After following the tutorial, we finally got OSG to run under Android!
But there was a nuance: both OSG and Android tools used in the tutorial were ancient.
In a few days, we gradually updated both OSG and Android tools to their latest versions.&lt;/p&gt;
&lt;p&gt;During the update process, we learned two things that prevented us from having OSG to work in the first place:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Android API headers changed in NDK r12&lt;/li&gt;
&lt;li&gt;OSG only works as a static library under Android&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That's it for describing how we spent the month building OSG for Android: the first attempt to build OSG, the search for OSG alternatives, and the success in building OSG.&lt;/p&gt;</summary></entry></feed>

+ 20
- 0
index2.html View File

@@ -83,6 +83,26 @@
<hr class="gradient"/>
</article>



<article>
<a href="http://opengamestudio.org/2016-october-recap.html"><h3 class="article-title">October 2016 recap</h3></a>
<h6 class="subheader" title="2016-11-19T00:00:00+03:00">Сб 19 Ноябрь 2016
<a class="button secondary small translation-button" href="http://opengamestudio.org/2016-october-recap-ru.html">ru</a>

</h6><p><img alt="October recap" src="http://opengamestudio.org/2016-11-19_2016-october-recap.png" /></p>
<p>This article describes how we spent a month building OpenSceneGraph (OSG) for Android: the first attempt to build OSG, the search for OSG alternatives, and the success in building OSG.</p>
<p><strong>First attempt to build OSG.</strong></p>
<p>Having no prior knowledge of Android development, we grabbed the latest Android Studio and started ...</p><p class="subheader">Category: <a href="http://opengamestudio.org/category/news.html">News</a>

</p>


<a class="button radius secondary small right" href="http://opengamestudio.org/2016-october-recap.html">Read More</a>
<hr class="gradient"/>
</article>

<!-- /#posts-list -->
<div class="pagination-centered">
<h6 class="subheader">Page 2 of 2</h6>


+ 61
- 0
pelican/content/articles/2016-11-19_2016-october-recap-ru.md View File

@@ -0,0 +1,61 @@
Title: Октябрь 2016 кратко
Date: 2016-11-19 00:00
Category: News
Slug: 2016-october-recap
Lang: ru

![October recap][screenshot]


Эта статья описывает, как мы потратили месяц на сборку OpenSceneGraph (OSG) под Android: первая попытка собрать OSG, поиск альтернатив OSG и успех в сборке OSG.

**Первая попытка собрать OSG.**

Не имея опыта разработки под Android, мы взяли последнюю версию Android Studio и начали проходить самоучители для начинающих.
Java далась легко. Всё работало из коробки. Затем наступил черёд C++ и проблем.

**CMake. **Android Studio для работы с C++ использует собственную версию CMake, которая конфликтует с системной. Для нас это было явным сигналом о необходимости подготовить отдельное окружение разработки специально под Android.

**KVM. **Мы установили Ubuntu на VirtualBox. Всё шло замечательно до того момента, пока мы не запустили эмулятор Android. Оказалось, что VirtualBox не может запустить эмулятор, т.к. виртуальная машина не предоставляет виртуализацию внутри уже виртуализированного окружения.

**Chroot для Android. **Вспомнив о положительном опыте работы с chroot для сборки OGS Editor, мы решили поместить окружение разработки Android в chroot. После небольших настроек мы сумели запустить эмулятор Android и собрать проект C++.

**OSG. **К этому моменту мы считали, что собрать OSG не составит труда, но не тут-то было. Всё, что мы получили, - это падение.
Предположив, что мы ошиблись где-то при первой сборке, мы решили пересобрать OSG ещё раз. И снова получили ту же ошибку.
Поиск решения проблемы не дал результатов.
Никто не помог нам в списке рассылок OSG.

Мы были в отчаянии.

**Поиск альтернатив OSG.**

Раз сообщество OSG нам не помогло, мы решили поискать альтернативный открытый проект, который мог решить наши задачи на Android (и, возможно, на других платформах).

Такой проект мы нашли: [BabylonHX](http://babylonhx.gamestudiohx.com/). Домашняя страница выглядела замечательно: она отображала WebGL в фоне!
Промелькнула мысль, что мы наконец нашли алмаз. К сожалению, пример на домашней странице просто не работал.

Думаем, вы понимаете наши чувства на тот момент.

**Успех в сборке OSG.**

Мы осознали, что никто за нас не запустит OSG на Android. Нужно было сделать это самостоятельно.

Потеряв доверие к очень короткой [документации OSG 3.4](http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/178-building-openscenegraph-for-android-3-4) по сборке для Android, мы решили использовать [первоначальную документацию OSG 3.0](http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/44-building-openscenegraph-for-android-3-0-3-0-1).
В ходе следования ей мы наткнулись на мёртвую ссылку, которая должна была содержать зависимости.
Поиск альтернативной ссылки вывел нас на [самоучитель 2013 года](https://xinyustudio.wordpress.com/2013/09/24/install-osg-for-android-on-ubuntu-13-04-step-by-step-tutorials/) по сборке OSG 3.0 для Android.

После прохождения самоучителя мы наконец смогли запустить OSG под Android!
Тем не менее, был нюанс: используемые в самоучителе версии OSG и средств разработки Android были древними.
В течение нескольких дней мы постепенно довели версии OSG и средств разработки Android до последних.

В ходе этого обновления мы узнали о двух вещах, помешавших нам запустить OSG с первого раза:

* Изменение заголовков Android API в NDK r12
* OSG работает под Android лишь в виде статической библиотеки



На этом мы заканчиваем описание того, как мы потратили месяц на сборку OSG под Android: первая попытка собрать OSG, поиск альтернатив OSG и успех в сборке OSG.

[screenshot]: {attach}/images/2016-11-19_2016-october-recap.png


+ 60
- 0
pelican/content/articles/2016-11-19_2016-october-recap.md View File

@@ -0,0 +1,60 @@
Title: October 2016 recap
Date: 2016-11-19 00:00
Category: News
Slug: 2016-october-recap
Lang: en

![October recap][screenshot]


This article describes how we spent a month building OpenSceneGraph (OSG) for Android: the first attempt to build OSG, the search for OSG alternatives, and the success in building OSG.

**First attempt to build OSG.**

Having no prior knowledge of Android development, we grabbed the latest Android Studio and started doing beginner tutorials.
We passed Java part pretty fast. Everything worked out of the box. Then came C++ part and related problems.

**CMake. **To work with C++, Android Studio uses custom CMake, which conflicts with the system one. This was a clear indication that we had to set up a separate development environment specifically for Android.

**KVM. **We got Ubuntu under VirtualBox installed. All went fine until we tried to use Android Emulator. Turned out, VirtualBox could not run Android Emulator, because a virtual machine cannot provide kernel virtualization inside already virtualized environment.

**Chroot for Android. **Since we had a successful experience with chroot to build OGS Editor before, we decided to place Android development environment into chroot. With minor tweaking, we could finally run Android Emulator and build C++ project.

**OSG. **Building OSG seemed like a piece of cake at the time. However, all we got was a crash. Thinking that we got it wrong the first time, we tried to rebuild OSG once again. And the same crash again.
Searching for the problem did not reveal any hint.
Nobody helped us at the OSG mailing list.

We were in despair.

**The search for OSG alternatives.**

Since OSG community did not help us, we decided to search for an alternative open source project to fit our Android needs (and may be more).

And we found it: [BabylonHX](http://babylonhx.gamestudiohx.com/). The home page looked awesome: it rendered WebGL in the background!
We thought we finally found the gem we were looking for. However, the example on the home page simply did not work.

You can probably understand our feelings at the time.

**The success in building OSG.**

We realized nobody would make OSG work under Android for us. We had to do it ourselves.

Since [OSG 3.4 document](http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/178-building-openscenegraph-for-android-3-4) on building for Android was very short, we no longer trusted it and headed to [original OSG 3.0 document](http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/44-building-openscenegraph-for-android-3-0-3-0-1).
While following it, we faced a dead link to third party dependencies.
The search for an alternative download link lead us to a [2013 tutorial](https://xinyustudio.wordpress.com/2013/09/24/install-osg-for-android-on-ubuntu-13-04-step-by-step-tutorials/) on building OSG 3.0 for Android.

After following the tutorial, we finally got OSG to run under Android!
But there was a nuance: both OSG and Android tools used in the tutorial were ancient.
In a few days, we gradually updated both OSG and Android tools to their latest versions.

During the update process, we learned two things that prevented us from having OSG to work in the first place:

* Android API headers changed in NDK r12
* OSG only works as a static library under Android



That's it for describing how we spent the month building OSG for Android: the first attempt to build OSG, the search for OSG alternatives, and the success in building OSG.

[screenshot]: {attach}/images/2016-11-19_2016-october-recap.png


BIN
pelican/content/images/2016-11-19_2016-october-recap.png View File

Before After
Width: 1024  |  Height: 768  |  Size: 496KB

Loading…
Cancel
Save