[Qgis-developer] cmake problems on RHEL/64bit

Markus Neteler neteler at itc.it
Tue Jan 23 08:28:02 EST 2007


Hi Martin,

it helped! This works

QGISTARGET=/usr/local/lib/qgis/
GRASSBINS=/ssi0/ssi/neteler/grass63/dist.x86_64-unknown-linux-gnu
QTDIR=/usr/lib64/qt4

mkdir -p build
cd build
cmake -D GRASS_PREFIX=${GRASSBINS} -D CMAKE_INSTALL_PREFIX=${QGISTARGET} -D QT_QMAKE_EXECUTABLE=${QTDIR}/bin/qmake-qt4 ..
make
make install


Thanks!
Markus

On Tue, Jan 23, 2007 at 01:11:36PM +0100, Martin Dobias wrote:
> Hi Markus,
> 
> the variable QT_BINARY_DIR you're passing to CMake doesn't help. The
> search for Qt4 starts by searching for qmake (or qmake-qt4) binary,
> however QT_BINARY_DIR  is a variable that the search macro sets by
> itself. You may be interested to set path directly to qmake binary
> which is used by macro to gather all information. Try setting
> QT_QMAKE_EXECUTABLE to this file (e.g. /usr/bin/qmake-qt4 for me on
> Ubuntu).
> 
> It uses also environment variable $QTDIR (not $QT4DIR) to search for qmake.
> 
> Hope that helps,
> Martin
> 
> On 1/23/07, Markus Neteler <neteler at itc.it> wrote:
> >Hi,
> >
> >I no longer manage to compile QGIS SVN HEAD on RHEL/64bit
> >using cmake. Last week it magically worked. This is what
> >happens:
> >
> >sh cmake_qgis.sh
> >-- Found Proj: /usr/lib64/libproj.so
> >-- Found Sqlite3: /usr/lib64/libsqlite3.so
> >-- Found GEOS: /usr/lib64/libgeos.so
> >-- Found GDAL: /usr/local/lib/libgdal.so
> >-- Found PostgreSQL: /usr/lib64/libpq.so
> >-- Found Expat: /usr/lib64/libexpat.so
> >-- Using GSL from /usr
> >-- Found GRASS: /ssi0/ssi/neteler/grass63/dist.x86_64-unknown-linux-gnu 
> >(6.3.cvs)
> >-- Python libraries found
> >-- SIP not found!
> >-- PyQt4 not found!
> >-- Python bindings disabled due dependency problems!
> >CMake Error: Error in cmake code at
> >/usr/share/cmake/Modules/FindQt4.cmake:857:
> >MESSAGE Qt qmake not found!
> >Current CMake stack: 
> >/hardmnt/bartok0/ssi/neteler/software/qgis_unstable/CMakeLists.txt;/usr/share/cmake/Modules/CMakeCInformation.cmake;/usr/share/cmake/Modules/CMakeCXXInformation.cmake;/usr/share/cmake/Modules/FindQt4.cmake
> >-- Configuring done
> >make: *** No targets specified and no makefile found.  Stop.
> >
> >echo $PATH
> >/usr/lib64/qt4/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:.:/ssi0/ssi/neteler/bin
> >
> >echo $LD_LIBRARY_PATH
> >/usr/lib64/qt4/lib64:/usr/local/lib/qgis/lib/:/lib
> >
> >which qmake
> >/usr/lib64/qt4/bin/qmake
> >
> >########
> >My meta configuration script contains:
> >
> >QGISTARGET=/usr/local/lib/qgis/
> >GRASSBINS=/ssi0/ssi/neteler/grass63/dist.x86_64-unknown-linux-gnu
> >QT4DIR=/usr/lib64/qt4
> >export PATH=${QT4DIR}/bin:$PATH
> >export LD_LIBRARY_PATH=${QT4DIR}/lib64:$LD_LIBRARY_PATH
> >mkdir -p build
> >cd build
> >cmake -D GRASS_PREFIX=${GRASSBINS} -D CMAKE_INSTALL_PREFIX=${QGISTARGET} 
> >-D QT_BINARY_DIR=${QT4DIR}/bin..
> >
> >Any ideas? I don't know how to debug the problem with cmake.
> >Thanks,
> >Markus
> >
> >--
> >Markus Neteler  <neteler itc it>  http://mpa.itc.it/markus/
> >ITC-irst -  Centro per la Ricerca Scientifica e Tecnologica
> >MPBA - Predictive Models for Biol. & Environ. Data Analysis
> >Via Sommarive, 18        -       38050 Povo (Trento), Italy
> >_______________________________________________
> >Qgis-developer mailing list
> >Qgis-developer at lists.qgis.org
> >http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
> >

-- 
Markus Neteler  <neteler itc it>  http://mpa.itc.it/markus/
ITC-irst -  Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18        -       38050 Povo (Trento), Italy



More information about the Qgis-developer mailing list