[Kst] Kst-2.0.4 Build issues

Andriy Shinkarchuck adriano32.gnu at gmail.com
Wed Sep 14 01:30:27 UTC 2011


Hi Kst!

Yesterday i have tryed to build Kst from source
(http://sourceforge.net/projects/kst/files/Kst%202.0.4/kst-2.0.4.tar.gz)
and have to fix a few issues by hand before i could compile it
succesfully.

1) ./src/kst-2.0.4/src/widgets/cclineedit.cpp:584

#define SIZE_LIMITED_NAME sizeLimitedName(
(_cc&&_cc->_tableView)?_cc->_tableView->font():QFont(), \
    (_cc&&_cc->_tableView)? ((_cc->_tableView->width()/2-50)): 900000000000)

I had errors

../../../src/widgets/cclineedit.cpp:619: error: integer constant is
too large for ‘long’ type
../../../src/widgets/cclineedit.cpp:620: error: integer constant is
too large for ‘long’ type
../../../src/widgets/cclineedit.cpp:629: error: integer constant is
too large for ‘long’ type
../../../src/widgets/cclineedit.cpp:630: error: integer constant is
too large for ‘long’ type
../../../src/widgets/cclineedit.cpp:664: error: integer constant is
too large for ‘long’ type
../../../src/widgets/cclineedit.cpp:675: error: integer constant is
too large for ‘long’ type
../../../src/widgets/cclineedit.cpp:64: warning: unused parameter ‘textEdit’
make[1]: *** [tmp/cclineedit.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/usr/local/src/kst-2.0.4/build/src/widgets'
make: *** [sub-src-widgets-make_default-ordered] Error 2

after i changed 900000000000 to 900000000 to fit into integer type like below

#define SIZE_LIMITED_NAME sizeLimitedName(
(_cc&&_cc->_tableView)?_cc->_tableView->font():QFont(), \
    (_cc&&_cc->_tableView)? ((_cc->_tableView->width()/2-50)): 900000000)

iI've steped to the next issue.

2) themedialog.cpp, themedialog.h, themedialog.ui are missing in
./src/kst-2.0.4/src/libkstapp/libkstapp.pro

That's why i received error

In file included from ../../../src/libkstapp/mainwindow.cpp:48:
../../../src/libkstapp/themedialog.h:38: error: expected class-name
before ‘{’ token

After i added all of them iI've steped to the next issue.

3) During following make i get error

cd src/kst/ && make -f Makefile
make[1]: Entering directory `/usr/local/src/kst-2.0.4/build/src/kst'
compiling ../../../src/kst/main.cpp
rcc ../../../src/images/images.qrc
compiling qrc_images.cpp
linking ../../build/bin/kst2
/usr/local/src/kst-2.0.4/build/src/kst/../../build/lib/libkst2app.so:
undefined reference to `Kst::KstTimeZone::KstTimeZone(QString)'
/usr/local/src/kst-2.0.4/build/src/kst/../../build/lib/libkst2app.so:
undefined reference to `Kst::KstTimeZone::setTZ(QString)'
/usr/local/src/kst-2.0.4/build/src/kst/../../build/lib/libkst2app.so:
undefined reference to `Kst::KstTimeZone::tzList()'
/usr/local/src/kst-2.0.4/build/src/kst/../../build/lib/libkst2app.so:
undefined reference to `Kst::KstTimeZone::gmtOffset(long)'
collect2: ld returned 1 exit status
make[1]: *** [../../build/bin/kst2] Error 1
make[1]: Leaving directory `/usr/local/src/kst-2.0.4/build/src/kst'
make: *** [sub-src-kst-make_default-ordered] Error 2

I've added ksttimezone.h and ksttimezone.cpp into libkst.pro and after
then compilation finished successfully.

4) I've edited ./src/kst-2.0.4/run-kst to point to the
BUILDDIR=$PWD/build/build not BUILDDIR=$PWD/build and then succesfully
run my Kst.

5) Actually it is not Kst 2.0.4 :) I opened Help -> About dialog and
saw "Kst 2.0.3 - A data viewing program.
Revision unknown"

My OS is Debian Lenny, gcc 4.3.2 (default for lenny), Qt is 4.7.3
(compiled byself).

If it is necessary i can send patches i've applyed to make
2.0.4.tar.gz sources work.

WBR, Andriy.


More information about the Kst mailing list