[Qgis-developer] cmake error

Martin Dobias wonder.sk at gmail.com
Tue Apr 17 14:36:01 EDT 2007


I guess you're using GRASS from CVS and the API has changed - in my
installation (grass 6.0.2) everything compiles well.

Try this: qgsgrass.h, line 166 and qgsgrass.cpp, line 350 - change
'char *msg' to 'const char *msg'

If that works for you, we'll commit it.

Martin

On 4/17/07, Paolo Cavallini <cavallini at faunalia.it> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Current svn does not compile here:
>
> [ 69%] Building CXX object
> src/providers/grass/CMakeFiles/qgisgrass.dir/qgsgrass.o
> /home/buildpackage/qgis/src/providers/grass/qgsgrass.cpp: In static
> member function 'static void QgsGrass::init()':
> /home/buildpackage/qgis/src/providers/grass/qgsgrass.cpp:49: error:
> invalid conversion from 'int (*)(char*, int)' to 'int (*)(const char*, int)'
> /home/buildpackage/qgis/src/providers/grass/qgsgrass.cpp:49: error:
> initializing argument 1 of 'int G_set_error_routine(int (*)(const char*,
> int))'
> make[2]: *** [src/providers/grass/CMakeFiles/qgisgrass.dir/qgsgrass.o]
> Error 1
> make[1]: *** [src/providers/grass/CMakeFiles/qgisgrass.dir/all] Error 2
>
> Any suggestion?
> All the best.
> pc
> - --
> Paolo Cavallini
> http://www.faunalia.it/pc
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGJQ4k/NedwLUzIr4RAlrqAJ9Qpxzi8bBxy1WtArgRWTgIVsCR2wCeI26j
> Mb0zmi95piMvAtzWuJzNIfc=
> =Mm73
> -----END PGP SIGNATURE-----
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.qgis.org
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>



More information about the Qgis-developer mailing list