Скачал Qt 3.2.0, установил в /usr/local/qt (cо стандартным Qt не работал ни один скрипт ./configure). Я пытался ставить КДЕ-приложения - часть из них просит установить kdelibs, часть не компиляцца. ( Запускаю ./configure --with-qt-dir=/usr/local/qt --with-qt-includes=/usr/local/qt/include --with-qt-libraries=/usr/local/qt/lib --disable-mt )
Вытащил из дисков ALT Master ' а исходники кде и стал пытаться компилить. Даю аналогичную команду сонфигуре - нормально проходит. Затем make - вылазит следующая ошибка:
Код: Выделить всё
libtool: link: warning: `-version-info' is ignored for programs
.libs/kimageeffect.o: In function `KImageEffect::gradient(QSize const &, QColor const &, QColor const &, KImageEffect::GradientType, int)':
.libs/kimageeffect.o(.text+0x5e): undefined reference to `cerr'
.libs/kimageeffect.o(.text+0x64): undefined reference to `ostream::operator<<(char const *)'
.libs/kimageeffect.o(.text+0x6d): undefined reference to `endl(ostream &)'
.libs/kimageeffect.o: In function `KImageEffect::unbalancedGradient(QSize const &, QColor const &, QColor const &, KImageEffect::GradientType, int, int, int)':
.libs/kimageeffect.o(.text+0x134e): undefined reference to `cerr'
.libs/kimageeffect.o(.text+0x1354): undefined reference to `ostream::operator<<(char const *)'
.libs/kimageeffect.o: In function `KImageEffect::intensity(QImage &, float)':
.libs/kimageeffect.o(.text+0x25f6): undefined reference to `cerr'
.libs/kimageeffect.o(.text+0x25fe): undefined reference to `ostream::operator<<(char const *)'
.libs/kimageeffect.o: In function `KImageEffect::channelIntensity(QImage &, float, KImageEffect::RGBComponent)':
.libs/kimageeffect.o(.text+0x28f6): undefined reference to `cerr'
.libs/kimageeffect.o(.text+0x28fe): undefined reference to `ostream::operator<<(char const *)'
.libs/kimageeffect.o: In function `KImageEffect::modulate(QImage &, QImage &, bool, KImageEffect::ModulationType, int, KImageEffect::RGBComponent)':
.libs/kimageeffect.o(.text+0x2c96): undefined reference to `cerr'
.libs/kimageeffect.o(.text+0x2c9c): undefined reference to `ostream::operator<<(char const *)'
.libs/kimageeffect.o: In function `KImageEffect::blend(QColor const &, QImage &, float)':
.libs/kimageeffect.o(.text+0x3439): undefined reference to `cerr'
.libs/kimageeffect.o(.text+0x3441): undefined reference to `ostream::operator<<(char const *)'
.libs/kimageeffect.o: In function `KImageEffect::blend(QImage &, QImage &, float)':
.libs/kimageeffect.o(.text+0x35c2): undefined reference to `cerr'
.libs/kimageeffect.o(.text+0x35c8): undefined reference to `ostream::operator<<(char const *)'
.libs/kimageeffect.o(.text+0x3608): undefined reference to `cerr'
.libs/kimageeffect.o(.text+0x3610): undefined reference to `ostream::operator<<(char const *)'
.libs/kimageeffect.o: In function `KImageEffect::blend(QImage &, float, QColor const &, KImageEffect::GradientType, bool)':
.libs/kimageeffect.o(.text+0x37b4): undefined reference to `cerr'
.libs/kimageeffect.o(.text+0x37ba): undefined reference to `ostream::operator<<(char const *)'
.libs/kimageeffect.o(.text+0x459b): undefined reference to `cerr'
.libs/kimageeffect.o(.text+0x45a3): undefined reference to `ostream::operator<<(char const *)'
.libs/kimageeffect.o(.text+0x45ac): undefined reference to `endl(ostream &)'
.libs/kimageeffect.o: In function `KImageEffect::blend(QImage &, QImage &, QImage &, KImageEffect::RGBComponent)':
.libs/kimageeffect.o(.text+0x472a): undefined reference to `cerr'
.libs/kimageeffect.o(.text+0x4732): undefined reference to `ostream::operator<<(char const *)'
.libs/kimageeffect.o(.text+0x473b): undefined reference to `endl(ostream &)'
.libs/kimageeffect.o: In function `KImageEffect::hash(QImage &, KImageEffect::Lighting, unsigned int)':
.libs/kimageeffect.o(.text+0x4be3): undefined reference to `cerr'
.libs/kimageeffect.o(.text+0x4beb): undefined reference to `ostream::operator<<(char const *)'
.libs/kimageeffect.o(.text+0x4bf4): undefined reference to `endl(ostream &)'
.libs/kimageeffect.o: In function `KImageEffect::blend(QImage const &, QImage const &, QImage &)':
.libs/kimageeffect.o(.text+0x6764): undefined reference to `cerr'
.libs/kimageeffect.o(.text+0x676c): undefined reference to `ostream::operator<<(char const *)'
collect2: ld returned 1 exit status
make[2]: *** [libkdefx.la.closure] Error 1
make[2]: Leaving directory `/DOC/files/kde310/kdelibs-3.1.0/kdefx'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/DOC/files/kde310/kdelibs-3.1.0'
make: *** [all] Error 2
Потому что вчера скачал kcdlabel-2.12-KDE3
И оно тоже ошибку дает на make:
Ээээ... Хотел код этот привести, но там шибко много!!! Так что только несколько строк пока - а потом если нужно будет... Факт тот, что опять undefined reference to и опять что-то с кюте... Как-то я его криво может синсталлил?
Код: Выделить всё
kcdlabel.moc.o(.gnu.linkonce.d.__vt_8KCDLabel.14KXMLGUIBuilder+0x1c): undefined reference to `KXMLGUIBuilder::createCustomElement(QWidget *, int, QDomElement const &)'
kcdlabel.moc.o(.gnu.linkonce.d.__vt_8KCDLabel.14KXMLGUIBuilder+0x20): undefined reference to `KXMLGUIBuilder::removeCustomElement(QWidget *, int)'
kcdlabel.moc.o: In function `KCDLabel type_info function':
kcdlabel.moc.o(.gnu.linkonce.t.__tf8KCDLabel+0x10): undefined reference to `KMainWindow type_info function'
collect2: ld returned 1 exit status
make[3]: *** [kcdlabel] Error 1
make[3]: Leaving directory `/DOC/files/kcdlabel-2.12-KDE3/kcdlabel'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/DOC/files/kcdlabel-2.12-KDE3/kcdlabel'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/DOC/files/kcdlabel-2.12-KDE3'
make: *** [all] Error 2
Код: Выделить всё
2. Set some environment variables in the file .profile (or .login,
depending on your shell) in your home directory. Create the
file if it is not there already.
QTDIR - the directory in which you're building Qt
PATH - to locate the moc program and other Qt tools
MANPATH - to access the Qt man pages
LD_LIBRARY_PATH - for the shared Qt library
This is done like this:
In .profile (if your shell is bash, ksh, zsh or sh), add the
following lines:
QTDIR=/usr/local/qt
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR PATH MANPATH LD_LIBRARY_PATH
In .login (in case your shell is csh or tcsh), add the following lines:
setenv QTDIR /usr/local/qt
setenv PATH $QTDIR/bin:$PATH
setenv MANPATH $QTDIR/doc/man:$MANPATH
setenv LD_LIBRARY_PATH $QTDIR/lib:$LD_LIBRARY_PATH
After you have done this, you will need to login again, or
re-source the profile before continuing, so that at least $QTDIR
and $PATH are set. Without these the installation will halt with an error
message.
А конфиг с предустановленным Qt дает ошибку такую:
Код: Выделить всё
checking for Qt... configure: error: Qt (>= Qt 3.0.3) (library qt) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Если кто-то дочитал этот пост прошу помочь разобраться plz! А то я уже не пойму то ли дистриб кривой то ли руки