Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!


Web page:
Author:   Warren Weckesser,
Email:    vfgen DOT help AT gmail com  (fix the obvious minor obfuscation)

This file is in the top directory for the source code distribution of the
program VFGEN.  This README gives the steps necessary to build VFGEN from
the source code.  Before building from source, check the web page; a compiled binary may be available for your

Before you can build VFGEN, you must have installed these libraries:
   GiNaC    (
   Mini-XML (

*Note*: Version 2.5 of the Mini-XML library has a spelling error in one of
its configuration files. If you install Mini-XML version 2.5 from source,
the spelling error causes the build of VFGEN to fail. To fix this, reinstall
version 2.5 of Mini-XML  after changing @PHTREAD_LIBS@ to @PTHREAD_LIBS@ in
the file

If you are using Linux, binary packages (.deb and .rpm) are avaible for
these libraries.  Check your standard repositories.  Be sure you install
the "development" versions of the packages.  In Debian-based systems, these
usually end with -dev.  Note that GiNaC depends on the arbitrary precision
numerical library CLN, so you will also have to install CLN.

Also be sure you have pkg-config (
installed.  Most Linux systems have pkg-config available as a binary package.

There are three methods that you can use to build the program: CMake,
configure (i.e. the autotools script), or plain old Make.  These are discussed

1. CMake

CMake ( is a platform-independent build tool. To build
VFGEN with CMake, you must have CMake installed, and you must have the GiNaC
( and Mini-XML (
libraries installed. (If you are using a debian-based Linux distribution,
packages for these libraries are available.)  If these libraries are installed
in either /usr or /usr/local, the following commands (run in the top directory)
will build VFGEN:
$ cd cmake_build
$ cmake ../src
$ make
If the libraries are installed in some other location, define the environment
variables CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH before running cmake.

By default, the command
$ make install
will install the executable file in /usr/local/bin.  To change the
installation directory, set the environment variable CMAKE_INSTALL_PREFIX
before running cmake.  Then 'make install' will install the executable file

2. configure (i.e. autotools)

VFGEN also comes with a "configure" script.  The simplest way to use this
script is the following sequence of commands in the top directory:

$ ./configure
$ make
$ make install

This will install the vfgen executable in /usr/local/bin.  You may change the
installation directory with the --prefix option to the ./configure command, e.g.

$ ./configure --prefix=/opt
$ make
$ make install

This will put the vfgen executable in /opt/bin.

The configure script has several other options.  They may be listed with the

$ ./configure --help

3. Plain old Makefile

If you are using Linux (or some other Unix-like system), you have the GNU C++
compiler installed (g++), you have the program pkg-config installed, and you
have installed GiNaC and Mini-XML, you can use the file Makefile.vfgen to
build the program:
$ make -f Makefile.vfgen
(GiNaC version 1.3.4, and Mini-XML version 2.3 provide the appropriate files
to work with pkg-config; I'm not sure if older versions do.)

The file Makefile.vfgen is a *very* simple Makefile; for example, there is
no 'install' target.  Besides the default 'vfgen' target, the only other
target of interest is 'clean'; 'make clean' will remove all the .o files.

Recent activity

Huibing Yin

Commits by Huibing Yin were pushed to eagleshine/vfgen

68ac5bf - Can process the xml file that the boundary variables do not occur sequentially the same as the state variables
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.