Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2002 15:19:25 -0300
From:      Fernan Aguero <fernan@iib.unsam.edu.ar>
To:        FreeBSD-bio <freebsd-bio@freebsd.net>
Cc:        ports@freebsd.org
Subject:   building kaptain on FreeBSD (preparing a port)
Message-ID:  <20020115151925.B64862@iib.unsam.edu.ar>

next in thread | raw e-mail | index | archive | help
Hi all!

I'm trying to build kaptain on FreeBSD (and in the process learning to
make a port). According to its author Kaptain is:
	a universal graphical front-end for command line programs.
  It works on linux/UNIX platforms whereever KDE 2 and QT 2.1 are
	available. 

http://kaptain.sourceforge.net/

+--[ Begin note for the bio people 
|
|	The relation to the bio stuff is because kaptain grammars for EMBOSS
|	have been released just yet, and this provides a natural GUI for EMBOSS.
|
+--[ End note for freebsd-bio

I have both Qt2 and KDE2 installed but running 'configure' on kaptain
fails with the following line:

checking for Qt... configure: error: Qt (snapshot >= Qt 2.1 beta2)
(headers and libraries) not found. Please check your installation!  

I believe that Qt in my system is qt-2.3

I tried passing configure other locations for libraries and includes
but that didn't help.

On my system the Qt libraries and includes appear to be at
/usr/X11R6/lib and /usr/X11R6/include/qt2

Strange enough, while looking at config.log I see several failure
messages like the following:

configure: failed program was:
#line 2124 "configure"
#include "confdefs.h"
...
configure: failed program was:
#line 2157 "configure"
#include "confdefs.h"
...
and finally,
configure:4455: checking for Qt
tried /usr/local/lib
tried /usr/local
tried /usr/lib/qt/lib
configure:4602: c++ -o conftest  -O -pipe  -INO -I/usr/X11R6/include  -L/usr/X11R6/lib -L/usr/X11R6/lib  conftest.C  -lqt   -lXext -lX11  1>&5
conftest.C:2: qglobal.h: No such file or directory
conftest.C:3: qapplication.h: No such file or directory
conftest.C:4: qapp.h: No such file or directory
conftest.C:5: qobjcoll.h: No such file or directory
conftest.C:6: qstring.h: No such file or directory
conftest.C:7: qstyle.h: No such file or directory
conftest.C:8: qiconview.h: No such file or directory
conftest.C:10: #error 1
conftest.C: In function `int main()':
conftest.C:14: `QStringList' undeclared (first use this function)
conftest.C:14: (Each undeclared identifier is reported only once
conftest.C:14: for each function it appears in.)
conftest.C:14: `t' undeclared (first use this function)
conftest.C:14: syntax error before `('
conftest.C:16: `iv' undeclared (first use this function)
conftest.C:17: syntax error before `;'
conftest.C:18: `s' undeclared (first use this function)
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qapp.h>
#include <qobjcoll.h>
#include <qstring.h>
#include <qstyle.h>
#include <qiconview.h>
#if ! (QT_VERSION >= 210)
#error 1
#endif

int main() {
    QStringList *t = new QStringList();
    QIconView iv(0);
    iv.setWordWrapIconText(false);
    QString s;
    s.setLatin1("Elvis is alive", 14);
    return 0;
}
(end of "config.log")


(Ask for the whole config.log if it's worth looking at it)

I also tried to build a preliminary port, including bsd.port.mk in the
Makefile, together with some other options (GNU_CONFIGURE=yes,
USE_QT=yes).
First of all, USE_QT is apparently deprecated (?). I've read it from
the porter's handbook somewhere just today!

[root@pi] make
>>> Warning:  this port needs to be updated as it uses the old-style USE_QT variable!
===>  Extracting for kaptain-0.6-1.0
>> Checksum OK for kaptain-0.6.tar.gz.
===>   kaptain-0.6-1.0 depends on shared library: qt.3 - not found
===>    Verifying install for qt.3 in /usr/ports/x11-toolkits/qt145
[the rest is omitted for clarity]


I am obviously missing something here ... this is my first attempt at
building a port and neither am I familiar with makefiles and
configures. However this kind of problems is not clerarly dealt
with in the porter's handbook ... that's why I am turning to other
porters for help :)

Any idea or insight would be appreciated.

Fernan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020115151925.B64862>