[Kst] kst on solaris

Olive Buggy obuggy at rssd.esa.int
Thu Apr 22 15:56:15 CEST 2004


Hi All,

I have been trying to compile kst 0.94 for use on solaris.

Sun are currently not supporting kde, so this makes my job a little more difficult.

Solaris version is 2.8

KDE version is 3.1.4

QT version is qt-x11-free-3.3.1

After a struggle with qt, configure runs fine. I'm now at the make stage.

configure line looked like :
./configure --prefix=/opt/kde-3.1.4 --disable-mt --with-qt-dir=/usr/local/qt 
--with-qt-includes=/usr/local/qt/include --with-qt-libraries=/usr/local/qt/lib

This is the error I am currently getting...

make[1]: Entering directory `/local/kst-0.94/kst/kst'
source='curveappearancewidget.cpp' object='curveappearancewidget.o' libtool=no
\
depfile='.deps/curveappearancewidget.Po' 
tmpdepfile='.deps/curveappearancewidget.TPo' \
depmode=gcc3 /bin/bash ../../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/kde-3.1.4/include 
-I/usr/local/qt/include    -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS 
-DSVR4  -Wall -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith 
-Wwrite-strings -O2 -fno-exceptions -fno-check-new -fno-common 
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT 
-DQT_NO_TRANSLATION  -c -o curveappearancewidget.o `test -f 
'curveappearancewidget.cpp' || echo './'`curveappearancewidget.cpp
In file included from curveappearancewidget.cpp:27:
curveappearancewidget.ui.h: In member function `virtual void
    CurveAppearanceWidget::setColor(QColor)':
curveappearancewidget.ui.h:51: error: `setColor' undeclared (first use this
    function)
curveappearancewidget.ui.h:51: error: (Each undeclared identifier is reported
    only once for each function it appears in.)
curveappearancewidget.ui.h: In member function `virtual QColor
    CurveAppearanceWidget::color()':curveappearancewidget.ui.h:58: error: 
`color' undeclared (first use this
    function)
In file included from curveappearancewidget.cpp:27:
curveappearancewidget.ui.h: In member function `virtual void
    CurveAppearanceWidget::reset(QColor)':
curveappearancewidget.ui.h:94: error: `setColor' undeclared (first use this
    function)
In file included from curveappearancewidget.cpp:27:
curveappearancewidget.ui.h: In member function `virtual void
    CurveAppearanceWidget::setValue(bool, bool, const QColor&, int)':
curveappearancewidget.ui.h:104: error: `setColor' undeclared (first use this
    function)
curveappearancewidget.cpp: In constructor `
    CurveAppearanceWidget::CurveAppearanceWidget(QWidget*, const char*, unsigned
    int)':
curveappearancewidget.cpp:60: error: invalid use of undefined type `struct
    KColorButton'
curveappearancewidget.h:40: error: forward declaration of `struct 
KColorButton'curveappearancewidget.cpp:61: error: `sizePolicy' undeclared (first 
use this
    function)
curveappearancewidget.cpp:61: error: `setSizePolicy' undeclared (first use this
function)
curveappearancewidget.cpp:62: error: no matching function for call to `
    QHBoxLayout::addWidget(KColorButton*&)'
/usr/local/qt/include/qlayout.h:386: error: candidates are: void
    QBoxLayout::addWidget(QWidget*, int = 0, int = 0)
curveappearancewidget.cpp:92: error: no matching function for call to `
    CurveAppearanceWidget::connect(KColorButton*&, const char[24],
    CurveAppearanceWidget* const, const char[13])'
/usr/local/qt/include/qobject.h:116: error: candidates are: static bool
    QObject::connect(const QObject*, const char*, const QObject*, const char*)
/usr/local/qt/include/qobject.h:227: error:                 bool
    QObject::connect(const QObject*, const char*, const char*) const
curveappearancewidget.cpp:93: error: no matching function for call to `
    CurveAppearanceWidget::connect(KColorButton*&, const char[24],
    CurveAppearanceWidget* const, const char[12])'
/usr/local/qt/include/qobject.h:116: error: candidates are: static bool
    QObject::connect(const QObject*, const char*, const QObject*, const char*)
/usr/local/qt/include/qobject.h:227: error:                 bool
    QObject::connect(const QObject*, const char*, const char*) const
curveappearancewidget.cpp: In member function `virtual void
    CurveAppearanceWidget::languageChange()':
curveappearancewidget.cpp:118: error: `setText' undeclared (first use this
    function)
make[1]: *** [curveappearancewidget.o] Error 1
make[1]: Leaving directory `/local/kst-0.94/kst/kst'
make: *** [all-recursive] Error 1



I know it looks like its just missing an include file, but I've tried including 
various files which contain the setColor function but it has no benefit.

If anyone could shed some light on this I would be very grateful.

If all goes well I will write up a document detailing how this was built on 
solaris.

Thanks in advance,

Best Regards,
Olive






Olive Buggy
www.rssd.esa.int




More information about the Kst mailing list