Estoy en Ubuntu construyendo qgis con el plugin grass. He construido el código de la hierba por separado y utilizado --prefix para proporcionar la ruta
GRASS_PREFIX
es /usr/local/grass-6.4.2
y GRASS_INCLUDE_DIR
es /usr/local/grass-6.4.2/include
y LIB_PATH
es /usr/local/grass-6.4.2/lib/libgrass_gproj.so
. He desmarcado WITH_GRASS
Cuando compilo qgis obtengo lo siguiente
[ 0%] Built target version
[ 17%] Built target qgis_core
[ 19%] Built target qgis_analysis
[ 19%] Built target qgis_networkanalysis
[ 27%] Built target ui
[ 40%] Built target qgis_gui
[ 40%] Built target memoryprovider
[ 41%] Built target delimitedtextprovider
[ 42%] Built target osmprovider
[ 43%] Built target qgissqlanyconnection
[ 44%] Built target sqlanywhereprovider
[ 44%] Built target gdalprovider
[ 45%] Built target mssqlprovider
[ 47%] Built target postgresprovider
[ 48%] Built target spatialiteprovider
[ 48%] Built target crssync
[ 73%] Built target qgis
[ 75%] Built target diagramoverlay
[ 76%] Built target interpolationplugin
[ 76%] Built target dxf2shpconverterplugin
[ 77%] Built target spatialqueryplugin
[ 78%] Built target sqlanywhereplugin
[ 79%] Built target roadgraphplugin
[ 80%] Built target zonalstatisticsplugin
Linking CXX shared module ../../../output/lib/qgis/plugins/libgrassplugin.so
/usr/bin/ld: cannot find -lqgisgrass
collect2: ld returned 1 exit status
make[2]: *** [output/lib/qgis/plugins/libgrassplugin.so] Error 1
make[1]: *** [src/plugins/grass/CMakeFiles/grassplugin.dir/all] Error 2
make: *** [all] Error 2
Por favor, dígame qué es lo que me falta. Gracias.
Saludos, Srikanth
Lo he resuelto. Puedo ver el plugin de césped en qgis. Pero el plugin no es capaz de encontrar las utilidades de la hierba. Entonces traté de construir usando WITH_GRASS = yes
para vincular el grassplugin a grass, entonces me sale lo siguiente. Creo que dice que hay un problema de directorio de construcción. No se me ocurre cómo solucionarlo. Por favor, aconsejadme.
Found GRASS: /usr/lib/grass64 (6.4.2)
Touch support disabled
Found Proj: /usr/lib/libproj.so
Found GEOS: /usr/lib/libgeos_c.so
Found GDAL: /usr/lib/libgdal.so (1.9.1)
Found Expat: /usr/lib/x86_64-linux-gnu/libexpat.so
Found Spatialindex: /usr/lib/libspatialindex.so
Found Qwt: /usr/lib/libqwt-qt4.so (5.2.2)
Found Sqlite3: /usr/lib/x86_64-linux-gnu/libsqlite3.so
Found SpatiaLite: /usr/lib/libspatialite.so
Pedantic compiler settings enabled
Debug output enabled
Found Python executable: /usr/bin/python
Found Python version: 2.7.3
Found Python library: /usr/lib/libpython2.7.so
Found SIP version: 4.13.2
Found PyQt4 version: 4.9.1
CMake Error at src/plugins/grass/CMakeLists.txt:116 (ADD_LIBRARY):
add_library cannot create target "grassplugin" because another target with
the same name already exists. The existing target is a module library
created in source directory
"/home/develop1/QGIS_Develop/qgis-1.8.0/src/plugins/grass". See
documentation for policy CMP0002 for more details.
CMake Error at src/plugins/grass/CMakeLists.txt:140 (TARGET_LINK_LIBRARIES):
Attempt to add link library "qgisgrass" to target "grassplugin" which is
not built in this directory.
CMake Error at src/plugins/grass/CMakeLists.txt:140 (TARGET_LINK_LIBRARIES):
Attempt to add link library "qgis_gui" to target "grassplugin" which is not
built in this directory.
CMake Error at src/plugins/grass/CMakeLists.txt:140 (TARGET_LINK_LIBRARIES):
Attempt to add link library "util" to target "grassplugin" which is not
built in this directory.
CMake Error at src/plugins/grass/CMakeLists.txt:150 (ADD_EXECUTABLE):
add_executable cannot create target "qgis.g.browser" because another target
with the same name already exists. The existing target is an executable
created in source directory
"/home/develop1/QGIS_Develop/qgis-1.8.0/src/plugins/grass". See
documentation for policy CMP0002 for more details.
CMake Error at src/plugins/grass/CMakeLists.txt:152 (TARGET_LINK_LIBRARIES):
Attempt to add link library "/usr/lib/x86_64-linux-gnu/libQtGui.so" to
target "qgis.g.browser" which is not built in this directory.
CMake Error at src/plugins/grass/CMakeLists.txt:152 (TARGET_LINK_LIBRARIES):
Attempt to add link library "/usr/lib/x86_64-linux-gnu/libQtCore.so" to
target "qgis.g.browser" which is not built in this directory.
CMake Error at src/plugins/grass/CMakeLists.txt:160 (INSTALL):
install TARGETS given target "grassplugin" which does not exist in this
directory.
CMake Error at src/plugins/grass/CMakeLists.txt:172 (INSTALL):
install TARGETS given target "qgis.g.browser" which does not exist in this
directory.