Build OCCT on linux: gl2ps not found, qt not found

Greetings, I am trying to configure occt6.6.0 in ubuntu 13.04. (The repository packages for it don't seem to include documentation and samples.) I would like to turn on the third party libraries in configure script before make. So I've downloaded OCCT, extracted, installed all third party libraries and GNU make tools.

I have installed libgl2ps0 and libgl2ps-dev from repositories; this gives /usr/include/gl2ps.h and /usr/lib/libgl2ps.so.

I have installed Qt5.1.0 from downloaded installer; this gives /opt/Qt5.1.0/5.1.0/gcc_64/include/QtGui/qpixmap.h and so forth.

So then in my ros/ folder, I run this, with some additional options as well, and several variations on the paths:
$flags="--with-tbb-include=/usr/include/tbb" etc. (only other optional flags)
./configure --with-qt=/op/Qt5.1.0/5.1.0/gcc_64/ --with-gl2ps=/usr/include $flags
./configure --with-qt=/op/Qt5.1.0/5.1.0/gcc_64/lib/QtGui --with-gl2ps=/usr/lib $flags
./configure --with-qt=/op/Qt5.1.0/5.1.0/gcc_64/include --with-gl2ps=/usr/include --with-gl2ps=/usr/lib $flags

Now everything is good except Qt and gl2ps. Did I need to do something different with them? Here is an excerpt of the configure script output:

==================
checking gl2ps.h usability... yes
checking gl2ps.h presence... yes
checking for gl2ps.h... yes
checking for gl2psEndPage in -lgl2ps... checking for gl2psEndPage in -lgl2ps... no
checking FreeImage.h usability... yes
checking FreeImage.h presence... yes
checking for FreeImage.h... yes
checking for FreeImage_OpenMemory in -lfreeimageplus... checking for FreeImage_OpenMemory in -lfreeimageplus... yes
checking tbb/tbb.h usability... yes
checking tbb/tbb.h presence... yes
checking for tbb/tbb.h... yes
checking for TBB_runtime_interface_version in -ltbb... yes
checking Qt/qpixmap.h usability... no
checking Qt/qpixmap.h presence... no
checking for Qt/qpixmap.h... no

CC = gcc
CXX = g++
CFLAGS = -DCSFDB -DOCC_CONVERT_SIGNALS -DLIN -DLININTEL -fexceptions -O2
CXXFLAGS = -DCSFDB -DOCC_CONVERT_SIGNALS -DLIN -DLININTEL -D_GNU_SOURCE=1 -O2
CPPFLAGS = -D_OCC64 -DNDEBUG -DNo_Exception
LDFLAGS = -lstdc++ -lrt

3rdparty mandatory products
---------------------------------
freetype : yes
tcltk : yes

3rdparty optional products
---------------------------------
gl2ps : no (gl2ps was not found)
freeimage : yes
tbb includes : yes
tbb libraries : yes
qt : no (qt was not found)
================
Configure completes through libtools commands.

My thought is to try to find the right package for Qt4 and maybe install gl2ps from source, and see if that works. Any other suggestions would be appreciated. Thanks!

Nicholas Fette's picture

Despite the suggestion in the documentation for "building third party products on linux", section 4, to install libgl2ps-dev from repository, this would not seem to configure. So per section I downloaded and install the library.
wget http://geuz.org/gl2ps/src/gl2ps-1.3.8.tgz
tar xvgf gl2ps-1.3.8.tgz
cd gl2ps-1.3.8
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make && sudo make install

Now I can configure OCCT with --with-gl2ps=/usr/local. Similarly I found where my source-compiled Qt was (not the repository installation), something like --with-qt=/usr/local/Trolltech/Qt-4.8.5. Thanks.