KDE_2_2_BRANCH: version conflict inside admin directory...

W. Tasin tasin at ee.fhm.edu
Tue Oct 30 18:21:50 UTC 2001


Hello, 

as already announced I wanted to check out the problem with autoconf
stuff for c++ and c projects.
Unfortunately we have a big problem inside the KDEVELOP admin directory,
which doesn't allow me to compile kdevelop correctly.

The problem resides in the ${UIC_TR} env-variable, which should be set
by admin/acinclude.m4.in.

My system:
clean installation of SuSE 7.3 (no update from 7.x) with kde 2.2.1 and
qt-2.3.1.
trying to install kdevelop from the KDE_2_2_BRANCH

Noone will get this trouble unless some .ui-files are changed, even
compiling seems to be ok, but if you look at the compiling output you
will get e.g.
---- snip ---
/usr/lib/qt-2.3.1/bin/uic -tr  -i prefView.h ./prefView.ui | sed -e
"s,( \"\" ),QString::null,g" | sed -e "s,( \"\"\, \"\"
),QString::null,g" >> prefView.cpp || rm -f prefView.cpp
Qt user interface compiler
uic: Too many input files specified
Usage: /usr/lib/qt-2.3.1/bin/uic  [options] [mode] <uifile>

Generate declaration:
   /usr/lib/qt-2.3.1/bin/uic  [options]  <uifile>
Generate implementation:
   /usr/lib/qt-2.3.1/bin/uic  [options] -impl <headerfile> <uifile>
        <headerfile>    name of the declaration file
Generate subclass declaration:
   /usr/lib/qt-2.3.1/bin/uic  [options] -subdecl <classname>
<headerfile> <uifile>
        <classname>     name of the subclass to generate
        <headerfile>    declaration file of the baseclass
Generate subclass implementation:
   /usr/lib/qt-2.3.1/bin/uic  [options] -subimpl <classname>
<headerfile> <uifile>
        <classname>     name of the subclass to generate
        <headerfile>    declaration file of the subclass
Options:
        -o file         Write output to file rather than stdout
        -tr func        Use func(...) rather than tr(...) for i18n
echo '#include "prefView.moc"' >> prefView.cpp
/bin/sh ../../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I.
-I. -I../.. -I/opt/kde2/include -I/usr/lib/qt-2.3.1/include
-I/usr/X11R6/include     -O2
-fno-exceptions -fno-check-new  -c prefView.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/kde2/include
-I/usr/lib/qt-2.3.1/include -I/usr/X11R6/include -O2 -fno-exceptions
-fno-check-new -Wp,-MD,.deps/prefView.pp -c prefView.cpp  -fPIC -DPIC -o
.libs/prefView.o
---- snap ---
somewhere, without stopping the compilage.

So later in the linkage part you will get either some thousand
unresolved references or the old object will be used and it seems that
all runs fine.

the correct call should be:
/usr/lib/qt-2.3.1/bin/uic -tr i18n -i prefView.h ./prefView.ui | sed -e
"s,i18n( \"\" ),QString::null,g" | sed -e "s,i18n( \"\"\, \"\"
),QString::null,g" >> prefView.cpp || rm -f prefView.cpp

and the missing "i18n" or "tr2i18n" (for qt 3.x) is set inside the new
acinclude.m4.in. Unfortunately we are using a new "am_edit" with an old
"acinclude.m4.in".

I suggest to update the complete admin directory and to change the
configure-stuff to make kdevelop compilable against qt-2.2.x

(And there's my problem... how to set up configure.in.in to implement
KDE_USE_QT(2,2) *sigh*

Stephan, please, could you give me a hint where the macro-call has to
be?

I tried several places and also creating configure.in.mid... but no way.
It would be fine, if I haven't to create an own configure.in.min....
)

Ciao

Walter

-
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