You are not logged in.
Pages: 1
I have been trying to compile Marble, a KDE program that displays maps on a sphere (well, it is a little like Google Earth). When I try to compile the program with cmake/qmake i get an error saying qmake "is not able to compile a simple test program". I am pretty sure it is a simple error in my PKGBUILD, but I could not figure it out. By the way, I have changed to qt4 with qt-config.
I hope there is someone more familiar with this new cmake/qmake stuff. Help is greatly appreciated.
PKGBUILD:
pkgname=marble
pkgver=0.3
pkgrel=1
pkgdesc="A generic geographical map widget that shows the earth as a sphere."
url="http://www.kde-apps.org/content/show.php/Marble+-+Desktop+Globe?content=55105"
license="GPL"
arch=('i686')
depends=('qt4')
makedepends=('cmake')
source=(http://developer.kde.org/~tackat/marble/kubuntu/marble_0.3-1.tar.gz)
md5sums=('9d10af6c5f8b67503857426f84d8b358')
build() {
cd $startdir/src/$pkgname
# QTDIR=/opt/qt4
# QMAKESPEC=/opt/qt4/mkspecs/linux-g++
cmake -DQTONLY=ON -DCMAKE_INSTALL_PREFIX=/opt/kde
qmake -project
qmake
# make || return 1
make DESTDIR=$startdir/pkg install
Makepkg output:
$ makepkg -f
==> Making package: marble 0.3-1 (Sat Apr 14 14:28:59 EDT 2007)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Using local copy of marble_0.3-1.tar.gz
==> Validating source files with MD5sums
marble_0.3-1.tar.gz ... Passed
==> Extracting Sources...
==> tar --use-compress-program=gzip -xf marble_0.3-1.tar.gz
==> Removing existing pkg/ directory...
==> Starting build()...
-- Check for working C compiler: /opt/qt4/bin/qmake
-- Check for working C compiler: /opt/qt4/bin/qmake -- broken
CMake Error: The C compiler "/opt/qt4/bin/qmake" is not able to compile a simple test program.
It fails with the following output:
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/var/abs/local/marble/src/marble/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /var/abs/local/marble/src/marble/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o
/opt/qt4/bin/qmake -march=i686 -O2 -pipe -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o -c /var/abs/local/marble/src/marble/CMakeFiles/CMakeTmp/testCCompiler.c
Usage: /opt/qt4/bin/qmake [mode] [options] [files]
[...]
make[1]: Leaving directory `/var/abs/local/marble/src/marble/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec/fast] Error 2
CMake will not be able to correctly generate this project.
-- Configuring done
make: Nothing to be done for `install'.
Offline
Pages: 1