[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-linux
Subject:    Re: [kde-linux] Parse error compiling KDE 3.1
From:       Gene Heskett <gene_heskett () iolinc ! net>
Date:       2003-03-02 6:14:57
[Download RAW message or body]

On Sun March 2 2003 00:37, mike@linuxbox.nu wrote:
>I am compiling KDE 3.1 using konstruct with:
>redhat-7.1
>gcc-2.96
>qt-3.1.1
>
>I get parse errors during kdebase, shown below.  I suspect that
> something is not being ./configure'd correctly.  However, I am
> unfamiliar with konstruct and don't know where to look to verify
> this.
>
>/usr/local/qt/bin/moc ./kdm-font.h -o kdm-font.moc
>/usr/local/qt/bin/moc ./background.h -o background.moc
>/usr/local/qt/bin/moc ./klanguagebutton.h -o klanguagebutton.moc
>/usr/local/qt/bin/moc ./main.h -o main.moc
>creating kcm_kdm_la.all_cpp.cpp ...
>source='kcm_kdm_la.all_cpp.cpp' object='kcm_kdm_la.all_cpp.lo'
> libtool=yes \ depfile='.deps/kcm_kdm_la.all_cpp.Plo'
>tmpdepfile='.deps/kcm_kdm_la.all_cpp.TPlo' \
>depmode=gcc3 /bin/sh ../../admin/depcomp \
>/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++
> -DHAVE_CONFIG_H -I. -I. -I../.. -I../../kcontrol/backgr          
>                 ound -I../../kcontrol/background -I../../kdesktop
> -I/opt/kde3.1/include -I/usr/local/qt/include -I/usr/X11R6/includ
>                           e -DQT_THREAD_SUPPORT
> -I/opt/kde3.1/include -I/usr/local/qt/include
> -I/usr/X11R6/include -I/opt/kde3.1/include -I
>/usr/local/qt/include -I/usr/X11R6/include  -D_REENTRANT 
> -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic        
>                    -W -Wpointer-arith -Wmissing-prototypes
> -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
> -Wcast-align -Wcon
>   version -DNDEBUG -DNO_DEBUG -O2 -I/opt/kde3.1/include
>-I/usr/local/qt/include -I/usr/X11R6/include -L/opt/kde3.1/li
>            b -L/usr/local/qt/lib -L/usr/X11R6/lib
> -I/opt/kde3.1/include -I/usr/local/qt/include
> -I/usr/X11R6/include -L/opt/kd
>     e3.1/lib -L/usr/local/qt/lib -L/usr/X11R6/lib -O2 -pipe -O2
> -pipe -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPA
>CE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -D_GNU_SOURCE  -c -o
>kcm_kdm_la.all_cpp.lo `test -f 'kcm_kdm_la.all_cpp.cpp' |
>
>        | echo './'`kcm_kdm_la.all_cpp.cpp
>
>In file included from kcm_kdm_la.all_cpp.cpp:2:
>background.cpp: In method `KBackground::KBackground (QWidget *,
> const char *)':
>background.cpp:57: `KDE_CONFDIR' undeclared (first use this
> function) background.cpp:57: (Each undeclared identifier is
> reported only once for each function it appears in.)
>background.cpp:57: parse error before string constant
>In file included from kcm_kdm_la.all_cpp.cpp:8:
>klanguagebutton.cpp: In method `void
> KLanguageButton::insertLanguage (const QString &, const QString
> &, const QString &, const QString &, int)':
>klanguagebutton.cpp:133: warning: unused parameter `const QString
> &sub' In file included from kcm_kdm_la.all_cpp.cpp:9:
>main.cpp: In method `KDModule::KDModule (QWidget *, const char *,
> const QStringList &)':
>main.cpp:95: parse error before string constant
>make[5]: *** [kcm_kdm_la.all_cpp.lo] Error 1
>make[5]: Leaving directory
>`/root/konstruct/kde/kdebase/work/kdebase-3.1/kcontrol/kdm'
>make[4]: *** [all-recursive] Error 1
>make[4]: Leaving directory
>`/root/konstruct/kde/kdebase/work/kdebase-3.1/kcontrol'
>make[3]: *** [all-recursive] Error 1
>make[3]: Leaving directory
> `/root/konstruct/kde/kdebase/work/kdebase-3.1' make[2]: *** [all]
> Error 2
>make[2]: Leaving directory
> `/root/konstruct/kde/kdebase/work/kdebase-3.1' make[1]: ***
> [build-work/kdebase-3.1/Makefile] Error 2
>make[1]: Leaving directory `/root/konstruct/kde/kdebase'
>make: *** [dep-../../kde/kdebase] Error 2
>
>---
>Mike Gatny <mike@linuxbox.nu>
>
This looks as if the qt hasn't been built yet since its finding the 
older install in /usr/local.  Generally speaking, one must first 
build qt, then kdelibs, then the rest of it.  But after building 
qt, one must then inform gar.mk by setting the flag var that says 
qt has been built, and setting the location of the qt libs, which 
at that point should be ~/username/kde3.1 if using konstruct.

-- 
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.24% setiathome rank, not too shabby for a WV hillbilly
___________________________________________________
This message is from the kde-linux mailing list.
Account management:  http://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic