[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems compiling CVS head



I just built successfully off the cvs head (except for kdepim).  There
are a couple of things to check:

The early build order needs to be qt-copy, kdesupport, arts, kdelibs,
say the docs.

You need to set some environment variables so everything is found.
Here's a script I use:

#! /bin/bash
# Set up environment suitable for running local copy of
# KDE and QT
# 14-Nov-2002 Ross Boylan
# From http://women.kde.org/projects/coding/kde2+3.phtml

echo "You must source this file (. rb-env) for it to work."
set -v # echo lines
export YACC='byacc -d'
export QTDIR='/usr/local/src/kde3/qt-copy'
export CC="gcc-3.2"
export CXX="g++-3.2"
export CFLAGS="-march=athlon"
export CXXFLAGS="-march=athlon"
export KDEDIR=/usr/local/kde3
export MANPATH=$QTDIR/doc/man:$MANPATH
export PATH=$QTDIR/bin:$KDEDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$KDEDIR/lib:$LD_LIBRARY_PATH
export KDEHOME=~/.kde3

In particular, it looks as if you might be missing QTDIR.

On Sun, Nov 17, 2002 at 10:55:36AM +0100, Magnus von Koeller wrote:
> Hash: SHA1
> 
> Hi,
> 
> I'm currently trying to compile CVS HEAD from scratch (I haven't done
> so in ages...). So, I checked out qt-copy, put it into
> /usr/local/qt-copy and compiled it, with the commands listed in
> README.qt-copy.
> 
> Then, I compiled arts and installed it into /usr/local/kde3. Worked
> fine. Now, I'm trying to compile kdelibs
> but I get the following error that I can't figure out:
> 
> /bin/sh ../libtool --silent --mode=link --tag=CXX g++
> - -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 -Wconversion -DNDEBUG
> - -DNO_DEBUG -O2 -fno-exceptions -fno-check-new  -DQT_NO_TRANSLATION
> - -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT    -o
> libDCOP.la.closure libDCOP_la_closure.lo -R /usr/local/kde3/lib -R
> /usr/X11R6/lib -version-info 5:0:1 -no-undefined -L/usr/X11R6/lib
> - -L/usr/local/kde3/lib  dcopstub.lo dcopref.lo dcopobject.lo
> dcopclient.lo KDE-ICE/libkICE.la -lqt-mt  -lpng -lz -lm -lXext -lX11
> - -lSM -lICE -lpthread
> libtool: link: warning: `-version-info' is ignored for programs
> .libs/dcopclient.o(.text+0x864b): In function
> `DCOPClient::staticMetaObject(void)':
> : undefined reference to `QMetaObject::new_metaobject(char const *,
> QMetaObject *, QMetaData const *, int, QMetaData const *, int,
> QMetaProperty const *, int, QMetaEnum const *, int, bool (*)(QObject
> *, int, int, QVariant *), QClassInfo const *, int)'
> .libs/dcopclient.o(.text+0x873e): In function
> `DCOPClient::applicationRegistered(QCString const &)':



Reply to: