GStreamer Creating C Code applications: Difference between revisions
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
Git repository: | Git repository: | ||
<pre>git clone ... | |||
</pre> | |||
<br> | <br> | ||
Line 23: | Line 24: | ||
== Application structure == | == Application structure == | ||
hello-gst/<br>├── Config<br>├── Makefile<br>└── src<br> ├── autogen.sh<br> ├── configure.ac<br> ├── Makefile.am<br> ├── README<br> └── src<br> ├── gstreamer.c<br> └── Makefile.am<br> | hello-gst/<br>├── Config<br>├── Makefile<br>└── src<br> ├── autogen.sh<br> ├── configure.ac<br> ├── Makefile.am<br> ├── README<br> └── src<br> ├── gstreamer.c<br> └── Makefile.am<br> | ||
== Compiling Application<br> == | |||
=== ARM Compilation === | |||
In order to compile for ARM Ridgerun SDK will handle dependencies, just clone the repository into a directory at Ridgerun SDK's myapps directory, select it at make config and run make at SDK's root. | |||
=== x86 Compilation === | |||
After cloning the application run the autogen.sh script, configure and compile with following commands: It is highly suggested to not run these commands into a Devdir, that has modified the environment with `make env` | |||
<pre>git clone <URL> <Directory> | |||
cd <Directory>/src | |||
./autogen.sh | |||
./configure | |||
make | |||
</pre> | |||
After compiling the application can be executed as any regular binary: | |||
<pre>cd <Directory>/src/src | |||
./hello_gst | |||
</pre> | |||
Revision as of 21:34, 17 June 2013
Gstreamer C Code Applications
This wiki documents how to create a Gstreamer C code application for Ridgerun's SDK. The applications will be created at $(DEVDIR)/myapps, will use Ridgerun classes for gstreamer, autotools and general sdk installation into target.
The demo was done on Turrialba SDK for a LeopardBoard DM368
Gstreamer documentation has information about creating applications at: gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-helloworld.html
Additionally Ridgerun provides an example that can be added at devdir: $DEVDIR/myapp, this application can be compiled for ARM and also for HOST
Git repository:
git clone ...
Application structure
hello-gst/
├── Config
├── Makefile
└── src
├── autogen.sh
├── configure.ac
├── Makefile.am
├── README
└── src
├── gstreamer.c
└── Makefile.am
Compiling Application
ARM Compilation
In order to compile for ARM Ridgerun SDK will handle dependencies, just clone the repository into a directory at Ridgerun SDK's myapps directory, select it at make config and run make at SDK's root.
x86 Compilation
After cloning the application run the autogen.sh script, configure and compile with following commands: It is highly suggested to not run these commands into a Devdir, that has modified the environment with `make env`
git clone <URL> <Directory> cd <Directory>/src ./autogen.sh ./configure make
After compiling the application can be executed as any regular binary:
cd <Directory>/src/src ./hello_gst