Here is what config.log says:
configure:6325: checking whether to use libLAS
configure:6342: checking for liblas-config
configure:6397: gcc -o conftest -g -O2 -arch i386 -arch x86_64 -arch i386 -arch x86_64 conftest.c -L/usr/local/lib -llas -llas_c -L/usr/local/lib /usr/local/lib/libboost_program_options.dylib /usr/local/lib/libboost_thread.dylib 1>&5
ld: warning: in /usr/local/lib/liblas.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /usr/local/lib/liblas_c.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /usr/local/lib/libboost_program_options.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /usr/local/lib/libboost_thread.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
"_LASReader_Create", referenced from:
_main in ccyGPRwA.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-//ccTBIoSr.out (No such file or directory)
configure: failed program was:
#line 6390 "configure"
#include "confdefs.h"
#include <liblas/capi/liblas.h>
int main() {
LASReader_Create("foo");
; return 0; }
configure:6412: gcc -o conftest -g -O2 -arch i386 -arch x86_64 -arch i386 -arch x86_64 conftest.c -L/usr/local/lib -llas -llas_c -L/usr/local/lib /usr/local/lib/libboost_program_options.dylib /usr/local/lib/libboost_thread.dylib 1>&5
ld: warning: in /usr/local/lib/liblas.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /usr/local/lib/liblas_c.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /usr/local/lib/libboost_program_options.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /usr/local/lib/libboost_thread.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
"_LASReader_Create", referenced from:
_main in ccyd6eSx.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-//cc1EN6Pu.out (No such file or directory)
configure: failed program was:
#line 6405 "configure"
#include "confdefs.h"
#include <liblas/capi/liblas.h>
int main() {
LASReader_Create("foo");
; return 0; }
================
I tried adding an explicit --with-liblas-includes= statement, but it still bombs.
Michael
On Aug 7, 2012, at 4:36 PM, William Kyngesburye wrote:
check config.log, this should tell you why.
On Aug 7, 2012, at 4:23 PM, Michael Barton wrote:
I'm trying to compile GRASS 7 with LAS support.
I've compiled liblas and it is in usr/local/lib, with utility programs and config in /usr/local/bin
I added --with-liblas=/usr/local/bin/liblas-config to my configure script, since this is where liblas-config is located. Moreover, it seems to work OK.
running liblas-config produces the following output, which seems fine AFAICT
cmb-macbookpro:~ cmbarton$ /usr/local/bin/liblas-config --libs
-L/usr/local/lib -llas -llas_c -L/usr/local/lib /usr/local/lib/libboost_program_options.dylib /usr/local/lib/libboost_thread.dylib
Yet configure produces an error that it cannot find the liblas libraries.
Any suggestions?
Michael
______________________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
Tempe, AZ 85287-2402
USA
voice:
480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671(SHESC), 480-727-0709 (CSDC)
www:
http://csdc.asu.edu, http://shesc.asu.edu
http://www.public.asu.edu/~cmbarton
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
"Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence....
- the wisdom of Tarzan
_____________________
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research &
University Corporation for Atmospheric Research
303-497-2889 (voice)
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu