Mac OS X Yosemite, homebrew recipe.
,----
| Checking for gdal-config... /usr/local/opt/gdal/bin/gdal-config
| rm: conftest.dSYM: is a directory
| checking whether to use libLAS... yes
| checking for liblas-config... /usr/local/opt/liblas/bin/liblas-config
| configure: error: *** Unable to locate libLAS library.
`----
The config.log says:
,----
| ...
| onfigure:6164: checking whether to use libLAS
| configure:6181: checking for liblas-config
| configure:6238: clang -o conftest -g -O2 -I/usr/local/opt/gettext/include -I/usr/local/Cellar/liblas/1.8.0/include -I/usr/local/include -I/usr/local/include -I/usr/local/include conftest.c -L/usr/local/Cellar/liblas/1.8.0/lib -llas -llas_c -L/usr/local/lib /usr/local/lib/libboost_program_options-mt.dylib /usr/local/lib/libboost_thread-mt.dylib /usr/local/Cellar/gdal/1.11.1_2/lib/libgdal.dylib /usr/local/lib/libgeotiff.dylib /usr/local/lib/libtiff.dylib 1>&5
| clang: error: no such file or directory: '/usr/local/Cellar/gdal/1.11.1_2/lib/libgdal.dylib'
| configure: failed program was:
| #line 6231 "configure"
| #include "confdefs.h"
| #include <liblas/capi/liblas.h>
| int main() {
| LASReader_Create("foo");
| ; return 0; }
| configure:6253: clang -o conftest -g -O2 -I/usr/local/opt/gettext/include -I/usr/local/Cellar/liblas/1.8.0/include -I/usr/local/include -I/usr/local/include -I/usr/local/include conftest.c -L/usr/local/Cellar/liblas/1.8.0/lib -llas -llas_c -L/usr/local/lib /usr/local/lib/libboost_program_options-mt.dylib /usr/local/lib/libboost_thread-mt.dylib /usr/local/Cellar/gdal/1.11.1_2/lib/libgdal.dylib /usr/local/lib/libgeotiff.dylib /usr/local/lib/libtiff.dylib 1>&5
| clang: error: no such file or directory: '/usr/local/Cellar/gdal/1.11.1_2/lib/libgdal.dylib'
| configure: failed program was:
| #line 6246 "configure"
| #include "confdefs.h"
| #include <liblas/capi/liblas.h>
| int main() {
| LASReader_Create("foo");
| ; return 0; }
`----
So the error is somewhere in the config logic and gdal?
gdal is installed - but /usr/local/Cellar/gdal/1.11.2_2
The installation works when I install without liblas.
Any suggestions on how to proceed?
--
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: Rainer@krugs.de
Skype: RMkrug
PGP: 0x0F52F982
Rainer M Krug wrote:
| configure:6181: checking for liblas-config
| configure:6238: clang -o conftest -g -O2 -I/usr/local/opt/gettext/include -I/usr/local/Cellar/liblas/1.8.0/include -I/usr/local/include -I/usr/local/include -I/usr/local/include conftest.c -L/usr/local/Cellar/liblas/1.8.0/lib -llas -llas_c -L/usr/local/lib /usr/local/lib/libboost_program_options-mt.dylib /usr/local/lib/libboost_thread-mt.dylib /usr/local/Cellar/gdal/1.11.1_2/lib/libgdal.dylib /usr/local/lib/libgeotiff.dylib /usr/local/lib/libtiff.dylib 1>&5
| clang: error: no such file or directory: '/usr/local/Cellar/gdal/1.11.1_2/lib/libgdal.dylib'
The configure script runs "liblas-config --libs" to obtain the
libraries. liblas-config is saying that it needs
/usr/local/Cellar/gdal/1.11.1_2/lib/libgdal.dylib but the linker
complains that the file doesn't exist.
It may be that libLAS was built against a GDAL library which has since
been removed. In which case, you need to either restore that library
or re-build libLAS to use and existing version of GDAL (or without
GDAL; the dependency is optional).
--
Glynn Clements <glynn@gclements.plus.com>
Glynn Clements <glynn@gclements.plus.com> writes:
Rainer M Krug wrote:
| configure:6181: checking for liblas-config
| configure:6238: clang -o conftest -g -O2
| -I/usr/local/opt/gettext/include
| -I/usr/local/Cellar/liblas/1.8.0/include -I/usr/local/include
| -I/usr/local/include -I/usr/local/include conftest.c
| -L/usr/local/Cellar/liblas/1.8.0/lib -llas -llas_c
| -L/usr/local/lib /usr/local/lib/libboost_program_options-mt.dylib
| /usr/local/lib/libboost_thread-mt.dylib
| /usr/local/Cellar/gdal/1.11.1_2/lib/libgdal.dylib
| /usr/local/lib/libgeotiff.dylib /usr/local/lib/libtiff.dylib 1>&5
| clang: error: no such file or directory: '/usr/local/Cellar/gdal/1.11.1_2/lib/libgdal.dylib'
The configure script runs "liblas-config --libs" to obtain the
libraries. liblas-config is saying that it needs
/usr/local/Cellar/gdal/1.11.1_2/lib/libgdal.dylib but the linker
complains that the file doesn't exist.
It may be that libLAS was built against a GDAL library which has since
been removed. In which case, you need to either restore that library
or re-build libLAS to use and existing version of GDAL (or without
GDAL; the dependency is optional).
You are spot on! Great. Thanks a lot.
This solved the problem. I will add this to the test and to the WIKI
page.
--
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: Rainer@krugs.de
Skype: RMkrug
PGP: 0x0F52F982