To see available configuration options run:
   ./configure --help=recursive


To install Cube just run:
   ./configure --prefix=<install_dir>
   make
   make install

After installing you might add <install_dir>/bin to your path:
   export PATH=$PATH:<install_dir>/bin
or
   setenv PATH=$PATH <install_dir>/bin

"<install_dir>/bin/cube-config"  provides a list options for easy usage of 
cube libraries in third party applications. 

To see available options invoke "<install_dir>/bin/cube-config --help"




NOTICE:

Cube GUI requires an installed copy of the Qt development kit. Cube GUI must be built with the same compiler used to build Qt.

The "configure" script tries to determine if the compilers are different and gives a message in the case they are not. Nevertheless, it tries to build the GUI with the selected - or automatically detected - compiler and "default" Qt specifications.

If the script fails, one can specify the proper compiler suite for the front-end compilation by setting an option --with-frontend-compiler-suite=[suite] and setting a proper Qt specification via "--with-qt-specs".

One can specify which Qt library will be used, with the option --with-qt=[PATH to Qt'q qmake tool].

For example:
  ./configure --with-frontend-compiler-suite=gcc CXXFLAGS_FOR_BUILD="-m64"  CFLAGS_FOR_BUILD="-m64" --with-qt-specs=linux-gcc

To see more "configure" options, run:
   ./configure --help=recursive
   
   
   
IMPORTANT NOTE FOR POWER/AIX:
Some parts of CUBE code use operator "dynamic_cast<...>".

According to  http://www-01.ibm.com/support/docview.wss?uid=swg21007500 , 
the dynamic_cast operator will always return NULL if the compiler isn't instructed to generate the necessary dynamic type information. 

Till this issue is not resolved by CUBE build system automatically, please configure CUBE on POWER/AIX with 'CXXFLAGS="-qrtti=dynamiccast"'. 
