compiling error in HEAD
Simon Hausmann
hausmann at kde.org
Sat Sep 8 17:30:37 UTC 2001
On Sat, Sep 08, 2001 at 06:36:10PM +0200, Ralf Nolden wrote:
> On Samstag, 8. September 2001 18:22, you wrote:
>
> Harry, as much as changing configure stuff would work, it doesn't because the
> admin stuff is in /kde-common and counts for all of KDE, not just kdevelop.
> Isn't there a codewise-way to make it compile ? Otherwise I suggest to add a
> Makefile.am.compat which is a copy of the old Makefile.am that the ones can
> use who are sticking with KDE 2.2 as an intermediate solution.
To answer Harry's question: The major Qt version (2/3) gets substituted
in the Makefile as kde_qtver.
If you want to make the Qt configure check check for qt2 or 3 conditionally
all it takes is to explictly call the KDE_USE_QT macro in configure.in
(configure.in.in respectively) with either a complete qt version or
only the major Qt version.
Without having tested maybe something along the lines of that could work:
AC_ARG_ENABLE(gideon-qt2,[ --enable-gideon-qt2 use qt2 for gideon],
KDE_USE_QT(3.0), KDE_USE_QT(2.1))
Simon
> Ralf
> > Hi,
> >
> > whoops... looks like my fault. To get it compiled with Qt 3 I moved the Qt
> > include paths before the kdevelop include paths to prevent linking againt
> > the qt3stuff. This breaks unfortunately if you don't have Qt 3 installed...
> >
> > I think the solution for that would rather be to include a "--use-qt2" or
> > something similar to the configure script which tells it to build and use
> > the qt3stuff instead of Qt.
> >
> > Unfortunately I have not much clue about autoconf/automake, is there a nice
> > way to determine the Qt version?
> >
> > The quick workaround for Qt 2 users is to change
> > parts/outputviews/Makefile.am back to the original
> >
> > INCLUDES = -I$(top_srcdir)/lib/interfaces \
> > -I$(top_srcdir)/lib/util \
> > -I$(top_srcdir)/lib/qt3stuff \
> > $(all_includes)
> >
> > (Just swap the last two lines...)
> >
> > Harry
> >
> > > Hi!
> > >
> > > Sorry, but after a week offline(I was ill) I tried to compile the HEAD
> > > and unfortunately there are problems.:-( Maybe someone can check it? I
> > > have "old" gcc and KDE2.2final.
> > >
> > > +++++++++++
> > > c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/interfaces
> > > -I../../lib/util -I/opt/kde2//include -I/
> > > usr/lib/qt2/include -I/usr/X11R6/include -I../../lib/qt3stuff
> > > -DQT_THREAD_SUPPORT -pthread -O2 -fno-
> > > exceptions -fno-check-new -Wp,-MD,.deps/makeviewpart.pp -c
> > > makeviewpart.cpp -fPIC -DPIC -o .libs/ma
> > > keviewpart.o
> > > In file included from makewidget.h:18,
> > > from makeviewpart.cpp:21:
> > > /usr/lib/qt2/include/qrichtext_p.h:101: parse error before `*'
> > > /usr/lib/qt2/include/qrichtext_p.h:284: parse error before `*'
> > > /usr/lib/qt2/include/qrichtext_p.h:287: parse error before `*'
> > > /usr/lib/qt2/include/qrichtext_p.h:295: ANSI C++ forbids declaration
> > > `QStyleSheetItem' with no type
> > > /usr/lib/qt2/include/qrichtext_p.h:295: parse error before `*'
> > > /usr/lib/qt2/include/qrichtext_p.h:321: invalid use of member
> > > `QTextParagraph::QStyleSheetItem'
> > > ++++++++++++++++++++++++++
> > >
> > >
> > > Ciao!
> > > Sandy
> >
> > -
> > to unsubscribe from this list send an email to
> > kdevelop-devel-request at kdevelop.org with the following body: unsubscribe
> > »your-email-address«
>
> --
> We're not a company, we just produce better code at less costs.
> --------------------------------------------------------------------
> Ralf Nolden
> nolden at kde.org
>
> The K Desktop Environment The KDevelop Project
> http://www.kde.org http://www.kdevelop.org
>
>
> -
> to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«
-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop-devel
mailing list