Tim, Darrell, all,
The final package for the night is tdepim. Build up to 11% complete went
smooth. The we hit what looks like at TQt error in kscoringeditor.cpp. The build
fails with the following error:
[ 11%] Building CXX object
libtdepim/CMakeFiles/tdepim-shared.dir/kscoringeditor.cpp.o
cd /build/src/build/libtdepim && /usr/bin/c++ -Dtdepim_shared_EXPORTS
-D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe
-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
-DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -fPIC
-I/build/src/build/libtdepim -I/build/src/build -I/build/src/tdepim
-I/build/src/tdepim/libtdepim -I/opt/trinity/include -I/opt/tqt3/include
-I/opt/trinity/include/tqt -o
CMakeFiles/tdepim-shared.dir/kscoringeditor.cpp.o -c
/build/src/tdepim/libtdepim/kscoringeditor.cpp
/build/src/tdepim/libtdepim/kscoringeditor.cpp: In member function 'void
SingleConditionWidget::showRegExpDialog()':
/build/src/tdepim/libtdepim/kscoringeditor.cpp:140:91: error: 'class TQDialog'
has no member named 'tqt_cast'
make[2]: *** [libtdepim/CMakeFiles/tdepim-shared.dir/kscoringeditor.cpp.o] Error 1
make[2]: Leaving directory `/build/src/build'
make[1]: *** [libtdepim/CMakeFiles/tdepim-shared.dir/all] Error 2
make[1]: Leaving directory `/build/src/build'
make: *** [all] Error 2
It appears that some type case named 'tqt_cast' ( hmm.. those letters sound
like something related to Pearson, don't they :) Anyway, I'm stuck and need a
bit of help from the masters to see me through. The way I approached building
tdepim was a simple cmake setup:
msg "Starting cmake..."
cmake ${srcdir}/${pkgname#*-} \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX=$TDEDIR \
-DWITH_ALL_OPTIONS=ON \
-DBUILD_ALL=ON
The code complained of in kscoringeditor.cpp is:
void SingleConditionWidget::showRegExpDialog()
{
TQDialog *editorDialog =
KParts::ComponentFactory::createInstanceFromQuery<TQDialog>(
"KRegExpEditor/KRegExpEditor" );
if ( editorDialog ) {
KRegExpEditorInterface *editor = static_cast<KRegExpEditorInterface *>(
editorDialog->tqt_cast( "KRegExpEditorInterface" ) );
Q_ASSERT( editor ); // This should not fail!
editor->setRegExp( expr->text() );
editorDialog->exec();
expr->setText( editor->regExp() );
}
}
Line 140;91 : KRegExpEditorInterface *editor =
static_cast<KRegExpEditorInterface *>( editorDialog->tqt_cast(
"KRegExpEditorInterface" ) );
What do I need to do to get make happy with the casts being done here? Can I
patch something? somewhere. You guys have a good one, I'm hitting the hay...
--
David C. Rankin, J.D.,P.E.
Archers,
As of tonight, I have all major packages that were previously building from
svn now building R14 from GIT :) Package list includes:
hal 0.5.14-8 [installed]
hal-info 0.20091130-1 [installed]
libutempter 1.1.5-3 [installed]
tde-arts 3513_tqt-1 [installed]
tde-dbus-tqt 3513_tqt-1 [installed]
tde-dbus-tqt-1 3513_tqt-1 [installed]
tde-libart-lgpl 3513_tqt-1 [installed]
tde-libcaldav 0.6.2_tqt-1 [installed]
tde-libcarddav 0.6.2_tqt-1 [installed]
tde-tdebase 3513_tqt-2 [installed]
tde-tdegraphics 3513_tqt-1 [installed]
tde-tdelibs 3513_tqt-1 [installed]
tde-tdevelop 3513_tqt-1 [installed]
tde-tdewebdev 3513_tqt-1 [installed]
tde-tqca-tls 3513_tqt-1 [installed]
tde-tqt3 3.8.8.d_git-1 [installed]
tde-tqtinterface 3513_tqt-9 [installed]
They work well too!
--
David C. Rankin, J.D.,P.E.
All,
Does anyone know how we can currently assign a short-cut key in kate/kwrite to:
Tools > Highlighting > Scripts > Bash
(alt+t, h, r, b -- isn't what I was thinking)
Or associate any of the other highlighting files with a short-cut? If there is
no way to do that, then it would be worth putting on the enhancement list.
Kwrite isn't that big of deal, but there are numerous times in kate where I will
have 10-20 files open that I would like to set with a syntax file without having
to mouse through Tools > Highlighting > Scripts > Bash that many times.
We could either have a key that popped open the Tools > Highlighting menu and
gave the user the ability to scroll and select. Or, my preference, would be to
provide a configuration option under highlighting that would be a "Quick List"
that allowed the user to configure his "Top 10" syntax files that would pop up
with a shortcut and allow the user to select from the list of 10.
It would need to be a katepart plugin to be available to both kate/kwrite, but
it shouldn't be that difficult to do.
Worth an enhancement request? There are already shortcut options for just
about everything in kate, just not syntax...
--
David C. Rankin, J.D.,P.E.
Tim, Darrell, all,
I have been working to get tdeutils building tonight without any luck. The
primary error I receive is:
conftest.cpp:2:24: fatal error: Qt/qglobal.h: No such file or directory
(full error below) I have tried passing every combination of configure flags,
but it still crashes. I am attempting to compile it as follows:
## Generate config files and update with autoreconf
cd ${srcdir}/${pkgname#*-}
make -f admin/Makefile.common
autoreconf
## configure
msg "Configuring - ${pkgname}..."
./configure \
--prefix=${TDEDIR} \
--with-qt-dir=${QTDIR} \
--with-qt-includes=${QTDIR}/include \
--with-extra-includes=${TDEDIR}/include/tqt \
--with-qt-libraries=${QTDIR}/lib \
--with-extra-libs=${TDEDIR}/lib/trinity \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-closure
I have also tried --with-extra-includes=${TDEDIR}/include/tqt/Qt and it
doesn't help.
I am obviously missing a trick or patch to make tdeutils work with TQt3.
What's the trick? The full error I get is:
configure: 22363: /usr/include/tqt3/Qt/qstyle.h
configure: 22363: /usr/include/qt3/Qt/qstyle.h
configure: 22363: ./Qt/qstyle.h
configure:22598: rm -rf SunWS_cache; g++ -o conftest -Wno-long-long -Wundef
-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -
Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -march=x86-64
-mtune=generic -O2 -pipe -fstack-protector -
-param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat-security
-Wmissing-format-attribute -Wno-non-virtual-dtor -fno-
exceptions -fno-check-new -fno-common -I/usr/include/tqt -INO -I.
-DQT_THREAD_SUPPORT -D_REENTRANT -Wl,-O1,--sort-
common,--as-needed,-z,relro,--hash-style=gnu -L/opt/tqt3/lib
-L/opt/trinity/lib/trinity conftest.cpp -lQtCore -
lQtGui -lQtNetwork -ltqt -lpng -lz -lm -ljpeg -ldl -lXext -lX11 -lSM -lICE
-lpthread 1>&5
conftest.cpp:2:24: fatal error: Qt/qglobal.h: No such file or directory
compilation terminated.
configure:22601: $? = 1
configure: failed program was:
#include "confdefs.h"
#include <Qt/qglobal.h>
#include <Qt/qapplication.h>
#include <Qt/qcursor.h>
#include <Qt/qstylefactory.h>
#if ! (TQT_VERSION >= 0x040300 && TQT_VERSION < 0x050000)
#error 1
#endif
int main() {
(void)QStyleFactory::create(QString::null);
QCursor c(Qt::WhatsThisCursor);
return 0;
}
configure:22640: error: Qt (>= Qt 4.3 and < 5.0) (headers and libraries) not
found. Please check your installation!
For more details about this problem, look at the end of config.log.
--
David C. Rankin, J.D.,P.E.
All,
This startup tip was rather humorous, but does need fixing:
The K in TDE does not stand for anything. It is the character that comes before
L in the Latin alphabet, which stands for Linux. It was chosen because TDE runs
on many types of UNIX (and perfectly well on FreeBSD).
Those global sed -i "s/KDE/TDE/g" do have consequences -- some unintended :)
--
David C. Rankin, J.D.,P.E.
Darrell, Tim,
In my rebuild tonight, I forgot to removed avahi-tqt from the build array, so
my build script attempted to build it. It still fails. Any progress on figuring
the following out:
==> Building - tde-avahi-tqt...
make all-recursive
make[1]: Entering directory `/build/src/avahi-tqt'
Making all in avahi-tqt
make[2]: Entering directory `/build/src/avahi-tqt/avahi-tqt'
GEN qt-watch.moc3
TQt meta object compiler
moc: Too many input files specified
Usage: moc [options] <header-file>
-o file Write output to file rather than stdout
-f[file] Force #include, optional file name
-p path Path prefix for included file
-i Do not generate an #include statement
-k Do not stop on errors
-nw Do not display warnings
-v Display version of moc
make[2]: *** [qt-watch.moc3] Error 1
make[2]: Leaving directory `/build/src/avahi-tqt/avahi-tqt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/build/src/avahi-tqt'
make: *** [all] Error 2
--
David C. Rankin, J.D.,P.E.
Tim, All,
The current default for konqueror file manager "View->Background" is a KDE
logo background. I always have to end up changing the setting to just "color"
to enable the alternate-row highlight that makes looking at files in detail or
tree view much easier.
Two issues: (1) the default background images needs to be adjusted to TDE;
and (2) why enable the background image by default anyway?? It kills
alternate-row highlight. Just food for default thoughts :)
--
David C. Rankin, J.D.,P.E.
The GNU Image Finding Tool (GIFT) package has not been updated in 7 years. I searched the web and seems that almost nobody packages that tool anymore. The only one I found was in the Debian repository split into several packages.
The tdegraphics package installs an option to configure the GIFT in KControl, System Administration.
The BUILD_KMRML option controls building that KControl option. Setting BUILD_KMRML=OFF avoids installing the KControl option but also disables mrml support.
How much work is required to create a build option so the mrml support is built but not the KControl item? This would tie in somewhat with the KControl overhaul project.
Can we use our own dog food and link KControl to a Trinity equivalent mrml app? Do we have any equivalent mrml image indexing tool?
Darrell
All,
How do I add a library to a build in TDE? For some reason, the tdegraphics
cmake setup does not include libXext. I have patched Makefile.am with -lXext and
it is not seen by cmake or used for the build?? (Eg. I patched ksnapshot
Makefile.am as follows):
ksnapshot_LDADD = $(LIB_TDEPRINT) -lXext
However, the ksnapshot link still fails:
/usr/bin/ld: CMakeFiles/ksnapshot.dir/windowgrabber.cpp.o: undefined reference
to symbol 'XShapeQueryExtension'
/usr/bin/ld: note: 'XShapeQueryExtension' is defined in DSO
/usr/lib/libXext.so.6 so try adding it to the linker command line
/usr/lib/libXext.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
I have looked at ConfigureChecks.cmake and all it includes is:
check_include_file( X11/extensions/shape.h HAVE_X11_EXTENSIONS_SHAPE_H )
Can I tell cmake to include the library here? Or should the library inclusion
go elsewhere? If so where?
Is there a link to the cmake functions available in a TDE build? That would be
very helpful to help packages not familiar with cmake held debug, etc..
I have found tde_add_library, but I don't know if that can be used to add an
existing system library or if that is just to tell cmake to build and link the
library?? Also, there are several forms:
tde_add_library( kfaximage STATIC_PIC AUTOMOC
tde_add_library( kfaximage SHARED AUTOMOC
tde_add_library( ksvg SHARED
If I can add libXext with tde_add_library would it be SHARED, STATIC_PIC and
with or without AUTOMOC?
I'm also not convinced that the problem isn't with cmake not concatenating or
forming the link string properly after the problem encountered with libkscan.
Below in the full error, there are man files just listed without any -l or -L
preceding them. Is this correct? The full error I get with the
tdegraphics/ksnapshot build is:
[ 66%] Building CXX object ksnapshot/CMakeFiles/ksnapshot.dir/ksnapshotwidget.cpp.o
cd /build/src/build/ksnapshot && /usr/bin/c++ -DHAVE_CONFIG_H
-DKSNAPVERSION=\"0.7\" -march=i686 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DQT_NO_ASCII_CAST
-DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -I/build/src/build/ksnapshot
-I/build/src/tdegraphics/ksnapshot -I/build/src/build -I/opt/trinity/include
-I/opt/tqt3/include -I/opt/trinity/include/tqt -o
CMakeFiles/ksnapshot.dir/ksnapshotwidget.cpp.o -c
/build/src/build/ksnapshot/ksnapshotwidget.cpp
Linking CXX executable ksnapshot
cd /build/src/build/ksnapshot && /usr/bin/cmake -E cmake_link_script
CMakeFiles/ksnapshot.dir/link.txt --verbose=1
/usr/bin/c++ -march=i686 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DQT_NO_ASCII_CAST
-DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h
-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu
CMakeFiles/ksnapshot.dir/ksnapshotiface_skel.cpp.o
CMakeFiles/ksnapshot.dir/main.cpp.o CMakeFiles/ksnapshot.dir/ksnapshot.cpp.o
CMakeFiles/ksnapshot.dir/regiongrabber.cpp.o
CMakeFiles/ksnapshot.dir/windowgrabber.cpp.o
CMakeFiles/ksnapshot.dir/ksnapshotwidget.cpp.o -o ksnapshot -rdynamic
-L/opt/trinity/lib -L/opt/tqt3/lib /opt/trinity/lib/libtdeprint.so.4.2.0
/opt/trinity/lib/libkio.so.4.2.0 /opt/trinity/lib/libtdeui.so.4.2.0 -lfreetype
-lfontconfig /opt/trinity/lib/libtdesu.so.4.2.0 -lutil
/opt/trinity/lib/libkwalletclient.so.1.0.1 /opt/trinity/lib/libtdecore.so.4.2.0
/opt/trinity/lib/libDCOP.so.4.2.0 /opt/trinity/lib/libtdefx.so.4.2.0 -ltqt
-ltqt-mt -lXrender -lX11 -lz -lidn -lXcomposite -lICE -lSM
-Wl,-rpath,/opt/trinity/lib:/opt/tqt3/lib:
/usr/bin/ld: CMakeFiles/ksnapshot.dir/windowgrabber.cpp.o: undefined reference
to symbol 'XShapeQueryExtension'
/usr/bin/ld: note: 'XShapeQueryExtension' is defined in DSO
/usr/lib/libXext.so.6 so try adding it to the linker command line
/usr/lib/libXext.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [ksnapshot/ksnapshot] Error 1
make[2]: Leaving directory `/build/src/build'
make[1]: *** [ksnapshot/CMakeFiles/ksnapshot.dir/all] Error 2
make[1]: Leaving directory `/build/src/build'
make: *** [all] Error 2
Thanks for any help you can offer.
--
David C. Rankin, J.D.,P.E.