trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: August 2010

Re: [trinity-devel] Building TQTInterface

From: "Timothy Pearson" <kb9vqf@...>
Date: Mon, 23 Aug 2010 23:53:34 -0500
> I'm trying to build a TQTInterface package for Slackware.
>
> I run the automake okay, config runs, but I still get the error messages
> that TQT is not installed.
That's normal; TQT uses the same automake setup as the rest of Trinity. 
That's also the reason the error message has been demoted to a warning.
> Well, yes, I'm trying to build the package.
>
> The build boms with the following:
>
> Good - your configure finished. Start make now
>
> make  all-recursive
> make[1]: Entering directory `/dev/shm/tqtinterface'
> Making all in libltdl
> make[2]: Entering directory `/dev/shm/tqtinterface/libltdl'
> /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..
>  -DQT_THREAD_SUPPORT  -D_REENTRANT  -std=iso9899:1990 -W -Wall
> -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes
> -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2   -Wformat-security
> -Wmissing-format-attribute -c -o ltdl.lo ltdl.c
> /bin/sh ../libtool --tag=CC   --mode=link gcc  -std=iso9899:1990 -W -Wall
> -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes
> -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2   -Wformat-security
> -Wmissing-format-attribute   -o libltdlc.la  ltdl.lo -ldl
> make[2]: Leaving directory `/dev/shm/tqtinterface/libltdl'
> Making all in qtinterface
> make[2]: Entering directory `/dev/shm/tqtinterface/qtinterface'
> Making all in .
> make[3]: Entering directory `/dev/shm/tqtinterface/qtinterface'
> /bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..
> -I../qtinterface -I.. -I/usr/lib/qt/include -I.    -DQT_THREAD_SUPPORT
> -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500
> -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2
> -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor
> -fno-exceptions -fno-check-new -fno-common    -MT tqt.lo -MD -MP -MF
> .deps/tqt.Tpo -c -o tqt.lo tqt.cpp
> /bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..
> -I../qtinterface -I.. -I/usr/lib/qt/include -I.    -DQT_THREAD_SUPPORT
> -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500
> -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2
> -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor
> -fno-exceptions -fno-check-new -fno-common    -MT tqaccel.lo -MD -MP -MF
> .deps/tqaccel.Tpo -c -o tqaccel.lo tqaccel.cpp
> mv -f .deps/tqaccel.Tpo .deps/tqaccel.Plo
> mv: cannot stat `.deps/tqaccel.Tpo': No such file or directory
> make[3]: *** [tqaccel.lo] Error 1
> make[3]: *** Waiting for unfinished jobs....
> mv -f .deps/tqt.Tpo .deps/tqt.Plo
> mv: cannot stat `.deps/tqt.Tpo': No such file or directory
> make[3]: *** [tqt.lo] Error 1
> make[3]: Leaving directory `/dev/shm/tqtinterface/qtinterface'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/dev/shm/tqtinterface/qtinterface'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/dev/shm/tqtinterface'
> make: *** [all] Error 2
>
> .deps/tqt.Tpo does exist but might be a path problem in my build script.
>
> My build script:
>
> #!/bin/sh
> PRGNAM=tqtinterface
> CWD=`pwd`
> TMP=${TMP:-/tmp}
> PKG=$TMP/package-$PRGNAM
> OUTPUT=$CWD
>
> # Set the config option variables if they are not already set:
> if [ -r ../KDE.options ]; then
>   . ../KDE.options
> fi
>
> rm -rf $PKG
> rm -fr $TMP/$PRGNAM*
> mkdir -p $PKG/usr
>
> # Avoid a version number in .la files:
> if [ -d /usr/lib/qt ]; then
>   QTDIR=/usr/lib/qt
> fi
>
> echo "Building $PRGNAM-$VERSION."
> echo
> echo "Copying svn dependencies to build environment..."
> # Source files from Trinity are already unpacked. Just copy to $TMP.
> echo "Copying $PRGNAM source files to $TMP..."
> cp -a src/dependencies/$PRGNAM $TMP/
> cd $TMP/$PRGNAM || exit 1
> echo
>
> echo "Building make and config files..."
> echo
> cp -Rp /usr/lib/build/libtool.m4 file> admin/libtool.m4.in
> cp -Rp /usr/lib/build/ltmain.sh file> admin/ltmain.sh
> make -f admin/Makefile.common
> echo
> echo "Finished building make and config files."
> echo
>
> chown -R root:root .
> CFLAGS=$CPUOPT \
> CXXFLAGS=$CPUOPT \
> ./configure \
>   --prefix=/usr \
>
> make -j4 || exit 1
> make install DESTDIR=$PKG
>
> cd $PKG
> makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD.tgz
>
> # cleanup
> #rm -rf $TMP/$PRGNAM*
> #rm -rf $PKG
>
> Any ideas?
Try it without the -j4 flag; I have had all kinds of weird failures due to
race conditions introduced in parallel build setups.
>
> Darrell
>
>
>
>
>
>