David C. Rankin wrote:
On 04/02/2011 11:20 PM, David C. Rankin wrote:
Guys,
Doing the out-of-source build on tqtinterface, I've run into a
CMake/make issue.
After successfully completing the build, I get the following error:
<snip>
[ 99%] Building CXX object
qtinterface/CMakeFiles/tqt-shared.dir/private/tqucomextra_p.cpp.o
[100%] Building CXX object
qtinterface/CMakeFiles/tqt-shared.dir/tqlistiterator.cpp.o
Linking CXX shared library libtqt.so
[100%] Built target tqt-shared
==> Entering fakeroot environment...
==> Starting package()...
==> Packaging - trinity-tqtinterface-1226875
make: *** No rule to make target `install'. Stop.
==> ERROR: A failure occurred in package().
Aborting...
What's the trick?
I just had to update the package() function in the script to package
from the new out of source directory:
package() {
msg "Packaging - $pkgname-$pkgver"
cd ${srcdir}/build
make DESTDIR="$pkgdir/" install
# include uic-tqt in package
}
Hi David,
Running the same setup as you here, can we sync our PKGBUILD scripts?
Here is mine. :-)
# $Id$
# Maintainer: David C. Rankin<drankinatty(a)gmail.com>
pkgbase=trinity
pkgname=trinity-tqtinterface
pkgver=1226875
pkgrel=1
arch=('i686' 'x86_64')
url="http://trinity.pearsoncomputing.net"
license=('GPL2')
groups=('trinity-bld')
pkgdesc="Trinity - tqtinterface"
depends=('python2-sip'
'trinity-qt3'
'trinity-pyqt3')
makedepends=('subversion' 'pkgconfig' 'cmake' 'autoconf')
provides=('trinity-tqtinterface')
conflicts=('trinity-tqtinterface')
replaces=('trinity-tqtinterface')
source=()
_svntrunk="svn://anonsvn.kde.org/home/kde/branches/trinity/dependencie…
_svnmod=tqtinterface
build() {
cd ${srcdir}
msg "Connecting to SVN server to update or checkout ${_svnmod}...."
if [ -d ${_svnmod}/.svn ]; then
(cd ${_svnmod}&& svn up)
[[ $? -eq 0 ]] || _co_failed=1
else
(svn co $_svntrunk ${_svnmod})
[[ $? -eq 0 ]] || _co_failed=1
fi
# if update or checkout failed - bail...
if [[ $_co_failed -ne 1 ]]; then
msg "SVN checkout of revision $pkgver -- Complete."
else
msg "SVN checkout of revision $pkgver -- Failed or server timeout."
exit 1
fi
msg "Setting PATH, CMAKE and Trinity Environment variables"
[[ ${PATH%%:*} =~ /opt/qt/bin ]] || export PATH=/opt/qt/bin:$PATH
cd ${srcdir}/${_svnmod}
#####################################
if [ -f CMakeCache.txt ]
then
rm CMakeCache.txt
fi
msg "Starting cmake..."
if [ ! -d ../../build ]
then
mkdir ../../build
fi
cd ../../build
###############################################
cmake ${srcdir}/${_svnmod} \
-DQT_VERSION=3 \
-DQT_PREFIX_DIR=/opt/qt \
-DCMAKE_INSTALL_PREFIX=/opt/qt \
-DCMAKE_SKIP_RPATH=ON || return 1
make
# cd ${srcdir}/${_svnmod}
}
package() {
msg "Packaging - $pkgname-$pkgver"
cd ../build
# cd ${_svnmod}
make DESTDIR="$pkgdir/" install
# include uic-tqt in package
cd ${srcdir}
mkdir -p ${pkgdir}/usr/bin
cp -Rp ${srcdir}/${_svnmod}/qtinterface/uic-tqt ${pkgdir}/usr/bin
# rm -r ${srcdir}/${_svnmod}
}
Castro. (David Baylis)
Archlinux on VirtualBox.