<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    In my case, I have the same problem when compiling qgis with grass 7
    preinstalled<br>
    <br>
    <br>
    <div class="moz-cite-prefix">El 11/03/15 a las 18:27, Donovan
      Cameron escribió:<br>
    </div>
    <blockquote cite="mid:55007AFA.1060805@gmail.com" type="cite">Morning,
      <br>
      <br>
      I'm attempting to compile the QGIS 2.8.1 grass plugin against
      GRASS 7.0.0 on Arch Linux 64bit.
      <br>
      <br>
      I read somewhere (maybe GIS.se?) that the GRASS plugin in QGIS
      doesn't have full functionality and a kickstarter/crowdfunding
      process could be underway to get it up to par, but in the meantime
      it was also mentioned it's still possible to use the toolbar to
      load grass 7 layers into the qgis canvas.
      <br>
      <br>
      GDAL 1.11.2 is installed and so is gdal-grass plugin using some
      patches to get GDAL working with grass 7.
      <br>
      <br>
      I'm using the following cmake options in the QGIS build:
      <br>
      -DWITH_GRASS=ON
      <br>
      -DGRASS_PREFIX=/opt/grass
      <br>
      -DGRASS_INCLUDE_DIR=/opt/grass/include
      <br>
      <br>
      <br>
      <br>
      But QGIS fails to build with the following error:
      <br>
      <br>
      Scanning dependencies of target qgisgrass
      <br>
      [ 50%] Building CXX object
      src/providers/grass/CMakeFiles/qgisgrass.dir/qgsgrass.cpp.o
      <br>
      /tmp/makepkg/qgis/src/qgis/src/providers/grass/qgsgrass.cpp: In
      static member function ‘static void QgsGrass::setMapset(QString,
      QString, QString)’:
      <br>
      /tmp/makepkg/qgis/src/qgis/src/providers/grass/qgsgrass.cpp:383:51:
      error: ‘G__setenv’ was not declared in this scope
      <br>
         G__setenv( "GISDBASE", gisdbase.toUtf8().data() );
      <br>
                                                         ^
      <br>
      /tmp/makepkg/qgis/src/qgis/src/providers/grass/qgsgrass.cpp:392:30:
      error: ‘G_available_mapsets’ was not declared in this scope
      <br>
           ms = G_available_mapsets();
      <br>
                                    ^
      <br>
      /tmp/makepkg/qgis/src/qgis/src/providers/grass/qgsgrass.cpp: In
      static member function ‘static QString
      QgsGrass::openMapset(QString, QString, QString)’:
      <br>
      /tmp/makepkg/qgis/src/qgis/src/providers/grass/qgsgrass.cpp:611:46:
      error: ‘G__setenv’ was not declared in this scope
      <br>
         G__setenv( "GISRC", mGisrc.toUtf8().data() );
      <br>
                                                    ^
      <br>
      /tmp/makepkg/qgis/src/qgis/src/providers/grass/qgsgrass.cpp: In
      static member function ‘static QString QgsGrass::closeMapset()’:
      <br>
      /tmp/makepkg/qgis/src/qgis/src/providers/grass/qgsgrass.cpp:657:39:
      error: ‘G__setenv’ was not declared in this scope
      <br>
           G__setenv( "GISRC", ( char * ) "" );
      <br>
                                             ^
      <br>
      /tmp/makepkg/qgis/src/qgis/src/providers/grass/qgsgrass.cpp: In
      static member function ‘static bool QgsGrass::region(QString,
      QString, QString, Cell_head*)’:
      <br>
      /tmp/makepkg/qgis/src/qgis/src/providers/grass/qgsgrass.cpp:1082:83:
      error: ‘G__get_window’ was not declared in this scope
      <br>
         G__get_window( window, ( char * ) "", ( char * ) "WIND",
      mapset.toUtf8().data() );
      <br>
      ^
      <br>
      /tmp/makepkg/qgis/src/qgis/src/providers/grass/qgsgrass.cpp: In
      static member function ‘static bool QgsGrass::mapRegion(int,
      QString, QString, QString, QString, Cell_head*)’:
      <br>
      /tmp/makepkg/qgis/src/qgis/src/providers/grass/qgsgrass.cpp:1268:94:
      error: ‘G__get_window’ was not declared in this scope
      <br>
           G__get_window( window, ( char * ) "windows",
      map.toUtf8().data(), mapset.toUtf8().data() );
      <br>
      ^
      <br>
      src/providers/grass/CMakeFiles/qgisgrass.dir/build.make:60: recipe
      for target
      'src/providers/grass/CMakeFiles/qgisgrass.dir/qgsgrass.cpp.o'
      failed
      <br>
      make[2]: ***
      [src/providers/grass/CMakeFiles/qgisgrass.dir/qgsgrass.cpp.o]
      Error 1
      <br>
      CMakeFiles/Makefile2:1251: recipe for target
      'src/providers/grass/CMakeFiles/qgisgrass.dir/all' failed
      <br>
      make[1]: *** [src/providers/grass/CMakeFiles/qgisgrass.dir/all]
      Error 2
      <br>
      Makefile:137: recipe for target 'all' failed
      <br>
      make: *** [all] Error 2
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      So I'm not sure what the hiccup is exactly. GRASS 7 is installed
      and runs fine outside of QGIS, but maybe it's missing some
      environment variables (like GISRC or GISDBASE) that QGIS needs to
      compile against it?
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      Donovan
      <br>
      _______________________________________________
      <br>
      Qgis-user mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <title>Firmas de correo.com : José Antonio Barreña Cayuela</title>
      <style type="text/css">
        a {
                color: #09C;
                text-decoration: none;
        }
        a:hover {
                color: #069;
        }
 </style>
      <table width="100%" border="0" cellpadding="0" cellspacing="10">
        <tbody>
          <tr>
            <td><br>
            </td>
          </tr>
          <tr>
            <td style="padding:10px;" valign="top" align="left">
              <p><font style="font-size:18px;" face="Arial, Helvetica,
                  sans-serif" color="#1c2927">José Antonio Barreña
                  Cayuela</font><br>
                <font face="Arial, Helvetica, sans-serif"
                  color="#616b68"><em style="font-size:12px;">Biólogo
                    (botánico). Servicios Ambientales</em></font><br>
                <font style="font-size:12px" face="Arial, Helvetica,
                  sans-serif"><strong><font color="#384845">+34 677 811
                      883</font></strong> · <a
                    href="mailto:jabarcay@gmail.com">jabarcay@gmail.com</a>
                </font><br>
              </p>
              <p> </p>
              <table style="margin-top:10px;" border="0"
                cellpadding="15" cellspacing="0">
                <tbody>
                  <tr>
                    <td style="padding:5px;"> <a
                        href="skype:jabarcay?call"><img
                          src="cid:part2.05020406.04030204@gmail.com"
                          alt="skype" height="24" width="24" border="0"></a>   <a
href="http://es.linkedin.com/pub/jos%C3%A9-antonio-barre%C3%B1a-cayuela/26/936/15a/"><img
                          src="cid:part4.03060105.06080309@gmail.com"
                          alt="linkedIn" height="24" width="24"
                          border="0"></a>     </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>