Tim, Can I suggest the following change to tqt.h
#ifndef USE_QT3
#define USE_QT3
#endif
Castro.
My setup.
Archlinux with TDE-3.5.13 running on VirtualBox.
Out of source builds.
###############################################
Serghei, I think this one's for you.
svn 1226116
[ 37%] Building CXX object
kwin/data/CMakeFiles/kwin_update_window_settings.dir/update_window_settings.cpp.o
Linking CXX executable kwin_update_window_settings
[ 37%] Built target kwin_update_window_settings
Scanning dependencies of target kompmgr
[ 37%] Building C object kwin/kompmgr/CMakeFiles/kompmgr.dir/kompmgr.c.o
Linking C executable kompmgr
CMakeFiles/kompmgr.dir/kompmgr.c.o: In function `add_damage':
kompmgr.c:(.text+0xee): undefined reference to `XFixesUnionRegion'
kompmgr.c:(.text+0x100): undefined reference to `XFixesDestroyRegion'
CMakeFiles/kompmgr.dir/kompmgr.c.o: In function `determine_mode':
kompmgr.c:(.text+0x2c4): undefined reference to `XFixesCreateRegion'
kompmgr.c:(.text+0x2dc): undefined reference to `XFixesCopyRegion'
CMakeFiles/kompmgr.dir/kompmgr.c.o: In function `win_extents':
kompmgr.c:(.text+0x7c6): undefined reference to `XFixesCreateRegion'
CMakeFiles/kompmgr.dir/kompmgr.c.o: In function `set_fade.clone.14':
kompmgr.c:(.text+0x13a9): undefined reference to `XFixesDestroyRegion'
CMakeFiles/kompmgr.dir/kompmgr.c.o: In function `run_fades':
kompmgr.c:(.text+0x16db): undefined reference to `XFixesDestroyRegion'
CMakeFiles/kompmgr.dir/kompmgr.c.o: In function `finish_unmap_win':
kompmgr.c:(.text+0x19a2): undefined reference to `XFixesDestroyRegion'
kompmgr.c:(.text+0x1a00): undefined reference to `XFixesDestroyRegion'
kompmgr.c:(.text+0x1a38): undefined reference to `XFixesDestroyRegion'
CMakeFiles/kompmgr.dir/kompmgr.c.o:kompmgr.c:(.text+0x1a70): more
undefined references to `XFixesDestroyRegion' follow
CMakeFiles/kompmgr.dir/kompmgr.c.o: In function `add_win':
kompmgr.c:(.text+0x1bd1): undefined reference to `XDamageCreate'
kompmgr.c:(.text+0x1c7b): undefined reference to `XShapeSelectInput'
CMakeFiles/kompmgr.dir/kompmgr.c.o: In function `finish_destroy_win':
kompmgr.c:(.text+0x1e1a): undefined reference to `XDamageDestroy'
CMakeFiles/kompmgr.dir/kompmgr.c.o: In function `repair_win':
kompmgr.c:(.text+0x1fc2): undefined reference to `XFixesCreateRegion'
kompmgr.c:(.text+0x1ff1): undefined reference to `XDamageSubtract'
kompmgr.c:(.text+0x2010): undefined reference to `XFixesTranslateRegion'
kompmgr.c:(.text+0x2076): undefined reference to `XDamageSubtract'
kompmgr.c:(.text+0x2094): undefined reference to `XFixesCreateRegion'
kompmgr.c:(.text+0x20a7): undefined reference to `XFixesCopyRegion'
kompmgr.c:(.text+0x20ca): undefined reference to `XFixesTranslateRegion'
kompmgr.c:(.text+0x20e1): undefined reference to `XFixesUnionRegion'
kompmgr.c:(.text+0x20f0): undefined reference to `XFixesDestroyRegion'
CMakeFiles/kompmgr.dir/kompmgr.c.o: In function `border_size':
kompmgr.c:(.text+0x2138): undefined reference to
`XFixesCreateRegionFromWindow'
kompmgr.c:(.text+0x216b): undefined reference to `XFixesTranslateRegion'
CMakeFiles/kompmgr.dir/kompmgr.c.o: In function `paint_all':
kompmgr.c:(.text+0x21d1): undefined reference to
`XFixesSetPictureClipRegion'
kompmgr.c:(.text+0x2361): undefined reference to
`XFixesSetPictureClipRegion'
kompmgr.c:(.text+0x241b): undefined reference to `XFixesDestroyRegion'
kompmgr.c:(.text+0x2504): undefined reference to `XFixesIntersectRegion'
kompmgr.c:(.text+0x252f): undefined reference to
`XFixesSetPictureClipRegion'
kompmgr.c:(.text+0x25cd): undefined reference to
`XFixesSetPictureClipRegion'
kompmgr.c:(.text+0x265e): undefined reference to `XFixesDestroyRegion'
kompmgr.c:(.text+0x2693): undefined reference to
`XFixesSetPictureClipRegion'
kompmgr.c:(.text+0x272c): undefined reference to `XFixesIntersectRegion'
kompmgr.c:(.text+0x2757): undefined reference to
`XFixesSetPictureClipRegion'
kompmgr.c:(.text+0x2827): undefined reference to
`XFixesSetPictureClipRegion'
kompmgr.c:(.text+0x2b28): undefined reference to
`XFixesSetPictureClipRegion'
kompmgr.c:(.text+0x2b6d): undefined reference to `XFixesSubtractRegion'
kompmgr.c:(.text+0x2c36): undefined reference to `XFixesCreateRegion'
kompmgr.c:(.text+0x2c52): undefined reference to `XFixesCopyRegion'
kompmgr.c:(.text+0x2e51): undefined reference to `XFixesCreateRegion'
kompmgr.c:(.text+0x2f12): undefined reference to `XFixesDestroyRegion'
kompmgr.c:(.text+0x2f41): undefined reference to `XFixesSubtractRegion'
kompmgr.c:(.text+0x30b5): undefined reference to `XFixesDestroyRegion'
kompmgr.c:(.text+0x30d0): undefined reference to `XFixesDestroyRegion'
kompmgr.c:(.text+0x3103): undefined reference to `XFixesDestroyRegion'
kompmgr.c:(.text+0x3136): undefined reference to `XFixesDestroyRegion'
kompmgr.c:(.text+0x32ce): undefined reference to `XFixesCreateRegion'
kompmgr.c:(.text+0x3306): undefined reference to `XFixesIntersectRegion'
kompmgr.c:(.text+0x331d): undefined reference to
`XCompositeNameWindowPixmap'
CMakeFiles/kompmgr.dir/kompmgr.c.o: In function `main':
kompmgr.c:(.text+0x414c): undefined reference to `XCompositeQueryVersion'
kompmgr.c:(.text+0x4181): undefined reference to `XDamageQueryExtension'
kompmgr.c:(.text+0x4265): undefined reference to `XFixesQueryExtension'
kompmgr.c:(.text+0x469d): undefined reference to
`XCompositeRedirectSubwindows'
kompmgr.c:(.text+0x4b42): undefined reference to `XFixesCreateRegion'
kompmgr.c:(.text+0x4bc2): undefined reference to `XFixesCreateRegion'
kompmgr.c:(.text+0x4be5): undefined reference to `XFixesCopyRegion'
kompmgr.c:(.text+0x4f15): undefined reference to `XFixesUnionRegion'
kompmgr.c:(.text+0x4f28): undefined reference to `XFixesDestroyRegion'
kompmgr.c:(.text+0x53d1): undefined reference to `XFixesDestroyRegion'
kompmgr.c:(.text+0x550e): undefined reference to `XFixesDestroyRegion'
kompmgr.c:(.text+0x5ab6): undefined reference to
`XCompositeRedirectSubwindows'
kompmgr.c:(.text+0x5afb): undefined reference to `XShapeQueryExtension'
collect2: ld returned 1 exit status
make[2]: *** [kwin/kompmgr/kompmgr] Error 1
make[1]: *** [kwin/kompmgr/CMakeFiles/kompmgr.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
[castro@castro2 trinity-kdebase]$
Thanks to everyone for all your hard work on this project. :-)
Castro.
How about an estimate when SVN will again be ready to build?
I see a lot of work going on with interfacing with QT4, which seems to have rendered SVN unbuildable.
I tried building SVN last night and things broke quickly in kdelibs. The error had something to do with tqtinterface.
I realize much is happening under the surface but us mushrooms would appreciate a drop of rain now and then. :)
Darrell
The svn trre for dbus-tqt is missing the following files
cmake/modules
cmake/modules/FindQt.cmake
cmake/modules/FindTDE.cmake
cmake/modules/FindTQt.cmake
cmake/modules/TDEMacros.cmake
cmake/modules/TDESetupPaths.cmake
cmake/modules/tde_uic.cmake
cmake/modules/template_dummy_cpp.cmake
cmake/modules/template_export_library.cmake
cmake/modules/template_kdeinit_executable.cmake
cmake/modules/template_kdeinit_module.cmake
cmake/modules/template_libtool_file.cmake
I copied them from kpower to get dbus-tqt to build
Thanks
Calvin, Baho,
I will re-write the Qt3 PKGBUILD for Arch. The addition of the new 3.3.8c
patch disclosed we were building and patching:
3.3.8 -> 3.3.8c instead of patching
3.3.8b -> 3.3.8c
The original Arch PKGBUILD for Qt3 has a mess of combined patches contained
within 2 .tar.bz2 files:
qt-copy-kde-patches.tar.bz2
qt-patches.tar.bz2
Patching 3.3.8b fails with:
Hunk #1 succeeded at 155 (offset 3 lines).
patching file src/kernel/qprocess.cpp
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/kernel/qprocess.cpp.rej
That part of the patch is somewhere in the tarballs above. I'll sort through
it and put up a clean trinity-qt3 PKGBUILD when I find the issue.
If you try and apply the new part of the trinity qt3_3.3.8c.diff you will
find it fails on:
-#define QT_VERSION_STR "3.3.8b"
because the source the Arch PKGBUILD pulls is:
-#define QT_VERSION_STR "3.3.8"
Just FYI...
--
David C. Rankin, J.D.,P.E.
I received the following message while trying to build arts from svn 1225868:
"openexr are requested, but not found on your system"
Serghei, I know English is not your primary language :). I suggest the following text:
"The openexr package was requested but not found on your system."
I have nothing against the warning but the build should not have stopped.
There does not seem to be option in the arts CMakeLists.txt file to build without OpenEXR nor does the build simply pass through when not finding that package.
The OpenEXR package is commonly installed but has never been required in KDE 3.5.10 or Trinity. If that package is now a Trinity prerequisite, then let's pass the word here and I'll be happy to update the wiki. :)
Darrell
Here is a patchto test/break to stop this error
In file included from <command-line>:0:0:
/opt/qt/include/tqt/tqt.h:25:0: warning: "USE_QT3" redefined
<command-line>:0:0: note: this is the location of the previous definition
Tim, Serghei,
I went to build trinity tonight and found all arch PKGBUILDS fail with the
same error:
CMake Error at cmake/modules/TDEMacros.cmake:20 (message):
#################################################
Please use out-of-source building, like this:
rm /home/david/tblds/trinity-tqtinterface/src/tqtinterface/CMakeCache.txt
mkdir /tmp/tqt.build
cd /tmp/tqt.build
cmake /home/david/tblds/trinity-tqtinterface/src/tqtinterface [arguments...]
#################################################
Call Stack (most recent call first):
cmake/modules/TDEMacros.cmake:1124 (tde_message_fatal)
CMakeLists.txt:29 (include)
I'm not sure why this is needed since the PKGBUILD process takes place in a
*newly* created src directory that is *outside* the svn tree. This will take a
rewrite of all PKGBUILDS to accommodate this change.
--
David C. Rankin, J.D.,P.E.
I have thought of a simple solution. Why not create a flag to bypass this? That way for packaging we can use it, but normally it won't be allowed. Makes sense to me
Calvin Morrison
I am getting a lot of the follwing error/warnings when building kdelibs
[ 1%] Building CXX object dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o
In file included from <command-line>:0:0:
/opt/qt/include/tqt/tqt.h:25:0: warning: "USE_QT3" redefined
<command-line>:0:0: note: this is the location of the previous definition
I have cleaned out my svn source directory and rechecked out the tree, so I
wouldn't have any gremlins and would have a fresh starting point
Thanks
Here is the end of the build log:
===========================================
g++ -c -Wno-deprecated-declarations -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde353 -I/opt/trinity/include -I/usr/include/python2.5 -I/usr/lib/qt/mkspecs/default -I/usr/lib/qt/include -I/usr/X11R6/include -o sipdcopDCOPClientTransaction.o sipdcopDCOPClientTransaction.cpp
g++ -shared -Wl,-rpath,/opt/trinity/lib/kde3 -Wl,-rpath,/usr/lib/qt/lib -Wl,--version-script=dcop.exp -o dcop.so sipdcopcmodule.o sipdcopQPtrList0100DCOPObject.o sipdcopQValueList0100QCString.o sipdcopDCOPStub.o sipdcopDCOPRef.o sipdcopDCOPReply.o sipdcopDCOPObjectProxy.o sipdcopDCOPObject.o sipdcopDCOPClient.o sipdcopDCOPClientTransaction.o -L/opt/trinity/lib/kde3 -L/usr/lib/qt/lib -L/usr/X11R6/lib -lDCOP -lqt-mt -lXext -lX11 -lm -lpthread
/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../i486-slackware-linux/bin/ld: cannot find -lDCOP
collect2: ld returned 1 exit status
make[1]: *** [dcop.so] Error 1
make[1]: Leaving directory `/dev/shm/PyKDE-3.16.7/dcop'
make: *** [all] Error 2
===========================================
I'm progressing my way toward building Trinity on the most recent Slackware release. For preparation, I am first building Trinity on Slackware 12.2 using the 3.5.12 tarballs. The idea is that Trinity 3.5.12 will get installed and coexist with KDE 3.5.10. When I eliminate the building bugs I then will start building on the latest Slackware release, where QT4 and KDE4 is installed.
I can build 3.5.12 on Slackware 12.2. That was with an installation location in the traditional /usr rather than /opt/trinity.
I built the four 3.5.12 core packages using $PREFIX=/opt/trinity. I built sip and PyQT3 without errors.
The next package in the build sequence before building kdebindings with python support is PyKDE3. I'm building PyKDE3 with the following:
python ./configure.py -k $PREFIX -L $LIBDIR -n $LIBDIR/kde3 -o $PREFIX/include -i
where:
KDE base directory ($PREFIX): /opt/trinity
lib directory ($LIBDIR): /opt/trinity/lib
KDE lib directory: /opt/trinity/lib/kde3
KDE include directory: /opt/trinity/include
PyKDE3 built fine when I used the original locations of /usr, /usr/include, /usr/lib, /usr/lib/kde3.
I built and installed sip and pyqt3 to /usr rather than /opt/trinity as there is no conflict with other packages that I know. When PyKDE3 FTBFS, I then rebuilt those two packages to install in /opt/trinity.
Same failure.
Probably a path problem. Any ideas?
Darrell