How to: build NCL Composer from source code
Requirements
- Git (>= 1.7.x) http://git-scm.com/
- Qt (>=4.7.x) http://qt.nokia.com/downloads/
Getting Source Code
About Git (from sourceforge.net)
Git is a Source Code Management (SCM) tool for software developers which supports collaborative development of software within a team, and the tracking of changes to software source code over time.
Git is used by developers, and advanced users who need the very latest changes to the software (before releases occur). Software users generally do not need Git; typically they will download official file releases made available by the project instead.
Developers should familiarize themselves with Git by reading the Git Documentation.
NCL Composer's Git access
From command line, you just need to execute the following to get the NCL Composer source code:
$ git clone http://git.telemidia.puc-rio.br/nclcomposer.git
Compiling Source Code
From command line, you just need to execute the following lines to compile the NCL Composer:
$ qmake $ make install
$ mingw32-make
and 'make install' to:
$ mingw32-make install
$ sudo make install
$ qmake -spec macx-g++
and 'make install' to:
$ sudo make install
Compiling with "Remote Run" feature
By default, you will not compile NCL Composer with “Remote Run” support. We do this in order to not include the libssh2 dependencies inside our source code. However, if you want to use that feature, you must to follow these steps, before compiling composer-gui subproject:
1. Get LIBSSH2 related libraries:
$ sudo apt-get install libssh2-1-dev libgcrypt11-dev
http://composer.telemidia.puc-rio.br/downloads/deps/nclcomposer-gui-0.1.1-deps.zip
and uncompress that file inside src/gui directory. you should finish with something like that (see the to libssh folder):
+ src + core ... + gui + data + deps + libssh2-1.3.0 + images + src + translations ... + plugins ...
$ sudo port install libssh2 libgcrypt
2. Replace the qmake call above with:
$ qmake RUNSSHON=true
Testing
In order to test the NCL Composer, you need to execute on:
- Windows:
$ C:\composer.exe
- Linux
$ /usr/local/bin/composer
- MAC OS X
$ open /Applications/Composer.app
Problems ?
If you have problems with any of the previous steps see the FAQ section, and if this does not resolve your problem, contact us.