Hi I am trying to compile GRASS 7 from svn on OS X El Capitan. I have checked it uot using
--8<---------------cut here---------------start------------->8--- svn checkout https://svn.osgeo.org/grass/grass/trunk grass7_trunk --8<---------------cut here---------------end--------------->8--- and have used the following configure options: --8<---------------cut here---------------start------------->8--- export LDFLAGS='-L/usr/local/lib -L/usr/local/opt/sqlite/lib' export CPPFLAGS=I/usr/local/include -I/usr/local/opt/sqlite/include' ./configure --with-opengl=aqua --with-freetype=no --with-cxx --with-sqlite --prefix=/Applications --enable-macosx-app --8<---------------cut here---------------end--------------->8--- This configures fine with the following result: ,---- | GRASS is now configured for: x86_64-apple-darwin15.2.0 | | Source directory: /Users/rainerkrug/ownCompiled/grass/grass7_trunk | Build directory: /Users/rainerkrug/ownCompiled/grass/grass7_trunk | Installation directory: ${prefix}/GRASS-7.1.app/Contents/MacOS | Startup script in directory:${exec_prefix}/bin | C compiler: gcc -g -O2 | C++ compiler: c++ -g -O2 | Building shared libraries: yes | OpenGL platform: Aqua | | MacOSX application: yes | MacOSX architectures: | MacOSX SDK: | | BLAS support: no | BZIP2 support: no | C++ support: yes | Cairo support: yes | DWG support: no | FFTW support: yes | FreeType support: no | GDAL support: yes | GEOS support: no | LAPACK support: no | Large File support (LFS): yes | libLAS support: no | MySQL support: no | NetCDF support: no | NLS support: no | ODBC support: no | OGR support: yes | OpenCL support: no | OpenGL support: yes | OpenMP support: no | PDAL support: no | PNG support: yes | POSIX thread support: no | PostgreSQL support: no | Readline support: no | Regex support: yes | SQLite support: yes | TIFF support: yes | X11 support: no `---- But I get the following error messages when I compile using --8<---------------cut here---------------start------------->8--- make --8<---------------cut here---------------end--------------->8--- : ,---- | GRASS GIS 7.1.svn r67499 compilation log | -------------------------------------------------- | Started compilation: Wed Jan 6 15:46:25 CET 2016 | -- | Errors in: | /Users/rainerkrug/ownCompiled/grass/grass7_trunk/scripts/d.correlate | /Users/rainerkrug/ownCompiled/grass/grass7_trunk/scripts/d.frame | /Users/rainerkrug/ownCompiled/grass/grass7_trunk/scripts/d.out.file | /Users/rainerkrug/ownCompiled/grass/grass7_trunk/scripts/d.to.rast | /Users/rainerkrug/ownCompiled/grass/grass7_trunk/scripts/d.polar | ... `---- Running make in ,---- | /Users/rainerkrug/ownCompiled/grass/grass7_trunk/scripts/d.correlate `---- gives me the following output: ,---- | 5:37:13 ~/ownCompiled/grass/grass7_trunk/scripts/d.correlate$ make | if [ "/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/scripts/d.correlate" != "" ] ; then GISRC=/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/demolocation/.grassrc71 GISBASE=/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0 PATH="/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/bin:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/bin:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/scripts:$PATH" PYTHONPATH="/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/etc/python:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/gui/wxpython:$PYTHONPATH" DYLD_LIBRARY_PATH="/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/bin:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/bin:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/scripts:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/lib:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/lib:" LC_ALL=C /Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/scripts/d.correlate --html-description < /dev/null | grep -v '</body>\|</html>' > d.correlate.tmp.html ; fi | dyld: Library not loaded: /Applications/GRASS-7.1.app/Contents/MacOS/lib/libgrass_gis.7.1.svn.dylib | Referenced from: /Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/bin/g.parser | Reason: image not found | make: *** [d.correlate.tmp.html] Error 1 | rm d.correlate.tmp.html `---- What irritates me is the error message concerning not being able to load - which is obvious, as I am still compiling GRASS and haven't installed it yet. The file is in ,---- | /Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/lib `---- Any suggestions what is going on here? grass71 compiles fine and I can launch it, but the I am now trying it with --8<---------------cut here---------------start------------->8--- export LDFLAGS='-L/usr/local/lib -L/usr/local/opt/sqlite/lib' export CPPFLAGS='-I/usr/local/include -I/usr/local/opt/sqlite/include' ./configure --with-opengl=aqua --with-freetype=no --with-cxx --with-sqlite --prefix=~/ownCompiled/ --8<---------------cut here---------------end--------------->8--- which results in ,---- | GRASS is now configured for: x86_64-apple-darwin15.2.0 | | Source directory: /Users/rainerkrug/ownCompiled/grass/grass7_trunk | Build directory: /Users/rainerkrug/ownCompiled/grass/grass7_trunk | Installation directory: ${prefix}/grass-7.1.svn | Startup script in directory:${exec_prefix}/bin | C compiler: gcc -g -O2 | C++ compiler: c++ -g -O2 | Building shared libraries: yes | OpenGL platform: Aqua | | MacOSX application: no | MacOSX architectures: | MacOSX SDK: | | BLAS support: no | BZIP2 support: no | C++ support: yes | Cairo support: yes | DWG support: no | FFTW support: yes | FreeType support: no | GDAL support: yes | GEOS support: no | LAPACK support: no | Large File support (LFS): yes | libLAS support: no | MySQL support: no | NetCDF support: no | NLS support: no | ODBC support: no | OGR support: yes | OpenCL support: no | OpenGL support: yes | OpenMP support: no | PDAL support: no | PNG support: yes | POSIX thread support: no | PostgreSQL support: no | Readline support: no | Regex support: yes | SQLite support: yes | TIFF support: yes | X11 support: no `---- --8<---------------cut here---------------start------------->8--- make -j 8 --8<---------------cut here---------------end--------------->8--- results in many errors, where the first one is in d.frame, where, when compiling from there, I get ,---- | 05:49:58 ~/ownCompiled/grass/grass7_trunk/scripts/d.frame$ make | if [ "/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/scripts/d.frame" != "" ] ; then GISRC=/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/demolocation/.grassrc71 GISBASE=/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0 PATH="/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/bin:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/bin:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/scripts:$PATH" PYTHONPATH="/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/etc/python:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/gui/wxpython:$PYTHONPATH" DYLD_LIBRARY_PATH="/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/bin:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/bin:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/scripts:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/lib:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/lib:" LC_ALL=C /Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/scripts/d.frame --html-description < /dev/null | grep -v '</body>\|</html>' > d.frame.tmp.html ; fi | dyld: Library not loaded: /Users/rainerkrug/ownCompiled//grass-7.1.svn/lib/libgrass_gis.7.1.svn.dylib | Referenced from: /Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/bin/g.parser | Reason: image not found | make: *** [d.frame.tmp.html] Error 1 | rm d.frame.tmp.html | 05:50:00 ~/ownCompiled/grass/grass7_trunk/scripts/d.frame$ `---- So the same. What is going on here? Why is it trying to load during compilation a dynamic library from a location where it will be installed *after* it has been compiled? Any help appreciated, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug PGP: 0x0F52F982
signature.asc
Description: PGP signature
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev