4,199
edits
Changes
no edit summary
Save changes, power down IGEP, unplug MicroSD card and power up your board.
= Install and configure codeblocks for IGEP devices (under construction) <br> =
== Overview ==
Code::Blocks is a free and open source, cross-platform IDE which supports multiple compilers including GCC and MSVC. It is developed in C++ using wxWidgets as the GUI toolkit. Using a plugin architecture, its capabilities and features are defined by the provided plugins. Currently, Code::Blocks is oriented towards C and C++. It can also be used for creating ARM, AVR, D, DirectX, FLTK, Fortran, GLFW, GLUT, GTK+, Irrlicht, Lightfeather, MATLAB, OGRE, OpenGL, Qt, SDL, SFML, STL, SmartWin and wx programs and applications, although in some cases installing third-party SDKs or frameworks is necessary. More information [http://en.wikipedia.org/wiki/Codeblocks here].<br>
Code::Blocks is not installed by default in IGEP SDK VM, because Eclipse IDE is full integrated with IGEP Firmware. If you don't like Eclipse IDE or you want to use Code::blocks anyway this How-to can be helpful to install, set up and use it.<br>
== Requirements ==
*[http://isee.biz/component/zoo/item/igep-firmware-yocto-1-2 IGEP Firmware]: follow the IGEP SDK SOFTWARE USER MANUAL (chapter 6.1 "Create IGEP firmware bootable micro-sd card") <br>
*IGEP Board
*Codeblocks examples
*MicroSD Card (optional)
<pre>chmod a+x ~/Desktop/IGEP\ development/Codeblocks.sh
</pre>
{| cellspacingborder="1" cellpaddingwidth="1200" bordercellspacing="1" widthcellpadding="2001"
|-
| [[Image:Opencodeblocks1.png|331px]]<br>
|}
<br>
=== Add IGEP SDK Compiler and Debugger ===
Follow the next instructions to add IGEP SDK Yocto support:
{| cellspacingborder="1" cellpaddingwidth="1200" bordercellspacing="1" widthcellpadding="2001"
|-
| [[Image:Addsdkcodeblocks1.png|250px]]
|}
'''<sup>Click to enlarge image</sup>'''
Save all changes
== Using Code::Blocks ==
You can create two types of projects on Codeblocks: custom Makefile or managed by Codeblocks. These examples can be used as a template for your project. The examples are:<br>
*C_example, Codeblocks-based “Hello World” program written in C.*Cairo_example, generates a png file named hello.png.*Cpp_example, Codeblocks-based “Hello World” program written in C++*Dbus_example, sends "Hello Wolrd!" using D-Bus message system.*Glib_example, simple “Hello World" written using Glib library.*Gstreamer_example, ogg audio player using Gstreamer.*Gtk_example, Hello World in GTK.
*C_example_without_autotools, custom Makefile “Hello World” program written in C.
'''NOTE:''' Use Debug build if you want to debug later
Compile with: Build->Rebuild (Ctrl+F11).
=== Run programs ===
Get a remote shell prompt and run your program: <br>
<pre>ssh root@"IGEP IP for example: 192.168.5.1"
./"binary" "optional:arguments"</pre>
=== Debug programs ===