On Saturday, April 11, 2015 10:41 PM, Russell Brown <russell@lls.lls.com> wrote:



Hi,

I'm trying to use Kapptemplate v1.1.1 on TDE R14 and it seems to be
having problems with libtool.

Here's the output of make after creating the app with kapptemplate:

>make[3]: Entering directory `/russell/src/klt-2.0/klt'
>/bin/bash ../libtool --tag=CXX --mode=link g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -g -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt    -o klt -R /opt/trinity/lib -R /opt/trinity/lib -R /usr/lib -L/opt/trinity/lib main.o klt.o kltview.o kltpref.o kltiface_skel.o -ltdeio -ltdeprint
>libtool: Version mismatch error.  This is libtool 2.2.6b Debian-2.2.6b-2ubuntu1, but the
>libtool: definition of this LT_INIT comes from libtool 2.4.2.
>libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b Debian-2.2.6b-2ubuntu1
>libtool: and run autoconf again.
>make[3]: *** [klt] Error 63
>make[3]: Leaving directory `/russell/src/klt-2.0/klt'

The installed libtool on my Debian Wheezy is 2.4.2-1.1

I've tried replacing aclocal.m4 with the one from
/usr/share/libtool/libltdl/aclocal.m4 and admin/ltmain.sh with the one
from /usr/share/libtool/config/ltmain.sh but then I get a different
problem:

>/bin/bash ../libtool --tag=CXX --mode=link g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -g -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt    -o klt -R /opt/trinity/lib -R /opt/trinity/lib -R /usr/lib -L/opt/trinity/lib main.o klt.o kltview.o kltpref.o kltiface_skel.o -ltdeio -ltdeprint libtool: link: g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -g -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt -o klt main.o klt.o kltview.o kltpref.o kltiface_skel.o  -L/opt/trinity/lib /opt/trinity/lib/libtdeio.so /opt/trinity/lib/libtdeprint.so -Wl,-rpath -Wl,/opt/trinity/lib -Wl,-rpath -Wl,/opt/trinity/lib -Wl,-rpath -Wl,/usr/lib
>/usr/bin/ld: klt.o: undefined reference to symbol '_ZNK13KXMLGUIClient6actionERK12TQDomElement'
>/usr/bin/ld: note: '_ZNK13KXMLGUIClient6actionERK12TQDomElement' is defined in DSO /opt/trinity/lib/libtdeui.so.14 so try adding it to the linker command line
>/opt/trinity/lib/libtdeui.so.14: could not read symbols: Invalid operation
>collect2: error: ld returned 1 exit status
>make[3]: *** [klt] Error 1

How do I get kapptemplate to build a compilable TDE app ?


Hi I had similar problem.
I do not use kapptemplate but the admin set of scripts offered by the experimental.

I had to cleaned up a bit and fix few things in the admin directory though to make it work on debian wheezy and now jessie. Unfortunately ATM I can not help with detailed information. It is on the todo to make a diff of the original tde admin and the one I used to build kplayer.

On of the things that helped was to create fresh aclocal.m4.

cat /usr/share/aclocal/libtool.m4 /usr/share/aclocal/ltoptions.m4 /usr/share/aclocal/ltversion.m4 /usr/share/aclocal/ltsugar.m4 /usr/share/aclocal/lt~obsolete.m4 > aclocal.m4

I also do not know how to proceed with those changes - to commit or not to commit. I wanted to possibly discuss this in the future.

I hope this helps.

regards