164 lines
6.6 KiB
HTML
164 lines
6.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
<title>ewol Library</title>
|
|
<link rel="stylesheet" href="base.css">
|
|
<link rel="stylesheet" href="menu.css">
|
|
</head>
|
|
<body>
|
|
<div class="navbar navbar-fixed-top">
|
|
<div class="container">
|
|
<h1><a href="index.html">ewol library</a></h1>
|
|
<h4><a href="http://github.com/heeroyui/ewol/"> [ sources ]</a></h4>
|
|
<h3>API:</h3> <div id="menu">
|
|
<ul class="niveau1">
|
|
<li class="sousmenu"><a href="namespace_ewol.html">ewol</a>
|
|
<ul class="niveau2">
|
|
<li><a href="namespace_ewol__translate.html">translate</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__key.html">key</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__widget.html">widget</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__openGL.html">openGL</a>
|
|
</li>
|
|
<li class="sousmenu"><a href="namespace_ewol__context.html">context</a>
|
|
<ul class="niveau3">
|
|
<li><a href="namespace_ewol__context__clipBoard.html">clipBoard</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="namespace_ewol__compositing.html">compositing</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__object.html">object</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__resource.html">resource</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__font.html">font</a>
|
|
</li>
|
|
<li><a href="namespace_ewol__event.html">event</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="namespace_MacOs.html">MacOs</a>
|
|
</li>
|
|
<li><a href="namespace_IOs.html">IOs</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<h3>Documentation:</h3><div id="menu">
|
|
<ul class="niveau1"><li><a href="001_bases.html">Bases</a></li>
|
|
</ul><ul class="niveau1"><li><a href="faq.html">Faq</a></li>
|
|
</ul></div>
|
|
<h3>Tutorials:</h3><div id="menu">
|
|
<ul class="niveau1"><li><a href="tutorial_000_Build.html">Build</a></li>
|
|
</ul><ul class="niveau1"><li><a href="tutorial_001_HelloWord.html">Hello word</a></li>
|
|
</ul><ul class="niveau1"><li><a href="tutorial_010_ObjectModel.html">Object model</a></li>
|
|
</ul><ul class="niveau1"><li><a href="tutorial_011_ObjectConfig.html">Object config</a></li>
|
|
</ul><ul class="niveau1"><li><a href="tutorial_012_ObjectMessage.html">Object message</a></li>
|
|
</ul><ul class="niveau1"><li><a href="tutorial_020_FileAccess.html">File access</a></li>
|
|
</ul><ul class="niveau1"><li><a href="tutorial_021_Resources.html">Resources</a></li>
|
|
</ul><ul class="niveau1"><li><a href="tutorial_030_ConplexeXmlGui.html">Conplexe xml gui</a></li>
|
|
</ul><ul class="niveau1"><li><a href="tutorial_050_CreateCustomWidget.html">Create custom widget</a></li>
|
|
</ul><ul class="niveau1"><li><a href="tutorial_051_AddWidgetCustumInXML.html">Add widget custum in x m l</a></li>
|
|
</ul></div>
|
|
<br/><h3>Associate libraries:</h3><div id="menu">
|
|
<ul class="niveau1"><li><a href="../ejson/index.html">ejson</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../egami/index.html">egami</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../ege/index.html">ege</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../esvg/index.html">esvg</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../etk/index.html">etk</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../exml/index.html">exml</a></li>
|
|
</ul></div>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
</div>
|
|
</div>
|
|
<div class="container" id="content">
|
|
<h1><center>build</center></h1>
|
|
<hr> <div align="right"><a href="tutorial_001_HelloWord.html">Next: Hello word</a></div>
|
|
<h1><center>Ewol extract and build examples</center></h1>
|
|
<hr><div align="left"><a href="001_bases.html">Previous: Doc</a></div> <div align="right"><a href="tutorial_001_HelloWord.html">Next: Hello-Word</a></div><br/>
|
|
All developpement software will start by getting the dependency and the sources.<br/>
|
|
<h2> Linux dependency packages </h2>
|
|
<pre>
|
|
sudo apt-get install g++ libgl1-mesa-dev zlib1g-dev libasound2-dev
|
|
<span class="code-preproc"># if you want to compile with clang :</span>
|
|
sudo apt-get install clang
|
|
<span class="code-preproc"># For andoid compilation (jdk 7 does not work...)</span>
|
|
sudo apt-get install javacc openjdk-6-jdk
|
|
<span class="code-preproc"># if you want to compile for windows :</span>
|
|
sudo apt-get install mingw32
|
|
<span class="code-preproc"># on 64 bits processor for compatibility</span>
|
|
sudo apt-get install ia32-libs
|
|
</pre><br/>
|
|
|
|
<h2> Download instructions </h2><br/>
|
|
Download the software :
|
|
<pre>
|
|
<span class="code-preproc"># create a working directory path</span>
|
|
mkdir your_workspace_path
|
|
cd your_workspace_path
|
|
<span class="code-preproc"># clone ewol and all sub-library</span>
|
|
git clone git://github.com/HeeroYui/ewol.git
|
|
cd ewol
|
|
git submodule init
|
|
git submodule update
|
|
cd ..
|
|
<span class="code-preproc"># clone the exemple repository</span>
|
|
git clone git://github.com/HeeroYui/example.git
|
|
</pre><br/>
|
|
<br/>
|
|
<b>Note:</b><pre>
|
|
The full build tool documentation is availlable here : <a href="http://heeroyui.github.io/lutin/">lutin</a>
|
|
</pre><br/>
|
|
<h2> Common build instructions </h2><br/>
|
|
Compile software in debug for the curent platform :
|
|
<pre>
|
|
./ewol/build/lutin.py -mdebug
|
|
</pre><br/>
|
|
You can specify the platform with:
|
|
<pre>
|
|
./ewol/build/lutin.py -tAndroid -mdebug
|
|
</pre><br/>
|
|
It coud be usefull to disable the package generation in local debug :
|
|
<pre>
|
|
./ewol/build/lutin.py -mdebug -p
|
|
</pre><br/>
|
|
Build with clang instead of gcc:
|
|
<pre>
|
|
./ewol/build/lutin.py -C -cclang
|
|
</pre><br/>
|
|
Display the build in color :
|
|
<pre>
|
|
./ewol/build/lutin.py -C -mdebug -p
|
|
</pre><br/>
|
|
Build in realease and install the program named 'edn'
|
|
<pre>
|
|
./ewol/build/lutin.py -C edn-install
|
|
</pre><br/>
|
|
To run an application you will find it directly on the out 'staging' tree :
|
|
<pre>
|
|
./out/Linux/debug/staging/clang/edn/usr/bin/edn
|
|
</pre><br/>
|
|
<h1> Simple explanation : </h1><br/>
|
|
The workspace is a simple folder that contain all the modules ans sub module.
|
|
It will create a tree like this :<br/>
|
|
<ul><li> workspace</li><ul><li> ewol</li><ul><li> external <span style="font-style: italic;">(ewol external dependency sub-lib)</span></li><ul><li> agg</li><li> bullet</li><li> date</li><li> egami</li><li> ege</li><li> ejson</li><li> etk</li><li> exml</li><li> freetype</li><li> glew</li><li> lua</li><li> ogg</li><li> png</li><li> portaudio</li><li> z</li></ul><li> souces</li><ul><li> ewol</li></ul></ul><li> example</li><li> youApplication_1</li><li> youApplication_2</li><li> youOtherLib_1</li><li> youOtherLib_2</li><li> out</li></ul></ul>
|
|
</div>
|
|
<script>
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
ga('create', 'UA-46753803-1', 'heeroyui.github.io');
|
|
ga('send', 'pageview');
|
|
</script>
|
|
</body>
|
|
</html>
|