Historical project documentation. Content is maintained in GitLab.

BuildQngctrlOnUbuntu

Build QNGctrl on Ubuntu

This site describes building QNGctrl under Ubuntu.

Install prequisites

For recent Ubuntu releases (12.10/13.04)

sudo apt-get install libtool gdb qt4-qmake libqwt6-dev libsdl-image1.2-dev lib3ds-dev libquazip0-dev (freeglut3 libquazip0)

For Ubuntu 12.04 you can use libquazip from a newer release

sudo apt-get install libtool gdb qt4-qmake libqwt-dev libsdl-image1.2-dev lib3ds-dev
wget http://ch.archive.ubuntu.com/ubuntu/pool/universe/libq/libquazip/libquazip0_0.5-1_amd64.deb
wget http://ch.archive.ubuntu.com/ubuntu/pool/universe/libq/libquazip/libquazip0-dev_0.5-1_amd64.deb
sudo dpkg -i libquazip0*.deb

If libquazip is not available/installable, download it from http://quazip.sourceforge.net/ and install it.

Install GLC_lib

GLC_lib is a 3D Library for Qt4 using OpenGL. Most distribution don’t have a package for this library (the library libglc or libglc-dev is NOT the same as GLC_lib!). Since NGOS 0.65 QNGctrl uses GLC_lib 2.2.0. Check the Release Notes to find out which version you need.

If you are using Qt version >= 4.8 2.2.0 won’t compile successfully. You can either download the fixed 2.2.1 release from GLC_lib’s Github Repository (GLC_lib tags on Github) or take this modified GLC_lib version and install GLC_lib manually!

How to check your Qt Version:

$ qmake --version
QMake version 2.01a
Using Qt version 4.8.3 in /usr/local/Trolltech/Qt-4.8.3/lib

Install GLC_lib from PPA

The NG-Team provides a PPA with packed GLC_lib (currently supports 2.0.0 and 2.2.0).

sudo apt-get install python-software-properties
sudo apt-add-repository ppa:ng-uavp/ng-tools
sudo apt-get update
sudo apt-get install libglc-lib libglc-lib-dev

Install GLC_lib manually

Download the source package of the required version.

sudo apt-get install libqt4-dev libqt4-opengl-dev libqwt5-qt4-dev
unzip GLC_lib_src_2.2.0.zip
cd GLC_lib_src_2.2.0/glc_lib
qmake
make all
sudo make install

Compile QNGctrl

You don’t have to compile libng by yourself! If qngctrl can find libng’s source code, it will automatically configure it too. Shouldn’t it be able to to find the libng source it will fail to configure.

Get the resources as described under UsingSubversion and now qngctrl can be built:

cd sources/ng-tools
./configure --prefix=/usr
make

In case of errors during compilation, look in sources/ng-tools/README file for depencies packages information.

Start qNGctrl

qngctrl can be started by issuing the commands:

cd ng-tools/qngctrl
./qngctrl

if you don’t want 3d model, start qNGctrl with followed switch

./qngctrl --disable-3ds

look for possible future options at

$ ./qngctrl --help
This is QNGCTRL 0.66 (r8348)

Usage: qngctrl [--help|--disable-3ds]