[QGIS-trac] Re: [Quantum GIS] #2411: FTBFS: qgsgrass.cpp + old grasses on Debian/Lenny

Quantum GIS qgis at qgis.org
Sat Feb 13 14:55:47 EST 2010


#2411: FTBFS: qgsgrass.cpp + old grasses on Debian/Lenny
-----------------------------------------------------+----------------------
        Reporter:  hamish                            |         Owner:  nobody       
            Type:  bug                               |        Status:  new          
        Priority:  major: does not work as expected  |     Milestone:  Version 1.5.0
       Component:  Build/Install                     |       Version:  HEAD         
      Resolution:                                    |      Keywords:  grass        
Platform_version:  Lenny amd64                       |      Platform:  Debian       
        Must_fix:  No                                |   Status_info:  0            
-----------------------------------------------------+----------------------
Comment (by hamish):

 ah, trunk/debian/build/CMakeCache.txt:
 {{{
 //Path to a file.
 GRASS_INCLUDE_DIR:PATH=/usr/lib/grass/include

 //Path to GRASS base directory
 GRASS_PREFIX:PATH=usr/local/src/grass/svn/grass65
 }}}


 (that base dir is supposed to be the installed ($GISBASE) dir not the
 source code base I guess)


 with debian/rules changed to:
 {{{
 -       -D GRASS_PREFIX=/usr/lib/grass64 \
 +       -D GRASS_PREFIX=/usr/local/src/grass/svn/grass65/dist.x86_64-
 unknown-linux-gnu \
 +       -D GRASS_INCLUDE_DIR=/usr/local/src/grass/svn/grass65/dist.x86_64-
 unknown-linux-gnu/include \
 }}}



 and also to build for GRASS 6.5 I needed to make this symlink:
 {{{
 cd trunk/src/plugins/grass/
 ln -s modules-6.4 modules-6.5
 }}}



 after fixing all that, I now get this error:

 {{{
 [ 93%] Building CXX object
 src/plugins/grass/CMakeFiles/grassplugin.dir/qgsgrassshell.cpp.o
 /usr/local/src/qgis/svn/trunk/src/plugins/grass/qgsgrassshell.cpp: In
 constructor 'QgsGrassShell::QgsGrassShell(QgsGrassTools*, QTabWidget*,
 const char*)':
 /usr/local/src/qgis/svn/trunk/src/plugins/grass/qgsgrassshell.cpp:69:
 error: 'class QStringList' has no member named 'length'
 make[3]: ***
 [src/plugins/grass/CMakeFiles/grassplugin.dir/qgsgrassshell.cpp.o] Error 1
 make[3]: Leaving directory `/usr/local/src/qgis/svn/trunk/debian/build'
 make[2]: *** [src/plugins/grass/CMakeFiles/grassplugin.dir/all] Error 2
 make[2]: Leaving directory `/usr/local/src/qgis/svn/trunk/debian/build'
 make[1]: *** [all] Error 2
 make[1]: Leaving directory `/usr/local/src/qgis/svn/trunk/debian/build'
 make: *** [build-stamp] Error 2
 debuild: fatal error at line 1301:
 couldn't exec fakeroot debian/rules:
 }}}


 progress, only 7% to go! :)


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2411#comment:1>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list