Frequently Asked Questions

I get the following error during the compilation: "CMAKE_CXX_COMPILER-NOTFOUND" ?

This error means that you do not have a C++ compiler. You will need to install one.

Debian users have two possibilities:

apt-get install build-essential
or
apt-get install g++

I get the following error during compilation: "error: Python.h: No such file or directory".

This error comes from the fact that Python development libraries are not installed.

Debian users have just to type:

apt-get install python-dev

How do I obtain the minimum required swig version?

There are two different methods to get a compatible version of swig. The first one is to download swig sources and compile it. The second one is to add a new repository and get thhe new package.

Generic Method

  • Download Swig sources. The version MUST be at least 1.3.38
  • Extract the content of the archive, go into the created folder and type the following command:
#> make && make install

Method specific to Debian users (WARNING: the following methods could break your system !!!)

  • Through Gnome interface

The following page from ubuntu documentation provides an example on how to add a new repository.

At step 3, replace

deb http://ftp.debian.org etch main

with

deb http://ftp.debian.org unstable main

Once this new repository added, you will be able to install the good swig version

#> apt-get install swig
  • Through command line
#> echo "deb http://ftp.debian.org unstable main" >> /etc/apt/source.list
#> apt-get update
#> apt-get install swig
#> sed -i "/deb http://ftp.debian.org unstable main/d" /etc/apt/source.list
#> apt-get update

NOTE: Once you have install swig, remove the repository you have just added. If not, it could break your distribution. In order to do so, follow the previous step but remove the source repostitory.

When running DFF I get the following error: "in import libexceptions ImportError: No module named libexceptions"

Usually, this error is due when DFF is compiled with a swig version which is inferior to 1.3.38. Follow these steps

Also available in: HTML TXT