Bug report #1663
QGIS uses wrong GRASS library.
|Affected QGIS version:||Regression?:||No|
|Operating System:||Debian||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||invalid|
|Crashes QGIS or corrupts data:||Copied to github as #:||11723|
I'm trying to get qgis to work with grass 6.5 (I also have grass 7.0), but qgis crashes with an "Incompatible library version for module" fatal error. I compiled qgis with the correct prefix (GRASS_PREFIX=/usr/local/grass-6.5.svn ), but ldd tells me that qgis is picking up the 7.0.svn.so version of grass.
I also want to report that grass 6.5 and grass70 works well and I'm using the gdal-grass plugin which is configured for grass 6.5.
#2 Updated by cgsbob - over 12 years ago
Replying to [comment:1 jef]:
setup LD_LIBRARY_PATH to point to the correct grass library path (probably /usr/local/grass-6.5.svn/lib in your case).
I put both /usr/local/grass-6.5.svn/lib and /usr/local/grass-7.0.svn/lib in LD_LIBRARY_PATH. I reversed those two paths and now qgis starts without crashing. So it seems that qgis loads the first grass library...even if the library is not under the GRASS_PREFIX directory?