I understand there is a bug with qt-3.3.8b and libpng 1.4. Does trinity include a related patch for qt?
Darrell
I understand there is a bug with qt-3.3.8b and libpng 1.4. Does trinity include a related patch for qt?
Darrell
Can you provide any more information on the bug? If there is a patch it would be in the Ubuntu Qt patchset, which I can search for a relevant patchfile if I know what to look for.
Also, with respect to compiling Trinity, the tqtinterface must be compiled and installed before any other Trinity packages will compile. You will therefore need to create a new package that contains the tqtinterface library and development headers. All other build dependencies will generally be the same as before.
Hope this helps!
Timothy Pearson Trinity Desktop Project
Darrell Anderson http://humanreadable.nfshost.com/
Can you provide any more information on the bug? If there is a patch it would be in the Ubuntu Qt patchset, which I can search for a relevant patchfile if I know what to look for.
http://www.linuxquestions.org/questions/slackware-14/bug-in-qt-3-3-8b-in-cur...
http://www.google.com/search?num=30&hl=en&safe=off&q=%22qt-3.3.8...
Also, with respect to compiling Trinity, the tqtinterface must be compiled and installed before any other Trinity packages will compile. You will therefore need to create a new package that contains the tqtinterface library and development headers. All other build dependencies will generally be the same as before.
Is there a build script?
Darrell Anderson http://humanreadable.nfshost.com/
Can you provide any more information on the bug? If there is a patch it would be in the Ubuntu Qt patchset, which I can search for a relevant patchfile if I know what to look for.
http://www.linuxquestions.org/questions/slackware-14/bug-in-qt-3-3-8b-in-cur...
http://www.google.com/search?num=30&hl=en&safe=off&q=%22qt-3.3.8...
I guess it would be up to the Slackware Qt maintainer to apply the patch shown; if Trinity itself needs patching for any reason please let me know and I will commit the patch to SVN.
Also, with respect to compiling Trinity, the tqtinterface must be compiled and installed before any other Trinity packages will compile. You will therefore need to create a new package that contains the tqtinterface library and development headers. All other build dependencies will generally be the same as before.
Is there a build script?
It builds the same way as all other Trinity modules. Generally that takes the form of: automake->autoconf->configure->make->make install Required flags have been omitted here, for more details see http://trinity.pearsoncomputing.net/wiki/bin/view/Developers/HowToBuild
Tim
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. 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?
Darrell
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
Try it without the -j4 flag; I have had all kinds of weird failures due to race conditions introduced in parallel build setups.
Same results. :(
Can you please post the complete output of your build script? You can attach it to a message as a text document if you want.
Tim
Here are the conspicuous error messages I see just before the build fails:
... ...
checking if TQt is available... no configure: WARNING: You are attempting to compile Trinity without the Trinity Qt Interface installed. Please install libtqtinterface-dev and try again! ... ... configure: creating ./config.status wrong input (flag != 4) at admin/conf.change.pl line 117, <> line 1456.
Is there a libtqtinterface-dev package somewhere?
Here are the conspicuous error messages I see just before the build fails:
... ...
checking if TQt is available... no configure: WARNING: You are attempting to compile Trinity without the Trinity Qt Interface installed. Please install libtqtinterface-dev and try again! ... ... configure: creating ./config.status wrong input (flag != 4) at admin/conf.change.pl line 117, <> line 1456.
Is there a libtqtinterface-dev package somewhere?
No, that's what you are trying to build. Did you get my last message suggesting removal of the -j4 flag from your build script?
Yes, I removed the -j4 flag. Same results.
I'm confused by the recursive nature of the error messages. I'm trying to build a tqtinterface package but the error messages tell me I have to have that package installed.
I fear I am missing the big picture.
Yes, I removed the -j4 flag. Same results.
I'm confused by the recursive nature of the error messages. I'm trying to build a tqtinterface package but the error messages tell me I have to have that package installed.
I fear I am missing the big picture.
As I had mentioned, that error is an artifact of how the Trinity build system is structured. I did not want to maintain a separate build system just for the tqtinterface package (not at this stage anyway), so it uses the standard Trinity build system. That means that it will always throw the tqtinterface warning, even though tqtinterface can successfully build without tqtinterface installed.
I have almost no idea why you are seeing the other errors; can you please post the complete output of the build script in a text attachment?
Thanks!
Tim
I am thinking about installing your kubuntu-kde-3.5.10 CD. Before doing that I thought I'd browse your svn for package versions.
I noticed some packages I use that were not the same version I am using.
digikam 0.9.6 sources: http://sourceforge.net/projects/digikam/files/digikam/0.9.6/digikam-0.9.6.ta...
kaffeine 0.8.7 sources: http://sourceforge.net/projects/kaffeine/files/kaffeine/0.8.7/kaffeine-0.8.7... (Actually, 0.8.8 once upon a time was available but I never was able to get that version to compile on my system. I can't find the sources online, but I have a copy I can forward.)
I'm using both of those latest versions on my system.
I used the change logs in the respective svn directories to determine the version. My apologies if the problem is actually an outdated change log and you already build the most recent versions.
Darrell Anderson http://humanreadable.nfshost.com/
Enclosed is a patch for kde arts. The patch has been part of Slackware for the past four years. I compared the text to the svn tree and do not find the patch.
From the Sept. 19, 2006 change log:
Tue Sep 19 18:13:09 CDT 2006 l/arts-1.5.4-i486-2.tgz: Patched an annoying bug where audio programs such as ogg123 would not work unless KDE had been run first.
The date in the change log matches the date in the patch file.
Feel free to include the patch.
========================================== --- ./mcop/mcoputils.cc.orig 2006-01-19 10:16:08.000000000 -0600 +++ ./mcop/mcoputils.cc 2006-09-19 17:07:50.000000000 -0500 @@ -47,7 +47,13 @@ result = lstat(tmp_dir, &stat_buf); if ((result == -1) && (errno == ENOENT)) { - return 1; + result = mkdir(tmp_dir, 0700); + if (result == -1) + { + arts_warning("Error: Can not create directory "%s".\n", tmp_dir); + return 1; + } + result = stat(tmp_dir, &stat_buf); } if ((result == -1) || (!S_ISDIR(stat_buf.st_mode))) { ==========================================
Committed to SVN in revision 1167610.
Thanks!
Tim
Enclosed is a patch for kde arts. The patch has been part of Slackware for the past four years. I compared the text to the svn tree and do not find the patch.
From the Sept. 19, 2006 change log:
Tue Sep 19 18:13:09 CDT 2006 l/arts-1.5.4-i486-2.tgz: Patched an annoying bug where audio programs such as ogg123 would not work unless KDE had been run first.
The date in the change log matches the date in the patch file.
Feel free to include the patch.
========================================== --- ./mcop/mcoputils.cc.orig 2006-01-19 10:16:08.000000000 -0600 +++ ./mcop/mcoputils.cc 2006-09-19 17:07:50.000000000 -0500 @@ -47,7 +47,13 @@ result = lstat(tmp_dir, &stat_buf); if ((result == -1) && (errno == ENOENT)) {
- return 1;
- result = mkdir(tmp_dir, 0700);
- if (result == -1)
- {
arts_warning("Error: Can not create directory \"%s\".\n",
tmp_dir);
return 1;
- }
- result = stat(tmp_dir, &stat_buf); } if ((result == -1) || (!S_ISDIR(stat_buf.st_mode))) {
==========================================