Hello,

I tried to compile LyX-1.3.6 on stock Slackware 10.1 system. My build script 
is given below:

#!/bin/sh

VERSION=1.3.6

SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
CFLAGS="$SLKCFLAGS"
CXXFLAGS="$SLKCFLAGS"

rm -rf lyx-$VERSION
tar -xjvf lyx-$VERSION.tar.bz2
cd lyx-$VERSION

# Corret ownerships
chown -R root.root .

# Correct permissions
find . -perm 664 -exec chmod 644 {} \;
find . -perm 600 -exec chmod 644 {} \;
find . -perm 444 -exec chmod 644 {} \;
find . -perm 400 -exec chmod 644 {} \;
find . -perm 440 -exec chmod 644 {} \;
find . -perm 777 -exec chmod 755 {} \;
find . -perm 775 -exec chmod 755 {} \;
find . -perm 511 -exec chmod 755 {} \;
find . -perm 711 -exec chmod 755 {} \;
find . -perm 555 -exec chmod 755 {} \;
find . -perm 666 -exec chmod 644 {} \;

./configure --prefix=/usr \
            --build=i486-slackware-linux \
     --with-frontend=qt
make all
checkinstall

When I run the above script, configure went off well and I got the following 
output:

Configuration
  Host type:                      i486-slackware-linux-gnu
  Special build flags:            aiksaurus use-pspell use-ispell
  C   Compiler:                   gcc
  C   Compiler flags:             -g -O2
  C++ Compiler:                   g++ (3.3.4)
  C++ Compiler flags:             -O
  Linker flags:                   
  Frontend:                       qt
    Qt version:                   3.3.3
  Packaging:                      posix
    LyX binary dir:               /usr/bin
    LyX files dir:                /usr/share/lyx

Configuration of LyX was successful.

But during make all I got the following error messages:

g++ -DHAVE_CONFIG_H -I. -I. -I../../../src -I../../../src 
-I../../../src/frontends -I../../../images -I./qt2 -I/usr/lib/qt/include 
-I../../../boost -I../../../src/frontends/controllers 
-isystem /usr/X11R6/include -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR 
-DQT_THREAD_SUPPORT -O -MT QPrefs.lo -MD -MP -MF .deps/QPrefs.Tpo -c QPrefs.C
QPrefs.C: In function `void <unnamed>::setComboxFont(QComboBox*, const 
   std::string&, const std::string&, QFont::StyleHint)':
QPrefs.C:350: error: no match for 'operator==' in 'QComboBox::text(int) 
   const(i) == default_font_name'
../../../src/lyxlength.h:85: error: candidates are: bool operator==(const 
   LyXLength&, const LyXLength&)
../../../src/lyxgluelength.h:67: error:                 bool operator==(const 
   LyXGlueLength&, const LyXGlueLength&)
../../../src/Spacing.h:76: error:                 bool operator==(const 
   Spacing&, const Spacing&)
../../../src/Bullet.h:48: error:                 bool operator==(const 
Bullet&, 
   const Bullet&)
../../../src/lyxfont.h:438: error:                 bool operator==(const 
   LyXFont&, const LyXFont&)
../../../src/lyxfont.h:427: error:                 bool operator==(const 
   LyXFont::FontBits&, const LyXFont::FontBits&)
/usr/lib/qt/include/qcstring.h:299: error:                 bool 
   operator==(const QCString&, const QCString&)
/usr/lib/qt/include/qcstring.h:302: error:                 bool 
   operator==(const QCString&, const char*)
/usr/lib/qt/include/qcstring.h:305: error:                 bool 
   operator==(const char*, const QCString&)
/usr/lib/qt/include/qstring.h:303: error:                 bool 
operator==(char, 
   QChar)
/usr/lib/qt/include/qstring.h:308: error:                 bool 
   operator==(QChar, char)
/usr/lib/qt/include/qstring.h:313: error:                 bool 
   operator==(QChar, QChar)
/usr/lib/qt/include/qstring.h:1015: error:                 bool 
   operator==(const QString&, const QString&)
/usr/lib/qt/include/qstring.h:1022: error:                 bool 
   operator==(const QString&, const char*)
/usr/lib/qt/include/qstring.h:1028: error:                 bool 
   operator==(const char*, const QString&)
/usr/lib/qt/include/qpoint.h:148: error:                 bool operator==(const 
   QPoint&, const QPoint&)
/usr/lib/qt/include/qsize.h:162: error:                 bool operator==(const 
   QSize&, const QSize&)
/usr/lib/qt/include/qrect.h:151: error:                 bool operator==(const 
   QRect&, const QRect&)
make[5]: *** [QPrefs.lo] Error 1
make[5]: Leaving directory `/home/anand/lyx-1.3.6/src/frontends/qt2'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/anand/lyx-1.3.6/src/frontends/qt2'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/anand/lyx-1.3.6/src/frontends'
make[2]: *** [all-recursive] Error 1

Can anybody help to correct this error?

Thanks for your help,

Anand




Reply via email to