Building from Sources

Building from sources is only required if a package is not available for your GNU/Linux distribution.

Contributing Packages

Creating an installable package does not actually require much extra work compared to building and installing from source. If you are willing to take the extra steps and contribute a package to help us and other users, please read these instructions.

Recent GNU/Linux Distributions

Follow the instructions in this section if your distribution is recent enough to include cmake >= 2.8.6 and Qt4 >= 4.8.0. Otherwise read the instructions for Older GNU/Linux Distributions.

Setting up the Environment

Install g++, cmake and Qt4 (headers and libraries) using your preferred package manager. For instance, on Debian-based distributions type:
# sudo apt-get install g++ cmake libqt4-dev

Building and Installing the Libraries and Applications

Always make sure you start by building and installing LibKlustersShared. This shared library is required by Klusters, Neuroscope and NDManager.

All source packages (including LibKlustersShared) are built and installed in the same manner:
(extract the archive and cd inside)
# mkdir build
# cd build
# cmake -DCMAKE_INSTALL_PREFIX=/usr ..
(become root)
# make install
Depending on your distribution, you may need to adapt the 'cmake' command above:
# cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=64 ..

Older GNU/Linux Distributions

Follow the instructions below if your distribution is too old to include cmake >= 2.8.6 or Qt4 >= 4.8.0. Otherwise read the instructions for Recent GNU/Linux Distributions.

Setting up the Environment

Install g++ using your preferred package manager. For instance, on Debian-based distributions type:
# sudo apt-get install g++
Download the latest versions of cmake and qt4, and build them.
# tar xvzf qt-everywhere-opensource-src-4.8.4.tar.gz
# ./configure
(become root)
# make install
# tar xvzf cmake-2.8.11.1.tar.gz
# cd cmake-2.8.11.1
# ./configure
(become root)
# make install

Building and Installing the Libraries and Applications

Always make sure you start by building and installing LibKlustersShared. This shared library is required by Klusters, Neuroscope and NDManager.

All source packages (including LibKlustersShared) are built and installed in the same manner:
(extract the archive and cd inside)
# mkdir build
# cd build
# export PATH=/usr/local/Trolltech/Qt-4.8.4/bin:/usr/local/bin:$PATH
# cmake -DCMAKE_INSTALL_PREFIX=/usr ..
(become root)
# make install
Depending on your distribution, you may need to adapt the 'cmake' command above:
# cmake -DQT_QMAKE_EXECUTABLE=/usr/local/Trolltech/Qt-4.8.4/bin/qmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=64 ..