I am currently trying out several graphical front ends for the molecular software package EMBOSS and I have read good reviews of kaptain. However, because there are no rpm packages of kaptain for Suse Linux 9 available, I tried to compile it myself. First problem was that the configure script couldn't find the libraries and headers for qt3:
> checking for Qt... configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. Please check your installation!
Thus I executed ./configure with the option:
> ./configure --with-qt-dir=/usr/lib/qt3
Now the configuration script proceeds to the end. However, the make still fails, the last lines of output are like this:
Making all in kaptain make[2]: Entering directory `/home/jeltsch/downloads/kaptain-0.71/kaptain' g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/include -I/usr/X11R6/include -D_REENTRANT -O2 -fno-exceptions -fno-check-new -c kaptain.cpp kaptain.cpp: In constructor `Kaptain::Kaptain(Intermediate*, Kaptain*, QWidget*, QBoxLayout*, QDialog*, bool, const char*)': kaptain.cpp:99: error: `assert' undeclared (first use this function) kaptain.cpp:99: error: (Each undeclared identifier is reported only once for each function it appears in.) kaptain.cpp: In member function `void Kaptain::button_pressed()': kaptain.cpp:1576: error: `ostream_iterator' undeclared (first use this function) kaptain.cpp:1576: error: parse error before `>' token kaptain.cpp:1598: error: parse error before `>' token make[2]: *** [kaptain.o] Error 1 make[2]: Leaving directory `/home/jeltsch/downloads/kaptain-0.71/kaptain' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/jeltsch/downloads/kaptain-0.71' make: *** [all-recursive-am] Error 2
I got help from the author of the software Zsolt Terek. I had to insert at the beginning of kaptain.cpp:
include <cassert> include <iterator>
.