Slavek, All
After fixing the option that strips static-libs from the final package in arch, I went to rebuild tdelibs. Doing so, I enabled the following:
cmake ${srcdir}/tdelibs \ -DCMAKE_INSTALL_PREFIX=${TDEDIR} \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DWITH_ARTS=ON \ -DWITH_ALSA=ON \ -DWITH_LIBART=ON \ -DWITH_LIBIDN=ON \ -DWITH_SSL=ON \ -DWITH_CUPS=ON \ -DWITH_LUA=OFF \ -DWITH_TIFF=ON \ -DWITH_JASPER=ON \ -DWITH_OPENEXR=ON \ -DWITH_UTEMPTER=ON \ -DWITH_AVAHI=ON \ -DWITH_PAM=ON \ -DWITH_PCRE=ON \ -DWITH_TDEHWLIB_DAEMONS=ON \ -DWITH_UPOWER=ON \ -DWITH_UDISKS2=ON \ -DWITH_LZMA=ON \ -DWITH_XRANDR=ON \ -DWITH_XCOMPOSITE=ON \ -DWITH_ASPELL=ON \ -DWITH_HSPELL=ON
The build failed with the now-familiar error:
/usr/bin/ld: cannot find -ldbus-1-tqt collect2: error: ld returned 1 exit status tdecore/CMakeFiles/tdecore-shared.dir/build.make:3063: recipe for target 'tdecore/libtdecore.so.14.0.0' failed make[2]: *** [tdecore/libtdecore.so.14.0.0] Error 1 make[2]: Leaving directory '/build/tde-tdelibs/src/build' CMakeFiles/Makefile2:1087: recipe for target 'tdecore/CMakeFiles/tdecore-shared.dir/all' failed
However, note: This is now with '-ldbus-1-tqt' instead of '-ldbus-tqt-1'. Basically, this is "same-song-second-verse". pkgconfig info is fine, but unless the CMakeLists.txt files are patched to include either ${DBUS_TQT_LIBRARY_DIRS} or somehow get ${TDEHW_CUSTOM_LIBRARY_DIRS} into the CMakeLists.txt, the build fails. The current tdecore CMakeLists.txt includes only the following:
link_directories( ${TQT_LIBRARY_DIRS} ${LIBIDN_LIBRARY_DIRS} ${GAMIN_LIBDIR} ${LIBART_LIBRARY_DIRS} )
This is insufficient if( WITH_TDEHWLIB_DAEMONS OR WITH_HAL OR WITH_DEVKITPOWER OR WITH_UPOWER OR WITH_UDISKS OR WITH_UDISKS2 OR WITH_NETWORK_MANAGER_BACKEND OR WITH_CONSOLEKIT ) are chosen as options. See: tdecore/tdehw/CMakeLists.txt
There are probably other fixes needed, but my first thought was just to include ${DBUS_TQT_LIBRARY_DIRS}:
link_directories( ${TQT_LIBRARY_DIRS} ${LIBIDN_LIBRARY_DIRS} ${GAMIN_LIBDIR} ${LIBART_LIBRARY_DIRS} ${DBUS_TQT_LIBRARY_DIRS} )
But if ${TDEHW_CUSTOM_LIBRARY_DIRS} is visible in this scope, then :
link_directories( ${TQT_LIBRARY_DIRS} ${LIBIDN_LIBRARY_DIRS} ${GAMIN_LIBDIR} ${LIBART_LIBRARY_DIRS} ${TDEHW_CUSTOM_LIBRARY_DIRS} )
is probably better.
You do NOT see this problem if you are including -L/opt/trinity/libs in CXXFLAGS, but you should not have to put library search paths in CXXFLAGS to avoid the FTBFS.
On Tuesday 21 of January 2014 00:17:26 David C. Rankin wrote:
Slavek, All
After fixing the option that strips static-libs from the final package in arch, I went to rebuild tdelibs. Doing so, I enabled the following:
cmake ${srcdir}/tdelibs \ -DCMAKE_INSTALL_PREFIX=${TDEDIR} \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DWITH_ARTS=ON \ -DWITH_ALSA=ON \ -DWITH_LIBART=ON \ -DWITH_LIBIDN=ON \ -DWITH_SSL=ON \ -DWITH_CUPS=ON \ -DWITH_LUA=OFF \ -DWITH_TIFF=ON \ -DWITH_JASPER=ON \ -DWITH_OPENEXR=ON \ -DWITH_UTEMPTER=ON \ -DWITH_AVAHI=ON \ -DWITH_PAM=ON \ -DWITH_PCRE=ON \ -DWITH_TDEHWLIB_DAEMONS=ON \ -DWITH_UPOWER=ON \ -DWITH_UDISKS2=ON \ -DWITH_LZMA=ON \ -DWITH_XRANDR=ON \ -DWITH_XCOMPOSITE=ON \ -DWITH_ASPELL=ON \ -DWITH_HSPELL=ON
The build failed with the now-familiar error:
/usr/bin/ld: cannot find -ldbus-1-tqt collect2: error: ld returned 1 exit status tdecore/CMakeFiles/tdecore-shared.dir/build.make:3063: recipe for target 'tdecore/libtdecore.so.14.0.0' failed make[2]: *** [tdecore/libtdecore.so.14.0.0] Error 1 make[2]: Leaving directory '/build/tde-tdelibs/src/build' CMakeFiles/Makefile2:1087: recipe for target 'tdecore/CMakeFiles/tdecore-shared.dir/all' failed
However, note: This is now with '-ldbus-1-tqt' instead of '-ldbus-tqt-1'. Basically, this is "same-song-second-verse". pkgconfig info is fine, but unless the CMakeLists.txt files are patched to include either ${DBUS_TQT_LIBRARY_DIRS} or somehow get ${TDEHW_CUSTOM_LIBRARY_DIRS} into the CMakeLists.txt, the build fails. The current tdecore CMakeLists.txt includes only the following:
link_directories( ${TQT_LIBRARY_DIRS} ${LIBIDN_LIBRARY_DIRS} ${GAMIN_LIBDIR} ${LIBART_LIBRARY_DIRS} )
This is insufficient if( WITH_TDEHWLIB_DAEMONS OR WITH_HAL OR WITH_DEVKITPOWER OR WITH_UPOWER OR WITH_UDISKS OR WITH_UDISKS2 OR WITH_NETWORK_MANAGER_BACKEND OR WITH_CONSOLEKIT ) are chosen as options. See: tdecore/tdehw/CMakeLists.txt
There are probably other fixes needed, but my first thought was just to include ${DBUS_TQT_LIBRARY_DIRS}:
link_directories( ${TQT_LIBRARY_DIRS} ${LIBIDN_LIBRARY_DIRS} ${GAMIN_LIBDIR} ${LIBART_LIBRARY_DIRS} ${DBUS_TQT_LIBRARY_DIRS} )
But if ${TDEHW_CUSTOM_LIBRARY_DIRS} is visible in this scope, then :
link_directories( ${TQT_LIBRARY_DIRS} ${LIBIDN_LIBRARY_DIRS} ${GAMIN_LIBDIR} ${LIBART_LIBRARY_DIRS} ${TDEHW_CUSTOM_LIBRARY_DIRS} )
is probably better.
You do NOT see this problem if you are including -L/opt/trinity/libs in CXXFLAGS, but you should not have to put library search paths in CXXFLAGS to avoid the FTBFS.
Frankly, surprised me that you're the problem encountered in tdebase instead of in tdelibs :) I have an idea how I wanted it solved - please, hold on, I will prepare a patch.
Slavek --
On Tuesday 21 of January 2014 00:17:26 David C. Rankin wrote:
Slavek, All
After fixing the option that strips static-libs from the final package in arch, I went to rebuild tdelibs. Doing so, I enabled the following:
cmake ${srcdir}/tdelibs \ -DCMAKE_INSTALL_PREFIX=${TDEDIR} \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DWITH_ARTS=ON \ -DWITH_ALSA=ON \ -DWITH_LIBART=ON \ -DWITH_LIBIDN=ON \ -DWITH_SSL=ON \ -DWITH_CUPS=ON \ -DWITH_LUA=OFF \ -DWITH_TIFF=ON \ -DWITH_JASPER=ON \ -DWITH_OPENEXR=ON \ -DWITH_UTEMPTER=ON \ -DWITH_AVAHI=ON \ -DWITH_PAM=ON \ -DWITH_PCRE=ON \ -DWITH_TDEHWLIB_DAEMONS=ON \ -DWITH_UPOWER=ON \ -DWITH_UDISKS2=ON \ -DWITH_LZMA=ON \ -DWITH_XRANDR=ON \ -DWITH_XCOMPOSITE=ON \ -DWITH_ASPELL=ON \ -DWITH_HSPELL=ON
The build failed with the now-familiar error:
/usr/bin/ld: cannot find -ldbus-1-tqt collect2: error: ld returned 1 exit status tdecore/CMakeFiles/tdecore-shared.dir/build.make:3063: recipe for target 'tdecore/libtdecore.so.14.0.0' failed make[2]: *** [tdecore/libtdecore.so.14.0.0] Error 1 make[2]: Leaving directory '/build/tde-tdelibs/src/build' CMakeFiles/Makefile2:1087: recipe for target 'tdecore/CMakeFiles/tdecore-shared.dir/all' failed
However, note: This is now with '-ldbus-1-tqt' instead of '-ldbus-tqt-1'. Basically, this is "same-song-second-verse". pkgconfig info is fine, but unless the CMakeLists.txt files are patched to include either ${DBUS_TQT_LIBRARY_DIRS} or somehow get ${TDEHW_CUSTOM_LIBRARY_DIRS} into the CMakeLists.txt, the build fails. The current tdecore CMakeLists.txt includes only the following:
link_directories( ${TQT_LIBRARY_DIRS} ${LIBIDN_LIBRARY_DIRS} ${GAMIN_LIBDIR} ${LIBART_LIBRARY_DIRS} )
This is insufficient if( WITH_TDEHWLIB_DAEMONS OR WITH_HAL OR WITH_DEVKITPOWER OR WITH_UPOWER OR WITH_UDISKS OR WITH_UDISKS2 OR WITH_NETWORK_MANAGER_BACKEND OR WITH_CONSOLEKIT ) are chosen as options. See: tdecore/tdehw/CMakeLists.txt
There are probably other fixes needed, but my first thought was just to include ${DBUS_TQT_LIBRARY_DIRS}:
link_directories( ${TQT_LIBRARY_DIRS} ${LIBIDN_LIBRARY_DIRS} ${GAMIN_LIBDIR} ${LIBART_LIBRARY_DIRS} ${DBUS_TQT_LIBRARY_DIRS} )
But if ${TDEHW_CUSTOM_LIBRARY_DIRS} is visible in this scope, then :
link_directories( ${TQT_LIBRARY_DIRS} ${LIBIDN_LIBRARY_DIRS} ${GAMIN_LIBDIR} ${LIBART_LIBRARY_DIRS} ${TDEHW_CUSTOM_LIBRARY_DIRS} )
is probably better.
You do NOT see this problem if you are including -L/opt/trinity/libs in CXXFLAGS, but you should not have to put library search paths in CXXFLAGS to avoid the FTBFS.
Well, try proposed patch.
Slavek --
On 01/20/2014 06:04 PM, Slávek Banko wrote:
Frankly, surprised me that you're the problem encountered in tdebase instead of in tdelibs :) I have an idea how I wanted it solved - please, hold on, I will prepare a patch.
I would have if I hadn't screwed up the cmake options when I built tdelibs the first time ;-)
On 01/20/2014 07:17 PM, Slávek Banko wrote:
Well, try proposed patch.
Slavek
Will give it a try and report back.
On 01/20/2014 09:49 PM, David C. Rankin wrote:
On 01/20/2014 06:04 PM, Slávek Banko wrote:
Frankly, surprised me that you're the problem encountered in tdebase instead of in tdelibs :) I have an idea how I wanted it solved - please, hold on, I will prepare a patch.
I would have if I hadn't screwed up the cmake options when I built tdelibs the first time ;-)
On 01/20/2014 07:17 PM, Slávek Banko wrote:
Well, try proposed patch.
Slavek
Will give it a try and report back.
HOLY CRAP!!
tdelibs built fine with the patch -- and in 7 minutes flat with 'make -j4'!!!
Script Execution Time: 7 minutes - that is down from 27 min with -j1 and this is on a 5 year old box.
The patch works great -- push it. That was the only patch/mod to the build. I built with:
build() { msg "Setting PATH, CMAKE and Trinity Environment variables" # Source the QT and TDE profile [ "$QTDIR" = "" ] && . /etc/profile.d/tqt3.sh [ "$TDEDIR" = "" ] && . /etc/profile.d/trinity.sh
cd "${srcdir}/${pkgname//tde-}"
## patch /usr/bin/ld: cannot find -ldbus-1-tqt msg "/usr/bin/ld: cannot find -ldbus-1-tqt..." patch -Np1 -i "${srcdir}/tdelibs-tdecore-libdirs.diff"
cd $srcdir msg "Creating out-of-source build directory: ${srcdir}/${_builddir}" mkdir -p build cd build
msg "Starting cmake..." cmake ${srcdir}/tdelibs \ -DCMAKE_INSTALL_PREFIX=${TDEDIR} \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DWITH_ARTS=ON \ -DWITH_ALSA=ON \ -DWITH_LIBART=ON \ -DWITH_LIBIDN=ON \ -DWITH_SSL=ON \ -DWITH_CUPS=ON \ -DWITH_LUA=OFF \ -DWITH_TIFF=ON \ -DWITH_JASPER=ON \ -DWITH_OPENEXR=ON \ -DWITH_UTEMPTER=ON \ -DWITH_AVAHI=ON \ -DWITH_PAM=ON \ -DWITH_PCRE=ON \ -DWITH_TDEHWLIB_DAEMONS=ON \ -DWITH_UPOWER=ON \ -DWITH_UDISKS2=ON \ -DWITH_LZMA=ON \ -DWITH_XRANDR=ON \ -DWITH_XCOMPOSITE=ON \ -DWITH_ASPELL=ON \ -DWITH_HSPELL=ON
msg "Building - $pkgname..." make -j4 }