Ewol extract and build examples


Previous: Doc
Next: Hello-Word

All developpement software will start by getting the dependency and the sources.

Linux dependency packages

	sudo apt-get install g++ libgl1-mesa-dev zlib1g-dev libasound2-dev
	# if you want to compile with clang :
	sudo apt-get install clang
	# For andoid compilation (jdk 7 does not work...)
	sudo apt-get install javacc openjdk-6-jdk
	# if you want to compile for windows :
	sudo apt-get install mingw32
	# on 64 bits processor for compatibility
	sudo apt-get install ia32-libs

Download instructions


Download the software :
	# create a working directory path
	mkdir your_workspace_path
	cd your_workspace_path
	# clone ewol and all sub-library
	git clone git://github.com/HeeroYui/ewol.git
	cd ewol
	git submodule init
	git submodule update
	cd ..
	# clone the exemple repository
	git clone git://github.com/HeeroYui/example.git


Note:
The full build tool documentation is availlable here : lutin

Common build instructions


Compile software in debug for the curent platform :
	./ewol/build/lutin.py -mdebug

You can specify the platform with:
	./ewol/build/lutin.py -mdebug -tAndroid

It coud be usefull to disable the package generation in local debug :
	./ewol/build/lutin.py -mdebug -p

Build with clang instead of gcc:
	./ewol/build/lutin.py -C -cclang

Display the build in color :
	./ewol/build/lutin.py -C -mdebug -p

Build in realease and install the program named 'edn'
	./ewol/build/lutin.py -C edn-install

To run an application you will find it directly on the out 'staging' tree :
	./out/Linux/debug/staging/clang/edn/usr/bin/edn

Simple explanation :


The workspace is a simple folder that contain all the modules ans sub module. It will create a tree like this :