Linux Project Generator
Submitted by Max A Yu, updated on 19 Jan 2010
Linux Project Generator is a tool that can be used to quickly generate an autogen-based, Moblin compliant template project in C, C++, or Python. It has a growing set of sample code that can be selected and included. See the feature list below.
Linux Project Generator (projgen) is itself autogen-based, written in C++, and generates a library (libprojgen) and application (projgen). The library exposes a simple C interface that expects all the project information. The application has support for a console version and GTK UI (uses glade). See screenshots below. It is licensed as LGPL.
Command-line help
Click the tabs below to see all screenshots
If you want to checkout the source code from the git repository:
The source can also be viewed online: http://git.moblin.org/cgit.cgi/projgen
Linux Project Generator (projgen) is itself autogen-based, written in C++, and generates a library (libprojgen) and application (projgen). The library exposes a simple C interface that expects all the project information. The application has support for a console version and GTK UI (uses glade). See screenshots below. It is licensed as LGPL.
Download, Install, Run
- Last updated: Nov. 05, 2009
Start the program
After installing the package above, you can start the program:$ projgenScreen shots
Console UICommand-line help
Click the tabs below to see all screenshots
Feature List
| Feature | Description |
|---|---|
| autogen enabled | Project can be built and installed with standard 3 commands: autogen.sh, make, (sudo) make install. |
| Customize project data | User enters name, path, language, license, etc. |
| C, C++, Python | Select which language you want your template project to be written in. |
| Project type: app, lib, or combo | Select if you want your project to generate an application, a library, or any combination (such as two app binaries and a library). |
| Dependent Libraries | Select the libraries to include. Uses pkg-config to generate appropriate build flags. |
| (Moblin) Compliance | Check whether to only display Moblin compliant libraries and versions to include as dependencies. |
| License | Pick from the most common |
| gtk-doc | Check whether your library should auto-generate documentation from gtk-doc style comments. |
| I18N | Check whether to add support and examples for internationalization. |
| Sample Code | Select the samples you want included in your template. Ideally most tutorials and 'how-to' documentation also include a block of code that can be built into a template project. |
| automation | Supports most features as command-lined parameters. |
Build From Source
If you downloaded the tgz file above, unzip it:$ tar xvzf projgen-<version>.tgz$ git clone git://git.moblin.org/projgen.gitDependencies
The following libraries must be installed to build the source: libglade-2.0>=2.4.0, glib-2.0, gconf-2.0, libxml-2.0, libmagic.| Moblin/Fedora |
# yum install file-devel libglade2-devel glib2-devel GConf-dbus-devel libxml2-devel |
| Ubuntu |
# apt-get install libmagic-dev libglade2-dev libglib2.0-dev libgconf2-dev libxml2-dev |
Build and Run
After the dependencies above are installed you can build and run$ cd projgen
$ ./autogen.sh
$ make
$ sudo make install
$ projgen